org.omg.CORBA.DATA_CONVERSION
Halil AKINCI <[email protected]> Thu, 21 Nov 2002 13:49:36 +0200
| Newsgroups | gmane.comp.java.sun.idl.user |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
------=_NextPart_000_007B_01C29164.D44D7B80
Content-Type: text/plain;
charset="windows-1254"
Content-Transfer-Encoding: quoted-printable
Hi,
I want to ask my question more detailed. I want to develop an =
application using Servlet and CORBA. I wrote 2 inteface (reistapu.idl =
and reisbelediye.idl) and compiled them with idlj. I wrote my servers =
(ReisTapuServer.java and ReisBelediyeServer.java) and client codes =
(ReisCORBAClientServlet.java), and compiled them javac. I want to =
explain my application briefly;=20
1- A user enter his/her tax number in a HTML form and press submit =
button.
2- tax number sends a CORBA client (it is a servlet)
3- Servlet calls a remote method using this tax number,
4- In the server, connecting access database, executing a query, =
creating Statement and ResulSet and writing results into the struct =
MalikInfo, ArsaInfo, BinaInfo are perfomed.
To run application, I'm doing following process;
1- prompt> start tnameserv
2- prompt> start java ReisTapuServer
3- prompt> start java ReisBelediyeServer
4- prompt> tomcat3.3.1\bin> startup
5- Enter a tax number and push submit button
While I was waiting taxpayer information, the empty HTML page was =
displayed. When I looked to the Tomcat' s DOS console, I saw an error =
message. Complete error message exsist below. How can I correct this =
error? Can anyone help me?
-------------------------part of the MalikServer.java =
-----------------------------
public MalikInfo getMalikBilgi (String vno){=20
Connection conn =3D null;
ResultSet rset =3D null;
Statement stmt =3D null;=20
MalikInfo minfo =3D new MalikInfo ();
try {
/*create a JDBC connection*/
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn =3D DriverManager.getConnection("jdbc:odbc:ReisTapu","","");
/*Create a SQL statement for the database query*/
stmt =3D conn.createStatement();=20
rset =3D stmt.executeQuery("SELECT * FROM Malik WHERE =
VergiNo=3D'"+vno+"' ");=20
/*return the result in a MalikInfo structure */
if(rset=3D=3Dnull){
System.out.println("sorgu yurutulemedi");
}else {
System.out.println("sorgu sonuclari MalikInfo formatinda yazdiriliyor");
while(rset.next()) {=20
minfo.Adi =3D rset.getString("Ad=FD");
minfo.Soyadi =3D rset.getString("Soyad=FD");
minfo.BabaAdi =3D rset.getString("BabaAd=FD");=20
minfo.DogumYeri =3D rset.getString("DogumYeri");
minfo.DogumTarihi =3D rset.getString("DogumTarihi");
minfo.TCKimlikNo =3D rset.getString("TCKimlikNo");
minfo.Mahalle =3D rset.getString("Mahalle");
minfo.Cadde =3D rset.getString("Cadde");
minfo.Sokak =3D rset.getString("Sokak");=20
minfo.KapiNo =3D rset.getString("Kap=FDNo");=20
minfo.il =3D rset.getString("=DDl");=20
minfo.ilce =3D rset.getString("=DDlce");=20
}
}=20
}catch(ClassNotFoundException cnf) {cnf.printStackTrace(); }
catch(SQLException se) { se.printStackTrace();}
catch (Exception e) {
System.out.println("ERROR :" + e);
e.printStackTrace(System.out);=20
}=20
finally{
if (rset !=3D null) try { rset.close(); } catch(SQLException se) { =
System.out.println("Error"); }
if (stmt !=3D null) try { stmt.close(); } catch(SQLException se) { =
System.out.println("Error"); }
if (conn !=3D null) try { conn.close(); } catch(SQLException se) { =
System.out.println("Error"); }
}=20
return minfo;
}
---------------------- COMPLETE ERROR =
MESSAGE------------------------------
org.omg.CORBA.DATA_CONVERSION: wmcid : OMG minor code : 1 completed : No =
at sun.reflect.GeneratedConstructorAccessor9.newInstanse (Unknown =
Source)=20
at sun.reflect.DelegatingConstructorAccessorImpl.newIstance =
(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newIstance (Constructor.java:274)
at java.lang.Class.newIstance0 (Class.java:296)
at java.lang.Class.newIstance (Class.java:249)
at =
com.sun.corba.se.internal.iiop.messages.ReplyMessage_1_2.getSystemExcepti=
on (ReplyMessage_1_2.java:90)
at com.sun.corba.se.internal.iiop.ClientResponseImpl.getSystemException =
(ClientResponseImpl.java:105)
at com.sun.corba.se.internal.POA.GenericPOAClientSC.invoke =
(GenericPOAClientSC.java:129)
at org.omg.CORBA.portable.ObjectImpl._invoke(objectImpl.java:457)
at =
reisTapuInterface._ReisTapuInterfaceStub.getMalikBilgi(_ReisTapuInterface=
Stub.java:20)
at ReisCORBAClient.doPost(ReisCORBAClient.java:75)
at javax.servlet.http.HttpServlet.service (HttpServlet.java)
at javax.servlet.http.HttpServlet.service (HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService =
(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke (Handler.java:322)
at org.apache.tomcat.core.Handler.service (Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service =
(ServletHandler.java:485)
at org.apache.tomcat.core.ContextManager.internalService =
(ContextManager.java:917)
at org.apache.tomcat.core.ContextManager.service =
(ContextManager.java:833)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection =
(Http10Interceptor.java:176)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt =
(PoolTcpEndpoint.java:494)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run =
(ThreadPool.java:516)
at java.lang.Thread.run (Thread.java:536)
Yahoo! Groups Sponsor=20
ADVERTISEMENT
=20
=20
=20
Gruptan ayrilmak i=E7in asagidaki adrese bos bir ileti gondermeniz =
yeterlidir: [email protected]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.=20
------=_NextPart_000_007B_01C29164.D44D7B80
Content-Type: text/html;
charset="windows-1254"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1254">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I want to ask my question more =
detailed. I want to=20
develop an application using Servlet and CORBA. I wrote 2 inteface =
(reistapu.idl=20
and reisbelediye.idl) and compiled them with idlj. I wrote my =
servers=20
(ReisTapuServer.java and ReisBelediyeServer.java) and client codes=20
(ReisCORBAClientServlet.java), and compiled them javac. I want =
to explain=20
my application briefly;</FONT><FONT face=3DArial size=3D2><FONT =
size=3D2><FONT=20
face=3DArial size=3D2> </FONT></DIV>
<DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>1- A user enter his/her tax number =
in a=20
HTML form and press submit button.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>2- tax number sends a CORBA =
client (it is=20
a servlet)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>3- Servlet calls a remote method =
using this=20
tax number,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>4- In the server, connecting=20
access database, executing a query, creating Statement =
and=20
ResulSet and writing results into the struct MalikInfo, =
ArsaInfo,=20
BinaInfo are perfomed.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV>
<DIV><FONT face=3DArial size=3D2>To run application, I'm doing=20
following process;</DIV>
<DIV>
<DIV>
<DIV> </DIV>
<DIV>1- prompt> start tnameserv</DIV>
<DIV>2- prompt> start java ReisTapuServer</DIV>
<DIV>3- prompt> start java ReisBelediyeServer</DIV>
<DIV>4- prompt> tomcat3.3.1\bin> startup</DIV>
<DIV>5- Enter a tax number and push submit button</DIV>
<DIV> </DIV>
<DIV>While I was waiting taxpayer information, the empty=20
HTML page was displayed. When I looked to the Tomcat' s=20
DOS console, I saw an error message. Complete error =
message=20
exsist below. How can I correct this error? Can anyone help =
me?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>-------------------------<FONT color=3D#0000ff>part of the</FONT> =
<FONT=20
color=3D#0000ff>MalikServer.java </FONT>----------------------------=
-</DIV></FONT></DIV></DIV></DIV>
<P>public MalikInfo getMalikBilgi (String vno){ </P>
<P></P>
<P>Connection conn =3D null;</P>
<P>ResultSet rset =3D null;</P>
<P>Statement stmt =3D null; </P>
<P>MalikInfo minfo =3D new MalikInfo ();</P>
<P></P>
<P>try {</P>
<P>/*create a JDBC connection*/</P>
<P>Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");</P>
<P>conn =3D DriverManager.getConnection("jdbc:odbc:ReisTapu","","");</P>
<P>/*Create a SQL statement for the database query*/</P>
<P>stmt =3D conn.createStatement(); </P>
<P>rset =3D stmt.executeQuery("SELECT * FROM Malik WHERE =
VergiNo=3D'"+vno+"' ");=20
</P>
<P></P>
<P>/*return the result in a MalikInfo structure */</P>
<P>if(rset=3D=3Dnull){</P>
<P>System.out.println("sorgu yurutulemedi");</P>
<P>}else {</P>
<P>System.out.println("sorgu sonuclari MalikInfo formatinda =
yazdiriliyor");</P>
<P>while(rset.next()) { </P>
<P>minfo.Adi =3D rset.getString("Ad=FD");</P>
<P>minfo.Soyadi =3D rset.getString("Soyad=FD");</P>
<P>minfo.BabaAdi =3D rset.getString("BabaAd=FD"); </P>
<P>minfo.DogumYeri =3D rset.getString("DogumYeri");</P>
<P>minfo.DogumTarihi =3D rset.getString("DogumTarihi");</P>
<P>minfo.TCKimlikNo =3D rset.getString("TCKimlikNo");</P>
<P>minfo.Mahalle =3D rset.getString("Mahalle");</P>
<P>minfo.Cadde =3D rset.getString("Cadde");</P>
<P>minfo.Sokak =3D rset.getString("Sokak"); </P>
<P>minfo.KapiNo =3D rset.getString("Kap=FDNo"); </P>
<P>minfo.il =3D rset.getString("=DDl"); </P>
<P>minfo.ilce =3D rset.getString("=DDlce"); </P>
<P>}</P>
<P>} </P>
<P>}catch(ClassNotFoundException cnf) {cnf.printStackTrace(); }</P>
<P>catch(SQLException se) { se.printStackTrace();}</P>
<P>catch (Exception e) {</P>
<P>System.out.println("ERROR :" + e);</P>
<P>e.printStackTrace(System.out); </P>
<P>} </P>
<P>finally{</P>
<P>if (rset !=3D null) try { rset.close(); } catch(SQLException se) {=20
System.out.println("Error"); }</P>
<P>if (stmt !=3D null) try { stmt.close(); } catch(SQLException se) {=20
System.out.println("Error"); }</P>
<P>if (conn !=3D null) try { conn.close(); } catch(SQLException se) {=20
System.out.println("Error"); }</P>
<P>} </P>
<P>return minfo;</P>
<P>}</P>
<P>---------------------- <FONT color=3D#ff0000>COMPLETE ERROR=20
MESSAGE</FONT>------------------------------</P>
<DIV style=3D"FONT: 10pt arial">org.omg.CORBA.DATA_CONVERSION: wmcid : =
OMG minor=20
code : 1 completed : No </DIV>
<DIV style=3D"FONT: 10pt arial"> </DIV>
<DIV>
<DIV></DIV> at =
sun.reflect.GeneratedConstructorAccessor9.newInstanse=20
(Unknown Source) </DIV>
<DIV> at sun.reflect.DelegatingConstructorAccessorImpl.newIstance=20
(DelegatingConstructorAccessorImpl.java:27)</DIV>
<DIV> at java.lang.reflect.Constructor.newIstance=20
(Constructor.java:274)</DIV>
<DIV> at java.lang.Class.newIstance0 (Class.java:296)</DIV>
<DIV> at java.lang.Class.newIstance (Class.java:249)</DIV>
<DIV> at=20
com.sun.corba.se.internal.iiop.messages.ReplyMessage_1_2.getSystemExcepti=
on =20
(ReplyMessage_1_2.java:90)</DIV>
<DIV> at=20
com.sun.corba.se.internal.iiop.ClientResponseImpl.getSystemException=20
(ClientResponseImpl.java:105)</DIV>
<DIV> at com.sun.corba.se.internal.POA.GenericPOAClientSC.invoke=20
(GenericPOAClientSC.java:129)</DIV>
<DIV> at=20
org.omg.CORBA.portable.ObjectImpl._invoke(objectImpl.java:457)</DIV>
<DIV> at=20
reisTapuInterface._ReisTapuInterfaceStub.getMalikBilgi(_ReisTapuInterface=
Stub.java:20)</DIV>
<DIV> at ReisCORBAClient.doPost(ReisCORBAClient.java:75)</DIV>
<DIV> at javax.servlet.http.HttpServlet.service =
(HttpServlet.java)</DIV>
<DIV> at javax.servlet.http.HttpServlet.service =
(HttpServlet.java)</DIV>
<DIV> at org.apache.tomcat.facade.ServletHandler.doService=20
(ServletHandler.java:574)</DIV>
<DIV> at org.apache.tomcat.core.Handler.invoke =
(Handler.java:322)</DIV>
<DIV> at org.apache.tomcat.core.Handler.service =
(Handler.java:235)</DIV>
<DIV> at org.apache.tomcat.facade.ServletHandler.service=20
(ServletHandler.java:485)</DIV>
<DIV> at org.apache.tomcat.core.ContextManager.internalService=20
(ContextManager.java:917)</DIV>
<DIV> at org.apache.tomcat.core.ContextManager.service=20
(ContextManager.java:833)</DIV>
<DIV> at=20
org.apache.tomcat.modules.server.Http10Interceptor.processConnection=20
(Http10Interceptor.java:176)</DIV>
<DIV> at org.apache.tomcat.util.net.TcpWorkerThread.runIt=20
(PoolTcpEndpoint.java:494)</DIV>
<DIV> at =
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run=20
(ThreadPool.java:516)</DIV>
<DIV> at java.lang.Thread.run (Thread.java:536)</DIV>
<DIV> </DIV>
<P> </P></FONT></FONT></DIV><BR><!-- |**|begin egp html banner|**| =
-->
<TABLE cellSpacing=3D0 cellPadding=3D2 border=3D0>
<TBODY>
<TR bgColor=3D#ffffcc>
<TD align=3Dmiddle><FONT color=3D#003399 size=3D-1><B>Yahoo! Groups=20
Sponsor</B></FONT></TD></TR>
<TR bgColor=3D#ffffff>
<TD align=3Dmiddle width=3D470>
<TABLE cellSpacing=3D0 cellPadding=3D0 border=3D0>
<TBODY>
<TR>
<TD align=3Dmiddle><FONT face=3Darial =
size=3D-2>ADVERTISEMENT</FONT><BR><A=20
=
href=3D"http://rd.yahoo.com/M=3D237459.2675695.4055211.2225243/D=3Degroup=
web/S=3D1705006905:HM/A=3D1267611/R=3D0/*http://ad.doubleclick.net/jump/N=
2524.Yahoo/B1071650;sz=3D300x250;ord=3D1037873182759808?"=20
target=3D_blank><IMG height=3D250 alt=3D""=20
=
src=3D"http://ad.doubleclick.net/ad/N2524.Yahoo/B1071650;sz=3D300x250;ord=
=3D1037873182759808?"=20
width=3D300 =
border=3D0></A></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD><IMG height=3D1 alt=3D""=20
=
src=3D"http://us.adserver.yahoo.com/l?M=3D237459.2675695.4055211.2225243/=
D=3Degroupmail/S=3D:HM/A=3D1267611/rand=3D193042592"=20
width=3D1></TD></TR></TBODY></TABLE><!-- |**|end egp html =
banner|**| --><BR><TT>Gruptan=20
ayrilmak i=E7in asagidaki adrese bos bir ileti gondermeniz yeterlidir:=20
[email protected]<BR><BR></TT><BR><BR><TT>Your use of =
Yahoo!=20
Groups is subject to the <A =
href=3D"http://docs.yahoo.com/info/terms/">Yahoo!=20
Terms of Service</A>.</TT> <BR></BODY></HTML>
------=_NextPart_000_007B_01C29164.D44D7B80--
===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff IDL-USERS". For general help, send email to
[email protected] and include in the body of the message "help".