Java论坛网»Java技术»请帮忙分析一下:axis1.4编写的web service client

请帮忙分析一下:axis1.4编写的web service client

问?:
各位大虾:请帮忙分析一下,提供线索必高分酬谢!

AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.SocketException: Default SSL context init failed: DER input, Integer tag error
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.net.SocketException: Default SSL context init failed: DER input, Integer tag error
at javax.net.ssl.DefaultSSLSocketFactory.createSocket(DashoA6275)
at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:92)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at QuoteFeedWebService_pkg.QuoteFeedWebServiceSoapStub.connect(QuoteFeedWebServiceSoapStub.java:208)
at QFWSTest.main(QFWSTest.java:63)
{http://xml.apache.org/axis/}hostname:demo
java.net.SocketException: Default SSL context init failed: DER input, Integer tag error
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at QuoteFeedWebService_pkg.QuoteFeedWebServiceSoapStub.connect(QuoteFeedWebServiceSoapStub.java:208)
at QFWSTest.main(QFWSTest.java:63)
Caused by: java.net.SocketException: Default SSL context init failed: DER input, Integer tag error
at javax.net.ssl.DefaultSSLSocketFactory.createSocket(DashoA6275)
at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:92)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
... 11 more
答!: 1:
自己顶一下,没有人遇到过类似问题吗?
请伸出你援助之手...
答!: 2:
faultString: java.net.SocketException: Default SSL context init failed: DER input, Integer tag error

at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at QuoteFeedWebService_pkg.QuoteFeedWebServiceSoapStub.connect(QuoteFeedWebServiceSoapStub.java:208)
at QFWSTest.main(QFWSTest.java:63)

具体的代码看看
答!: 3:
可能是你的证书不是cer格式,Integer tag error是分析格式出错的提示
你try双击这个cer证书,看能不能在windows直接打开
答!: 4:
提供的信息太少
代码是什么,要实现什么东西都不知道
答!: 5:
谢谢各位!
这个是小弟试写的通过证书联结web service的程序,请帮忙看看下面设置证书以及密码的部分是否有明显错误呢?(证书本身与密码都是正确的,.cer可以直接打开,然后通过keytool导入trustStore.jks文件,客户端证书是“c:\\ALO_1.pfx”),另外,此程序用jbuilder写的,在JBuilder里面运行,不会出现上述异常,而在console直接运行导出的.exe,会出现上述异常。

public static void main(String[] args) throws Exception {
// TODO Auto-generated method stub

// Set system properties to point to the keystores
// First the trustStore (keystore of trusted certificates)
System.setProperty("javax.net.ssl.trustStore","c:\\trustStore.jks");
System.setProperty("javax.net.ssl.trustStorePassword","Password");


// Now the keystore. We will just use the certificate itself

System.setProperty("javax.net.ssl.keyStore","c:\\ALO_1.pfx");
System.setProperty("javax.net.ssl.keyStorePassword","Password");
System.setProperty("javax.net.ssl.keyStoreType","PKCS12");
......


}
答!: 6:
现在运行时,会出现下述错误:

C:\QFWSTest>java QFWSTest
Exception in thread "main" java.lang.SecurityException: no manifiest section for
signature file entry javax/mail/internet/AsciiOutputStream.class
at sun.security.util.SignatureFileVerifier.verifySection(Unknown Source)

at sun.security.util.SignatureFileVerifier.processImpl(Unknown Source)
at sun.security.util.SignatureFileVerifier.process(Unknown Source)
at java.util.jar.JarVerifier.processEntry(Unknown Source)
at java.util.jar.JarVerifier.update(Unknown Source)
at java.util.jar.JarFile.initializeVerifier(Unknown Source)
at java.util.jar.JarFile.getInputStream(Unknown Source)
at sun.misc.URLClassPath$JarLoader$1.getInputStream(Unknown Source)
at sun.misc.Resource.cachedInputStream(Unknown Source)
at sun.misc.Resource.getByteBuffer(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)

相关JAVA教程:
部署webService出错
hibernate+spring的问题
poi.jar在哪下载啊?
axis问题,编译成功,在JBuilder里面也可以运行,但是export出来.exe,单独运行时候会有以下异常
struts中传值给form时得到乱码
java做MDI窗口是否不能使用singleton模式
急!!关于错误提示的问题~?
谁给个resin3.0.19 windows版本---100分相赠
发现JAVA的开源BLOG还是不错的,大家进来瞧瞧~
JBoss配置数据源问题
关于水晶报表显示数据的问题,请高人指点,谢谢!!!
我的webservice 返回xml 是返回Document吗