473,725 Members | 1,782 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

java.rmi.Remote Exception:

oll3i
679 Contributor
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\ZAD 5_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.EJBEx ception: nested exception is: java.rmi.Remote Exception: CORBA UNK
NOWN 1398079690 Maybe; nested exception is:
org.omg.CORBA.U NKNOWN: ----------BEGIN server-side stack trace----------

org.omg.CORBA.U NKNOWN: vmcid: SUN minor code: 202 completed: Maybe
at com.sun.corba.e e.impl.logging. ORBUtilSystemEx ception.runtime exception
(ORBUtilSystemE xception.java:8 946)
at com.sun.corba.e e.impl.protocol .CorbaMessageMe diatorImpl.conv ertThrowa
bleToSystemExce ption(CorbaMess ageMediatorImpl .java:1943)
at com.sun.corba.e e.impl.protocol .CorbaMessageMe diatorImpl.hand leThrowab
leDuringServerD ispatch(CorbaMe ssageMediatorIm pl.java:1893)
at com.sun.corba.e e.impl.protocol .CorbaMessageMe diatorImpl.hand leThrowab
leDuringServerD ispatch(CorbaMe ssageMediatorIm pl.java:1846)
at com.sun.corba.e e.impl.protocol .CorbaServerReq uestDispatcherI mpl.dispa
tch(CorbaServer RequestDispatch erImpl.java:263 )
at com.sun.corba.e e.impl.protocol .CorbaMessageMe diatorImpl.hand leRequest
Request(CorbaMe ssageMediatorIm pl.java:1705)
at com.sun.corba.e e.impl.protocol .CorbaMessageMe diatorImpl.hand leRequest
(CorbaMessageMe diatorImpl.java :1565)
at com.sun.corba.e e.impl.protocol .CorbaMessageMe diatorImpl.hand leInput(C
orbaMessageMedi atorImpl.java:9 47)
at com.sun.corba.e e.impl.protocol .giopmsgheaders .RequestMessage _1_2.call
back(RequestMes sage_1_2.java:1 78)
at com.sun.corba.e e.impl.protocol .CorbaMessageMe diatorImpl.hand leRequest
(CorbaMessageMe diatorImpl.java :717)
at com.sun.corba.e e.impl.transpor t.SocketOrChann elConnectionImp l.dispatc
h(SocketOrChann elConnectionImp l.java:473)
at com.sun.corba.e e.impl.transpor t.SocketOrChann elConnectionImp l.doWork(
SocketOrChannel ConnectionImpl. java:1270)
at com.sun.corba.e e.impl.orbutil. threadpool.Thre adPoolImpl$Work erThread.
run(ThreadPoolI mpl.java:479)
Caused by: java.lang.Class CastException: com.mysql.jdbc. JDBC4ResultSet cannot be
cast to java.io.Seriali zable
at com.sun.corba.e e.impl.presenta tion.rmi.Dynami cMethodMarshall erImpl$14
.write(DynamicM ethodMarshaller Impl.java:338)
at com.sun.corba.e e.impl.presenta tion.rmi.Dynami cMethodMarshall erImpl.wr
iteResult(Dynam icMethodMarshal lerImpl.java:43 0)
at com.sun.corba.e e.impl.presenta tion.rmi.Reflec tiveTie._invoke (Reflecti
veTie.java:125)
at com.sun.corba.e e.impl.protocol .CorbaServerReq uestDispatcherI mpl.dispa
tchToServant(Co rbaServerReques tDispatcherImpl .java:650)
at com.sun.corba.e e.impl.protocol .CorbaServerReq uestDispatcherI mpl.dispa
tch(CorbaServer RequestDispatch erImpl.java:193 )
... 8 more

----------END server-side stack trace---------- vmcid: SUN minor code: 202 com
pleted: Maybe
java.rmi.Remote Exception: CORBA UNKNOWN 1398079690 Maybe; nested exception is:
org.omg.CORBA.U NKNOWN: ----------BEGIN server-side stack trace----------

