Web Services and Decision Tables under JBOSS

54 views
Skip to first unread message

William Chan

unread,
Oct 14, 2014, 2:27:37 AM10/14/14
to open...@googlegroups.com
I tried to run the DecisionHelloWSCustomer sample and the following errors are reported:

run.axis.client:
     [java] Exception in thread "main" AxisFault
     [java]  faultSubcode:
     [java]  faultString: org.openl.binding.OpenLRuntimeException: argument type mismatch
     [java]  faultActor:
     [java]  faultNode:
     [java]  faultDetail:
     [java]
     [java] org.openl.binding.OpenLRuntimeException: argument type mismatch
     [java]     at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
     [java]     at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
     [java]     at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
     [java]     at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:609)
     [java]     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFrag
mentScannerImpl.java:1781)
     [java]     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XML
DocumentFragmentScannerImpl.java:2957)
     [java]     at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
     [java]     at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:1
17)
     [java]     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragme
ntScannerImpl.java:510)
     [java]     at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
     [java]     at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
     [java]     at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
     [java]     at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
     [java]     at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:649)
     [java]     at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:333)
     [java]     at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
     [java]     at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
     [java]     at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
     [java]     at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
     [java]     at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
     [java]     at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
     [java]     at org.apache.axis.client.Call.invoke(Call.java:2767)
     [java]     at org.apache.axis.client.Call.invoke(Call.java:2443)
     [java]     at org.apache.axis.client.Call.invoke(Call.java:2366)
     [java]     at org.apache.axis.client.Call.invoke(Call.java:1812)
     [java]     at examples.openrules.com.DecisionHelloWSCustomerSoapBindingStub.hello(Unknown Source)
     [java]     at examples.openrules.com.DecisionHelloWSCustomerClient.testHello(DecisionHelloWSCustomerClient.java:38)

     [java]     at examples.openrules.com.DecisionHelloWSCustomerClient.main(DecisionHelloWSCustomerClient.java:12)
     [java] Java Result: 1

BUILD SUCCESSFUL
Total time: 5 seconds

I just run from the compile and run batch jobs without any modification to the contents of the sample.    On the other hand, I can run the HelloWSCustomerClient sample without any problem.

I use JBOSS EAP 6.2 to run the samples.   The JBOSS log showed similar errors:

14:16:45,089 INFO  [org.openl.util.Log] (http-/127.0.0.1:8080-1) INITIALIZE OPENRULES ENGINE 6.3.1 (build 08172014) for [file:./webapps/DecisionHelloWSCustomer/rules/main/DecisionHelloWSCustomer.xls]
14:16:45,528 INFO  [org.openl.util.Log] (http-/127.0.0.1:8080-1) IMPORT.JAVA=com.openrules.examples.*
14:16:45,532 INFO  [org.openl.util.Log] (http-/127.0.0.1:8080-1) INCLUDE=../include/Rules.xls
14:16:45,532 INFO  [org.openl.util.Log] (http-/127.0.0.1:8080-1) [../include/Rules.xls] has been resolved to [file:/D:/jboss/jboss-eap-6.2/bin/webapps/DecisionHelloWSCustomer/rules/include/Rules.xls]
14:16:45,533 INFO  [org.openl.util.Log] (http-/127.0.0.1:8080-1) Processing file:/D:/jboss/jboss-eap-6.2/bin/webapps/DecisionHelloWSCustomer/rules/include/Rules.xls
14:16:45,545 INFO  [org.openl.util.Log] (http-/127.0.0.1:8080-1) INCLUDE=../include/Glossary.xls
14:16:45,546 INFO  [org.openl.util.Log] (http-/127.0.0.1:8080-1) [../include/Glossary.xls] has been resolved to [file:/D:/jboss/jboss-eap-6.2/bin/webapps/DecisionHelloWSCustomer/rules/include/Glossary.xls]
14:16:45,546 INFO  [org.openl.util.Log] (http-/127.0.0.1:8080-1) Processing file:/D:/jboss/jboss-eap-6.2/bin/webapps/DecisionHelloWSCustomer/rules/include/Glossary.xls
14:16:45,550 INFO  [org.openl.util.Log] (http-/127.0.0.1:8080-1) INCLUDE=../include/DecisionTemplates.xls
14:16:45,551 INFO  [org.openl.util.Log] (http-/127.0.0.1:8080-1) [../include/DecisionTemplates.xls] has been resolved to [file:/D:/jboss/jboss-eap-6.2/bin/webapps/DecisionHelloWSCustomer/rules/include/DecisionTemplates.xls]
14:16:45,551 INFO  [org.openl.util.Log] (http-/127.0.0.1:8080-1) Processing file:/D:/jboss/jboss-eap-6.2/bin/webapps/DecisionHelloWSCustomer/rules/include/DecisionTemplates.xls
14:16:45,562 INFO  [org.openl.util.Log] (http-/127.0.0.1:8080-1) INCLUDE=DecisionTable${OPENRULES_MODE}Templates.xls
14:16:45,568 INFO  [org.openl.util.Log] (http-/127.0.0.1:8080-1) [DecisionTable${OPENRULES_MODE}Templates.xls] has been resolved to [file:/D:/jboss/jboss-eap-6.2/bin/webapps/DecisionHelloWSCustomer/rules/include/DecisionTableExecuteTemplates.xls]
14:16:45,568 INFO  [org.openl.util.Log] (http-/127.0.0.1:8080-1) Processing file:/D:/jboss/jboss-eap-6.2/bin/webapps/DecisionHelloWSCustomer/rules/include/DecisionTableExecuteTemplates.xls
14:16:45,763 INFO  [org.openl.util.Log] (http-/127.0.0.1:8080-1) *** Decision DetermineCustomerGreeting ***
14:16:45,764 INFO  [org.openl.util.Log] (http-/127.0.0.1:8080-1) Decision has been initialized
14:16:45,794 INFO  [org.openl.util.Log] (http-/127.0.0.1:8080-1) Decision Run has been initialized
14:16:45,797 ERROR [stderr] (http-/127.0.0.1:8080-1) org.apache.commons.lang.exception.NestableRuntimeException: argument type mismatch

