[jBPM] - Console crashes on opening Process Overview (fresh jBPM5.2 installation)
by hamsterdancer
hamsterdancer [http://community.jboss.org/people/hamsterdancer] created the discussion
"Console crashes on opening Process Overview (fresh jBPM5.2 installation)"
To view the discussion, visit: http://community.jboss.org/message/642936#642936
--------------------------------------------------------------
Hi there,
I've just downloaded and installed jBPM5.2 with the installer and started the demo. Then I log me in to the console ( http://localhost:8080/jbpm-console http://localhost:8080/jbpm-console) with krisv (or any other user name) and click Processes -> Process Overview. The console crashes with the following less helpful Exception.
Maybe I forgot to configure something to configure. But I was relying on my experiences with jBPM5.0 and 5.1 where it was not needed to configure jBPM or the console in any way for the first start.
Any good ideas or advices? Thanks :)
Stacktrace:
18:24:27,443 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http-localhost-127.0.0.1-8080-6) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Could not initialize stateful knowledge session: org.apache.commons.codec.binary.Base64.encodeBase64String([B)Ljava/lang/String;
at org.jboss.resteasy.core.SynchronousDispatcher.unwrapException(SynchronousDispatcher.java:345) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:321) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:214) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:190) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:534) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) [resteasy-jaxrs-2.2.1.GA.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) [classes:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:480) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at java.lang.Thread.run(Thread.java:722) [:1.7.0]
Caused by: java.lang.RuntimeException: Could not initialize stateful knowledge session: org.apache.commons.codec.binary.Base64.encodeBase64String([B)Ljava/lang/String;
at org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:244) [jbpm-gwt-core-5.2.0.Final.jar:]
at org.jbpm.integration.console.CommandDelegate.getSession(CommandDelegate.java:252) [jbpm-gwt-core-5.2.0.Final.jar:]
at org.jbpm.integration.console.CommandDelegate.<init>(CommandDelegate.java:92) [jbpm-gwt-core-5.2.0.Final.jar:]
at org.jbpm.integration.console.ProcessManagement.<init>(ProcessManagement.java:35) [jbpm-gwt-core-5.2.0.Final.jar:]
at org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:22) [jbpm-gwt-core-5.2.0.Final.jar:]
at org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:19) [jbpm-gwt-core-5.2.0.Final.jar:]
at org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:86) [classes:]
at org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:122) [classes:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.7.0]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [:1.7.0]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.7.0]
at java.lang.reflect.Method.invoke(Method.java:601) [:1.7.0]
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:255) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:220) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:209) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:519) [resteasy-jaxrs-2.2.1.GA.jar:]
... 24 more
Caused by: java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.encodeBase64String([B)Ljava/lang/String;
at org.jbpm.integration.console.shared.GuvnorConnectionUtils.applyAuth(GuvnorConnectionUtils.java:391) [jbpm-gwt-shared-5.2.0.Final.jar:]
at org.jbpm.integration.console.shared.GuvnorConnectionUtils.guvnorExists(GuvnorConnectionUtils.java:484) [jbpm-gwt-shared-5.2.0.Final.jar:]
at org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:105) [jbpm-gwt-core-5.2.0.Final.jar:]
... 40 more
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/642936#642936]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 10 months
[JBoss Tools] - jboss-packaging-maven-plugin jboss-sar + m2e + JBT = NPE
by R Finlayson
R Finlayson [http://community.jboss.org/people/rfinlayson] created the discussion
"jboss-packaging-maven-plugin jboss-sar + m2e + JBT = NPE"
To view the discussion, visit: http://community.jboss.org/message/643854#643854
--------------------------------------------------------------
Hi,
Eclipse Indigo 3.6 latest 2011/12/29
m2e latest
m2e-wtp latest
jBossTools latest
Maven project is jboss-sar packaging configured with jboss-packaging-maven-plugin.
Import Maven Project:
java.lang.NullPointerException
at org.jboss.ide.eclipse.as.wtp.core.vcf.ExportedClassFolderReferenceResolver.canResolve(ExportedClassFolderReferenceResolver.java:36)
at org.eclipse.wst.common.componentcore.resolvers.ReferenceResolverUtil.getResolver(ReferenceResolverUtil.java:43)
at org.eclipse.wst.common.componentcore.internal.StructureEdit.createVirtualReference(StructureEdit.java:326)
at org.jboss.ide.eclipse.as.wtp.core.vcf.JBTVirtualComponent.getHardReferences(JBTVirtualComponent.java:106)
at org.jboss.ide.eclipse.as.wtp.core.vcf.JBTVirtualComponent.getReferences(JBTVirtualComponent.java:76)
at org.maven.ide.eclipse.wtp.overlay.internal.servers.OverlayResourceChangeListener.hasOverlayChanged(OverlayResourceChangeListener.java:117)
at org.maven.ide.eclipse.wtp.overlay.internal.servers.OverlayResourceChangeListener.resourceChanged(OverlayResourceChangeListener.java:60)
at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:291)
...
Seems that "ReferencedComponent.getHandle()" returns null.
Project builds with mvn OK, project import doesn't complete with NPE above, in Eclipse Indigo, m2e and m2e-wtp, with jBoss Tools Maven integration.
Other projects in workspace (EAR, WAR, Dynamic Web Modules) import and build OK and work with m2e-wtp OK.
How can I resolve this?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/643854#643854]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 10 months
[JBoss Tools] - JBoss tools does not put impl classes on classpath for AS7
by henk de boer
henk de boer [http://community.jboss.org/people/henk53] created the discussion
"JBoss tools does not put impl classes on classpath for AS7"
To view the discussion, visit: http://community.jboss.org/message/633122#633122
--------------------------------------------------------------
Using JBoss Tools 3.2m4 (isn't released, but somehow came with server runtime discovery in Eclipse 3.7sr1) and JBoss AS 7.02, it seems the implementation classes are not put on the classpath anymore.
Depending on the role of the developer, this is both a blessing and a curse.
It's a blessing, since 'ordinary' application developers can now not mistakingly depend on implementation classes.
It's a curse, since more experienced developers typically fix problems by stepping into the framework to see where exactly something goes wrong (one of the MAJOR benefits of open source software).
Without those classes present on the classpath, it will be very troublesome to get the right versions and then to attach the right source-code. This problem is like the source code that was missing in the JBoss AS 6 source download, but worse. Now not only the source code is missing, but the implementation is missing as well (in the IDE).
As a small example, suppose I expect there's a problem in say class ActionListenerImpl (because I see this at a crucial point in my stacktrace). I try to open this class using ctrl-shift-t.
With the JBoss AS 6 runtime, it shows that this class is in jsf-impl-2.0.3-b05.jar. When I open the class there's no source-attachment, but I have a lead that I can use to hunt the Internet for the source attachment.
With the JBoss AS 7 runtime, nothing...
Just nothing...
Nothing shows up... :(
So now I have to unpack all jars from the binary distribution of JBoss AS, do grepping on the filesystem, when I find the jar, copy it to my project, exclude it from source control, add it to the classpath, and -then- I can start hunting the Internet for the source attachment.
Basically, with every version of JBoss AS, it seems to get more difficult to easily step through the source code that makes up JBoss AS. Am I perhaps one of the very few developers who actually likes to step into the framework's source-code instead of treating it as a black-box?
Would it be possible to have an option somewhere so the runtime actually puts the implementation classes on the IDE's classpath?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/633122#633122]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 10 months
[JBoss Tools] - I met a problem when install freemarker
by Ye Li
Ye Li [http://community.jboss.org/people/yingtju] created the discussion
"I met a problem when install freemarker"
To view the discussion, visit: http://community.jboss.org/message/643105#643105
--------------------------------------------------------------
I download the 3.2.2 zip file, and selected only freemarker to install, here is the detail:
Cannot complete the install because one or more required items could not be found.
Software being installed: FreeMarker IDE 1.1.0.v20111025-0320-H192-Final (org.jboss.ide.eclipse.freemarker.feature.feature.group 1.1.0.v20111025-0320-H192-Final)
Missing requirement: FreeMarker IDE 1.1.0.v20111025-0320-H192-Final (org.jboss.ide.eclipse.freemarker 1.1.0.v20111025-0320-H192-Final) requires 'bundle org.junit 0.0.0' but it could not be found
Cannot satisfy dependency:
From: FreeMarker IDE 1.1.0.v20111025-0320-H192-Final (org.jboss.ide.eclipse.freemarker.feature.feature.group 1.1.0.v20111025-0320-H192-Final)
To: org.jboss.ide.eclipse.freemarker [1.1.0.v20111025-0320-H192-Final]
it seems like has stm to do with org.junit, i found the resource-bound in the manifest.mf has the org.junit,so i delete it but it did not work out
Any suggestion is appreciated!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/643105#643105]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 10 months
[jBPM] - Session Management - only one inside application or one by processs
by gardellajp
gardellajp [http://community.jboss.org/people/gardellajp] created the discussion
"Session Management - only one inside application or one by processs"
To view the discussion, visit: http://community.jboss.org/message/643768#643768
--------------------------------------------------------------
Hi,
I have some questions about how manage sessions. I read official doc and says:
*+Chapter 4. Core Engine: API+*
+Sessions can be created based on a knowledge base and are used to execute processes and interact with the engine. You can create as many independent session as you need and creating a session is considered relatively lightweight. How many sessions you create is up to you. In general, most simple cases start out with creating one session that is then called from various places in your application. You could decide to create multiple sessions if for example you want to have multiple independent processing units (for example, if you want all processes from one customer to be completely independent from processes for another customer, you could create an independent session for each customer) or if you need multiple sessions for scalability reasons. If you don't know what to do, simply start by having *one knowledge base that contains all your process definitions* and *one create session* that you then use to execute all your processes.+
After read it, I want decide how manage session, so.
1) Create one session inside application and never dispose it.
2) Create a session per process. So when I start a process, I save somewhere the information about which sessionId must use for a processId.
I like option two, with persistent sessions. So when I start a process, I do:
start>>
StatefulKnowledgeSession ksession = newSession();
// start a new process instance
ProcessInstance instance = ksession.startProcess(id, params);
ProcessIntanceInfo(instance.getId(), ksession.getId());
ksession.dispose();
return p;
So in my application I save +p.+ When I must interact with p, I load the session associate with +p.getProcessId()+. Cool, I have a session persistent per process.
But when I go deep in implementation, I found some problems, for example related events. I want listen when a task is complete so I attach some listener to the session when I load/start it. *But* after work with the session I dispose it, so the listener don't work. I think the solution is this:
long processId = p.getProcessId();
int sessionId = p.getSessionId();
StatefulKnowledgeSession s = loadSession(sessionId);
attachListeners(s);
TaskClient t = ....;
t.complete( taskId, serId, outputData, responseHandler );
responseHandler.waitTillDone(5000);
s.dispose();
Now, the questions:
1) With this code, is safe except that the listener will listen the event of complete task?
2) Is this a good way to manage sessions? I don't find a good tutorial or document of differents strategies for handle sessions.
Thanks for your time,
Juan
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/643768#643768]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 10 months
[JBoss Tools] - 3.3M4 deployment problem
by Andrea Polci
Andrea Polci [http://community.jboss.org/people/apolci] created the discussion
"3.3M4 deployment problem"
To view the discussion, visit: http://community.jboss.org/message/642883#642883
--------------------------------------------------------------
Hello,
I'm not sure if my problem is related to JBoss Tools or the underliing WTP.
I have an ear (A.ear) project includin an ejb project (B.jar), that depends on an utility module (C.jar). They are all maven projects that I impoerted in Eclise.
If i build the ear in maven all works fine, but if instead I deploy to a local Jboss server throught the Servers view (full publish) it doesn't work.
The problem is that the C.jar that is deployed to the server *doesn't contains generated binaries but the content of the src folder* of the project (main/java/.....)
I checked all I can think about, (dependency configuration of the projects, facets, ...) and I tried to remove the projects from eclipse e re-import them, the result is always the same.
The strange thing is that anore utility module, used in the same exact way, and with the same project configuration is deployed correctly.
Someone already had a similar problem?
Any suggestion on what I should check?
Thanks,
Andrea Polci
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/642883#642883]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 10 months