org.omg.CORBA.U NKNOWN: vmcid: SUN minor code: 202 completed: Maybe
at com.sun.corba.e e.impl.logging. ORBUtilSystemEx ception.runtime exception
(ORBUtilSystemE xception.java:8 946)
at com.sun.corba.e e.impl.protocol .CorbaMessageMe diatorImpl.conv ertThrowa
bleToSystemExce ption(CorbaMess ageMediatorImpl .java:1943)
at com.sun.corba.e e.impl.protocol .CorbaMessageMe diatorImpl.hand leThrowab
leDuringServerD ispatch(CorbaMe ssageMediatorIm pl.java:1893)
at com.sun.corba.e e.impl.protocol .CorbaMessageMe diatorImpl.hand leThrowab
leDuringServerD ispatch(CorbaMe ssageMediatorIm pl.java:1846)
at com.sun.corba.e e.impl.protocol .CorbaServerReq uestDispatcherI mpl.dispa
tch(CorbaServer RequestDispatch erImpl.java:263 )
at com.sun.corba.e e.impl.protocol .CorbaMessageMe diatorImpl.hand leRequest
Request(CorbaMe ssageMediatorIm pl.java:1705)
at com.sun.corba.e e.impl.protocol .CorbaMessageMe diatorImpl.hand leRequest
(CorbaMessageMe diatorImpl.java :1565)
at com.sun.corba.e e.impl.protocol .CorbaMessageMe diatorImpl.hand leInput(C
orbaMessageMedi atorImpl.java:9 47)
at com.sun.corba.e e.impl.protocol .giopmsgheaders .RequestMessage _1_2.call
back(RequestMes sage_1_2.java:1 78)
at com.sun.corba.e e.impl.protocol .CorbaMessageMe diatorImpl.hand leRequest
(CorbaMessageMe diatorImpl.java :717)
at com.sun.corba.e e.impl.transpor t.SocketOrChann elConnectionImp l.dispatc
h(SocketOrChann elConnectionImp l.java:473)
at com.sun.corba.e e.impl.transpor t.SocketOrChann elConnectionImp l.doWork(
SocketOrChannel ConnectionImpl. java:1270)
at com.sun.corba.e e.impl.orbutil. threadpool.Thre adPoolImpl$Work erThread.
run(ThreadPoolI mpl.java:479)
Caused by: java.lang.Class CastException: com.mysql.jdbc. JDBC4ResultSet cannot be
cast to java.io.Seriali zable
at com.sun.corba.e e.impl.presenta tion.rmi.Dynami cMethodMarshall erImpl$14
.write(DynamicM ethodMarshaller Impl.java:338)
at com.sun.corba.e e.impl.presenta tion.rmi.Dynami cMethodMarshall erImpl.wr
iteResult(Dynam icMethodMarshal lerImpl.java:43 0)
at com.sun.corba.e e.impl.presenta tion.rmi.Reflec tiveTie._invoke (Reflecti
veTie.java:125)
at com.sun.corba.e e.impl.protocol .CorbaServerReq uestDispatcherI mpl.dispa
tchToServant(Co rbaServerReques tDispatcherImpl .java:650)
at com.sun.corba.e e.impl.protocol .CorbaServerReq uestDispatcherI mpl.dispa
tch(CorbaServer RequestDispatch erImpl.java:193 )
... 8 more

