Re: [jboss-user] [jBPM] - New version of process with modification in java class : the change is not taken into account
by Valery LEPRETRE
Valery LEPRETRE [http://community.jboss.org/people/v.lepretre%40cadwin.com] replied to the discussion
"New version of process with modification in java class : the change is not taken into account"
To view the discussion, visit: http://community.jboss.org/message/533722#533722
--------------------------------------------------------------
Hi Maciej,
Thanks for the zip. I'll look in it as soon as possible.
> I mean that I deploy my resources directly to data base using ant task, pretty the same as test cases do. So application server is not involved at all. I suspect that this is the case for you. That either classes or class loaders are cached somehow...
>
Yes, I do the same. Direct writing in the database with Ant. I suppose too it's a cache problem.
> I would say that these that are stored in data base but as your case illustrates it is not always true. Since either way class loaders are involved it is probably issue with them. If classes are not available for application server (not placed in userlibs) then the only one is to load them from LOB.
Does it mean the java code is read from the LOB and compiled before it's use?
I've done the following test (still with JBoss 5.1.0 and with Oracle & HSQLDB)
I deploy my famous "Test2" process
I stop the JBoss server
I remove the jar file from userlibs
I restart JBoss and run Test2 (the process works)
With a query, I set to null (empty) the LOB corresponding to the Java1 class
I run Test2, it's Ok
I stop and start JBoss
I run Test2, *it's Ok* (Wow)
With a query, I set to null (empty) the LOB corresponding to the process definition.
I run Test2, ** and I get a beautiful "*org.jbpm.api.JbpmException*" (which seems normal)
So I think it's a problem related to JBoss (cache), but I don't know where to look to fix that problem. Have you an idea?
Thanks again for your time
Valéry
*
*
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/533722#533722]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years, 3 months
Re: [jboss-user] [jBPM] - jBPM console not working on JBoss 5.1.0 standard configuration
by Héctor Arias
Héctor Arias [http://community.jboss.org/people/kokodrilo37] replied to the discussion
"jBPM console not working on JBoss 5.1.0 standard configuration"
To view the discussion, visit: http://community.jboss.org/message/533707#533707
--------------------------------------------------------------
Hello, I have finished the instalation succesfully with this mentioned versions (JBoss 5.1.0, jbpm-43 and oracle 10), end the jbpm-console runs ok with Hipersonic, but with oracle 10, i have a problem when i try to display the process definitions for any of the examples users (alex, etc) i get this error,
13:28:15,977 INFO [DefaultCommandService] exception while executing command org.jbpm.pvm.internal.query.ProcessDefinitionQueryImpl@5320a5
java.lang.NullPointerException
at java.io.ByteArrayInputStream.<init>(Unknown Source)
at org.jbpm.pvm.internal.repository.ProcessDeployer.deploy(
ProcessDeployer.java:63)at org.jbpm.pvm.internal.repository.DeployerManager.deploy(
DeployerManager.java:46)at org.jbpm.pvm.internal.repository.RepositorySessionImpl.getObject(
RepositorySessionImpl.java:129)at org.jbpm.pvm.internal.query.ProcessDefinitionQueryImpl.execute(
ProcessDefinitionQueryImpl.java:72)at org.jbpm.pvm.internal.query.AbstractQuery.execute(
AbstractQuery.java:87)at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(
DefaultCommandService.java:42)at org.jbpm.pvm.internal.tx.JtaTransactionInterceptor.executeInNewTx(
JtaTransactionInterceptor.java:87)at org.jbpm.pvm.internal.tx.JtaTransactionInterceptor.execute(
JtaTransactionInterceptor.java:66)at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(
RetryInterceptor.java:55)at org.jbpm.pvm.internal.tx.JtaRetryInterceptor.executeWithRetry(
JtaRetryInterceptor.java:52)at org.jbpm.pvm.internal.tx.JtaRetryInterceptor.execute(
JtaRetryInterceptor.java:45)at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(
EnvironmentInterceptor.java:53)at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(
EnvironmentInterceptor.java:40)at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(
SkipInterceptor.java:43)at org.jbpm.pvm.internal.query.AbstractQuery.untypedList(
AbstractQuery.java:68)at org.jbpm.pvm.internal.query.ProcessDefinitionQueryImpl.list(
ProcessDefinitionQueryImpl.java:141)at org.jbpm.integration.console.ProcessManagementImpl.getProcessDefinitions(
ProcessManagementImpl.java:61)at org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(
ProcessMgmtFacade.java:107)at sun.reflect.NativeMethodAccessorImpl.invoke0(
Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(
MethodInjectorImpl.java:117)at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(
ResourceMethod.java:260)at org.jboss.resteasy.core.ResourceMethod.invoke(
ResourceMethod.java:232)at org.jboss.resteasy.core.ResourceMethod.invoke(
ResourceMethod.java:166)at org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(
DispatcherUtilities.java:142)at org.jboss.resteasy.core.SynchronousDispatcher.invoke(
SynchronousDispatcher.java:356)at org.jboss.resteasy.core.SynchronousDispatcher.invoke(
SynchronousDispatcher.java:173)at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(
HttpServletDispatcher.java:93)at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(
HttpServletDispatcher.java:68)at javax.servlet.http.HttpServlet.service(
HttpServlet.java:717)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:290)at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(
GWTJsonFilter.java:59)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:235)at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(
ReplyHeaderFilter.java:96)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:235)at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:235)at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:191)at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(
SecurityAssociationValve.java:190)at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
AuthenticatorBase.java:525)at org.jboss.web.tomcat.security.JaccContextValve.invoke(
JaccContextValve.java:92)at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(
SecurityContextEstablishmentValve.java:126)at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(
SecurityContextEstablishmentValve.java:70)at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:127)at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:102)at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(
CachedConnectionValve.java:158)at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:109)at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:330)at org.apache.coyote.http11.Http11Processor.process(
Http11Processor.java:829)at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:598)at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
JIoEndpoint.java:447)at java.lang.Thread.run(Unknown Source)
13:28:15,977 ERROR [[Resteasy]] Servlet.service() para servlet Resteasy lanzó excepción
org.jboss.resteasy.spi.UnhandledException
: java.lang.NullPointerExceptionat org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(
SynchronousDispatcher.java:319)at org.jboss.resteasy.core.SynchronousDispatcher.handleException(
SynchronousDispatcher.java:230)at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(
SynchronousDispatcher.java:206)at org.jboss.resteasy.core.SynchronousDispatcher.invoke(
SynchronousDispatcher.java:360)at org.jboss.resteasy.core.SynchronousDispatcher.invoke(
SynchronousDispatcher.java:173)at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(
HttpServletDispatcher.java:93)at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(
HttpServletDispatcher.java:68)at javax.servlet.http.HttpServlet.service(
HttpServlet.java:717)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:290)at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(
GWTJsonFilter.java:59)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:235)at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(
ReplyHeaderFilter.java:96)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:235)at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:235)at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:191)at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(
SecurityAssociationValve.java:190)at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
AuthenticatorBase.java:525)at org.jboss.web.tomcat.security.JaccContextValve.invoke(
JaccContextValve.java:92)at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(
SecurityContextEstablishmentValve.java:126)at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(
SecurityContextEstablishmentValve.java:70)at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:127)at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:102)at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(
CachedConnectionValve.java:158)at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:109)at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:330)at org.apache.coyote.http11.Http11Processor.process(
Http11Processor.java:829)at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:598)at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
JIoEndpoint.java:447)at java.lang.Thread.run(Unknown Source)
Caused by:
java.lang.NullPointerExceptionat java.io.ByteArrayInputStream.<init>(Unknown Source)
at org.jbpm.pvm.internal.repository.ProcessDeployer.deploy(
ProcessDeployer.java:63)at org.jbpm.pvm.internal.repository.DeployerManager.deploy(
DeployerManager.java:46)at org.jbpm.pvm.internal.repository.RepositorySessionImpl.getObject(
RepositorySessionImpl.java:129)at org.jbpm.pvm.internal.query.ProcessDefinitionQueryImpl.execute(
ProcessDefinitionQueryImpl.java:72)at org.jbpm.pvm.internal.query.AbstractQuery.execute(
AbstractQuery.java:87)at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(
DefaultCommandService.java:42)at org.jbpm.pvm.internal.tx.JtaTransactionInterceptor.executeInNewTx(
JtaTransactionInterceptor.java:87)at org.jbpm.pvm.internal.tx.JtaTransactionInterceptor.execute(
JtaTransactionInterceptor.java:66)at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(
RetryInterceptor.java:55)at org.jbpm.pvm.internal.tx.JtaRetryInterceptor.executeWithRetry(
JtaRetryInterceptor.java:52)at org.jbpm.pvm.internal.tx.JtaRetryInterceptor.execute(
JtaRetryInterceptor.java:45)at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(
EnvironmentInterceptor.java:53)at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(
EnvironmentInterceptor.java:40)at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(
SkipInterceptor.java:43)at org.jbpm.pvm.internal.query.AbstractQuery.untypedList(
AbstractQuery.java:68)at org.jbpm.pvm.internal.query.ProcessDefinitionQueryImpl.list(
ProcessDefinitionQueryImpl.java:141)at org.jbpm.integration.console.ProcessManagementImpl.getProcessDefinitions(
ProcessManagementImpl.java:61)at org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(
ProcessMgmtFacade.java:107)at sun.reflect.NativeMethodAccessorImpl.invoke0(
Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(
MethodInjectorImpl.java:117)at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(
ResourceMethod.java:260)at org.jboss.resteasy.core.ResourceMethod.invoke(
ResourceMethod.java:232)at org.jboss.resteasy.core.ResourceMethod.invoke(
ResourceMethod.java:166)at org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(
DispatcherUtilities.java:142)at org.jboss.resteasy.core.SynchronousDispatcher.invoke(
SynchronousDispatcher.java:356)... 28 more
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/533707#533707]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years, 3 months
[EJB 3.0] - Installing into JBoss 4.2.3 GA
by Martin Husted Hartvig
Martin Husted Hartvig [http://community.jboss.org/people/Hagar] created the discussion
"Installing into JBoss 4.2.3 GA"
To view the discussion, visit: http://community.jboss.org/message/533716#533716
--------------------------------------------------------------
Hi,
Looking at the documentation pages I found little on the matter of installing the jboss-ejb3-plugin into JBoss 4.2.3 GA. We need to update as we have a setup where one JBoss connect to a RemoteJMSProvider on a other JBoss. On the 'client' instance we run a MDB which are setup using ejb3 annotations. Due to the fact that JBossMQ is no longer maintained we started using JBoss Messagning, and changed by following this:
http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone... http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone...
(Note that this document doesn't tells much of updating ejb3)
If the JBoss with the RemoteJMSProvider is running as we start the 'client', there are no problem, but when the if the 'server' is down a "javax.management.InstanceNotFoundException: jboss.mq:service=DestinationManager is not registered." is thrown... I'll post the exception below... I found this " http://www.java2s.com/Open-Source/Java-Document/EJB-Server-JBoss-4.2.1/ej... http://www.java2s.com/Open-Source/Java-Document/EJB-Server-JBoss-4.2.1/ej..." where you in line 68 try to lookup the jboss.mq:service=DestinationManager from inside of the ejb3 part. I found your 1.0.8 installation looking in your pages of http://www.jboss.org/ejb3/ejb3_4-x_docs.html http://www.jboss.org/ejb3/ejb3_4-x_docs.html and looking at the code I found that it have been corrected to use the right destination manager. I'm not sure if can you tell me how to upgrade or if I should download the sources of JBoss 4.2.3 and make the changes needed.
Regards,
Martin
{code}javax.management.InstanceNotFoundException: jboss.mq:service=DestinationManager is not registered.
at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:523)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:653)
at org.jboss.ejb3.JmxClientKernelAbstraction.invoke(JmxClientKernelAbstraction.java:44)
at org.jboss.ejb3.jms.DestinationManagerJMSDestinationFactory.createDestination(DestinationManagerJMSDestinationFactory.java:75)
at org.jboss.ejb3.mdb.MessagingContainer.createTemporaryDestination(MessagingContainer.java:573)
at org.jboss.ejb3.mdb.MessagingContainer.createDestination(MessagingContainer.java:512)
at org.jboss.ejb3.mdb.MessagingContainer.innerCreateTopic(MessagingContainer.java:471)
at org.jboss.ejb3.mdb.MessagingContainer.jmsCreate(MessagingContainer.java:395)
at org.jboss.ejb3.mdb.MessagingContainer.innerStart(MessagingContainer.java:166)
at org.jboss.ejb3.mdb.MessagingContainer.start(MessagingContainer.java:152)
at org.jboss.ejb3.mdb.MDB.start(MDB.java:126)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source){code}
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/533716#533716]
Start a new discussion in EJB 3.0 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years, 3 months