Bug 1098972 - Process cannot be started via kie-services-client REST with Business Central deployed on WebSphere AS.
Summary: Process cannot be started via kie-services-client REST with Business Central ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.2
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: CR1
: 6.0.2
Assignee: Kris Verlaenen
QA Contact: Radovan Synek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-19 09:38 UTC by Radovan Synek
Modified: 2014-08-06 19:50 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 19:50:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
stacktrace from server log (8.44 KB, text/plain)
2014-05-19 09:38 UTC, Radovan Synek
no flags Details
error stacktrace - both client and server (9.38 KB, text/plain)
2014-05-19 15:46 UTC, Radovan Synek
no flags Details
errors - server and client (hopefully matching), ER3 (9.76 KB, text/plain)
2014-06-02 07:31 UTC, Radovan Synek
no flags Details
standalone reproducer (5.06 KB, application/zip)
2014-06-02 10:58 UTC, Radovan Synek
no flags Details

Description Radovan Synek 2014-05-19 09:38:06 UTC
Created attachment 897062 [details]
stacktrace from server log

Description of problem:
Having the Business Central deployed on WebSphere, starting a new process instance via kie-services-client throws an exception:
java.lang.ClassCastException: org.kie.services.client.serialization.jaxb.rest.JaxbExceptionResponse cannot be cast to org.kie.services.client.serialization.jaxb.impl.JaxbCommandsResponse
	at org.kie.services.client.api.command.AbstractRemoteCommandObject.executeRestCommand(AbstractRemoteCommandObject.java:407)
	at org.kie.services.client.api.command.AbstractRemoteCommandObject.execute(AbstractRemoteCommandObject.java:121)
	at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:232)
	at org.jboss.qa.bpms.jbpm.integration.client.Client.startProcess(Client.java:173)
	at org.jboss.qa.bpms.jbpm.integration.client.task.CTaskOperationTest.testExecuteTaskOp(CTaskOperationTest.java:78)

The cause is an exception thrown by apache wink in server log:
WebApplicationException (415 - Unsupported Media Type) with message 'null' while processing POST request

Full stacktrace can be found in the attachment.

Steps to Reproduce:
1. deploy Business Central to WebSphere 
2. build a project containing some process definition
3. start the process via kie-services-client

Comment 1 Marco Rietveld 2014-05-19 14:12:21 UTC
Hi Radovan, 

Would it be possible to include the entire stack trace? The attached stack trace refers to a different error than the stack trace posted in the error above. 

Thank!

Comment 2 Radovan Synek 2014-05-19 15:46:35 UTC
Created attachment 897233 [details]
error stacktrace - both client and server

Comment 3 Radovan Synek 2014-05-19 15:51:43 UTC
(In reply to Marco Rietveld from comment #1)
Hi Marco,
sorry for such a misleading information, I just picked one of many failing tests and tried to provide corresponding server side exception, which as it seems, was not so corresponding. I have just uploaded a new pair of exceptions from single test run.

Comment 4 Marco Rietveld 2014-05-19 17:01:18 UTC
Hi Radovan, no problem. 

Would you be able to attach the entire server log? I have the feeling that there's an exception that happened that I'm not seeing. 

Thanks.

Comment 5 Maciej Swiderski 2014-05-19 17:51:04 UTC
after investigation the issue seems to be already fixed on both 6.0.x and master (tested on both) and could not reproduce the problem. Although on last product build the issue is indeed visible.

Unfortunately I cannot find out easily what change has made the fix so can't attach a patched jar.

Marking as modified to get retested on ER3.

Comment 6 Radovan Synek 2014-05-20 07:53:11 UTC
Clearing "needinfo" due to comment 5.

Comment 7 Radovan Synek 2014-06-02 07:31:17 UTC
Created attachment 901355 [details]
errors - server and client (hopefully matching), ER3

Comment 8 Radovan Synek 2014-06-02 07:32:32 UTC
Please take a look at the new attachment 901355 [details], the issue persists with BPMS-6.0.2.ER3.

Comment 9 Radovan Synek 2014-06-02 10:58:24 UTC
Created attachment 901400 [details]
standalone reproducer

Attaching reproducer, standalone maven project. 

1. start business central on WebSphere
2. create a deployment unit containing any process definition
3. use the reproducer - edit test-config.properties and run via mvn test

Comment 10 Maciej Swiderski 2014-06-02 12:48:00 UTC
problem is caused by addition of jboss-jaxb-api_2.2_spec-1.0.4.Final-redhat-2.jar library into WEB-INF/lib of business central. This does not exist in community build (even non red hat version jaxb-api thus it might be added during product bold somewhere.

Reassign to Ryan for investigation on product build side.

Comment 11 George Varsamis 2014-06-03 14:42:25 UTC
On initial investigation, this is happening due to an EAP relocation of sun-jaxb:jaxb-api to org.jboss.spec.javax.xml.bind:jboss-jaxb-api_2.2_spec:1.0.4.Final-redhat-2

This should also be failing on EAP as well.

I'm looking into this and will update once I know more.

Comment 12 Ryan Zhang 2014-06-04 08:52:21 UTC
Agreed with George!

@Kris
Actually I found that it the exclude is already existed there. 
But there is typo in the  assembly-kie-drools-wb-websphere-as-8_5.xml. [1]
actual: jboss-jaxb-api-*.jar, expect: jboss-jaxb-api_*.jar

I would assign it to you. Thanks very much,Kris!

[1]: https://github.com/jboss-integration/kie-wb-distributions/blob/6.0.x/kie-drools-wb/kie-drools-wb-distribution-wars/src/main/assembly/assembly-kie-drools-wb-websphere-as-8_5.xml#L222

Comment 14 Radovan Synek 2014-06-19 16:52:27 UTC
Verified with BPMS-6.0.2.CR1


Note You need to log in before you can comment on or make changes to this bug.