----------END server-side stack trace---------- vmcid: SUN minor code: 202 com
pleted: Maybe
at com.sun.corba.e e.impl.javax.rm i.CORBA.Util.ma pSystemExceptio n(Util.ja
va:309)
at com.sun.corba.e e.impl.presenta tion.rmi.StubIn vocationHandler Impl.priv
ateInvoke(StubI nvocationHandle rImpl.java:172)
at com.sun.corba.e e.impl.presenta tion.rmi.StubIn vocationHandler Impl.invo
ke(StubInvocati onHandlerImpl.j ava:119)
at com.sun.corba.e e.impl.presenta tion.rmi.bcel.B CELStubBase.inv oke(BCELS
tubBase.java:19 7)
at library.common. __LibraryInterf ace_Remote_Dyna micStub.getAllB ooks(__Li
braryInterface_ Remote_DynamicS tub.java)
at library.common. _LibraryInterfa ce_Wrapper.getA llBooks(library .common._
LibraryInterfac e_Wrapper.java)
at library.client. LibraryClient.a ctionPerformed( LibraryClient.j ava)
at javax.swing.Abs tractButton.fir eActionPerforme d(AbstractButto n.java:19
95)
at javax.swing.Abs tractButton$Han dler.actionPerf ormed(AbstractB utton.jav
a:2318)
at javax.swing.Def aultButtonModel .fireActionPerf ormed(DefaultBu ttonModel
.java:387)
at javax.swing.Def aultButtonModel .setPressed(Def aultButtonModel .java:242
)
at javax.swing.pla f.basic.BasicBu ttonListener.mo useReleased(Bas icButtonL
istener.java:23 6)
at java.awt.Compon ent.processMous eEvent(Componen t.java:6038)
at javax.swing.JCo mponent.process MouseEvent(JCom ponent.java:326 0)
at java.awt.Compon ent.processEven t(Component.jav a:5803)
at java.awt.Contai ner.processEven t(Container.jav a:2058)
at java.awt.Compon ent.dispatchEve ntImpl(Componen t.java:4410)
at java.awt.Contai ner.dispatchEve ntImpl(Containe r.java:2116)
at java.awt.Compon ent.dispatchEve nt(Component.ja va:4240)
at java.awt.Lightw eightDispatcher .retargetMouseE vent(Container. java:4322
)
at java.awt.Lightw eightDispatcher .processMouseEv ent(Container.j ava:3986)

at java.awt.Lightw eightDispatcher .dispatchEvent( Container.java: 3916)
at java.awt.Contai ner.dispatchEve ntImpl(Containe r.java:2102)
at java.awt.Window .dispatchEventI mpl(Window.java :2429)
at java.awt.Compon ent.dispatchEve nt(Component.ja va:4240)
at java.awt.EventQ ueue.dispatchEv ent(EventQueue. java:599)
at java.awt.EventD ispatchThread.p umpOneEventForF ilters(EventDis patchThre
ad.java:273)
at java.awt.EventD ispatchThread.p umpEventsForFil ter(EventDispat chThread.
java:183)
at java.awt.EventD ispatchThread.p umpEventsForHie rarchy(EventDis patchThre
ad.java:173)
at java.awt.EventD ispatchThread.p umpEvents(Event DispatchThread. java:168)

at java.awt.EventD ispatchThread.p umpEvents(Event DispatchThread. java:160)

