[jBPM] - Help: Error happened when access "http://localhost:8080/gwt-console-server/rs/process/instance/1/dataset"
by he jack
he jack [http://community.jboss.org/people/jackhe] created the document:
"Help: Error happened when access "http://localhost:8080/gwt-console-server/rs/process/instance/1/dataset""
To view the document, visit: http://community.jboss.org/docs/DOC-17113
--------------------------------------------------------------
*Can any body give me help? Thanks very much.*
org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Could not initialize stateful knowledge session: java.lang.reflect.InvocationTargetException
org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319)
org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230)
org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
*root cause*
java.lang.RuntimeException: Could not initialize stateful knowledge session: java.lang.reflect.InvocationTargetException
org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:185)
org.jbpm.integration.console.CommandDelegate.getSession(CommandDelegate.java:193)
org.jbpm.integration.console.CommandDelegate.<init>(CommandDelegate.java:71)
org.jbpm.integration.console.ProcessManagement.<init>(ProcessManagement.java:35)
org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:22)
org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:19)
org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:98)
org.jboss.bpm.console.server.ProcessMgmtFacade.getInstanceData(ProcessMgmtFacade.java:222)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
.....
Caused by: java.lang.ClassCastException: org.h2.index.PageDataLeaf cannot be cast to org.h2.index.PageBtree
at org.h2.index.PageBtreeIndex.getPage(PageBtreeIndex.java:139)
at org.h2.index.PageBtreeIndex.<init>(PageBtreeIndex.java:60)
at org.h2.table.TableData.addIndex(TableData.java:209)
at org.h2.store.PageStore.addMeta(PageStore.java:1339)
at org.h2.store.PageStore.redo(PageStore.java:1185)
at org.h2.store.PageLog.recover(PageLog.java:285)
at org.h2.store.PageStore.recover(PageStore.java:1051)
at org.h2.store.PageStore.openExisting(PageStore.java:310)
at org.h2.store.PageStore.open(PageStore.java:268)
at org.h2.engine.Database.getPageStore(Database.java:2305)
at org.h2.engine.Database.open(Database.java:624)
at org.h2.engine.Database.openDatabase(Database.java:227)
... 6 more
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/docs/DOC-17113]
Create a new document in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&co...]
13 years, 3 months
[jBPM] - Question about external classes dependency in script task...
by Tommy Cheng
Tommy Cheng [http://community.jboss.org/people/tomcheng76] created the discussion
"Question about external classes dependency in script task..."
To view the discussion, visit: http://community.jboss.org/message/619560#619560
--------------------------------------------------------------
Hello community,
I would like to know is there any quick method of importing jar to the jbpm console server.
Here is my use case.
created a script task in eclipse and uploaded to guvnor.
uploaded the jar to guvnor.
built the package in guvnor.
So far so good.
But if i start the process in jbpm console, CNF exception happens o.O .
if i put the jar inside the jbpm-console.server.war. The problem is solved.
It is very slow in development, here is the problem
1. i cannot restart the jbpm-console-server itself through admin-console, it will not start.
2. restart the jboss as is extremely slow.
I wonder if there is another way to do this. i would like to install the class in webapp level, not system nor common level.
Question: why process is recognized after building package, but not the jar ?
what is the usage of changeSet.xml in guvnor?
Thanks for reading.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/619560#619560]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months
[jBPM] - Exception when trying eastablish connection and send emails using jBPM 5.1
by Chaitanya Desai
Chaitanya Desai [http://community.jboss.org/people/chaitanya1987] created the discussion
"Exception when trying eastablish connection and send emails using jBPM 5.1"
To view the discussion, visit: http://community.jboss.org/message/620008#620008
--------------------------------------------------------------
Hello,
I am trying to use EmailWorkItemHandler from the jBPM Work Items jar and using the following code snippet, I am trying to send an email :
It fails at trying to eastablish connection.
I have a seperate email service to send emails which I used previously to send the emails using the same credentials and it works however the same credentials when I use it with EmailWorkItemHandler it fails:
EmailWorkItemHandler emailHandler = new EmailWorkItemHandler("smtp.gmail.com","465"," mailto:user@domain.com user(a)domain.com","password");
WorkItemImpl workItem = new WorkItemImpl();
workItem.setParameter( "To", " mailto:user1@domain.com user1(a)domain.com" );
workItem.setParameter( "Cc", " mailto:user2@domain.com user2(a)domain.com" );
workItem.setParameter( "Bcc", " mailto:user3@domain.com user3(a)domain.com" );
workItem.setParameter( "From", " mailto:user@domain.com user(a)domain.com" );
workItem.setParameter( "Reply-To", " mailto:user4@domain.com user4(a)domain.com" );
workItem.setParameter( "Subject", "Time pass" );
workItem.setParameter( "Body", "Body" );
WorkItemManager manager = new DefaultWorkItemManager(null);
(Also tried instead of above statement) : WorkItemManager manager = ksession.getWorkItemManager();
(where ksession is a valid active session to the knowledgeBase currently)
emailHandler.executeWorkItem( workItem, manager );
Am I trying the correct approach with above code snippet to send emails or is there any other approach
Mail and activation jars (provided by jbpm installer) are in the classpath
Exception :
.08.2011 16:45:39 ERROR [STDERR] java.lang.RuntimeException: Unable to send email
08.08.2011 16:45:39 ERROR [STDERR] at org.jbpm.process.workitem.email.SendHtml.sendHtml(SendHtml.java:103)
08.08.2011 16:45:39 ERROR [STDERR] at org.jbpm.process.workitem.email.EmailWorkItemHandler.executeWorkItem(EmailWorkItemHandler.java:110)
08.08.2011 16:45:39 ERROR [STDERR] at us.secureall.device.sessionBean.ManagerBean.initiateWorkflow(ManagerBean.java:10857)
08.08.2011 16:45:39 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
08.08.2011 16:45:39 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
08.08.2011 16:45:39 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
08.08.2011 16:45:39 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:122)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.ejb3.EJBContainerInvocationWrapper.invokeNext(EJBContainerInvocationWrapper.java:69)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.invoke(InterceptorSequencer.java:73)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.aroundInvoke(InterceptorSequencer.java:59)
08.08.2011 16:45:39 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor301.invoke(Unknown Source)
08.08.2011 16:45:39 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
08.08.2011 16:45:39 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.aop.advice.PerJoinpointAdvice.invoke(PerJoinpointAdvice.java:174)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.fillMethod(InvocationContextInterceptor.java:72)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_fillMethod_24638698.invoke(InvocationContextInterceptor_z_fillMethod_24638698.java)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.setup(InvocationContextInterceptor.java:88)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_setup_24638698.invoke(InvocationContextInterceptor_z_setup_24638698.java)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.ejb3.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:62)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:56)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:68)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.ejb3.security.RunAsSecurityInterceptorv2.invoke(RunAsSecurityInterceptorv2.java:94)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptorv2.invoke(RoleBasedAuthorizationInterceptorv2.java:201)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:186)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:421)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:744)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:697)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:524)
08.08.2011 16:45:39 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:232)
08.08.2011 16:45:39 ERROR [STDERR] Caused by: java.lang.RuntimeException: Connection failure
08.08.2011 16:45:39 ERROR [STDERR] at org.jbpm.process.workitem.email.SendHtml.sendHtml(SendHtml.java:97)
08.08.2011 16:45:39 ERROR [STDERR] ... 58 more
08.08.2011 16:45:39 ERROR [STDERR] Caused by: javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1
08.08.2011 16:45:39 ERROR [STDERR] at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1270)
08.08.2011 16:45:39 ERROR [STDERR] at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
08.08.2011 16:45:39 ERROR [STDERR] at javax.mail.Service.connect(Service.java:275)
08.08.2011 16:45:39 ERROR [STDERR] at javax.mail.Service.connect(Service.java:156)
08.08.2011 16:45:39 ERROR [STDERR] at org.jbpm.process.workitem.email.SendHtml.sendHtml(SendHtml.java:94)
08.08.2011 16:45:39 ERROR [STDERR] ... 58 more
08.08.2011 16:45:39 WARN [arjLoggerI18N] [com.arjun
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/620008#620008]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months