cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vlad Karpov (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-3997) java.lang.NullPointerException in org.apache.cxf.tools.wsdlto.WSDLToJava
Date Mon, 26 Dec 2011 07:26:32 GMT

    [ https://issues.apache.org/jira/browse/CXF-3997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13175903#comment-13175903
] 

Vlad Karpov commented on CXF-3997:
----------------------------------

Здравствуйте, Daniel.













Hello!
Thanks for answer.
It's seems to be a java 1.6.0_16 error.
I write test case:

{code}
package ru.protek.data.standard;

import junit.framework.TestCase;
import org.apache.cxf.tools.wsdlto.WSDLToJava;

import javax.xml.bind.DatatypeConverter;
import java.util.Calendar;

public class WSDLToJavaTest extends TestCase {

    public void testTwo() {
        System.out.println(DatatypeConverter.printDateTime(Calendar.getInstance()));
//        WSDLToJava.main(new String[]{
//                "-server",
//                "-d", "src/main/java",
//                "WEB/WEB-INF/wsdl/TestService.wsdl"});
        System.out.println("Done!");
    }


}
{code}

and get:

"C:\Program Files\Java\jdk1.6.0_16\bin\java" -Didea.launcher.port=7532 "-Didea.launcher.bin.path=C:\Program
Files\JetBrains\IntelliJ IDEA 10.5.1\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ
IDEA 10.5.1\lib\idea_rt.jar;C:\Program Files\JetBrains\IntelliJ IDEA 10.5.1\plugins\junit\lib\junit-rt.jar;C:\Program
Files\Java\jdk1.6.0_16\jre\lib\alt-rt.jar;C:\Program Files\Java\jdk1.6.0_16\jre\lib\charsets.jar;C:\Program
Files\Java\jdk1.6.0_16\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.6.0_16\jre\lib\javaws.jar;C:\Program
Files\Java\jdk1.6.0_16\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_16\jre\lib\jsse.jar;C:\Program
Files\Java\jdk1.6.0_16\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.6.0_16\jre\lib\plugin.jar;C:\Program
Files\Java\jdk1.6.0_16\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_16\jre\lib\rt.jar;C:\Program
Files\Java\jdk1.6.0_16\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.6.0_16\jre\lib\ext\localedata.jar;C:\Program
Files\Java\jdk1.6.0_16\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.6.0_16\jre\lib\ext\sunmscapi.jar;C:\Program
Files\Java\jdk1.6.0_16\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.6.0_16\lib\tools.jar;D:\Work\EIMA\out\test\StandardDataPropek;D:\Work\EIMA\out\production\StandardDataPropek;D:\Work\EIMA\lib\cxf\wsdl4j-1.6.2.jar;D:\Work\EIMA\lib\cxf\wss4j-1.6.3.jar;D:\Work\EIMA\lib\cxf\velocity-1.7.jar;D:\Work\EIMA\lib\cxf\woodstox-core-asl-4.1.1.jar;D:\Work\EIMA\lib\cxf\slf4j-jdk14-1.6.2.jar;D:\Work\EIMA\lib\cxf\stax2-api-3.1.1.jar;D:\Work\EIMA\lib\cxf\serializer-2.7.1.jar;D:\Work\EIMA\lib\cxf\slf4j-api-1.6.2.jar;D:\Work\EIMA\lib\cxf\saaj-api-1.3.4.jar;D:\Work\EIMA\lib\cxf\saaj-impl-1.3.12.jar;D:\Work\EIMA\lib\cxf\openws-1.4.2-1.jar;D:\Work\EIMA\lib\cxf\relaxngDatatype-20020414.jar;D:\Work\EIMA\lib\cxf\neethi-3.0.1.jar;D:\Work\EIMA\lib\cxf\opensaml-2.5.1-1.jar;D:\Work\EIMA\lib\cxf\mimepull-1.4.jar;D:\Work\EIMA\lib\cxf\msv-core-2011.1.jar;D:\Work\EIMA\lib\cxf\jsr311-api-1.1.1.jar;D:\Work\EIMA\lib\cxf\js-1.7R2.jar;D:\Work\EIMA\lib\cxf\jra-1.0-alpha-4.jar;D:\Work\EIMA\lib\cxf\joda-time-1.6.2.jar;D:\Work\EIMA\lib\cxf\jetty-util-7.5.3.v20111011.jar;D:\Work\EIMA\lib\cxf\jetty-server-7.5.3.v20111011.jar;D:\Work\EIMA\lib\cxf\jetty-security-7.5.3.v20111011.jar;D:\Work\EIMA\lib\cxf\jetty-io-7.5.3.v20111011.jar;D:\Work\EIMA\lib\cxf\jetty-http-7.5.3.v20111011.jar;D:\Work\EIMA\lib\cxf\jetty-continuation-7.5.3.v20111011.jar;D:\Work\EIMA\lib\cxf\jettison-1.3.jar;D:\Work\EIMA\lib\cxf\isorelax-20030108.jar;D:\Work\EIMA\lib\cxf\geronimo-ws-metadata_2.0_spec-1.1.3.jar;D:\Work\EIMA\lib\cxf\geronimo-stax-api_1.0_spec-1.0.1.jar;D:\Work\EIMA\lib\cxf\geronimo-servlet_2.5_spec-1.1.2.jar;D:\Work\EIMA\lib\cxf\geronimo-jms_1.1_spec-1.1.1.jar;D:\Work\EIMA\lib\cxf\xmltooling-1.3.2-1.jar;D:\Work\EIMA\lib\cxf\xmlsec-1.4.5.jar;D:\Work\EIMA\lib\cxf\xsdlib-2010.1.jar;D:\Work\EIMA\lib\cxf\xml-resolver-1.2.jar;D:\Work\EIMA\lib\cxf\xalan-2.7.1.jar;D:\Work\EIMA\lib\cxf\xmlschema-core-2.0.1.jar;D:\Work\EIMA\lib\cxf\xmlbeans-2.4.0.jar;D:\Work\EIMA\lib\cxf\cxf-xjc-bug671-2.4.0.jar;D:\Work\EIMA\lib\cxf\cxf-xjc-dv-2.4.0.jar;D:\Work\EIMA\lib\cxf\cxf-xjc-ts-2.4.0.jar;D:\Work\EIMA\lib\cxf\FastInfoset-1.2.9.jar;D:\Work\EIMA\lib\cxf\geronimo-activation_1.1_spec-1.1.jar;D:\Work\EIMA\lib\cxf\geronimo-annotation_1.0_spec-1.1.1.jar;D:\Work\EIMA\lib\cxf\geronimo-javamail_1.4_spec-1.7.1.jar;D:\Work\EIMA\lib\cxf\geronimo-jaxws_2.2_spec-1.1.jar;D:\Work\EIMA\lib\cxf\aopalliance-1.0.jar;D:\Work\EIMA\lib\cxf\asm-3.3.jar;D:\Work\EIMA\lib\cxf\commons-collections-3.2.1.jar;D:\Work\EIMA\lib\cxf\commons-lang-2.6.jar;D:\Work\EIMA\lib\cxf\commons-logging-1.1.1.jar;D:\Work\EIMA\lib\cxf\cxf-2.5.0.jar;D:\Work\EIMA\lib\cxf\cxf-manifest.jar;D:\Work\EIMA\lib\cxf\cxf-xjc-boolean-2.4.0.jar;D:\Work\EIMA\lib\cxf\antlr-2.7.7.jar;D:\Work\EIMA\lib\cxf\endorsed\geronimo-jaxws_2.2_spec-1.1.jar;D:\Work\EIMA\lib\cxf\endorsed\jaxb-api-2.2.3.jar;D:\Work\EIMA\lib\jaxb2\jaxb-impl.jar;D:\Work\EIMA\lib\jaxb2\jaxb-api.jar;D:\Work\EIMA\lib\jaxb2\activation.jar;D:\Work\EIMA\lib\jaxb2\jaxb-xjc.jar;D:\Work\EIMA\lib\jaxb2\jaxb1-impl.jar;D:\Work\EIMA\lib\jaxb2\jsr173_1.0_api.jar;D:\Work\EIMA\lib\junit-4.3.1\junit-4.3.1.jar;D:\Work\EIMA\lib\rampart\bcprov-jdk15-140.jar;D:\Work\EIMA\lib\rampart\rampart-policy-1.6.1.jar;D:\Work\EIMA\lib\rampart\rampart-core-1.6.1.jar;D:\Work\EIMA\lib\rampart\openws-1.2.2.jar;D:\Work\EIMA\lib\rampart\opensaml1-1.1.jar;D:\Work\EIMA\lib\rampart\opensaml-2.2.3.jar;D:\Work\EIMA\lib\rampart\joda-time-1.5.2.jar;D:\Work\EIMA\lib\rampart\commons-lang-2.3.jar;D:\Work\EIMA\lib\rampart\commons-collections-3.1.jar;D:\Work\EIMA\lib\rampart\xmlsec-1.4.5.jar;D:\Work\EIMA\lib\rampart\xmltooling-1.2.0.jar;D:\Work\EIMA\lib\rampart\rampart-trust-1.6.1.jar;D:\Work\EIMA\lib\rampart\slf4j-api-1.5.5.jar;D:\Work\EIMA\lib\rampart\velocity-1.5.jar;D:\Work\EIMA\lib\rampart\wss4j-1.5.12.jar;D:\Work\EIMA\lib\spring\org.springframework.web.portlet-3.0.6.RELEASE.jar;D:\Work\EIMA\lib\spring\org.springframework.web-3.0.6.RELEASE.jar;D:\Work\EIMA\lib\spring\org.springframework.transaction-3.0.6.RELEASE.jar;D:\Work\EIMA\lib\spring\org.springframework.test-3.0.6.RELEASE.jar;D:\Work\EIMA\lib\spring\org.springframework.oxm-3.0.6.RELEASE.jar;D:\Work\EIMA\lib\spring\org.springframework.orm-3.0.6.RELEASE.jar;D:\Work\EIMA\lib\spring\org.springframework.jms-3.0.6.RELEASE.jar;D:\Work\EIMA\lib\spring\org.springframework.jdbc-3.0.6.RELEASE.jar;D:\Work\EIMA\lib\spring\org.springframework.instrument.tomcat-3.0.6.RELEASE.jar;D:\Work\EIMA\lib\spring\org.springframework.instrument-3.0.6.RELEASE.jar;D:\Work\EIMA\lib\spring\org.springframework.expression-3.0.6.RELEASE.jar;D:\Work\EIMA\lib\spring\org.springframework.core-3.0.6.RELEASE.jar;D:\Work\EIMA\lib\spring\org.springframework.context.support-3.0.6.RELEASE.jar;D:\Work\EIMA\lib\spring\org.springframework.context-3.0.6.RELEASE.jar;D:\Work\EIMA\lib\spring\org.springframework.beans-3.0.6.RELEASE.jar;D:\Work\EIMA\lib\spring\org.springframework.aspects-3.0.6.RELEASE.jar;D:\Work\EIMA\lib\spring\org.springframework.aop-3.0.6.RELEASE.jar;D:\Work\EIMA\lib\spring\org.springframework.asm-3.0.6.RELEASE.jar;D:\Work\EIMA\lib\spring\org.springframework.web.servlet-3.0.6.RELEASE.jar;D:\Work\EIMA\lib\spring\org.springframework.web.struts-3.0.6.RELEASE.jar;D:\Work\EIMA\lib\ant\ant-apache-bsf.jar;D:\Work\EIMA\lib\ant\ant-apache-log4j.jar;D:\Work\EIMA\lib\ant\ant-apache-oro.jar;D:\Work\EIMA\lib\ant\ant-apache-regexp.jar;D:\Work\EIMA\lib\ant\ant-apache-resolver.jar;D:\Work\EIMA\lib\ant\ant-apache-xalan2.jar;D:\Work\EIMA\lib\ant\ant-commons-logging.jar;D:\Work\EIMA\lib\ant\ant-commons-net.jar;D:\Work\EIMA\lib\ant\ant-jai.jar;D:\Work\EIMA\lib\ant\ant-javamail.jar;D:\Work\EIMA\lib\ant\ant-jdepend.jar;D:\Work\EIMA\lib\ant\ant-jmf.jar;D:\Work\EIMA\lib\ant\ant-jsch.jar;D:\Work\EIMA\lib\ant\ant-junit.jar;D:\Work\EIMA\lib\ant\ant-junit4.jar;D:\Work\EIMA\lib\ant\ant-launcher.jar;D:\Work\EIMA\lib\ant\ant.jar;D:\Work\EIMA\lib\ant\ant-testutil.jar;D:\Work\EIMA\lib\ant\ant-swing.jar;D:\Work\EIMA\lib\ant\ant-netrexx.jar;D:\Work\EIMA\lib\ant\ant-apache-bcel.jar;D:\Work\EIMA\lib\ant\ant-antlr.jar"
com.intellij.rt.execution.application.AppMain com.intellij.rt.execution.junit.JUnitStarter
-ideVersion5 ru.protek.data.standard.WSDLToJavaTest,testTwo

