[JBoss Messaging] - marshalling stack trace
by kurt.stamï¼ jboss.com
Hey guys,
For JBossESB I'm trying to get JBoss Messaging going, but right now I'm kinda 'stuck' at the first step.
I'm using 4.0.5.GA with messaging-1.2.0Beta2. And I've run the script to install messaging in the appserver. When I now run ant from the examples/queue
directory I get:
kstam@kstam /cygdrive/c/jboss-messaging-1.2.0.Beta2/examples/queue
$ ant
Buildfile: build.xml
identify:
[echo] ####################################################################
#######
[echo] # Running the QUEUE example
#
[echo] ####################################################################
#######
[echo] The queue: testQueue
[echo] The client jar: ../../jboss-messaging-client.jar
sanity-check:
init:
compile:
run:
[java] Queue /queue/testQueue exists
[java] 10:23:58,250 ERROR @main [SocketClientInvoker] Got marshalling excep
tion, exiting
[java] java.net.SocketException: end of file
[java] at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.
transport(MicroSocketClientInvoker.java:555)
[java] at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemot
eClientInvoker.java:122)
[java] at org.jboss.remoting.LeasePinger.sendClientPing(LeasePinger.jav
a:257)
[java] at org.jboss.remoting.LeasePinger.addClient(LeasePinger.java:107
)
[java] at org.jboss.remoting.MicroRemoteClientInvoker.establishLease(Mi
croRemoteClientInvoker.java:390)
[java] at org.jboss.remoting.Client.setupClientLease(Client.java:1405)
[java] at org.jboss.remoting.Client.connect(Client.java:1284)
[java] at org.jboss.remoting.Client.connect(Client.java:431)
[java] at org.jboss.jms.client.remoting.JMSRemotingConnection.start(JMS
RemotingConnection.java:208)
[java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate
.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionD
elegate$aop(ClientConnectionFactoryDelegate.java:149)
[java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate
$createConnectionDelegate_4579211046834694258.invokeNext(ClientConnectionFactory
Delegate$createConnectionDelegate_4579211046834694258.java)
[java] at org.jboss.jms.client.container.StateCreationAspect.handleCrea
teConnectionDelegate(StateCreationAspect.java:86)
[java] at org.jboss.aop.advice.org.jboss.jms.client.container.StateCrea
tionAspect0.invoke(StateCreationAspect0.java)
[java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate
$createConnectionDelegate_4579211046834694258.invokeNext(ClientConnectionFactory
Delegate$createConnectionDelegate_4579211046834694258.java)
[java] at org.jboss.jms.client.container.ExceptionInterceptor.invoke(Ex
ceptionInterceptor.java:71)
[java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate
$createConnectionDelegate_4579211046834694258.invokeNext(ClientConnectionFactory
Delegate$createConnectionDelegate_4579211046834694258.java)
[java] at org.jboss.jms.client.container.ClientLogInterceptor.invoke(Cl
ientLogInterceptor.java:107)
[java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate
$createConnectionDelegate_4579211046834694258.invokeNext(ClientConnectionFactory
Delegate$createConnectionDelegate_4579211046834694258.java)
[java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate
.createConnectionDelegate(ClientConnectionFactoryDelegate.java)
[java] at org.jboss.jms.client.JBossConnectionFactory.createConnectionI
nternal(JBossConnectionFactory.java:212)
[java] at org.jboss.jms.client.JBossConnectionFactory.createConnection(
JBossConnectionFactory.java:88)
[java] at org.jboss.jms.client.JBossConnectionFactory.createConnection(
JBossConnectionFactory.java:83)
[java] at org.jboss.example.jms.queue.QueueExample.example(QueueExample
.java:71)
[java] at org.jboss.example.jms.common.ExampleSupport.run(ExampleSuppor
t.java:137)
[java] at org.jboss.example.jms.queue.QueueExample.main(QueueExample.ja
va:137)
[java] 10:23:58,250 WARN @main [LeasePinger] LeasePinger[SocketClientInvok
er[25d2b2, socket://10.32.4.32:4457](aw4w-d3ekbm-ey4hjrvf-1-ey4hjs9q-5)] failed
to ping to server: Failed to communicate. Problem during marshalling/unmarshall
ing; nested exception is:
[java] java.net.SocketException: end of file
[java] The message was successfully sent to the testQueue queue
[java] 10:23:59,265 ERROR @main [SocketClientInvoker] Got marshalling excep
tion, exiting
[java] java.net.SocketException: end of file
[java] at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.
transport(MicroSocketClientInvoker.java:555)
[java] at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemot
eClientInvoker.java:122)
[java] at org.jboss.remoting.LeasePinger.sendClientPing(LeasePinger.jav
a:257)
[java] at org.jboss.remoting.LeasePinger.addClient(LeasePinger.java:107
)
[java] at org.jboss.remoting.MicroRemoteClientInvoker.establishLease(Mi
croRemoteClientInvoker.java:350)
[java] at org.jboss.remoting.Client.setupClientLease(Client.java:1405)
[java] at org.jboss.remoting.Client.connect(Client.java:1284)
[java] at org.jboss.remoting.Client.connect(Client.java:431)
[java] at org.jboss.jms.client.remoting.JMSRemotingConnection.start(JMS
RemotingConnection.java:208)
[java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate
.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionD
elegate$aop(ClientConnectionFactoryDelegate.java:149)
[java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate
$createConnectionDelegate_4579211046834694258.invokeNext(ClientConnectionFactory
Delegate$createConnectionDelegate_4579211046834694258.java)
[java] at org.jboss.jms.client.container.StateCreationAspect.handleCrea
teConnectionDelegate(StateCreationAspect.java:86)
[java] at org.jboss.aop.advice.org.jboss.jms.client.container.StateCrea
tionAspect0.invoke(StateCreationAspect0.java)
[java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate
$createConnectionDelegate_4579211046834694258.invokeNext(ClientConnectionFactory
Delegate$createConnectionDelegate_4579211046834694258.java)
[java] at org.jboss.jms.client.container.ExceptionInterceptor.invoke(Ex
ceptionInterceptor.java:71)
[java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate
$createConnectionDelegate_4579211046834694258.invokeNext(ClientConnectionFactory
Delegate$createConnectionDelegate_4579211046834694258.java)
[java] at org.jboss.jms.client.container.ClientLogInterceptor.invoke(Cl
ientLogInterceptor.java:107)
[java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate
$createConnectionDelegate_4579211046834694258.invokeNext(ClientConnectionFactory
Delegate$createConnectionDelegate_4579211046834694258.java)
[java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate
.createConnectionDelegate(ClientConnectionFactoryDelegate.java)
[java] at org.jboss.jms.client.JBossConnectionFactory.createConnectionI
nternal(JBossConnectionFactory.java:212)
[java] at org.jboss.jms.client.JBossConnectionFactory.createConnection(
JBossConnectionFactory.java:88)
[java] at org.jboss.jms.client.JBossConnectionFactory.createConnection(
JBossConnectionFactory.java:83)
[java] at org.jboss.example.jms.queue.QueueExample.example(QueueExample
.java:79)
[java] at org.jboss.example.jms.common.ExampleSupport.run(ExampleSuppor
t.java:137)
[java] at org.jboss.example.jms.queue.QueueExample.main(QueueExample.ja
va:137)
[java] 10:23:59,265 WARN @main [LeasePinger] LeasePinger[SocketClientInvok
er[25d2b2, socket://10.32.4.32:4457](aw4w-d3ekbm-ey4hjrvf-1-ey4hjs9q-5)] failed
to ping to server: Failed to communicate. Problem during marshalling/unmarshall
ing; nested exception is:
[java] java.net.SocketException: end of file
[java] Received message: Hello!
[java] The example connected to JBoss Messaging version 1.2.0.Beta2 (1.2)
[java] #####################
[java] ### SUCCESS! ###
[java] #####################
BUILD SUCCESSFUL
Total time: 3 seconds
So it works, but I'm not liking the stacktrace. Am I doing something wrong or is this a known issue. It seems to work ok using beta1.
Thx,
--Kurt
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015825#4015825
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015825
19Â years, 2Â months
[JBoss jBPM] - pb in deploying th same process name
by abdenourh
I have a problem when I try to deploy an other time my process called "handSetWorkFlow" I have this error message
Exception in thread "main" java.lang.RuntimeException: couldn't find process definition 'handSetWorkFlow'
at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:98)
at org.jbpm.jpdl.par.ProcessArchiveDeployer.deployProcessDefinition(ProcessArchiveDeployer.java:65)
at workflowtest.WorkFlow.main(WorkFlow.java:49)
Caused by: org.hibernate.exception.GenericJDBCException: could not load an entity: [org.jbpm.graph.def.ProcessDefinition#8799]
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:91)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:79)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.loader.Loader.loadEntity(Loader.java:1796)
at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:47)
at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:41)
at org.hibernate.persister.entity.AbstractEnti
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015820#4015820
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015820
19Â years, 2Â months
[Messaging, JMS & JBossMQ] - Re: Using CsIL
by fawce
Hi,
Check the jbossmq-state.xml config file that will be in your jboss/server/<config-name>/conf/ directory. For example, you would use dynsub from the default config:
| <?xml version="1.0" encoding="UTF-8"?>
| <StateManager>
| <Users>
| <User>
| <Name>john</Name>
| <Password>needle</Password>
| <Id>DurableSubscriberExample</Id>
| </User>
| <User>
| <Name>guest</Name>
| <Password>guest</Password>
| </User>
| <User>
| <Name>nobody</Name>
| <Password>nobody</Password>
| </User>
| <User>
| <Name>dynsub</Name>
| <Password>dynsub</Password>
| </User>
| </Users>
| <Roles>
| <Role name="guest">
| <UserName>guest</UserName>
| <UserName>john</UserName>
| </Role>
| <Role name="subscriber">
| <UserName>john</UserName>
| </Role>
| <Role name="publisher">
| <UserName>john</UserName>
| <UserName>dynsub</UserName>
| </Role>
| <Role name="durpublisher">
| <UserName>john</UserName>
| <UserName>dynsub</UserName>
| </Role>
| <Role name="noacc">
| <UserName>nobody</UserName>
| </Role>
| </Roles>
| <DurableSubscriptions>
| </DurableSubscriptions>
| </StateManager>
|
Also, the ping period is in milleseconds. You'll want to use 60000 (a minute), otherwise your connection will drop very often for ping timeouts.
You can keep all the connection factory information in a config file:
| <csilconfig xmlns="http://www.tamalesoftware.com/schema/csilconf">
| <serveraddress><some-ip-address></serveraddress>
| <port>8093</port>
| <tcpnodelay>False</tcpnodelay>
| <pingperiod>60000</pingperiod>
| <serverilname>tamalesoftware.messaging.csil.xil2.XIL2ServerIL</serverilname>
| <clientilservicename>tamalesoftware.messaging.csil.xil2.XIL2ClientILService</clientilservicename>
| <username>dynsub</username>
| <password>dynsub</password>
| <xil2blockwriterdelimiterchar>0</xil2blockwriterdelimiterchar>
| <xil2blockwriterpaddingchar>32</xil2blockwriterpaddingchar>
| <xil2blockwriterblocksize>512</xil2blockwriterblocksize>
| <usessl>False</usessl>
| </csilconfig>
|
Then you can create a connection with:
| ConnectionFactory cf = new ConnectionFactory();
| cf.SetConfigDirectory("full-path-to-csil-conf.xml");
|
| Connection c = cf.CreateConnection();
| c.Error += new OnConnectionErrorHandler(HandleSubscriptionError);
| c.Start();
|
Hope this straightens things out, and thanks for using the xil.
thanks,
fawce
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015813#4015813
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015813
19Â years, 2Â months