Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JBoss Eclipse JMS Exception

Reply
Thread Tools

JBoss Eclipse JMS Exception

 
 
jupiter49
Guest
Posts: n/a
 
      02-14-2005
Can anybody help me decipher this exception issue? I'm running Win XP with
Eclipse 3.0.1 and JBoss 4.0.1, trying to make a simplistic JMS client send a
PTP message to a JBoss queue. Eclipse fails at runtime with this:

"log4j:WARN No appenders could be found for logger
(org.jboss.mq.referenceable.SpyConnectionFactoryOb jectFactory)."


JBoss's server.log says this right at the end:

2005-02-13 21:38:16,631 DEBUG
[org.jboss.mq.il.uil2.ServerSocketManagerHandler] Exiting on IOE
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream. java:16
at java.io.BufferedInputStream.fill(BufferedInputStre am.java:183)
at java.io.BufferedInputStream.read(BufferedInputStre am.java:201)
at
org.jboss.util.stream.NotifyingBufferedInputStream .read(NotifyingBufferedInp
utStream.java:67)
at
java.io.ObjectInputStream$PeekInputStream.peek(Obj ectInputStream.java:2133)
at
java.io.ObjectInputStream$BlockDataInputStream.rea dBlockHeader(ObjectInputSt
ream.java:2313)
at
java.io.ObjectInputStream$BlockDataInputStream.ref ill(ObjectInputStream.java
:2380)
at
java.io.ObjectInputStream$BlockDataInputStream.rea d(ObjectInputStream.java:2
452)
at
java.io.ObjectInputStream$BlockDataInputStream.rea dByte(ObjectInputStream.ja
va:2601)
at java.io.ObjectInputStream.readByte(ObjectInputStre am.java:845)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(So cketManager.java:284)
at java.lang.Thread.run(Thread.java:534)
2005-02-13 21:38:16,631 DEBUG [org.jboss.mq.il.uil2.SocketManager] End
ReadTask.run
2005-02-13 21:38:16,631 DEBUG [org.jboss.mq.il.uil2.SocketManager] End
WriteTask.run
**********************

I have a feeling I have not set up my environment correctly, no? My system
CLASSPATH has jbossall-client.jar in it but that's all. I can't tell what
it is that I need from looking at the exception.

My Eclipese BuildPath has these archives:
c:\jboss-4.0.1\client\log4j.jar
c:\jboss-4.0.1\client\concurrent.jar
c:\jboss-4.0.1\client\jboss-common-client.jar
c:\jboss-4.0.1\client\jbossmq-client.jar
c:\jboss-4.0.1\client\jnp-client.jar
c:\j2eesdk1.4\lib\j2ee.jar

Of course, log4j.xml exists in the \conf folders. It's configured as
default with CONSOLE and FILE appenders.

I noticed that my client code seems to find the JNDI stuff because I see it
use port 1099 for the JMS provider. After that is when I get the exception.

Anybody with any help or troubleshooting hints? Thanks ......... paul


 
Reply With Quote
 
 
 
 
jupiter49
Guest
Posts: n/a
 
      02-15-2005
Got it. I didn't instantiate the logger class.

Cool, huh? Where did I get the idea that was optional?


"jupiter49" <> wrote in message
news:B72dnSLgkO5-iI3fRVn-...
> Can anybody help me decipher this exception issue? I'm running Win XP

with
> Eclipse 3.0.1 and JBoss 4.0.1, trying to make a simplistic JMS client send

a
> PTP message to a JBoss queue. Eclipse fails at runtime with this:
>
> "log4j:WARN No appenders could be found for logger
> (org.jboss.mq.referenceable.SpyConnectionFactoryOb jectFactory)."
>
>
> JBoss's server.log says this right at the end:
>
> 2005-02-13 21:38:16,631 DEBUG
> [org.jboss.mq.il.uil2.ServerSocketManagerHandler] Exiting on IOE
> java.net.SocketException: Connection reset
> at java.net.SocketInputStream.read(SocketInputStream. java:16
> at java.io.BufferedInputStream.fill(BufferedInputStre am.java:183)
> at java.io.BufferedInputStream.read(BufferedInputStre am.java:201)
> at
>

org.jboss.util.stream.NotifyingBufferedInputStream .read(NotifyingBufferedInp
> utStream.java:67)
> at
>

java.io.ObjectInputStream$PeekInputStream.peek(Obj ectInputStream.java:2133)
> at
>

java.io.ObjectInputStream$BlockDataInputStream.rea dBlockHeader(ObjectInputSt
> ream.java:2313)
> at
>

java.io.ObjectInputStream$BlockDataInputStream.ref ill(ObjectInputStream.java
> :2380)
> at
>

java.io.ObjectInputStream$BlockDataInputStream.rea d(ObjectInputStream.java:2
> 452)
> at
>

java.io.ObjectInputStream$BlockDataInputStream.rea dByte(ObjectInputStream.ja
> va:2601)
> at java.io.ObjectInputStream.readByte(ObjectInputStre am.java:845)
> at

org.jboss.mq.il.uil2.SocketManager$ReadTask.run(So cketManager.java:284)
> at java.lang.Thread.run(Thread.java:534)
> 2005-02-13 21:38:16,631 DEBUG [org.jboss.mq.il.uil2.SocketManager] End
> ReadTask.run
> 2005-02-13 21:38:16,631 DEBUG [org.jboss.mq.il.uil2.SocketManager] End
> WriteTask.run
> **********************
>
> I have a feeling I have not set up my environment correctly, no? My

system
> CLASSPATH has jbossall-client.jar in it but that's all. I can't tell what
> it is that I need from looking at the exception.
>
> My Eclipese BuildPath has these archives:
> c:\jboss-4.0.1\client\log4j.jar
> c:\jboss-4.0.1\client\concurrent.jar
> c:\jboss-4.0.1\client\jboss-common-client.jar
> c:\jboss-4.0.1\client\jbossmq-client.jar
> c:\jboss-4.0.1\client\jnp-client.jar
> c:\j2eesdk1.4\lib\j2ee.jar
>
> Of course, log4j.xml exists in the \conf folders. It's configured as
> default with CONSOLE and FILE appenders.
>
> I noticed that my client code seems to find the JNDI stuff because I see

it
> use port 1099 for the JMS provider. After that is when I get the

exception.
>
> Anybody with any help or troubleshooting hints? Thanks ......... paul
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
implementing or using jms or running jms without application server ravinder.ggl@gmail.com Java 0 06-26-2007 10:26 AM
Eclipse/Lomboz/JBoss: Cannot Start JBoss (Debug) Server from Eclipse Using Lomboz Plugin Jubz Java 0 05-30-2006 10:24 PM
How to setup JBoss for JMS (not MDB-JMS) ? Thomas Stein Java 0 10-18-2004 09:10 PM
Jboss JMS Max Java 0 04-19-2004 03:43 PM
JMS: JBoss to Weblogic messaging Mayor Curley Java 0 08-25-2003 01:44 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57