at java.awt.EventD ispatchThread.r un(EventDispatc hThread.java:12 1)
Caused by: org.omg.CORBA.U NKNOWN: ----------BEGIN server-side stack trace-------
---
org.omg.CORBA.U NKNOWN: vmcid: SUN minor code: 202 completed: Maybe
at com.sun.corba.e e.impl.logging. ORBUtilSystemEx ception.runtime exception
(ORBUtilSystemE xception.java:8 946)
at com.sun.corba.e e.impl.protocol .CorbaMessageMe diatorImpl.conv ertThrowa
bleToSystemExce ption(CorbaMess ageMediatorImpl .java:1943)
at com.sun.corba.e e.impl.protocol .CorbaMessageMe diatorImpl.hand leThrowab
leDuringServerD ispatch(CorbaMe ssageMediatorIm pl.java:1893)
at com.sun.corba.e e.impl.protocol .CorbaMessageMe diatorImpl.hand leThrowab
leDuringServerD ispatch(CorbaMe ssageMediatorIm pl.java:1846)
at com.sun.corba.e e.impl.protocol .CorbaServerReq uestDispatcherI mpl.dispa
tch(CorbaServer RequestDispatch erImpl.java:263 )
at com.sun.corba.e e.impl.protocol .CorbaMessageMe diatorImpl.hand leRequest
Request(CorbaMe ssageMediatorIm pl.java:1705)
at com.sun.corba.e e.impl.protocol .CorbaMessageMe diatorImpl.hand leRequest
(CorbaMessageMe diatorImpl.java :1565)
at com.sun.corba.e e.impl.protocol .CorbaMessageMe diatorImpl.hand leInput(C
orbaMessageMedi atorImpl.java:9 47)
at com.sun.corba.e e.impl.protocol .giopmsgheaders .RequestMessage _1_2.call
back(RequestMes sage_1_2.java:1 78)
at com.sun.corba.e e.impl.protocol .CorbaMessageMe diatorImpl.hand leRequest
(CorbaMessageMe diatorImpl.java :717)
at com.sun.corba.e e.impl.transpor t.SocketOrChann elConnectionImp l.dispatc
h(SocketOrChann elConnectionImp l.java:473)
at com.sun.corba.e e.impl.transpor t.SocketOrChann elConnectionImp l.doWork(
SocketOrChannel ConnectionImpl. java:1270)
at com.sun.corba.e e.impl.orbutil. threadpool.Thre adPoolImpl$Work erThread.
run(ThreadPoolI mpl.java:479)
Caused by: java.lang.Class CastException: com.mysql.jdbc. JDBC4ResultSet cannot be
cast to java.io.Seriali zable
at com.sun.corba.e e.impl.presenta tion.rmi.Dynami cMethodMarshall erImpl$14
.write(DynamicM ethodMarshaller Impl.java:338)
at com.sun.corba.e e.impl.presenta tion.rmi.Dynami cMethodMarshall erImpl.wr
iteResult(Dynam icMethodMarshal lerImpl.java:43 0)
at com.sun.corba.e e.impl.presenta tion.rmi.Reflec tiveTie._invoke (Reflecti
veTie.java:125)
at com.sun.corba.e e.impl.protocol .CorbaServerReq uestDispatcherI mpl.dispa
tchToServant(Co rbaServerReques tDispatcherImpl .java:650)
at com.sun.corba.e e.impl.protocol .CorbaServerReq uestDispatcherI mpl.dispa
tch(CorbaServer RequestDispatch erImpl.java:193 )
... 8 more

----------END server-side stack trace---------- vmcid: SUN minor code: 202 com
pleted: Maybe
at sun.reflect.Nat iveConstructorA ccessorImpl.new Instance0(Nativ e Method)

at sun.reflect.Nat iveConstructorA ccessorImpl.new Instance(Native Construct
orAccessorImpl. java:39)
at sun.reflect.Del egatingConstruc torAccessorImpl .newInstance(De legatingC
onstructorAcces sorImpl.java:27 )
at java.lang.refle ct.Constructor. newInstance(Con structor.java:5 13)
at com.sun.corba.e e.impl.protocol .giopmsgheaders .MessageBase.ge tSystemEx
ception(Message Base.java:933)
at com.sun.corba.e e.impl.protocol .giopmsgheaders .ReplyMessage_1 _2.getSys
temException(Re plyMessage_1_2. java:100)
at com.sun.corba.e e.impl.protocol .CorbaMessageMe diatorImpl.getS ystemExce
ptionReply(Corb aMessageMediato rImpl.java:593)
at com.sun.corba.e e.impl.protocol .CorbaClientReq uestDispatcherI mpl.proce
ssResponse(Corb aClientRequestD ispatcherImpl.j ava:429)
at com.sun.corba.e e.impl.protocol .CorbaClientReq uestDispatcherI mpl.marsh
alingComplete(C orbaClientReque stDispatcherImp l.java:321)
at com.sun.corba.e e.impl.protocol .CorbaClientDel egateImpl.invok e(CorbaCl
ientDelegateImp l.java:194)
at com.sun.corba.e e.impl.presenta tion.rmi.StubIn vocationHandler Impl.priv
ateInvoke(StubI nvocationHandle rImpl.java:159)
... 30 more
javax.ejb.EJBEx ception: nested exception is: java.rmi.Remote Exception: CORBA UNK
NOWN 1398079690 Maybe; nested exception is:
org.omg.CORBA.U NKNOWN: ----------BEGIN server-side stack trace----------

