-
30. Re: Service Invoker Error - pls help a newbie
imitchell Sep 15, 2010 5:11 PM (in response to beve)Hi Daniel,
The classpath file in the your checked-in workspace shows classes that are different from what is shown in http://community.jboss.org/thread/154211 and I have not been able to make sense out of the two threads. Is there a definitive eclipse configuration to get sendesb to work?
I'm seeing what other have been seeing (runtest working, but sendesb not working) but I am not having much luck making it go away:
Exception in thread "main"
org.jboss.soa.esb.listeners.message.MessageDeliverException: java.lang.reflect.InvocationTargetException
at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:545)at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:174)
at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:155)
at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:197)
at ian.samples.hello.test.SendEsbMessage.main(SendEsbMessage.java:30)
Caused by:
org.jboss.soa.esb.services.registry.RegistryException: java.lang.reflect.InvocationTargetException
at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:348)at org.jboss.internal.soa.esb.services.registry.InVMRegistryInterceptor.findEPRs(InVMRegistryInterceptor.java:85)
at org.jboss.soa.esb.services.registry.RegistryFactory$HeadRegistryInterceptor.findEPRs(RegistryFactory.java:229)
at org.jboss.soa.esb.listeners.RegistryUtil.getEprs(RegistryUtil.java:226)
at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:532)
... 4 more
Caused by:javax.xml.registry.JAXRException: java.lang.reflect.InvocationTargetException
at org.apache.ws.scout.registry.BusinessQueryManagerImpl.findConcepts(BusinessQueryManagerImpl.java:542)
at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.getJBossESBTModel(JAXRRegistryImpl.java:653)
at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:307)
... 8 more
-
31. Re: Service Invoker Error - pls help a newbie
beve Sep 20, 2010 3:18 AM (in response to imitchell)Hey Ian,
sorry for the late reply!
Can you tell me what version of JBoss ESB you are using?
I've just tried this with the latest trunk which is 4.9 and this worked for me.
Regards,
/Daniel
-
32. Re: Service Invoker Error - pls help a newbie
imitchell Sep 20, 2010 8:41 AM (in response to beve)Daniel,
No need to apologize!! I should have indicated my versions.
Thanks,
Ian
ESB 4.8
AS jboss-6.0.0.20100216-M2
Eclipse Galileo
Classpath file:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0_21">
<attributes>
<attribute name="owner.project.facets" value="jst.java"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.jboss.esb.runtime.classpath/server.supplied/JBoss 6.0 Runtime 1"/>
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.jboss.ide.eclipse.as.core.server.runtime.runtimeTarget/JBoss 6.0 Runtime 1"/>
<classpathentry kind="lib" path="C:/JBOSS_LIBS/lib/endorsed/xercesImpl.jar"/>
<classpathentry kind="lib" path="C:/JBOSS_LIBS/server/default/deploy/jbossesb-registry.sar/juddi-core-3.0.1.jar"/>
<classpathentry kind="lib" path="C:/JBOSS_LIBS/server/default/deployers/esb.deployer/lib/commons-codec-1.3.jar"/>
<classpathentry kind="lib" path="C:/JBOSS_LIBS/server/default/deployers/esb.deployer/lib/commons-configuration-1.5.jar"/>
<classpathentry kind="lib" path="C:/JBOSS_LIBS/server/default/deployers/esb.deployer/lib/commons-lang-2.3.jar"/>
<classpathentry kind="lib" path="C:/JBOSS_LIBS/server/default/deployers/esb.deployer/lib/jbossesb-config-model-1.0.1.jar"/>
<classpathentry kind="lib" path="C:/JBOSS_LIBS/server/default/deployers/esb.deployer/lib/jbossts-common.jar"/>
<classpathentry kind="lib" path="C:/JBOSS_LIBS/server/default/deployers/esb.deployer/lib/juddi-client-3.0.1.jar"/>
<classpathentry kind="lib" path="C:/JBOSS_LIBS/server/default/deployers/esb.deployer/lib/scout-1.2.1.jar"/>
<classpathentry kind="lib" path="C:/JBOSS_LIBS/server/default/deployers/esb.deployer/lib/stax-api-1.0.1.jar"/>
<classpathentry kind="lib" path="C:/JBOSS_LIBS/server/default/deployers/esb.deployer/lib/uddi-ws-3.0.1.jar"/>
<classpathentry kind="lib" path="C:/JBOSS_LIBS/server/default/deployers/esb.deployer/lib/wstx-asl-3.2.8.jar"/>
<classpathentry kind="lib" path="C:/JBOSS_LIBS/server/default/deployers/esb.deployer/lib/xbean-2.2.0.jar"/>
<classpathentry kind="lib" path="C:/JBOSS_LIBS/Apache/commons-logging.jar"/>
<classpathentry kind="lib" path="C:/JBOSS_LIBS/rosetta/jbossesb-rosetta.jar"/>
<classpathentry kind="lib" path="C:/ESB_LIBS/lib/commons-collections-3.2.jar"/>
<classpathentry kind="output" path="build/classes"/>
</classpath> -
33. Re: Service Invoker Error - pls help a newbie
imitchell Sep 24, 2010 3:59 PM (in response to imitchell)The problem I was having with remotely running the sendEsbMessage test client from within Eclipse (using JBoss AS 6,0 - ESB 4.8 - Eclipse Galileo) has been solved:
My first mistake (which I attribute half to muscle memory) is that I selected a JBoss Target runtime - but I should have left it as <None> as shown below.
By erroneously specifying a Target runtime, Eclipse gave me a classpath that looked like this:
But it should look like this (it will look this way when you leave the Target runtime set to <None>).
=====================================================================
On to the second problem - the classpath (again):
Tim Marks (who had the same error but for different reasons) got a working .project file from Daniel Bevenius but tweaked Daniel's Classpath to reflect the Jars found in JBoss AS 6.0 and ESB 4.8.
Tim's Thread is here: http://community.jboss.org/message/563630#563630
Daniels help is here: http://community.jboss.org/thread/144658 (the 29th post)
Tim came up with the Classpath below and indicated that order is important.
QUICKSTART_II/src
JRE System Library [JDK1.6.0_21] NOTE: /* or [jre6] */
JBoss ESB Runtime [server.supplied] (unbound)
QUICKSTART_II/conf/registry
jbossesb-4.8/lib/commons-codec-1.3.jar
jbossesb-4.8/lib/commons-configuration-1.5.jar
jbossesb-4.8/lib/commons-lang-2.3.jar
jbossesb-4.8/lib/commons-logging-1.1.jar
jbossesb-4.8/lib/javassist-3.6.0.GA.jar
jbossesb-4.8/lib/jboss-aop-jdk50-1.5.6.GA.jar
jbossesb-4.8/lib/ext/jboss-messaging-client.jar
jboss-6.0.0.20100216-M2/client/jboss-remoting.jar
jbossesb-4.8/lib/jbossall-client-4.2.2.GA.jar
jbossesb-4.8/lib/jbossesb-config-model-1.0.1.jar
jbossesb-4.8/lib/jbossesb-config-model-1.1.0.jar
jbossesb-4.8/lib/jbossesb-config-model-1.2.0.jar
jbossesb-4.8/lib/jbossesb-rosetta.jar
jbossesb-4.8/lib/ext/jbossts-common.jar
jbossesb-4.8/lib/ext/juddi-client-3.0.1.jar
jboss-6.0.0.20100216-M2/client/log4j.jar
jbossesb-4.8/lib/ext/scout-1.2.1.jar
jbossesb-4.8/lib/stax-1.2.0.jar
jbossesb-4.8/lib/stax-api-1.0-2.jar
jbossesb-4.8/lib/ext/trove.jar
jbossesb-4.8/lib/ext/uddi-ws-3.0.1.jar
jbossesb-4.8/lib/wstx-asl-3.2.0.jar
jbossesb-4.8/lib/xbean-2.2.0.jar
jbossesb-4.8/lib/xercesImpl-2.8.0.jar
jbossesb-4.8/lib/jbossesb-registry.jar
jbossesb-4.8/lib/commons-collections-3.2.jar
========================================================================
Lastly, and included as an FYI, the configuration files needed are shown below in the expanded Eclipse ESB Project:
Thanks to all who chimed in and I hope someone finds this useful
-
34. Re: Service Invoker Error - pls help a newbie
sgrprasad1979 Sep 14, 2011 3:25 AM (in response to 257980)Hi Ravisankar,
I am a new bee to JBOSS ESB and trying to pool a csv file and insert the data to oracle DB. please help me.
please help me.
Regards,
Raghu Prasad
-
35. Re: Service Invoker Error - pls help a newbie
nelioini Feb 13, 2012 5:16 AM (in response to anushree123)I am new to Jboss ESB and I have also the same problem, I am trying to run the hello world example using eclipse. I have added all the dependencies but when I run the SendEsbMessage I get the follwing Exception
org.apache.ws.scout.transport.TransportException: java.lang.reflect.InvocationTargetException
org.jboss.soa.esb.listeners.message.MessageDeliverException: org.apache.ws.scout.transport.TransportException: java.lang.reflect.InvocationTargetException
at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:545)
at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:174)
at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:155)
at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:197)
at org.jboss.soa.esb.samples.quickstart.helloworld.test.SendEsbMessage.main(SendEsbMessage.java:57)
Caused by: org.jboss.soa.esb.services.registry.RegistryException: org.apache.ws.scout.transport.TransportException: java.lang.reflect.InvocationTargetException
at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:358)
at org.jboss.internal.soa.esb.services.registry.InVMRegistryInterceptor.findEPRs(InVMRegistryInterceptor.java:85)
at org.jboss.soa.esb.services.registry.RegistryFactory$HeadRegistryInterceptor.findEPRs(RegistryFactory.java:229)
at org.jboss.soa.esb.listeners.RegistryUtil.getEprs(RegistryUtil.java:226)
at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:532)
... 4 more
Caused by: javax.xml.registry.JAXRException: org.apache.ws.scout.transport.TransportException: java.lang.reflect.InvocationTargetException
at org.apache.ws.scout.registry.BusinessQueryManagerV3Impl.findConcepts(BusinessQueryManagerV3Impl.java:535)
at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.getJBossESBTModel(JAXRRegistryImpl.java:795)
at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:327)
... 8 more
Could you please help me understand what's going on.
thank you
-
36. Re: Service Invoker Error - pls help a newbie
mancio791 Jun 21, 2012 5:42 AM (in response to nelioini)Hi,
i solved thi problem with some brain efforts... i'm using JBossAS 6.0.0-final and JBossESB-4.11 and my java client, a very simple java client needs some libraries
listed in the Programmmers Guide PDF, not all library !!!
I have picked up frm my JBossESB distrubution only this jar files:
[from {my jbossESB-dist-HOME}\lib\jbossesb.sar\lib]
jbossesb-rosetta.jar, jbossesb-config-model-1.0.1.jar, jbossts-common.jar, stax-api-1.0.1.jar, scout-1.2.aop.jar, xbean-2.2.0.jar, juddi-client-3.1.3.aop.jar, uddi-ws-3.1.3.jar, commons-configuration-1.5.jar, commons-lang-2.3.jar, commons-codec-1.3.jar and wstx-asl-3.2.9.jar; (don't look at version of jar files !!)
[from {my jbossESB-dist-HOME}\lib\ext]
jboss-messaging-client.jar, jbossts-common.jar, trove.jar
[from {my jbossESB-dist-HOME}\lib\jbossesb-registry.sar]
juddi-core-3.1.3.jar
[from client folder of my JBossAS6.0.0-final dist]
all the others libraries
Put all in a lib folder of your java project and run the main method....it should works fine !!
That'a all...
-
37. Re: Service Invoker Error - pls help a newbie
ratnamadhumita Aug 29, 2012 7:17 AM (in response to mancio791)Hi,
I did every thing possible like adding all the jars mentioned by you and above posts, the config files , but I am still getting the same error.
I have tried using Daniel's project i..e remote-service-invoker which he uploaded in the trunk, but that also did not work.
org.jboss.soa.esb.listeners.message.MessageDeliverException: org.apache.ws.scout.transport.TransportException: java.lang.NullPointerExceptionjavax.xml.registry.JAXRException
at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:545)
at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:174)
at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:155)
at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:197)
at org.jboss.esb.test.RemoteServiceInvoker.main(RemoteServiceInvoker.java:18)
Caused by: org.jboss.soa.esb.services.registry.RegistryException: org.apache.ws.scout.transport.TransportException: java.lang.NullPointerException
at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:334)
at org.jboss.internal.soa.esb.services.registry.InVMRegistryInterceptor.findEPRs(InVMRegistryInterceptor.java:85)
at org.jboss.soa.esb.services.registry.RegistryFactory$HeadRegistryInterceptor.findEPRs(RegistryFactory.java:229)
at org.jboss.soa.esb.listeners.RegistryUtil.getEprs(RegistryUtil.java:226)
at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:532)
... 4 more
Caused by: javax.xml.registry.JAXRException: org.apache.ws.scout.transport.TransportException: java.lang.NullPointerException
at org.apache.ws.scout.registry.BusinessQueryManagerV3Impl.findClassificationSchemeByName(BusinessQueryManagerV3Impl.java:427)
at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.getClassificationScheme(JAXRRegistryImpl.java:741)
at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findService(JAXRRegistryImpl.java:459)
at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:305)
... 8 moreThe resorces folder contains jbossesb-properties.xml & uddi.xml..
Please help as it is very urgent.
All the files are attached
-
.classpath.zip 615 bytes
-
uddi.xml 2.8 KB
-
jbossesb-properties.xml 5.3 KB
-
-
38. Re: Service Invoker Error - pls help a newbie
ratnamadhumita Aug 29, 2012 7:21 AM (in response to beve)Hi,
I did every thing possible like adding all the jars mentioned by you and above posts, the config files , but I am still getting the same error.I have tried using Daniel's project i..e remote-service-invoker which he uploaded in the trunk, but that also did not work.
org.jboss.soa.esb.listeners.message.MessageDeliverException: org.apache.ws.scout.transport.TransportException: java.lang.NullPointerExceptionjavax.xml.registry.JAXRExceptionat org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:545)
at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:174)
at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:155)
at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:197)
at org.jboss.esb.test.RemoteServiceInvoker.main(RemoteServiceInvoker.java:18)
Caused by: org.jboss.soa.esb.services.registry.RegistryException: org.apache.ws.scout.transport.TransportException: java.lang.NullPointerException
at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:334)
at org.jboss.internal.soa.esb.services.registry.InVMRegistryInterceptor.findEPRs(InVMRegistryInterceptor.java:85)
at org.jboss.soa.esb.services.registry.RegistryFactory$HeadRegistryInterceptor.findEPRs(RegistryFactory.java:229)
at org.jboss.soa.esb.listeners.RegistryUtil.getEprs(RegistryUtil.java:226)
at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:532)
... 4 more
Caused by: javax.xml.registry.JAXRException: org.apache.ws.scout.transport.TransportException: java.lang.NullPointerException
at org.apache.ws.scout.registry.BusinessQueryManagerV3Impl.findClassificationSchemeByName(BusinessQueryManagerV3Impl.java:427)
at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.getClassificationScheme(JAXRRegistryImpl.java:741)
at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findService(JAXRRegistryImpl.java:459)
at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:305)
... 8 more
The resorces folder contains jbossesb-properties.xml & uddi.xml..
Please help as it is very urgent.
All the files are attached-
uddi.xml 2.8 KB
-
jbossesb-properties.xml 5.3 KB
-
.classpath.zip 615 bytes
-
-
39. Re: Service Invoker Error - pls help a newbie
tcunning Aug 29, 2012 9:50 PM (in response to ratnamadhumita)Madhumita,
What application server version are you using (eg 5.1.0.GA, 6, etc)? What JBoss ESB version are you using? Without that information, I'm not sure where to start.Daniel's project was created against an earlier JBoss ESB version, so there may be some JAR versions that need to be updated. When I did this recently with 5.1.0.GA and ESB 4.11, these were the JARs I ended up with :
commons-codec.jar jbossesb-config-model-1.0.1.jar commons-collections-3.2.jar jbossesb-config-model-1.1.0.jar commons-configuration-1.5.jar jbossesb-config-model-1.2.0.jar commons-lang-2.4.jar jbossesb-config-model-1.3.0.jar commons-logging-1.1.jar jbossesb-config-model-1.3.1.jar concurrent.jar jbossesb-registry.jar hornetq-core-client.jar jbossesb-rosetta.jar hornetq-jms.jar jbossjmx-ant.jar javassist-3.10.0.GA.jar jbossts-common.jar jboss-aop-jdk50-1.5.6.GA.jar juddi-client-3.1.3.jar jboss-common-core.jar log4j-1.2.14.jar jboss-javaee.jar netty.jar jboss-logging-spi.jar scout-1.2.6.jar jboss-messaging-client.jar serializer.jar jboss-remoting.jar trove.jar jbossall-client.jar uddi-ws-3.1.3.jar -
40. Re: Service Invoker Error - pls help a newbie
solomonzr Sep 27, 2012 6:10 AM (in response to tcunning)Hi Tom,
Thank you!
My envioroment is JBossESB4.11 and JBossAS5.1GA. I met this error too. It troubled me several days. At beginning, I just simply added all the jars to the classpath. Unfortunately it didn't work. Then I see the jars you listed. I found and add them. Then it works now.
Thank you!
PS: There are several jars I didn't add. I listed them below.
I can not find them
hornetq-core-client.jar
hornetq-jms.jar
only the newest version is enough
jbossesb-config-model-1.0.1.jar
jbossesb-config-model-1.1.0.jar
jbossesb-config-model-1.2.0.jar
jbossesb-config-model-1.3.0.jar
I didn't see when i add the jars, but without them the project still work.
jbossesb-registry.jar
jbossjmx-ant.jar
-
41. Re: Service Invoker Error - pls help a newbie
tcunning Sep 27, 2012 10:00 AM (in response to solomonzr)Ray Solomon wrote:
PS: There are several jars I didn't add. I listed them below.
I can not find them
hornetq-core-client.jar
hornetq-jms.jar
Correct - if you aren't using hornetq, these won't be required, but they are required if you are using hornetq. I threw them into the list to cover both situations.
Ray Solomon wrote:
only the newest version is enough
jbossesb-config-model-1.0.1.jar
jbossesb-config-model-1.1.0.jar
jbossesb-config-model-1.2.0.jar
jbossesb-config-model-1.3.0.jar
I would keep them all just to be safe.
-
42. Re: Service Invoker Error - pls help a newbie
solomonzr Sep 28, 2012 12:00 AM (in response to tcunning)Thank you Tom. And I still have one question.
Since the ServiceInvoker worked, I want to implement a cluster scenario.
I have two servers. I deployed each server with JBossAS5.1GA and configure as a cluster.
And it works. I run the SendJMSMessage, and the message is sended to different server each time.
Then I try the SendEsbMessage. It doesn't show the same behaviors as SendJMSMessage. Each time the message is sended to the same server.
And I found the IP of the server is configured in the META-INF/uddi.xml. If I change IP to the one of the other server, then the message will be sended to the other server.
My question is how to use ServiceInvoker to send message to cluster.
Thank you.
Ray
-
43. Re: Service Invoker Error - pls help a newbie
tcunning Sep 28, 2012 10:17 AM (in response to solomonzr)Hi Ray,
I think what you are looking for is the "org.jboss.soa.esb.loadbalancer.policy" property in jbossesb-properties.xml. The link below has a decent explanation of it, and the three provided implementations are org.jboss.soa.esb.listeners.ha.RoundRobin, org.jboss.soa.esb.listeners.ha.RandomRobin, and org.jboss.soa.esb.listeners.ha.FirstAvailable.
https://community.jboss.org/wiki/JBossESBStatelessServiceClustering
-
44. Re: Service Invoker Error - pls help a newbie
solomonzr Sep 29, 2012 2:01 AM (in response to tcunning)Hi Tom,
I read the link you send to me. And I did some tests this morning. The cluster does work. But only in First available mode.
I try to set the property "org.jboss.soa.esb.loadbalancer.policy" with org.jboss.soa.esb.listeners.ha.RoundRobin in jbossesb-properties.xml.
But it still work as First available.
Then I try to set the property in the code. Just like this:
System.setProperty("org.jboss.soa.esb.loadbalancer.policy", "org.jboss.soa.esb.listeners.ha.RoundRobin");
But the result is not change.
So...
Anyway we put it next week.
Thank you for helping me these days. We solved so many errors. I've learned more from this.
Have a nice weekend!
Ray