当前位置: 技术问答>java相关
一个EJB例子运行出错,100分请教!一定给分!
来源: 互联网 发布时间:2015-05-07
本文导语: 执行命令: java -classpath d:j2sdkeelibj2ee.jar;.;testClient.jar ConverterClient 出错信息: Exception in thread "main" java.lang.Error: Converter malfunction: sun.io.ByteTo CharGBK at java.lang.StringCoding$ConverterSD.decode(StringCoding.java:123) at java.l...
执行命令:
java -classpath d:j2sdkeelibj2ee.jar;.;testClient.jar ConverterClient
出错信息:
Exception in thread "main" java.lang.Error: Converter malfunction:
sun.io.ByteTo
CharGBK
at
java.lang.StringCoding$ConverterSD.decode(StringCoding.java:123)
at java.lang.StringCoding.decode(StringCoding.java:190)
at java.lang.StringCoding.decode(StringCoding.java:196)
at java.lang.String.(String.java:362)
at java.lang.String.(String.java:376)
at
com.sun.enterprise.iiop.security.SecurityMechanismSelector.isNameServ
iceIOR(SecurityMechanismSelector.java:247)
at
com.sun.enterprise.iiop.security.SecurityMechanismSelector.getSSLPort
(SecurityMechanismSelector.java:168)
at
com.sun.enterprise.iiop.IIOPSSLSocketFactory.getEndPointInfo(IIOPSSLS
ocketFactory.java:219)
at
com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(Connecti
onTable.java:73)
at
com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(Connecti
onTable.java:68)
at
com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:7
0)
at
com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDe
legate.java:637)
at
com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDe
legate.java:579)
at
com.sun.corba.ee.internal.corba.ClientDelegate.is_a(ClientDelegate.ja
va:831)
at
org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:115)
at
org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java
:68)
at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:445)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:495)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:473)
at
javax.naming.InitialContext.lookup(InitialContext.java:350)
at
com.sun.enterprise.naming.factory.IIOPObjectFactory.getObjectInstance
(IIOPObjectFactory.java:42)
at
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:3
04)
at
com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:158
)
at
javax.naming.InitialContext.lookup(InitialContext.java:350)
at ConverterClient.main(ConverterClient.java:13)
Caused by: sun.io.MalformedInputException
at
sun.io.ByteToCharDoubleByte.flush(ByteToCharDoubleByte.java:51)
at
java.lang.StringCoding$ConverterSD.decode(StringCoding.java:120)
... 24 more
java -classpath d:j2sdkeelibj2ee.jar;.;testClient.jar ConverterClient
出错信息:
Exception in thread "main" java.lang.Error: Converter malfunction:
sun.io.ByteTo
CharGBK
at
java.lang.StringCoding$ConverterSD.decode(StringCoding.java:123)
at java.lang.StringCoding.decode(StringCoding.java:190)
at java.lang.StringCoding.decode(StringCoding.java:196)
at java.lang.String.(String.java:362)
at java.lang.String.(String.java:376)
at
com.sun.enterprise.iiop.security.SecurityMechanismSelector.isNameServ
iceIOR(SecurityMechanismSelector.java:247)
at
com.sun.enterprise.iiop.security.SecurityMechanismSelector.getSSLPort
(SecurityMechanismSelector.java:168)
at
com.sun.enterprise.iiop.IIOPSSLSocketFactory.getEndPointInfo(IIOPSSLS
ocketFactory.java:219)
at
com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(Connecti
onTable.java:73)
at
com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(Connecti
onTable.java:68)
at
com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:7
0)
at
com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDe
legate.java:637)
at
com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDe
legate.java:579)
at
com.sun.corba.ee.internal.corba.ClientDelegate.is_a(ClientDelegate.ja
va:831)
at
org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:115)
at
org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java
:68)
at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:445)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:495)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:473)
at
javax.naming.InitialContext.lookup(InitialContext.java:350)
at
com.sun.enterprise.naming.factory.IIOPObjectFactory.getObjectInstance
(IIOPObjectFactory.java:42)
at
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:3
04)
at
com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:158
)
at
javax.naming.InitialContext.lookup(InitialContext.java:350)
at ConverterClient.main(ConverterClient.java:13)
Caused by: sun.io.MalformedInputException
at
sun.io.ByteToCharDoubleByte.flush(ByteToCharDoubleByte.java:51)
at
java.lang.StringCoding$ConverterSD.decode(StringCoding.java:120)
... 24 more
|
出现验证信息输入如下
username:guest
password:guest123
然后就可以出现结果
username:guest
password:guest123
然后就可以出现结果
|
runclient -client [-name ] [-textauth] [app-args]
用以上命令运行例子!该命令在J2ee_HOMEbin下!去看看帮助!
用以上命令运行例子!该命令在J2ee_HOMEbin下!去看看帮助!