Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 947331

Summary: bpel console can't log in
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Ryan Zhang <rzhang>
Component: BPEL IntegrationAssignee: kconner
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Sedlacek <jsedlace>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0 GACC: atangrin, gbrown, kconner, ldimaggi, ncross, oskutka, soa-p-jira
Target Milestone: DR3   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
server.log none

Description Ryan Zhang 2013-04-02 07:08:52 UTC
Description of problem:
bpel-console reports error as following:
15:01:41,789 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/bpel-console-server].[Resteasy]] (http-localhost/127.0.0.1:8080-1) JBWEB000236: Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.UnhandledException: java.lang.IllegalStateException: Failed to load org.jboss.bpm.console.server.plugin.GraphViewerPlugin: org.jboss.soa.bpel.console.SVGPlugin
	at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:365) [resteasy-jaxrs-2.3.5.Final-redhat-1.jar:2.3.5.Final-redhat-1]
	at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:233) [resteasy-jaxrs-2.3.5.Final-redhat-1.jar:2.3.5.Final-redhat-1]
	at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:209) [resteasy-jaxrs-2.3.5.Final-redhat-1.jar:2.3.5.Final-redhat-1]
	at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:557) [resteasy-jaxrs-2.3.5.Final-redhat-1.jar:2.3.5.Final-redhat-1]
	at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:524) [resteasy-jaxrs-2.3.5.Final-redhat-1.jar:2.3.5.Final-redhat-1]
	at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:126) [resteasy-jaxrs-2.3.5.Final-redhat-1.jar:2.3.5.Final-redhat-1]
	at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) [resteasy-jaxrs-2.3.5.Final-redhat-1.jar:2.3.5.Final-redhat-1]
	at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) [resteasy-jaxrs-2.3.5.Final-redhat-1.jar:2.3.5.Final-redhat-1]
	at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) [resteasy-jaxrs-2.3.5.Final-redhat-1.jar:2.3.5.Final-redhat-1]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
	at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) [classes:]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:389) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
	at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
	at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]
Caused by: java.lang.IllegalStateException: Failed to load org.jboss.bpm.console.server.plugin.GraphViewerPlugin: org.jboss.soa.bpel.console.SVGPlugin
	at org.jboss.bpm.console.server.utils.ServiceLoader.loadFromServices(ServiceLoader.java:94) [gwt-console-server-integration-2.4.3.Final.jar:2.4.3.Final]
	at org.jboss.bpm.console.server.utils.ServiceLoader.loadService(ServiceLoader.java:56) [gwt-console-server-integration-2.4.3.Final.jar:2.4.3.Final]
	at org.jboss.bpm.console.server.plugin.PluginMgr.load(PluginMgr.java:54) [gwt-console-server-integration-2.4.3.Final.jar:2.4.3.Final]
	at org.jboss.bpm.console.server.InfoFacade.getServerStatus(InfoFacade.java:83) [classes:]
	at org.jboss.bpm.console.server.InfoFacade.getServerInfo(InfoFacade.java:72) [classes:]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_17]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_17]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_17]
	at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_17]
	at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:167) [resteasy-jaxrs-2.3.5.Final-redhat-1.jar:2.3.5.Final-redhat-1]
	at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257) [resteasy-jaxrs-2.3.5.Final-redhat-1.jar:2.3.5.Final-redhat-1]
	at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:222) [resteasy-jaxrs-2.3.5.Final-redhat-1.jar:2.3.5.Final-redhat-1]
	at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:211) [resteasy-jaxrs-2.3.5.Final-redhat-1.jar:2.3.5.Final-redhat-1]
	at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:542) [resteasy-jaxrs-2.3.5.Final-redhat-1.jar:2.3.5.Final-redhat-1]
	... 23 more
Caused by: java.lang.RuntimeException: Failed to initialize BPEL engine
	at org.jboss.soa.bpel.console.SVGPlugin.<init>(SVGPlugin.java:82) [riftsaw-console-integration-3.0.0.20130307-M5.jar:3.0.0.20130307-M5]
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.7.0_17]
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [rt.jar:1.7.0_17]
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.7.0_17]
	at java.lang.reflect.Constructor.newInstance(Constructor.java:525) [rt.jar:1.7.0_17]
	at java.lang.Class.newInstance0(Class.java:374) [rt.jar:1.7.0_17]
	at java.lang.Class.newInstance(Class.java:327) [rt.jar:1.7.0_17]
	at org.jboss.bpm.console.server.utils.ServiceLoader.loadFromServices(ServiceLoader.java:89) [gwt-console-server-integration-2.4.3.Final.jar:2.4.3.Final]
	... 36 more

Attached the server.log.

Version-Release number of selected component (if applicable):
SOA 6 Alpha1 

How reproducible:


Steps to Reproduce:
1. unzip soa-6-alpha.zip over EAP 6.1
2. start ./standalone.xml
3. cd quickstarts/bpel-service/sayhello && mvn clean install
4. cp target/switchyard-quickstart-bpel-service-say-hello.jar standalone/deployments/. We can see the sayhello samples is deployed fine in console( if not, please copy it again. )
5) access http://localhost:8080/bpel-console. The problem would happen.
  
Actual results:


Expected results:


Additional info:

Comment 1 Ryan Zhang 2013-04-02 07:09:28 UTC
Created attachment 730628 [details]
server.log

Comment 2 JBoss JIRA Server 2013-04-05 19:24:51 UTC
Paul Leacu <pleacu> updated the status of jira JBTIS-26 to Resolved

Comment 3 JBoss JIRA Server 2013-04-05 19:24:51 UTC
Paul Leacu <pleacu> made a comment on jira JBTIS-26

Thanks to Nick for catching the out-of-date repository-utils

https://github.com/jbosstools/jbosstools-integration-stack/commit/6280e6f1175d86746d262b88ac9b245fab1a53d9

Comment 4 Ryan Zhang 2013-04-08 03:01:02 UTC
External track JBTIS-26  seems irrelevant to this issue.
So I remove it .

Comment 5 Jeff Yu 2013-04-09 14:40:17 UTC
This was because when users log in the console, it will check all of the plugins were started correctly, but due to the BPEL engine was not started (BPEL engine is lazy initialisation in switchyard), it will throw the exception like as described.

Comment 6 Anne-Louise Tangring 2013-04-16 15:41:02 UTC
I see that the upstream issue is resolved. If that also resolves this issue, please set to modify or if more work is needed, provide an estimate to complete to me. Thanks!

Comment 9 Nick Cross 2013-04-25 09:57:21 UTC
Fixed by RIFTSAW-532

Comment 10 Len DiMaggio 2013-05-06 20:02:24 UTC
Verified with the alpha DR3 respin and:

http://jawa05.englab.brq.redhat.com/candidate/soa-6.0.0-DR3/soa-6.0.0-Alpha-maven-repository.zip

Comment 11 JBoss JIRA Server 2013-06-07 14:06:12 UTC
Gary Brown <gary> updated the status of jira RIFTSAW-532 to Closed