[JBoss ESB Development] - org.apache.ws.scout.transport.TransportException: java.lang.IllegalArgumentException: object is not an instance of declaring class
by Rajnish Kumar
Rajnish Kumar [https://community.jboss.org/people/rajnish.kumar.76] created the discussion
"org.apache.ws.scout.transport.TransportException: java.lang.IllegalArgumentException: object is not an instance of declaring class"
To view the discussion, visit: https://community.jboss.org/message/724385#724385
--------------------------------------------------------------
Hi,
I am trying to call a ESB service from a client. I get below error, any help would be appreciated.
Client side code :-
private void sendMessage() throws Exception{
System.setProperty("javax.xml.registry.ConnectionFactoryClass",
"org.apache.ws.scout.registry.ConnectionFactoryImpl");
ServiceInvoker invoker = new ServiceInvoker("JBOSSESBTest.FirstServiceESB","Simple Test Service");
System.out.println("ServiceInvoker obtained: "+invoker);
Message message = MessageFactory.getInstance().getMessage();
message.getBody().add(" Hi there - Message from Transport Agnostic Service Client");
invoker.deliverAsync(message);
}
Client side configuration :-
<properties name="registry">
<!-- property name="org.jboss.soa.esb.registry.queryManagerURI" value="org.apache.juddi.v3.client.transport.wrapper.UDDIInquiryService#inquire" /-->
*<property name="org.jboss.soa.esb.registry.queryManagerURI" value="jnp://localhost:1099/juddiv3/UDDIInquiryService?org.apache.juddi.v3.client.transport.wrapper.UDDIInquiryService#inquire" />*
<!-- property name="org.jboss.soa.esb.registry.lifeCycleManagerURI" value="org.apache.juddi.v3.client.transport.wrapper.UDDIPublicationService#publish" /-->
<property name="org.jboss.soa.esb.registry.lifeCycleManagerURI" value="jnp://localhost:1099/PublishService?org.apache.juddi.registry.rmi.Publish#publish" />
<!-- property name="org.jboss.soa.esb.registry.securityManagerURI" value="org.apache.juddi.v3.client.transport.wrapper.UDDISecurityService#secure" /-->
<property name="org.jboss.soa.esb.registry.securityManagerURI" value="jnp://localhost:1099/SecurityService?org.apache.juddi.registry.rmi.Security#secure" />
<property name="org.jboss.soa.esb.registry.implementationClass" value="org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl" />
<property name="org.jboss.soa.esb.registry.factoryClass" value="org.apache.ws.scout.registry.ConnectionFactoryImpl" />
<property name="org.jboss.soa.esb.registry.user" value="****" />
<property name="org.jboss.soa.esb.registry.password" value="******" />
<!-- property name="org.jboss.soa.esb.scout.proxy.transportClass" value="org.apache.ws.scout.transport.LocalTransport" /-->
<property name="org.jboss.soa.esb.scout.proxy.transportClass" value="org.apache.ws.scout.transport.RMITransport" />
<property name="org.jboss.soa.esb.scout.proxy.uddiVersion" value="3.0" />
<property name="org.jboss.soa.esb.scout.proxy.uddiNameSpace" value="urn:uddi-org:api_v3" />
<property name="org.jboss.soa.esb.registry.interceptors" value="org.jboss.internal.soa.esb.services.registry.InVMRegistryInterceptor, org.jboss.internal.soa.esb.services.registry.CachingRegistryInterceptor" />
<property name="org.jboss.soa.esb.registry.cache.maxSize" value="100" />
<property name="org.jboss.soa.esb.registry.orgCategory" value="org.jboss.soa.esb.:category" />
</properties>
Error :-
Caused by: javax.xml.registry.JAXRException: org.apache.ws.scout.transport.TransportException: java.lang.IllegalArgumentException: object is not an instance of declaring class
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)
... 7 more
If I change the above line as below then I get a diff error.
<property name="org.jboss.soa.esb.registry.queryManagerURI" value="jnp://localhost:1099/juddiv3/UDDIInquiryService?org.apache.juddi.rmi.UDDIInquiryService#inquire" />
Error changes to :-
Caused by: javax.xml.registry.JAXRException: org.apache.ws.scout.transport.TransportException: java.lang.NoSuchMethodException: org.apache.juddi.rmi.UDDIInquiryService.inquire(org.w3c.dom.Element)
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)
... 7 more
Same service works when called from the same server instance from a jsp. JSP code snippet as below :-
<%
try {
ServiceInvoker invoker = new ServiceInvoker("JBOSSESBTest.FirstServiceESB","Simple Test Service");
Message message = MessageFactory.getInstance().getMessage();
message.getBody().add(" Hi there - Message from Transport Agnostic Service Client");
invoker.deliverAsync(message);
} catch (Exception e) {
out.println("Caught Exception: " + e);
}
%>
Any thoughts from JBOSS ESB Gurus what could be wrong... Please dont suggest me to use WS to call the service, I want to try the RMI before trying for WS.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/724385#724385]
Start a new discussion in JBoss ESB Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 12 months
[JBoss AS 7 Development] - awaiting topic/queue creation jms/queue/useCase - MDB jboss 7.1
by emre nakilcioglu
emre nakilcioglu [https://community.jboss.org/people/emrenak] created the discussion
"awaiting topic/queue creation jms/queue/useCase - MDB jboss 7.1"
To view the discussion, visit: https://community.jboss.org/message/721803#721803
--------------------------------------------------------------
Hello I am just trying to connect to a JMS queue using a message driven bean.
However after the bean is started, the bean is trying to connecto to queue a few times but could not succeed.
What could be the reason. Any help is appreciated.
The below is a log example:
Started message driven bean 'JmsMessageListener' with 'hornetq-ra' resource adapter
14:20:28,249 INFO [org.hornetq.ra.inflow.HornetQActivation] (default-short-running-threads-threads - 1) Attempting to reconnect org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@242888 destination=jms/queue/useCase destinationType=javax.jms.Queue ack=Auto-acknowledge durable=false clientID=null user=usecase2 password=**** maxSession=15)
14:20:28,259 INFO [org.hornetq.ra.inflow.HornetQActivation] (default-short-running-threads-threads - 1) awaiting topic/queue creation jms/queue/useCase
My standalone.xml file and the ejb-jar.xml files are attached.
Regards
-emre
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/721803#721803]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 12 months
Re: [jboss-dev-forums] [JBoss AS 7 Development] - JBoss 7 and Ejb remote call with security
by andrei povodyrev
andrei povodyrev [https://community.jboss.org/people/apovodyrev] commented on the document
"JBoss 7 and Ejb remote call with security"
To view all comments on this document, visit: https://community.jboss.org/docs/DOC-17581#comment-9369
--------------------------------------------------
Seems like all remote calls have to be authenticated by remoting-connector.
Application login module must have <module-option name="password-stacking" value="useFirstPass"/> to piggy back on cached Principal/Credentials
If security realm (ApplicationRealm by default) is removed from remoting-connector, there is no way to authenticate ejb remote call.
Tried multiple approaches
1)
jndiProperties.put(InitialContext.SECURITY_PRINCIPAL, "user");
jndiProperties.put(InitialContext.SECURITY_CREDENTIALS, "pass");
2)
org.jboss.security.client.SecurityClient
3)
org.jboss.security.auth.callback.AppCallbackHandler
User credential set by above means do not get to java ee security context and random UUID values are used on server, or $local if
setting SASL_DISALLOWED_MECHANISMS=JBOSS-LOCAL-USER not used
Seems like a mess. If you have multiple apps on the same server with own security, maintaining acces to then with remote client is going to be nightmare.
--------------------------------------------------
12 years, 12 months
[jBPM Development] - History of active process and migration of process instances
by Vinay Bommarati
Vinay Bommarati [https://community.jboss.org/people/vinayknr41] created the discussion
"History of active process and migration of process instances"
To view the discussion, visit: https://community.jboss.org/message/723922#723922
--------------------------------------------------------------
Hi
I am running the jbpm5 demo setup. In that I have created a process and a correspoding class to simulate the process and I have been experimenting with the different features of jbpm5
I have few doubts regarding the usage of history logs, versioning of process and human task server
1. When ever I am starting a process. Through log I am able to see where that process is active but I am not able to see on which node that process is pending. Using another query we can get that information but it is not availble directly. ( The web console shows this information directly. How is it implemented there?)
2. Suppose at time t1 I have created 3 instances for the process and at time t2 I have changed my process ( This is what I call the version2 of my process) Then again I created 3 more instances. After that will I be able to differentiate between the processes that with version1 and version 2?
3 In demo setup we are using the h2 in memory database. Do jbpm5 uses the same database for human task server? If no which database it uses and if yes/no how can I see the schema of the human task server?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/723922#723922]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 12 months