java.lang.NullPointerException
        at javax.xml.bind.DatatypeConverter.printDateTime(DatatypeConverter.java:534)
        at ru.protek.data.standard.WSDLToJavaTest.testTwo(WSDLToJavaTest.java:19)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at com.intellij.junit3.JUnit3IdeaTestRunner.doRun(JUnit3IdeaTestRunner.java:139)
        at com.intellij.junit3.JUnit3IdeaTestRunner.startRunnerWithArgs(JUnit3IdeaTestRunner.java:52)
        at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:199)
        at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:62)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)


Process finished with exit code -1



-- 
С уважением,
 Vlad
mailto:karpovvv@protek.ru
http://vlad-karpov.narod.ru/


                
> java.lang.NullPointerException in org.apache.cxf.tools.wsdlto.WSDLToJava
> ------------------------------------------------------------------------
>
>                 Key: CXF-3997
>                 URL: https://issues.apache.org/jira/browse/CXF-3997
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>            Reporter: Vlad Karpov
>             Fix For: NeedMoreInfo
>
>
>     <target name="cxfWSDLToJava">
>         <java classname="org.apache.cxf.tools.wsdlto.WSDLToJava" fork="true">
>             <!--<arg value="-all"/>-->
>             <arg value="-client"/>
>             <arg value="-server"/>
>             <arg value="-impl"/>
>             <arg value="-verbose"/>
>             <!--<arg value="-v"/>-->
>             <arg value="-d"/>
>             <arg value="src"/>
>             <arg value="${basedir}/EIMA/web/WEB-INF/classes/wsdl/SpoService.wsdl"/>
>             <classpath>
>                 <path refid="library.cxf.classpath"/>
>                 <path refid="library.jaxb2.classpath"/>
>                 <path location="${basedir}/EIMA/web"/>
>             </classpath>
>         </java>
>     </target>
> cxfWSDLToJava
> java
> Loading FrontEnd jaxws ...
> Loading DataBinding jaxb ...
> wsdl2java -client -server -impl -verbose -d src D:\Work\EIMA/EIMA/web/WEB-INF/classes/wsdl/SpoService.wsdl
> wsdl2java - Apache CXF 2.5.0
> WSDLToJava Error: java.lang.NullPointerException
> org.apache.cxf.tools.common.ToolException: java.lang.NullPointerException
> 	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:294)
> 	at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
> 	at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)
> 	at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86)
> 	at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:184)
> Caused by: java.lang.NullPointerException
> 	at javax.xml.bind.DatatypeConverter.printDateTime(DatatypeConverter.java:534)
> 	at org.apache.cxf.tools.wsdlto.core.AbstractGenerator.setCommonAttributes(AbstractGenerator.java:108)
> 	at org.apache.cxf.tools.wsdlto.frontend.jaxws.generators.ClientGenerator.generate(ClientGenerator.java:107)
> 	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:258)
> 	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:138)
> 	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:286)
> 	... 4 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message