0 Replies Latest reply: Jun 6, 2007 9:52 AM by 567558 RSS

    javax.ejb.EJBException: nested exception is: java.rmi.RemoteException:

    567558
      package library.common;
       
      import java.sql.ResultSet;
       
       
       
       
      public interface LibraryInterface {
        public ResultSet getBookByAuthor(String author);
        public ResultSet getBookByName(String name);
        public ResultSet getBookByISBN(String isbn);
        public ResultSet getAllBooks();
      }
       
      package library.ejb;
      import java.sql.*;
      import javax.ejb.*;
      import library.common.*;
       
      @Stateless @Remote
      public class LibraryBean implements LibraryInterface{
      ResultSet resultset;
      Statement statement;
        public LibraryBean() {
        }
        public ResultSet getBookByAuthor(String author){
            try {
                Class.forName("com.mysql.jdbc.Driver");
       
                //Define URL of database server for
                // database named JunkDB on the localhost
                // with the default port number 3306.
                String url =
                      "jdbc:mysql://localhost:3306/Library";
       
                //Get a connection to the database for a
                
                Connection connection =DriverManager.getConnection(
                                  url,"kasia", "pass");
                statement = connection.createStatement();
                resultset =  statement.executeQuery("SELECT * " +
                "from books WHERE author = "+author+" ORDER BY name");
                connection.close();
            }catch( Exception e ) {
                    e.printStackTrace();
                   
                  }//end catch
            return resultset;
        }
        public ResultSet getBookByName(String name){
            try {
                Class.forName("com.mysql.jdbc.Driver");
       
                //Define URL of database server for
                // database named JunkDB on the localhost
                // with the default port number 3306.
                String url =
                      "jdbc:mysql://localhost:3306/Library";
       
                //Get a connection to the database for a
                
                Connection connection =DriverManager.getConnection(
                                  url,"kasia", "pass");
                statement = connection.createStatement();
                resultset =  statement.executeQuery("SELECT * " +
                "from books WHERE name ="+name+" ORDER BY name");
                connection.close();
            }catch( Exception e ) {
                    e.printStackTrace();
                   
                  }//end catch
            
            return resultset;
        }
        public ResultSet getBookByISBN(String isbn){
            try {
                Class.forName("com.mysql.jdbc.Driver");
       
                //Define URL of database server for
                // database named JunkDB on the localhost
                // with the default port number 3306.
                String url =
                      "jdbc:mysql://localhost:3306/Library";
       
                //Get a connection to the database for a
                
                Connection connection =DriverManager.getConnection(
                                  url,"kasia", "pass");
                statement = connection.createStatement();
                resultset =  statement.executeQuery("SELECT * " +
                "from books WHERE ISBN ="+isbn+" ORDER BY name");
                connection.close();
            }catch( Exception e ) {
                    e.printStackTrace();
                   
                  }//end catch
            return resultset;
        }
        public ResultSet getAllBooks(){
            try {
                Class.forName("com.mysql.jdbc.Driver");
       
                //Define URL of database server for
                // database named JunkDB on the localhost
                // with the default port number 3306.
                String url =
                      "jdbc:mysql://localhost:3306/Library";
       
                //Get a connection to the database for a
                
                Connection connection =DriverManager.getConnection(
                                  url,"kasia", "pass");
                statement = connection.createStatement();
                resultset =  statement.executeQuery("SELECT * " +
                "from books ORDER BY name");
                connection.close();
            }catch( Exception e ) {
                    e.printStackTrace();
                   
                  }//end catch
            return resultset;
        }
       
            
        
       
        }
       
       
       
       
       
      package library.client;
      import java.awt.BorderLayout;
      import java.awt.Color;
      import java.awt.FlowLayout;
      import java.awt.event.ActionEvent;
      import java.awt.event.ActionListener;
      import java.lang.reflect.Method;
      import java.sql.ResultSet;
      import javax.ejb.*;
      import javax.naming.*;
      import javax.swing.*;
      import library.common.*;
       
       
      @SuppressWarnings("serial")
      public class LibraryClient extends JFrame implements ActionListener {
       
        @EJB
        private static LibraryInterface li;
       
        private JTextField book_author = new JTextField(10);
        private JTextField book_title = new JTextField(10);
        private JTextField book_isbn = new JTextField(10);
        private JLabel author_label = new JLabel("Podaj autora:");
        private JLabel book_title_label = new JLabel("Podaj tytul ksiazki");
        private JLabel isbn_label = new JLabel("Podaj ISBN");
        private JTextArea display_books = new JTextArea(20,50);
        private JButton search = new JButton("Search");
        private ResultSet resultset;
        public LibraryClient() {
          this("DEFAULT_CONTEXT");
        }
      private JPanel createPanel1(){
           JPanel panel = new JPanel();
           panel.add(author_label);
           panel.add(book_author);
          
           panel.add(book_title_label);
           panel.add(book_title);
           
           panel.add(isbn_label);
           panel.add(book_isbn);
           
           panel.add(search);
           
           search.addActionListener(this);
           return panel;
      }
      private JPanel createPanel2(){
           JPanel panel = new JPanel();
           panel.add(display_books);
           return panel;
      }
       
      private JPanel createPanels(){
          JPanel panel = new JPanel();
          //Use default FlowLayout.
          panel.setLayout(new BorderLayout());
          panel.add(createPanel1(), BorderLayout.NORTH);
          
          panel.add(createPanel2(), BorderLayout.SOUTH);
          return panel;
      }
        public  LibraryClient(String appType) {
          
          init(appType);
          JFrame frame = new JFrame("Library");
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOS  E);
      //    /final Table table = new Table();
          frame.setContentPane(createPanels());
          frame.pack();
      //    /f.setLocationRelativeTo(null);
          frame.setVisible(true); 
        }
       
        public void actionPerformed(ActionEvent e) {
            
              try {
                  display_books.setText("");
                  if(!book_author.getText().equals("")){
                      resultset=li.getBookByAuthor(book_author.getText()  );
                      
                  
                  }else if(!book_title.getText().equals("")){
                      resultset=li.getBookByName(book_title.getText());
                  }else if(!book_isbn.getText().equals("")){
                      resultset=li.getBookByISBN(book_isbn.getText());
                  }else {
                      resultset=li.getAllBooks();
                  }
                  while(resultset.next()){
                      
             String name = resultset.getString("name");
                   String author =resultset.getString("author");
                   String isbn = resultset.getString("ISBN");
                   display_books.append("\n"+ name + " " + author +" "+ isbn);
                }
              } catch(Exception exc) { exc.printStackTrace(); }
        }
       
        private void init(String type) {
          if (type.equals("JAVA_APP")) li = new library.ejb.LibraryBean();
          else if (type.equals("JAVA_CLIENT")) {
            try {
              InitialContext ic = new InitialContext();
              li = (LibraryInterface) ic.lookup("library.common.LibraryInterface");
            } catch (NamingException e) {
              e.printStackTrace();
            }
          }
        }
       
       
       
        public static void main(String[] args) {
          if (args.length >= 1) new LibraryClient(args[0]);
          else new LibraryClient();
        }
       
       
      }
      D:\JAVA_P~1\ZAD5_K~1\JAVACL~1>java -cp .;C:/Sun/SDK/lib/appserv-rt.jar;C:/Sun/SD
      K/lib/javaee.jar; library.client.LibraryClient JAVA_CLIENT
      
      
      when i click the search button i get 
      
      
      javax.ejb.EJBException: nested exception is: java.rmi.RemoteException: CORBA UNK
      NOWN 1398079690 Maybe; nested exception is:
      org.omg.CORBA.UNKNOWN: ----------BEGIN server-side stack trace----------
      
      org.omg.CORBA.UNKNOWN: vmcid: SUN minor code: 202 completed: Maybe
      at com.sun.corba.ee.impl.logging.ORBUtilSystemExcepti on.runtimeexception
      (ORBUtilSystemException.java:8946)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediato rImpl.convertThrowa
      bleToSystemException(CorbaMessageMediatorImpl.java :1943)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediato rImpl.handleThrowab
      leDuringServerDispatch(CorbaMessageMediatorImpl.ja va:1893)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediato rImpl.handleThrowab
      leDuringServerDispatch(CorbaMessageMediatorImpl.ja va:1846)
      at com.sun.corba.ee.impl.protocol.CorbaServerRequestD ispatcherImpl.dispa
      tch(CorbaServerRequestDispatcherImpl.java:263)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediato rImpl.handleRequest
      Request(CorbaMessageMediatorImpl.java:1705)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediato rImpl.handleRequest
      (CorbaMessageMediatorImpl.java:1565)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediato rImpl.handleInput(C
      orbaMessageMediatorImpl.java:947)
      at com.sun.corba.ee.impl.protocol.giopmsgheaders.Requ estMessage_1_2.call
      back(RequestMessage_1_2.java:178)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediato rImpl.handleRequest
      (CorbaMessageMediatorImpl.java:717)
      at com.sun.corba.ee.impl.transport.SocketOrChannelCon nectionImpl.dispatc
      h(SocketOrChannelConnectionImpl.java:473)
      at com.sun.corba.ee.impl.transport.SocketOrChannelCon nectionImpl.doWork(
      SocketOrChannelConnectionImpl.java:1270)
      at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoo lImpl$WorkerThread.
      run(ThreadPoolImpl.java:479)
      Caused by: java.lang.ClassCastException: com.mysql.jdbc.JDBC4ResultSet cannot be
      cast to java.io.Serializable
      at com.sun.corba.ee.impl.presentation.rmi.DynamicMeth odMarshallerImpl$14
      .write(DynamicMethodMarshallerImpl.java:338)
      at com.sun.corba.ee.impl.presentation.rmi.DynamicMeth odMarshallerImpl.wr
      iteResult(DynamicMethodMarshallerImpl.java:430)
      at com.sun.corba.ee.impl.presentation.rmi.ReflectiveT ie._invoke(Reflecti
      veTie.java:125)
      at com.sun.corba.ee.impl.protocol.CorbaServerRequestD ispatcherImpl.dispa
      tchToServant(CorbaServerRequestDispatcherImpl.java :650)
      at com.sun.corba.ee.impl.protocol.CorbaServerRequestD ispatcherImpl.dispa
      tch(CorbaServerRequestDispatcherImpl.java:193)
      ... 8 more
      
      ----------END server-side stack trace---------- vmcid: SUN minor code: 202 com
      pleted: Maybe
      java.rmi.RemoteException: CORBA UNKNOWN 1398079690 Maybe; nested exception is:
      org.omg.CORBA.UNKNOWN: ----------BEGIN server-side stack trace----------
      
      org.omg.CORBA.UNKNOWN: vmcid: SUN minor code: 202 completed: Maybe
      at com.sun.corba.ee.impl.logging.ORBUtilSystemExcepti on.runtimeexception
      (ORBUtilSystemException.java:8946)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediato rImpl.convertThrowa
      bleToSystemException(CorbaMessageMediatorImpl.java :1943)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediato rImpl.handleThrowab
      leDuringServerDispatch(CorbaMessageMediatorImpl.ja va:1893)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediato rImpl.handleThrowab
      leDuringServerDispatch(CorbaMessageMediatorImpl.ja va:1846)
      at com.sun.corba.ee.impl.protocol.CorbaServerRequestD ispatcherImpl.dispa
      tch(CorbaServerRequestDispatcherImpl.java:263)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediato rImpl.handleRequest
      Request(CorbaMessageMediatorImpl.java:1705)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediato rImpl.handleRequest
      (CorbaMessageMediatorImpl.java:1565)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediato rImpl.handleInput(C
      orbaMessageMediatorImpl.java:947)
      at com.sun.corba.ee.impl.protocol.giopmsgheaders.Requ estMessage_1_2.call
      back(RequestMessage_1_2.java:178)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediato rImpl.handleRequest
      (CorbaMessageMediatorImpl.java:717)
      at com.sun.corba.ee.impl.transport.SocketOrChannelCon nectionImpl.dispatc
      h(SocketOrChannelConnectionImpl.java:473)
      at com.sun.corba.ee.impl.transport.SocketOrChannelCon nectionImpl.doWork(
      SocketOrChannelConnectionImpl.java:1270)
      at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoo lImpl$WorkerThread.
      run(ThreadPoolImpl.java:479)
      Caused by: java.lang.ClassCastException: com.mysql.jdbc.JDBC4ResultSet cannot be
      cast to java.io.Serializable
      at com.sun.corba.ee.impl.presentation.rmi.DynamicMeth odMarshallerImpl$14
      .write(DynamicMethodMarshallerImpl.java:338)
      at com.sun.corba.ee.impl.presentation.rmi.DynamicMeth odMarshallerImpl.wr
      iteResult(DynamicMethodMarshallerImpl.java:430)
      at com.sun.corba.ee.impl.presentation.rmi.ReflectiveT ie._invoke(Reflecti
      veTie.java:125)
      at com.sun.corba.ee.impl.protocol.CorbaServerRequestD ispatcherImpl.dispa
      tchToServant(CorbaServerRequestDispatcherImpl.java :650)
      at com.sun.corba.ee.impl.protocol.CorbaServerRequestD ispatcherImpl.dispa
      tch(CorbaServerRequestDispatcherImpl.java:193)
      ... 8 more
      
      ----------END server-side stack trace---------- vmcid: SUN minor code: 202 com
      pleted: Maybe
      at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSyst emException(Util.ja
      va:309)
      at com.sun.corba.ee.impl.presentation.rmi.StubInvocat ionHandlerImpl.priv
      ateInvoke(StubInvocationHandlerImpl.java:172)
      at com.sun.corba.ee.impl.presentation.rmi.StubInvocat ionHandlerImpl.invo
      ke(StubInvocationHandlerImpl.java:119)
      at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELSt ubBase.invoke(BCELS
      tubBase.java:197)
      at library.common.__LibraryInterface_Remote_DynamicSt ub.getAllBooks(__Li
      braryInterface_Remote_DynamicStub.java)
      at library.common._LibraryInterface_Wrapper.getAllBoo ks(library.common._
      LibraryInterface_Wrapper.java)
      at library.client.LibraryClient.actionPerformed(Libra ryClient.java)
      at javax.swing.AbstractButton.fireActionPerformed(Abs tractButton.java:19
      95)
      at javax.swing.AbstractButton$Handler.actionPerformed (AbstractButton.jav
      a:2318)
      at javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel
      .java:387)
      at javax.swing.DefaultButtonModel.setPressed(DefaultB uttonModel.java:242
      )
      at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(BasicButtonL
      istener.java:236)
      at java.awt.Component.processMouseEvent(Component.jav a:6038)
      at javax.swing.JComponent.processMouseEvent(JComponen t.java:3260)
      at java.awt.Component.processEvent(Component.java:580 3)
      at java.awt.Container.processEvent(Container.java:205 8)
      at java.awt.Component.dispatchEventImpl(Component.jav a:4410)
      at java.awt.Container.dispatchEventImpl(Container.jav a:2116)
      at java.awt.Component.dispatchEvent(Component.java:42 40)
      at java.awt.LightweightDispatcher.retargetMouseEvent( Container.java:4322
      )
      at java.awt.LightweightDispatcher.processMouseEvent(C ontainer.java:3986)
      
      at java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java:3916)
      at java.awt.Container.dispatchEventImpl(Container.jav a:2102)
      at java.awt.Window.dispatchEventImpl(Window.java:2429 )
      at java.awt.Component.dispatchEvent(Component.java:42 40)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java: 599)
      at java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThre
      ad.java:273)
      at java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.
      java:183)
      at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThre
      ad.java:173)
      at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:168)
      
      at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:160)
      
      at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:121)
      Caused by: org.omg.CORBA.UNKNOWN: ----------BEGIN server-side stack trace-------
      ---
      org.omg.CORBA.UNKNOWN: vmcid: SUN minor code: 202 completed: Maybe
      at com.sun.corba.ee.impl.logging.ORBUtilSystemExcepti on.runtimeexception
      (ORBUtilSystemException.java:8946)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediato rImpl.convertThrowa
      bleToSystemException(CorbaMessageMediatorImpl.java :1943)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediato rImpl.handleThrowab
      leDuringServerDispatch(CorbaMessageMediatorImpl.ja va:1893)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediato rImpl.handleThrowab
      leDuringServerDispatch(CorbaMessageMediatorImpl.ja va:1846)
      at com.sun.corba.ee.impl.protocol.CorbaServerRequestD ispatcherImpl.dispa
      tch(CorbaServerRequestDispatcherImpl.java:263)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediato rImpl.handleRequest
      Request(CorbaMessageMediatorImpl.java:1705)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediato rImpl.handleRequest
      (CorbaMessageMediatorImpl.java:1565)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediato rImpl.handleInput(C
      orbaMessageMediatorImpl.java:947)
      at com.sun.corba.ee.impl.protocol.giopmsgheaders.Requ estMessage_1_2.call
      back(RequestMessage_1_2.java:178)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediato rImpl.handleRequest
      (CorbaMessageMediatorImpl.java:717)
      at com.sun.corba.ee.impl.transport.SocketOrChannelCon nectionImpl.dispatc
      h(SocketOrChannelConnectionImpl.java:473)
      at com.sun.corba.ee.impl.transport.SocketOrChannelCon nectionImpl.doWork(
      SocketOrChannelConnectionImpl.java:1270)
      at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoo lImpl$WorkerThread.
      run(ThreadPoolImpl.java:479)
      Caused by: java.lang.ClassCastException: com.mysql.jdbc.JDBC4ResultSet cannot be
      cast to java.io.Serializable
      at com.sun.corba.ee.impl.presentation.rmi.DynamicMeth odMarshallerImpl$14
      .write(DynamicMethodMarshallerImpl.java:338)
      at com.sun.corba.ee.impl.presentation.rmi.DynamicMeth odMarshallerImpl.wr
      iteResult(DynamicMethodMarshallerImpl.java:430)
      at com.sun.corba.ee.impl.presentation.rmi.ReflectiveT ie._invoke(Reflecti
      veTie.java:125)
      at com.sun.corba.ee.impl.protocol.CorbaServerRequestD ispatcherImpl.dispa
      tchToServant(CorbaServerRequestDispatcherImpl.java :650)
      at com.sun.corba.ee.impl.protocol.CorbaServerRequestD ispatcherImpl.dispa
      tch(CorbaServerRequestDispatcherImpl.java:193)
      ... 8 more
      
      ----------END server-side stack trace---------- vmcid: SUN minor code: 202 com
      pleted: Maybe
      at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
      
      at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstruct
      orAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingC
      onstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Construc tor.java:513)
      at com.sun.corba.ee.impl.protocol.giopmsgheaders.Mess ageBase.getSystemEx
      ception(MessageBase.java:933)
      at com.sun.corba.ee.impl.protocol.giopmsgheaders.Repl yMessage_1_2.getSys
      temException(ReplyMessage_1_2.java:100)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediato rImpl.getSystemExce
      ptionReply(CorbaMessageMediatorImpl.java:593)
      at com.sun.corba.ee.impl.protocol.CorbaClientRequestD ispatcherImpl.proce
      ssResponse(CorbaClientRequestDispatcherImpl.java:4 29)
      at com.sun.corba.ee.impl.protocol.CorbaClientRequestD ispatcherImpl.marsh
      alingComplete(CorbaClientRequestDispatcherImpl.jav a:321)
      at com.sun.corba.ee.impl.protocol.CorbaClientDelegate Impl.invoke(CorbaCl
      ientDelegateImpl.java:194)
      at com.sun.corba.ee.impl.presentation.rmi.StubInvocat ionHandlerImpl.priv
      ateInvoke(StubInvocationHandlerImpl.java:159)
      ... 30 more
      javax.ejb.EJBException: nested exception is: java.rmi.RemoteException: CORBA UNK
      NOWN 1398079690 Maybe; nested exception is:
      org.omg.CORBA.UNKNOWN: ----------BEGIN server-side stack trace----------
      
      org.omg.CORBA.UNKNOWN: vmcid: SUN minor code: 202 completed: Maybe
      at com.sun.corba.ee.impl.logging.ORBUtilSystemExcepti on.runtimeexception
      (ORBUtilSystemException.java:8946)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediato rImpl.convertThrowa
      bleToSystemException(CorbaMessageMediatorImpl.java :1943)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediato rImpl.handleThrowab
      leDuringServerDispatch(CorbaMessageMediatorImpl.ja va:1893)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediato rImpl.handleThrowab
      leDuringServerDispatch(CorbaMessageMediatorImpl.ja va:1846)
      at com.sun.corba.ee.impl.protocol.CorbaServerRequestD ispatcherImpl.dispa
      tch(CorbaServerRequestDispatcherImpl.java:263)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediato rImpl.handleRequest
      Request(CorbaMessageMediatorImpl.java:1705)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediato rImpl.handleRequest
      (CorbaMessageMediatorImpl.java:1565)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediato rImpl.handleInput(C
      orbaMessageMediatorImpl.java:947)
      at com.sun.corba.ee.impl.protocol.giopmsgheaders.Requ estMessage_1_2.call
      back(RequestMessage_1_2.java:178)
      at com.sun.corba.ee.impl.protocol.CorbaMessageMediato rImpl.handleRequest
      (CorbaMessageMediatorImpl.java:717)
      at com.sun.corba.ee.impl.transport.SocketOrChannelCon nectionImpl.dispatc
      h(SocketOrChannelConnectionImpl.java:473)
      at com.sun.corba.ee.impl.transport.SocketOrChannelCon nectionImpl.doWork(
      SocketOrChannelConnectionImpl.java:1270)
      at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoo lImpl$WorkerThread.
      run(ThreadPoolImpl.java:479)
      Caused by: java.lang.ClassCastException: com.mysql.jdbc.JDBC4ResultSet cannot be
      cast to java.io.Serializable
      at com.sun.corba.ee.impl.presentation.rmi.DynamicMeth odMarshallerImpl$14
      .write(DynamicMethodMarshallerImpl.java:338)
      at com.sun.corba.ee.impl.presentation.rmi.DynamicMeth odMarshallerImpl.wr
      iteResult(DynamicMethodMarshallerImpl.java:430)
      at com.sun.corba.ee.impl.presentation.rmi.ReflectiveT ie._invoke(Reflecti
      veTie.java:125)
      at com.sun.corba.ee.impl.protocol.CorbaServerRequestD ispatcherImpl.dispa
      tchToServant(CorbaServerRequestDispatcherImpl.java :650)
      at com.sun.corba.ee.impl.protocol.CorbaServerRequestD ispatcherImpl.dispa
      tch(CorbaServerRequestDispatcherImpl.java:193)
      ... 8 more
      
      ----------END server-side stack trace---------- vmcid: SUN minor code: 202 com
      pleted: Maybe
      at library.common._LibraryInterface_Wrapper.getAllBoo ks(library.common._
      LibraryInterface_Wrapper.java)
      at library.client.LibraryClient.actionPerformed(Libra ryClient.java)
      at javax.swing.AbstractButton.fireActionPerformed(Abs tractButton.java:19
      95)
      at javax.swing.AbstractButton$Handler.actionPerformed (AbstractButton.jav
      a:2318)
      at javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel
      .java:387)
      at javax.swing.DefaultButtonModel.setPressed(DefaultB uttonModel.java:242
      )
      at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(BasicButtonL
      istener.java:236)
      at java.awt.Component.processMouseEvent(Component.jav a:6038)
      at javax.swing.JComponent.processMouseEvent(JComponen t.java:3260)
      at java.awt.Component.processEvent(Component.java:580 3)
      at java.awt.Container.processEvent(Container.java:205 8)
      at java.awt.Component.dispatchEventImpl(Component.jav a:4410)
      at java.awt.Container.dispatchEventImpl(Container.jav a:2116)
      at java.awt.Component.dispatchEvent(Component.java:42 40)
      at java.awt.LightweightDispatcher.retargetMouseEvent( Container.java:4322
      )
      at java.awt.LightweightDispatcher.processMouseEvent(C ontainer.java:3986)
      
      at java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java:3916)
      at java.awt.Container.dispatchEventImpl(Container.jav a:2102)
      at java.awt.Window.dispatchEventImpl(Window.java:2429 )
      at java.awt.Component.dispatchEvent(Component.java:42 40)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java: 599)
      at java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThre
      ad.java:273)
      at java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.
      java:183)
      at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThre
      ad.java:173)
      at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:168)
      
      at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:160)
      
      at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:121)