14:16:45,797 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.openl.util.RuntimeExceptionWrapper.wrap(RuntimeExceptionWrapper.java:27)

14:16:45,798 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.openl.types.java.JavaOpenMethod.invoke(JavaOpenMethod.java:65)

.....

14:16:45,806 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)

14:16:45,806 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920)

14:16:45,806 ERROR [stderr] (http-/127.0.0.1:8080-1) at java.lang.Thread.run(Thread.java:745)

14:16:45,806 ERROR [stderr] (http-/127.0.0.1:8080-1) Caused by: java.lang.IllegalArgumentException: argument type mismatch

14:16:45,806 ERROR [stderr] (http-/127.0.0.1:8080-1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

14:16:45,806 ERROR [stderr] (http-/127.0.0.1:8080-1) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

14:16:45,807 ERROR [stderr] (http-/127.0.0.1:8080-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

14:16:45,807 ERROR [stderr] (http-/127.0.0.1:8080-1) at java.lang.reflect.Method.invoke(Method.java:606)

14:16:45,807 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.openl.types.java.JavaOpenMethod.invoke(JavaOpenMethod.java:58)

14:16:45,807 ERROR [stderr] (http-/127.0.0.1:8080-1) ... 54 more


Does the current version of OpenRules support web services using Decision Table only ?

Thank you.



OpenRules Support

unread,
Oct 15, 2014, 10:17:15 AM10/15/14
to open...@googlegroups.com
William,

If you use JBOSS instead of the default Tomcat you should modify the file"build.properties" that describes your configuration. Please check this file and if you still have problems let us know. Please make sure that you use Axis-1.4 and not Axis-2. Read more at http://openrules.com/pdf/OpenRulesUserManual.WebService.pdf 

Support

shl...@gmail.com

unread,
Oct 16, 2014, 5:51:52 AM10/16/14
to open...@googlegroups.com
Dear Support,

I copied the WAR file created to run under Apache Tomcat version 6.0.41, but the error still occurs.  The error message at client side is exactly the same as the previous case.  Please find below the Tomcat log:


- INITIALIZE OPENRULES ENGINE 6.3.1 (build 08172014) for [file:./webapps/DecisionHelloWSCustomer/rules/main/DecisionHelloWSCustomer.xls]
- IMPORT.JAVA=com.openrules.examples.*
- INCLUDE=../include/Rules.xls
- [../include/Rules.xls] has been resolved to [file:/C:/apache-tomcat-6.0.41/bin/webapps/DecisionHelloWSCustomer/rules/include/Rules.xls]
- Processing file:/C:/apache-tomcat-6.0.41/bin/webapps/DecisionHelloWSCustomer/rules/include/Rules.xls
- INCLUDE=../include/Glossary.xls
- [../include/Glossary.xls] has been resolved to [file:/C:/apache-tomcat-6.0.41/bin/webapps/DecisionHelloWSCustomer/rules/include/Glossary.xls]
- Processing file:/C:/apache-tomcat-6.0.41/bin/webapps/DecisionHelloWSCustomer/rules/include/Glossary.xls
- INCLUDE=../include/DecisionTemplates.xls
- [../include/DecisionTemplates.xls] has been resolved to [file:/C:/apache-tomcat-6.0.41/bin/webapps/DecisionHelloWSCust
omer/rules/include/DecisionTemplates.xls]
- Processing file:/C:/apache-tomcat-6.0.41/bin/webapps/DecisionHelloWSCustomer/rules/include/DecisionTemplates.xls
- INCLUDE=DecisionTable${OPENRULES_MODE}Templates.xls
- [DecisionTable${OPENRULES_MODE}Templates.xls] has been resolved to [file:/C:/apache-tomcat-6.0.41/bin/webapps/Decision
HelloWSCustomer/rules/include/DecisionTableExecuteTemplates.xls]
- Processing file:/C:/apache-tomcat-6.0.41/bin/webapps/DecisionHelloWSCustomer/rules/include/DecisionTableExecuteTemplates.xls
- *** Decision DetermineCustomerGreeting ***
- Decision has been initialized
- Decision Run has been initialized
org.apache.commons.lang.exception.NestableRuntimeException: argument type mismatch
        at org.openl.util.RuntimeExceptionWrapper.wrap(RuntimeExceptionWrapper.java:27)
        at org.openl.types.java.JavaOpenMethod.invoke(JavaOpenMethod.java:65)
        at org.openl.binding.impl.BinaryOpNode.evaluateRuntime(BinaryOpNode.java:40)
        at org.openl.binding.impl.ABoundNode.evaluate(ABoundNode.java:101)
        at org.openl.binding.impl.ABoundNode.evaluateChildren(ABoundNode.java:46)
        at org.openl.binding.impl.LocalVarDeclarationNode.evaluateRuntime(LocalVarDeclarationNode.java:67)
        at org.openl.binding.impl.ABoundNode.evaluate(ABoundNode.java:101)
        at org.openl.binding.impl.ABoundNode.evaluateChildren(ABoundNode.java:46)
        at org.openl.binding.impl.BlockNode.evaluateRuntime(BlockNode.java:67)
        at org.openl.binding.impl.ABoundNode.evaluate(ABoundNode.java:101)
        at org.openl.binding.impl.ABoundNode.evaluateChildren(ABoundNode.java:46)
        at org.openl.binding.impl.BlockNode.evaluateRuntime(BlockNode.java:67)
        at org.openl.binding.impl.ABoundNode.evaluate(ABoundNode.java:101)
        at org.openl.binding.impl.ABoundNode.evaluateChildren(ABoundNode.java:46)
        at org.openl.binding.impl.BlockNode.evaluateRuntime(BlockNode.java:67)
        at org.openl.binding.impl.ABoundNode.evaluate(ABoundNode.java:101)
        at org.openl.vm.SimpleVM$SimpleRunner.run(SimpleVM.java:53)
        at org.openl.types.impl.CompositeMethod.invoke(CompositeMethod.java:35)
        at com.openrules.dt.FunctionalRow.executeAction(FunctionalRow.java:480)
        at com.openrules.dt.DecisionTableMultiHit.invoke(DecisionTableMultiHit.java:79)
        at com.openrules.dt.ProxyDecisionTable.invoke(ProxyDecisionTable.java:125)
        at com.openrules.ruleengine.RuleEngine$RuleMethodImpl.run(RuleEngine.java:48)
        at com.openrules.ruleengine.OpenRulesEngine.run(OpenRulesEngine.java:412)
        at com.openrules.ruleengine.OpenRulesEngine.run(OpenRulesEngine.java:461)
        at com.openrules.ruleengine.Decision.execute(Decision.java:179)
        at com.openrules.ruleengine.Decision.execute(Decision.java:136)
        at com.openrules.examples.DecisionHelloWSCustomer.hello(DecisionHelloWSCustomer.java:20)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
        at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
        at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
        at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
        at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
        at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:879)
        at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:617)
        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1774)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalArgumentException: argument type mismatch
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.openl.types.java.JavaOpenMethod.invoke(JavaOpenMethod.java:58)
        ... 53 more
Reply all
Reply to author
Forward
0 new messages