[jBPM] - Re: Questions about knowledge session and memory resource issues
by Maciej Swiderski
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion
"Re: Questions about knowledge session and memory resource issues"
To view the discussion, visit: https://community.jboss.org/message/734640#734640
--------------------------------------------------------------
> pmukundan wrote:
>
> *Questions*
> 1. Does JBPM keep all process instance information in memory at all times ?
Process instance is kept in session (working memory) one when it is active, meaning under execution. Once done with the processing it is persisted into db.
> pmukundan wrote:
>
> *Questions*
> 2. Does JBPM keep all the knowledge base in memory at all times ?
Yes, knowledge base is kept there all the time to secure all sessions will have access to all artifacts stored in it.
> pmukundan wrote:
>
> 3. For approach b to work, the internal handling of JBPM should enable me to load/unload session at will. Does that work well? any firsthand experience ?
>
As far as I can tell it works well. If you keep session small you should get quite good performance.
> pmukundan wrote:
>
> 4. For approach b, if session dispose is called, do all process instances associated with that session go dormant ? In other words, if a session dispose is executed, are the process instances started by that session still in memory ?
Once the process instance execution is completed (by completed I mean that it reached a safe point like human task or catch events that makes process be in a sort of wait state) it is persisted into db and will now longer be active/managed object. It still resides in memory as object but it is disconnected from the session so it is safe to dispose the session.
> pmukundan wrote:
> 5. My JVM crashes or needs to be restarted. Would all process instance information be loaded into memory automatically or would that be done programatically ?
No, they won't be, as mentioned earlier process instances are persisted in db and retrieved only when requested. Just make sure you load knowledge base and session on startup and register all work item handlers that are required.
NOTE: all my comments assume session persistence is used.
HTH
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/734640#734640]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 11 months
[Beginner's Corner] - Error getting translations: 404
by fre3man
fre3man [https://community.jboss.org/people/fre3man] created the discussion
"Error getting translations: 404"
To view the discussion, visit: https://community.jboss.org/message/735231#735231
--------------------------------------------------------------
Hi there,
I am having an OpenKM web system installed on a Windows XP server. I am trying to access the web system via Apache web server.
But i hit the following erro when i try to access it:
Error getting translations: 404 <html><head><title>JBossWeb/2.0.1.GA - Error report</title><style><!--H1 {font-
family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-
serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-
color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-
serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head>
<body><h1>HTTP Status 404 - /OpenKM/frontend/Language</h1><HR size="1" noshade="noshade"><p><b>type</b> Status
report</p><p><b>message</b> <u>/OpenKM/frontend/Language</u></p><p><b>description</b> <u>The requested resource
(/OpenKM/frontend/Language) is not available.</u></p><HR size="1" noshade="noshade"><h3>JBossWeb/2.0.1.GA</h3></body></html>
I was able to access the same web system via the port 8200 directly without encountering this issue.
Can i get any advise resolving this issue?
Thanks in advance!!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/735231#735231]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 11 months
[EJB3] - Problem with @Interceptors on generic bean methods, JBAS7
by Christoph Albrecht
Christoph Albrecht [https://community.jboss.org/people/calb] created the discussion
"Problem with @Interceptors on generic bean methods, JBAS7"
To view the discussion, visit: https://community.jboss.org/message/735187#735187
--------------------------------------------------------------
Hello all,
Migrating my application from JBoss 4.2.3-GA to JBoss 7.1.1-Final I stumpled upon following issue.
What is working fine for me with JB-4.2.3 does not with JB-7.1.1.
I want an interceptor be triggered on a stateless session bean method that is an implementation of a generic superinterface method declaration.
@Stateless
@Remote(TestBeanService.class)
public class TestBean implements TestBeanService {
@Interceptors(TestInterceptor.class)
public void simpleFoo() {
System.out.println("doing simple foo");
}
@Override
@Interceptors(TestInterceptor.class)
public void genericFoo(SomeClass entity) {
System.out.println("doing generic foo");
}
}
//====================================================
public interface TestBeanService extends GenericService<SomeClass> {
public void simpleFoo();
}
//====================================================
public interface GenericService<T> {
public void genericFoo(T entity);
}
//====================================================
public class TestInterceptor {
@AroundInvoke
public Object intercept(InvocationContext invocation) throws Exception {
try {
System.out.println("intercepting method invocation: " + invocation.getMethod());
Object object = invocation.proceed();
return object;
} catch (Exception e) {
e.printStackTrace();
}
}
}
If the genericFoo() method is called from a client the invocation is not being intercepted on JB-7.1.1 (on JB-4.2.3 it is). The simpleFoo() method invocation is intercepted without problems.
The only way I found making genericFoo() be intercepted on JB-7.1.1 is either to declare the @Interceptors(TestInterceptor.class) annotation on top of the bean class (on the cost of making every method in the bean class be intercepted):
@Stateless
@Remote(TestBeanService.class)
@Interceptors(TestInterceptor.class)
public class TestBean implements TestBeanService {
//...
}
The other way around is to add an extra genericFoo() method declaration in the TestBeanService interface, what I was expecting should be unnecessary:
public interface TestBeanService extends GenericService<SomeClass> {
public void simpleFoo();
public void genericFoo(SomeClass entity);
}
Don't know, is this an known/new issue with JBoss (EJB) or am I missing something?
https://issues.jboss.org/browse/EJBTHREE-2231 https://issues.jboss.org/browse/EJBTHREE-2231
https://issues.jboss.org/browse/EJBTHREE-471 https://issues.jboss.org/browse/EJBTHREE-471
https://community.jboss.org/message/557649#557649 https://community.jboss.org/message/557649#557649
Regards
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/735187#735187]
Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 11 months
[jBPM] - JBPM 5.2 final : Designer loading problem in drools-guvnor
by linna shan
linna shan [https://community.jboss.org/people/shanlinna] created the discussion
"JBPM 5.2 final : Designer loading problem in drools-guvnor"
To view the discussion, visit: https://community.jboss.org/message/717098#717098
--------------------------------------------------------------
I'm sorry to repost the same question :
I have the designer loading problem after the manual installation JBPM 5.2 final.
When I open a process, the console stops at "Please wait while loading..."
These traces in ther server.log make me think this problem is caused by classpath entry of the designer :
11:39:06,577 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) Starting deployment of "designer.war"
11:39:48,311 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry avalon-framework-4.2.0.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,311 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry batik-all-1.7.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,311 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry commons-io-1.3.1.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,311 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry commons-logging-1.0.4.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,311 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry serializer-2.7.0.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,311 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry servlet-2.2.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,311 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry xalan-2.7.0.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,311 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry xercesImpl-2.7.1.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,311 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry xml-apis-1.3.04.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry xml-apis-ext-1.3.04.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry xmlgraphics-commons-1.3.1.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry fop-hyph.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry jai_codec.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry jai_core.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry jai_imageio.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry jimi-1.0.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry xmlunit1.0.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry jaxb-api.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/jaxb-impl-2.2.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry activation.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/jaxb-impl-2.2.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry jsr173_1.0_api.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/jaxb-impl-2.2.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry jaxb1-impl.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/jaxb-impl-2.2.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry xalan-2.7.1.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/jbpmmigration-0.10-SNAPSHOT.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry serializer-2.7.1.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/jbpmmigration-0.10-SNAPSHOT.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry xercesImpl-2.9.1.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/jbpmmigration-0.10-SNAPSHOT.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry xml-apis-1.0.b2.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/jbpmmigration-0.10-SNAPSHOT.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry commons-lang-2.6.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/jbpmmigration-0.10-SNAPSHOT.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry commons-io-2.1.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/jbpmmigration-0.10-SNAPSHOT.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry log4j-1.2.16.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/jbpmmigration-0.10-SNAPSHOT.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry activation.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/mail-1.4.1.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,842 INFO [org.jboss.web] (MSC service thread 1-4) registering web context: /designer
11:39:48,983 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployed "designer.war"
11:49:18,941 INFO [stdout] (http-localhost-127.0.0.1-8089-1) (null: -1, -1): Premature end of file.
11:49:19,863 INFO [org.oryxeditor.server.EditorHandler] (http-localhost-127.0.0.1-8089-1) The diagram editor is running in development mode. Javascript will be served uncompressed
11:49:19,894 INFO [org.oryxeditor.server.EditorHandler] (http-localhost-127.0.0.1-8089-1) Performing diagram information pre-processing steps.
11:49:19,988 GRAVE [com.intalio.web.preprocessing.impl.JbpmPreprocessingUnit] (http-localhost-127.0.0.1-8089-1) http://localhost:8080/drools-guvnor/rest/packages/ http://localhost:8080/drools-guvnor/rest/packages/
11:49:19,988 INFO [stdout] (http-localhost-127.0.0.1-8089-1) Setting up default workitem configuration
11:49:19,988 INFO [stdout] (http-localhost-127.0.0.1-8089-1) End setting up default workitem configuration
11:49:20,441 INFO [com.intalio.web.preprocessing.impl.JbpmPreprocessingUnit] (http-localhost-127.0.0.1-8089-1) Successfully deleted file :D:\shanl\jbpm-installer\jboss-as-7.0.2.Final\standalone\tmp\vfs\temp776ee7cbf186088e\designer.war-85f1fb0623260c57\stencilsets/bpmn2.0jbpm/bpmn2.0jbpm.json
11:49:20,503 INFO [com.intalio.web.preprocessing.impl.JbpmPreprocessingUnit] (http-localhost-127.0.0.1-8089-1) Created file:D:\shanl\jbpm-installer\jboss-as-7.0.2.Final\standalone\tmp\vfs\temp776ee7cbf186088e\designer.war-85f1fb0623260c57\stencilsets/bpmn2.0jbpm/bpmn2.0jbpm.json
11:49:42,862 INFO [stdout] (http-localhost-127.0.0.1-8089-2) INFO 16-02 11:49:42,862 (NilAuthenticator.java:authenticate:35) All users are guests.
Somebody could show me in which file these classpath is defined? Put me right if I'm falling in the wrong piste
Thank you for your response.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/717098#717098]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 11 months