org.omg.CORBA.U NKNOWN: vmcid: SUN minor code: 202 completed: Maybe
at com.sun.corba.e e.impl.logging. ORBUtilSystemEx ception.runtime exception
(ORBUtilSystemE xception.java:8 946)
at com.sun.corba.e e.impl.protocol .CorbaMessageMe diatorImpl.conv ertThrowa
bleToSystemExce ption(CorbaMess ageMediatorImpl .java:1943)
at com.sun.corba.e e.impl.protocol .CorbaMessageMe diatorImpl.hand leThrowab
leDuringServerD ispatch(CorbaMe ssageMediatorIm pl.java:1893)
at com.sun.corba.e e.impl.protocol .CorbaMessageMe diatorImpl.hand leThrowab
leDuringServerD ispatch(CorbaMe ssageMediatorIm pl.java:1846)
at com.sun.corba.e e.impl.protocol .CorbaServerReq uestDispatcherI mpl.dispa
tch(CorbaServer RequestDispatch erImpl.java:263 )
at com.sun.corba.e e.impl.protocol .CorbaMessageMe diatorImpl.hand leRequest
Request(CorbaMe ssageMediatorIm pl.java:1705)
at com.sun.corba.e e.impl.protocol .CorbaMessageMe diatorImpl.hand leRequest
(CorbaMessageMe diatorImpl.java :1565)
at com.sun.corba.e e.impl.protocol .CorbaMessageMe diatorImpl.hand leInput(C
orbaMessageMedi atorImpl.java:9 47)
at com.sun.corba.e e.impl.protocol .giopmsgheaders .RequestMessage _1_2.call
back(RequestMes sage_1_2.java:1 78)
at com.sun.corba.e e.impl.protocol .CorbaMessageMe diatorImpl.hand leRequest
(CorbaMessageMe diatorImpl.java :717)
at com.sun.corba.e e.impl.transpor t.SocketOrChann elConnectionImp l.dispatc
h(SocketOrChann elConnectionImp l.java:473)
at com.sun.corba.e e.impl.transpor t.SocketOrChann elConnectionImp l.doWork(
SocketOrChannel ConnectionImpl. java:1270)
at com.sun.corba.e e.impl.orbutil. threadpool.Thre adPoolImpl$Work erThread.
run(ThreadPoolI mpl.java:479)
Caused by: java.lang.Class CastException: com.mysql.jdbc. JDBC4ResultSet cannot be
cast to java.io.Seriali zable
at com.sun.corba.e e.impl.presenta tion.rmi.Dynami cMethodMarshall erImpl$14
.write(DynamicM ethodMarshaller Impl.java:338)
at com.sun.corba.e e.impl.presenta tion.rmi.Dynami cMethodMarshall erImpl.wr
iteResult(Dynam icMethodMarshal lerImpl.java:43 0)
at com.sun.corba.e e.impl.presenta tion.rmi.Reflec tiveTie._invoke (Reflecti
veTie.java:125)
at com.sun.corba.e e.impl.protocol .CorbaServerReq uestDispatcherI mpl.dispa
tchToServant(Co rbaServerReques tDispatcherImpl .java:650)
at com.sun.corba.e e.impl.protocol .CorbaServerReq uestDispatcherI mpl.dispa
tch(CorbaServer RequestDispatch erImpl.java:193 )
... 8 more

