CmpTestBean.java
public @Stateless class CmpTestBean implements CmpTest {
  |     @PersistenceContext(unitName = "fids")
  |     protected EntityManager em;
  |     
  |     public void dosomething() {
  |             System.out.println("start");
  |             aodb_chkin_desk ak = new aodb_chkin_desk("A01");
  |             aodb_chkin_desk ab = new aodb_chkin_desk("A02");
  |             if (ak != null){
  |                     System.out.println("find");
  |             }
  |             else
  |             {
  |                     System.out.println("not find");
  |             }
  |             try{
  |                     em.persist(ak);
  |                     em.persist(ab);
  |             }catch(Exception e){
  |                     System.out.println("error");
  |                     e.printStackTrace();
  |             }
  |             System.out.println("ok");
  |     }

15:30:40,905 INFO  [STDOUT] start
  | 15:30:40,905 INFO  [STDOUT] find
  | 15:30:41,065 INFO  [STDOUT] ok
  | 15:30:41,155 ERROR [ServerThread] failed
  | java.net.SocketException: Connection reset
  |         at java.net.SocketInputStream.read(SocketInputStream.java:168)
  |         at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
  |         at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
  |         at 
java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java
  | :2200)
  |         at 
java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(Object
  | InputStream.java:2380)
  |         at 
java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStre
  | am.java:2447)
  |         at 
java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream
  | .java:2519)
  |         at 
java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputSt
  | ream.java:2668)
  |         at java.io.ObjectInputStream.readByte(ObjectInputStream.java:864)
  |         at 
org.jboss.remoting.transport.socket.ServerSocketWrapper.checkConnecti
  | on(ServerSocketWrapper.java:54)
  |         at 
org.jboss.remoting.transport.socket.ServerThread.acknowledge(ServerTh
  | read.java:217)
  |         at 
org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.j
  | ava:298)
  |         at 
org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.jav
  | a:169)

what's wrong?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913497#3913497

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3913497


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to