• Post Reply Bookmark Topic Watch Topic
  • New Topic

Connection is broken  RSS feed

meka toka
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using JBoss 3.0.2 and am trying to create an entity bean. In this process i am getting the following error
12:47:36,375 ERROR [Klr_LocalHome] Could not create entity
java.sql.SQLException: Connection is broken
at org.hsqldb.Trace.getError(Trace.java:180)
at org.hsqldb.Trace.getError(Trace.java:144)
at org.hsqldb.Trace.error(Trace.java:205)
at org.hsqldb.jdbcConnection.executeHSQL(jdbcConnection.java:904)
at org.hsqldb.jdbcConnection.execute(jdbcConnection.java:718)
at org.hsqldb.jdbcStatement.fetchResult(jdbcStatement.java:686)
at org.hsqldb.jdbcStatement.executeUpdate(jdbcStatement.java:85)
at org.hsqldb.jdbcPreparedStatement.executeUpdate(jdbcPreparedStatement.

Here is the situation
--> The call ( from the client side to server side ) is asynchronous (JMS)
--> I have put some debug statements to confirm the message is going to the server side (session bean) which is trying to create the entity bean "Klr"
--> The session bean trying to access the "Klr" bean is using the default context as both (session and Klr are on same JVM)
--> The data that is being used to create the entity bean is .... 4 Strings and one user defined class (say 'test') .. something like below
klr_local klr = klr_localhome.create(String x, String y, String z, String a, Test test);

--> The class 'test' has been serialized .. (obviously, otherwise the jms message wouldnt reach the server side)
--> The class 'test' has 7 default table models in it, now this looks a bad design .. but my requirement is like that .. i only need to store it and retrieve at a later point .. i am not manipulating with the data on server side.
Any suggestions, hints, advices ...
will appreciate it
Thank You
Meka Toka
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!