[JBossWS] - Caused by: org.jboss.remoting.CannotConnectException: Can no
by randhawag
We are running JBoss 4.3 EAP CP02, on Java 6u7 and running into a connectivity issue. Has anyone encountered this problem? We are using JAX WS 2.* libraries.
C:\wstest\wstest>java -Djava.endorsed.dirs="C:\servers\jboss-eap-4.3.0.GA_CP02\jboss-as\lib\endorsed
" -Dsun.lang.ClassLoader.allowArraySyntax=true com.owa.ws.client.WsTest
Exception in thread "main" java.rmi.RemoteException: Call invocation failed; nested exception is:
java.io.IOException: Could not transmit message
at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:536)
at org.jboss.ws.core.jaxrpc.client.CallImpl.invoke(CallImpl.java:277)
at org.jboss.ws.core.jaxrpc.client.PortProxy.invoke(PortProxy.java:156)
at $Proxy0.sayHello(Unknown Source)
at com.owa.ws.client.WsTest.main(WsTest.java:33)
Caused by: java.io.IOException: Could not transmit message
at org.jboss.ws.core.client.RemotingConnectionImpl.invoke(RemotingConnectionImpl.java:210)
at org.jboss.ws.core.client.SOAPRemotingConnection.invoke(SOAPRemotingConnection.java:77)
at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:337)
at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:517)
... 4 more
Caused by: org.jboss.remoting.CannotConnectException: Can not connect http client invoker. Connectio
n refused: connect.
at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoke
r.java:348)
at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:137)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
at org.jboss.remoting.Client.invoke(Client.java:1634)
at org.jboss.remoting.Client.invoke(Client.java:548)
at org.jboss.ws.core.client.RemotingConnectionImpl.invoke(RemotingConnectionImpl.java:189)
... 7 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.Socket.connect(Socket.java:519)
at sun.net.NetworkClient.doConnect(NetworkClient.java:152)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
at sun.net.www.http.HttpClient.(HttpClient.java:233)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:323)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:788)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:729)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:654)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:832)
at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoke
r.java:277)
... 12 more
C:\wstest\wstest>echo "Test completed"
"Test completed"
C:\wstest\wstest>
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225204#4225204
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225204
17 years
[JBoss jBPM] - Get ActionHandler config information at runtime?
by Thinkstream09
Hello,
Does anybody know how to get at runtime the information about
configuration of custom ActionHadler classes. Here is what I try to do:
Snippet from my processdefinition.xml
| <transition name='success' to='new-request-suspend'>
| <action class='MyActionHandler'
| config-type='field'>
| <services>
| <element>service1</element>
| <element>service2</element>
| </services>
| </action>
| </transition>
|
My implementation of ActionHandler
| public class MyActionHandler implements org.jbpm.graph.def.ActionHandler
| {
| private List<String> services;
| public void execute (ExecutionContext context) throws Exception
| // more code
| }
|
My code that is trying to get the value of MyActionHandler.services field
| Event event = ... // get the event I am interested in
| List<Action> actions = event.getActions ();
| for (Action action: actions)
| {
| // how do I get the value of the MyActionHandler.services field?
| }
|
I'd appreciate any suggestions. Is there an alternative way to approach this?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225203#4225203
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225203
17 years
[JBoss Messaging] - Re: NoClassDefFound Exception from Sun AS 8.2 to JBM 1.4.0
by dkuanwang
I tried building the JBoss jars within EAR but same exception happens. :(
Since the JBAS I am trying to connect to is 4.2.2 and I have successfully connected to it with the standalone remote client, I am staying with the list of JARs in the previous post (including jbossall-client.jar). I am just curious what can be the class that's missing/conflicting giving the exception:
Caused by: java.lang.NoClassDefFoundError
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createClient(ClientConnectionFactoryDelegate.java:298)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$getClientAOPStack$aop(ClientConnectionFactoryDelegate.java:228)
....
Any pointer on how to debug such issue would be appreciated, too. (the verbose:class option didn't help me much) Thanks for your inputs!
-David
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225199#4225199
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225199
17 years
[Beginners Corner] - Naming exception: Error writing response to
by aiesulauro
Is there a way to avoid the exception show below? I could inhibit DEBUG messages for the Naming class, but the JVM cycles would still be used attempting to do the write.
The exception shown below appears once per minute in the server log.
The computing environment is jboss-5.0.0.GA (standard configuration), RHEL5, on a machine with 8G of RAM and two 2GHz dual core processors. The database is mySql executing locally (same machine as the JBossAS instance). No applications deployed.
The IP address shown in the exception is a VIP and the appServer is started with the -b option.
/usr2/jboss/jboss-5.0.0.GA/bin/run.sh -c standard -b jestdev03
https://jira.jboss.org/jira/browse/JBAS-3417 references the problem but
does not suggest a solution. JBAS-3417 states that the source of the
naming port access must be tracked down.
2009-01-16 00:00:02,025 DEBUG [org.jboss.naming.Naming] (JBoss System Threads(1)-6) Error writing response to /134.243.51.107
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1838)
at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java:1747)
at java.io.ObjectOutputStream.writeNonProxyDesc(ObjectOutputStream.java:1249)
at java.io.ObjectOutputStream.writeClassDesc(ObjectOutputStream.java:1203)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1387)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeFatalException(ObjectOutputStream.java:1538)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:329)
at org.jnp.server.Main$BootstrapRequestHandler.run(Main.java:591)
at org.jboss.util.threadpool.RunnableTaskWrapper.run(RunnableTaskWrapper.java:147)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225198#4225198
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225198
17 years