----------END server-side stack trace---------- vmcid: SUN minor code: 202 com
pleted: Maybe
at library.common. _LibraryInterfa ce_Wrapper.getA llBooks(library .common._
LibraryInterfac e_Wrapper.java)
at library.client. LibraryClient.a ctionPerformed( LibraryClient.j ava)
at javax.swing.Abs tractButton.fir eActionPerforme d(AbstractButto n.java:19
95)
at javax.swing.Abs tractButton$Han dler.actionPerf ormed(AbstractB utton.jav
a:2318)
at javax.swing.Def aultButtonModel .fireActionPerf ormed(DefaultBu ttonModel
.java:387)
at javax.swing.Def aultButtonModel .setPressed(Def aultButtonModel .java:242
)
at javax.swing.pla f.basic.BasicBu ttonListener.mo useReleased(Bas icButtonL
istener.java:23 6)
at java.awt.Compon ent.processMous eEvent(Componen t.java:6038)
at javax.swing.JCo mponent.process MouseEvent(JCom ponent.java:326 0)
at java.awt.Compon ent.processEven t(Component.jav a:5803)
at java.awt.Contai ner.processEven t(Container.jav a:2058)
at java.awt.Compon ent.dispatchEve ntImpl(Componen t.java:4410)
at java.awt.Contai ner.dispatchEve ntImpl(Containe r.java:2116)
at java.awt.Compon ent.dispatchEve nt(Component.ja va:4240)
at java.awt.Lightw eightDispatcher .retargetMouseE vent(Container. java:4322
)
at java.awt.Lightw eightDispatcher .processMouseEv ent(Container.j ava:3986)

at java.awt.Lightw eightDispatcher .dispatchEvent( Container.java: 3916)
at java.awt.Contai ner.dispatchEve ntImpl(Containe r.java:2102)
at java.awt.Window .dispatchEventI mpl(Window.java :2429)
at java.awt.Compon ent.dispatchEve nt(Component.ja va:4240)
at java.awt.EventQ ueue.dispatchEv ent(EventQueue. java:599)
at java.awt.EventD ispatchThread.p umpOneEventForF ilters(EventDis patchThre
ad.java:273)
at java.awt.EventD ispatchThread.p umpEventsForFil ter(EventDispat chThread.
java:183)
at java.awt.EventD ispatchThread.p umpEventsForHie rarchy(EventDis patchThre
ad.java:173)
at java.awt.EventD ispatchThread.p umpEvents(Event DispatchThread. java:168)

at java.awt.EventD ispatchThread.p umpEvents(Event DispatchThread. java:160)

at java.awt.EventD ispatchThread.r un(EventDispatc hThread.java:12 1)

D:\JAVA_P~1\ZAD 5_K~1\JAVACL~1>
Jun 6 '07 #1
0 3281

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

Similar topics

0
3101
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 : ----- public String crypte(String message, String name) throws RemoteException { String messageFinal = new String;
2
4221
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 version="1.0" encoding="UTF-8"?> <!-- edited with XMLSPY v5 rel. 3 U (http://www.xmlspy.com) by Michael Herren (private) -->
0
6811
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 the issue is. Thanks Ravi
1
6918
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
9265
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 C++. I find my self sometimes, trying Object app = Object(); Object *app = Object(); Object app = new Object();
1
9643
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 and I was wondering if anyone here would be able to give me some tips for young players such as myself, for learning the language. Is this the best Newsgroup for support with JAVA?
2
2353
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 : =================================================== // ADD PRODUCT public java.lang.String AddProduct(String description, int rprice) throws java.rmi.RemoteException { ResultSet rs; String cmd;
0
2389
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 provide webservices for access via SOAP. As I understand it (ie not very well!) Axis works to accept these SOAP messages from the client and transform them into calls on our Java methods, and do the reverse with the responses - cool! Which is excellent,...
0
8872
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8747
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9246
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9162
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8069
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4505
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4773
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2619
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2150
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.