473,396 Members | 1,608 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

java.rmi.RemoteException:

oll3i
679 512MB
Expand|Select|Wrap|Line Numbers
  1.  
  2.  
  3. package library.common;
  4.  
  5. import java.sql.ResultSet;
  6.  
  7.  
  8.  
  9.  
  10. public interface LibraryInterface {
  11.   public ResultSet getBookByAuthor(String author);
  12.   public ResultSet getBookByName(String name);
  13.   public ResultSet getBookByISBN(String isbn);
  14.   public ResultSet getAllBooks();
  15. }
  16.  
  17. package library.ejb;
  18. import java.sql.*;
  19. import javax.ejb.*;
  20. import library.common.*;
  21.  
  22. @Stateless @Remote
  23. public class LibraryBean implements LibraryInterface{
  24. ResultSet resultset;
  25. Statement statement;
  26.   public LibraryBean() {
  27.   }
  28.   public ResultSet getBookByAuthor(String author){
  29.       try {
  30.           Class.forName("com.mysql.jdbc.Driver");
  31.  
  32.           //Define URL of database server for
  33.           // database named JunkDB on the localhost
  34.           // with the default port number 3306.
  35.           String url =
  36.                 "jdbc:mysql://localhost:3306/Library";
  37.  
  38.           //Get a connection to the database for a
  39.  
  40.           Connection connection =DriverManager.getConnection(
  41.                             url,"kasia", "pass");
  42.           statement = connection.createStatement();
  43.           resultset =  statement.executeQuery("SELECT * " +
  44.           "from books WHERE author = "+author+" ORDER BY name");
  45.           connection.close();
  46.       }catch( Exception e ) {
  47.               e.printStackTrace();
  48.  
  49.             }//end catch
  50.       return resultset;
  51.   }
  52.   public ResultSet getBookByName(String name){
  53.       try {
  54.           Class.forName("com.mysql.jdbc.Driver");
  55.  
  56.           //Define URL of database server for
  57.           // database named JunkDB on the localhost
  58.           // with the default port number 3306.
  59.           String url =
  60.                 "jdbc:mysql://localhost:3306/Library";
  61.  
  62.           //Get a connection to the database for a
  63.  
  64.           Connection connection =DriverManager.getConnection(
  65.                             url,"kasia", "pass");
  66.           statement = connection.createStatement();
  67.           resultset =  statement.executeQuery("SELECT * " +
  68.           "from books WHERE name ="+name+" ORDER BY name");
  69.           connection.close();
  70.       }catch( Exception e ) {
  71.               e.printStackTrace();
  72.  
  73.             }//end catch
  74.  
  75.       return resultset;
  76.   }
  77.   public ResultSet getBookByISBN(String isbn){
  78.       try {
  79.           Class.forName("com.mysql.jdbc.Driver");
  80.  
  81.           //Define URL of database server for
  82.           // database named JunkDB on the localhost
  83.           // with the default port number 3306.
  84.           String url =
  85.                 "jdbc:mysql://localhost:3306/Library";
  86.  
  87.           //Get a connection to the database for a
  88.  
  89.           Connection connection =DriverManager.getConnection(
  90.                             url,"kasia", "pass");
  91.           statement = connection.createStatement();
  92.           resultset =  statement.executeQuery("SELECT * " +
  93.           "from books WHERE ISBN ="+isbn+" ORDER BY name");
  94.           connection.close();
  95.       }catch( Exception e ) {
  96.               e.printStackTrace();
  97.  
  98.             }//end catch
  99.       return resultset;
  100.   }
  101.   public ResultSet getAllBooks(){
  102.       try {
  103.           Class.forName("com.mysql.jdbc.Driver");
  104.  
  105.           //Define URL of database server for
  106.           // database named JunkDB on the localhost
  107.           // with the default port number 3306.
  108.           String url =
  109.                 "jdbc:mysql://localhost:3306/Library";
  110.  
  111.           //Get a connection to the database for a
  112.  
  113.           Connection connection =DriverManager.getConnection(
  114.                             url,"kasia", "pass");
  115.           statement = connection.createStatement();
  116.           resultset =  statement.executeQuery("SELECT * " +
  117.           "from books ORDER BY name");
  118.           connection.close();
  119.       }catch( Exception e ) {
  120.               e.printStackTrace();
  121.  
  122.             }//end catch
  123.       return resultset;
  124.   }
  125.  
  126.  
  127.  
  128.  
  129.   }
  130.  
  131.  
  132.  
  133.  
  134.  
  135. package library.client;
  136. import java.awt.BorderLayout;
  137. import java.awt.Color;
  138. import java.awt.FlowLayout;
  139. import java.awt.event.ActionEvent;
  140. import java.awt.event.ActionListener;
  141. import java.lang.reflect.Method;
  142. import java.sql.ResultSet;
  143. import javax.ejb.*;
  144. import javax.naming.*;
  145. import javax.swing.*;
  146. import library.common.*;
  147.  
  148.  
  149. @SuppressWarnings("serial")
  150. public class LibraryClient extends JFrame implements ActionListener {
  151.  
  152.   @EJB
  153.   private static LibraryInterface li;
  154.  
  155.   private JTextField book_author = new JTextField(10);
  156.   private JTextField book_title = new JTextField(10);
  157.   private JTextField book_isbn = new JTextField(10);
  158.   private JLabel author_label = new JLabel("Podaj autora:");
  159.   private JLabel book_title_label = new JLabel("Podaj tytul ksiazki");
  160.   private JLabel isbn_label = new JLabel("Podaj ISBN");
  161.   private JTextArea display_books = new JTextArea(20,50);
  162.   private JButton search = new JButton("Search");
  163.   private ResultSet resultset;
  164.   public LibraryClient() {
  165.     this("DEFAULT_CONTEXT");
  166.   }
  167. private JPanel createPanel1(){
  168.      JPanel panel = new JPanel();
  169.      panel.add(author_label);
  170.      panel.add(book_author);
  171.  
  172.      panel.add(book_title_label);
  173.      panel.add(book_title);
  174.  
  175.      panel.add(isbn_label);
  176.      panel.add(book_isbn);
  177.  
  178.      panel.add(search);
  179.  
  180.      search.addActionListener(this);
  181.      return panel;
  182. }
  183. private JPanel createPanel2(){
  184.      JPanel panel = new JPanel();
  185.      panel.add(display_books);
  186.      return panel;
  187. }
  188.  
  189. private JPanel createPanels(){
  190.     JPanel panel = new JPanel();
  191.     //Use default FlowLayout.
  192.     panel.setLayout(new BorderLayout());
  193.     panel.add(createPanel1(), BorderLayout.NORTH);
  194.  
  195.     panel.add(createPanel2(), BorderLayout.SOUTH);
  196.     return panel;
  197. }
  198.   public  LibraryClient(String appType) {
  199.  
  200.     init(appType);
  201.     JFrame frame = new JFrame("Library");
  202.     frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  203. //    /final Table table = new Table();
  204.     frame.setContentPane(createPanels());
  205.     frame.pack();
  206. //    /f.setLocationRelativeTo(null);
  207.     frame.setVisible(true); 
  208.   }
  209.  
  210.   public void actionPerformed(ActionEvent e) {
  211.  
  212.         try {
  213.             display_books.setText("");
  214.             if(!book_author.getText().equals("")){
  215.                 resultset=li.getBookByAuthor(book_author.getText());
  216.  
  217.  
  218.             }else if(!book_title.getText().equals("")){
  219.                 resultset=li.getBookByName(book_title.getText());
  220.             }else if(!book_isbn.getText().equals("")){
  221.                 resultset=li.getBookByISBN(book_isbn.getText());
  222.             }else {
  223.                 resultset=li.getAllBooks();
  224.             }
  225.             while(resultset.next()){
  226.  
  227.                 String name = resultset.getString("name");
  228.                    String author =resultset.getString("author");
  229.                    String isbn = resultset.getString("ISBN");
  230.                    display_books.append("\n"+ name + " " + author +" "+ isbn);
  231.              }
  232.         } catch(Exception exc) { exc.printStackTrace(); }
  233.   }
  234.  
  235.   private void init(String type) {
  236.     if (type.equals("JAVA_APP")) li = new library.ejb.LibraryBean();
  237.     else if (type.equals("JAVA_CLIENT")) {
  238.       try {
  239.         InitialContext ic = new InitialContext();
  240.         li = (LibraryInterface) ic.lookup("library.common.LibraryInterface");
  241.       } catch (NamingException e) {
  242.         e.printStackTrace();
  243.       }
  244.     }
  245.   }
  246.  
  247.  
  248.  
  249.   public static void main(String[] args) {
  250.     if (args.length >= 1) new LibraryClient(args[0]);
  251.     else new LibraryClient();
  252.   }
  253.  
  254.  
  255. }
  256.  

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)

D:\JAVA_P~1\ZAD5_K~1\JAVACL~1>
Jun 6 '07 #1
0 3220

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Benoît | last post by:
Hi, I have a problem with the string array type. I want to send a string array from the php client to the java server (Webservice with SOAP). Here is the code : ----- Java server method : -----...
2
by: Michael | last post by:
Hello I am trying to write a Java-Program which converts a XML-file in a HTML. It should take the Transformation-file from the XML-file itself. Below find a possible XML-file: <?xml...
0
by: Ravi Tallury | last post by:
Hi We are having issues with our application, certain portions of it stop responding while the rest of the application is fine. I am attaching the Java Core dump. If someone can let me know what...
1
by: ptaz | last post by:
Hi I'm trying to run a web page but I get the following error. Ca anyone please tell me a solution to this. Thanks Ptaz HTTP Status 500 - type Exception report
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
2
jeffbroodwar
by: jeffbroodwar | last post by:
i'm currently working on a project about webservices. i tried to create an ordinary service that inserts data to the database. here's the code : ===================================================...
0
by: TraceyAnnison | last post by:
I wonder if you can help me - I'm new to this, and working in a project that has already been configured to work with Axis. We have a Java project built with the Spring framework, in order to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.