0 Replies Latest reply on Sep 29, 2014 6:27 AM by 1171162

    can not build clientgen task with jdk8

    1171162

      Hi,

       

      In server side, we use jdk1.7 to build env and the weblogic version is 12.1.3. There is a sample client code and It is ok to build  the it with jdk1.7. Our client also need to support the jdk1.8. However , it failed when build it with jdk1.8. The error is thrown when running the clientgen task.

      As the thrown message ‘Exception in thread "main" java.lang.NumberFormatException: For input string: "nnbounded"’, I did not find the ‘nnbounded’ character in the schema file. Until now, I did not find the root cause and not sure if some jar file need to be upgraded or  the client jdk version  need to be same as server side. Do you have some suggestion?

      Here is the error message:


       

      init:

       

      init-agilews:

         [delete] Deleted 3 directories from C:\workspace_agile\view\shentang_view_080

      8\apcm\docs\webservices\samples\JAX-WS-Sample\build\built

          [mkdir] Created dir: C:\workspace_agile\view\shentang_view_0808\apcm\docs\we

      bservices\samples\JAX-WS-Sample\build\built

          [mkdir] Created dir: C:\workspace_agile\view\shentang_view_0808\apcm\docs\we

      bservices\samples\JAX-WS-Sample\build\built\src

          [mkdir] Created dir: C:\workspace_agile\view\shentang_view_0808\apcm\docs\we

      bservices\samples\JAX-WS-Sample\build\built\classes

       

      generate-agilews-testcases-stub:

      [clientgen]

      [clientgen] *********** jax-ws clientgen attribute settings ***************

      [clientgen]

      [clientgen] wsdlURI: http://slc07dhw.us.oracle.com:7001/CoreService/services/Tab

      le?wsdl

      [clientgen] packageName : null

      [clientgen] destDir : C:\workspace_agile\view\shentang_view_0808\apcm\docs\webse

      rvices\samples\JAX-WS-Sample\build\built\src

      [clientgen]

      [clientgen] *********** jax-ws clientgen attribute settings end ***************

      [clientgen] Consider using <depends>/<produces> so that wsimport won't do unnece

      ssary compilation

      [clientgen] JAX-WS RI 2.2.10-b140319.1121

      [clientgen] command line: wsimport-d C:\workspace_agile\view\shentang_view_0808\

      apcm\docs\webservices\samples\JAX-WS-Sample\build\built\src -extension -keep -s

      C:\workspace_agile\view\shentang_view_0808\apcm\docs\webservices\samples\JAX-WS-

      Sample\build\built\src -g -verbose -XuseBaseResourceAndURLToLoadWSDL http://slc0

      7dhw.us.oracle.com:7001/CoreService/services/Table?wsdl

      [clientgen] parsing WSDL...

       

       

      [clientgen] [WARNING] unknown extensibility element or attribute "annotation" (i

      n namespace "http://www.w3.org/2001/XMLSchema")

      [clientgen]   line 7 of http://slc07dhw.us.oracle.com:7001/CoreService/services/

      Table?wsdl

       

      [clientgen] [WARNING] s4s-att-invalid-value: Invalid attribute value for 'maxOcc

      urs' in element 'element'. Recorded reason: cvc-datatype-valid.1.2.1: 'nnbounded

      ' is not a valid value for 'nonNegativeInteger'.

      [clientgen]   line 434 of http://slc07dhw.us.oracle.com:7001/CoreService/service

      s/Table?xsd=3

       

      [clientgen] [WARNING] cos-nonambig: WC[##any] and table (or elements from their

      substitution group) violate "Unique Particle Attribution". During validation aga

      inst this schema, ambiguity would be created for those two particles.

      [clientgen]   line 3 of http://slc07dhw.us.oracle.com:7001/CoreService/services/

      Table?xsd=2

       

      [clientgen] [WARNING] cos-nonambig: objectReferentId and WC[##any] (or elements

      from their substitution group) violate "Unique Particle Attribution". During val

      idation against this schema, ambiguity would be created for those two particles.

       

      [clientgen]   line 29 of http://slc07dhw.us.oracle.com:7001/CoreService/services

      /Table?xsd=2

       

      [clientgen] [WARNING] cos-nonambig: options and WC[##any] (or elements from thei

      r substitution group) violate "Unique Particle Attribution". During validation a

      gainst this schema, ambiguity would be created for those two particles.

      [clientgen]   line 69 of http://slc07dhw.us.oracle.com:7001/CoreService/services

      /Table?xsd=2

       

      [clientgen] [WARNING] cos-nonambig: WC[##any] and table (or elements from their

      substitution group) violate "Unique Particle Attribution". During validation aga

      inst this schema, ambiguity would be created for those two particles.

      [clientgen]   line 99 of http://slc07dhw.us.oracle.com:7001/CoreService/services

      /Table?xsd=2

       

      [clientgen] [WARNING] cos-nonambig: WC[##any] and table (or elements from their

      substitution group) violate "Unique Particle Attribution". During validation aga

      inst this schema, ambiguity would be created for those two particles.

      [clientgen]   line 108 of http://slc07dhw.us.oracle.com:7001/CoreService/service

      s/Table?xsd=2

       

      [clientgen] Exception in thread "main" java.lang.NumberFormatException: For inpu

      t string: "nnbounded"

      [clientgen]     at java.lang.NumberFormatException.forInputString(NumberFormatEx

      ception.java:65)

      [clientgen]     at java.lang.Integer.parseInt(Integer.java:580)

      [clientgen]     at java.math.BigInteger.<init>(BigInteger.java:461)

      [clientgen]     at java.math.BigInteger.<init>(BigInteger.java:597)

      [clientgen]     at com.sun.xml.xsom.impl.parser.state.occurs.action2(occurs.java

      :91)

      [clientgen]     at com.sun.xml.xsom.impl.parser.state.occurs.text(occurs.java:32

      0)

      [clientgen]     at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.consumeAttribu

      te(NGCCRuntime.java:342)

      [clientgen]     at com.sun.xml.xsom.impl.parser.state.occurs.text(occurs.java:30

      2)

      [clientgen]     at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendText(NGCCR

      untime.java:433)

      [clientgen]     at com.sun.xml.xsom.impl.parser.state.NGCCHandler.spawnChildFrom

      Text(NGCCHandler.java:137)

      [clientgen]     at com.sun.xml.xsom.impl.parser.state.particle.text(particle.jav

      a:867)

      [clientgen]     at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.processPending

      Text(NGCCRuntime.java:236)

      [clientgen]     at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.endElement(NGC

      CRuntime.java:312)

      [clientgen]     at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.ja

      va:570)

      [clientgen]     at com.sun.tools.xjc.util.SubtreeCutter.endElement(SubtreeCutter

      .java:112)

      [clientgen]     at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.ja

      va:570)

      [clientgen]     at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.ja

      va:570)

      [clientgen]     at com.sun.tools.xjc.reader.xmlschema.parser.CustomizationContex

      tChecker.endElement(CustomizationContextChecker.java:199)

      [clientgen]     at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.ja

      va:570)

      [clientgen]     at com.sun.tools.xjc.reader.internalizer.DOMForestScanner$Locati

      onResolver.endElement(DOMForestScanner.java:140)

      [clientgen]     at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.jav

      a:255)

      [clientgen]     at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.jav

      a:281)

      [clientgen]     at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.jav

      a:250)

      [clientgen]     at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.jav

      a:281)

      [clientgen]     at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.jav

      a:250)

      [clientgen]     at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.jav

      a:281)

      [clientgen]     at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.jav

      a:250)

      [clientgen]     at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.jav

      a:281)

      [clientgen]     at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.jav

      a:250)

      [clientgen]     at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.jav

      a:281)

      [clientgen]     at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.jav

      a:250)

      [clientgen]     at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java

      :127)

      [clientgen]     at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(D

      OMForestScanner.java:92)

      [clientgen]     at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(D

      OMForestScanner.java:100)

      [clientgen]     at com.sun.tools.xjc.reader.internalizer.DOMForestParser.parse(D

      OMForestParser.java:104)

      [clientgen]     at com.sun.tools.xjc.ModelLoader$XMLSchemaParser.parse(ModelLoad

      er.java:269)

      [clientgen]     at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRu

      ntimeEx.java:347)

      [clientgen]     at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.importSchema(NGCCR

      untimeEx.java:258)

      [clientgen]     at com.sun.xml.xsom.impl.parser.state.importDecl.action0(importD

      ecl.java:85)

      [clientgen]     at com.sun.xml.xsom.impl.parser.state.importDecl.leaveElement(im

      portDecl.java:196)

      [clientgen]     at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.endElement(NGC

      CRuntime.java:314)

      [clientgen]     at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.ja

      va:570)

      [clientgen]     at com.sun.tools.xjc.util.SubtreeCutter.endElement(SubtreeCutter

      .java:112)

      [clientgen]     at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.ja

      va:570)

      [clientgen]     at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.ja

      va:570)

      [clientgen]     at com.sun.tools.xjc.reader.xmlschema.parser.CustomizationContex

      tChecker.endElement(CustomizationContextChecker.java:199)

      [clientgen]     at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.ja

      va:570)

      [clientgen]     at com.sun.tools.xjc.reader.internalizer.DOMForestScanner$Locati

      onResolver.endElement(DOMForestScanner.java:140)

      [clientgen]     at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.jav

      a:255)

      [clientgen]     at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.jav

      a:281)

      [clientgen]     at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.jav

      a:250)

      [clientgen]     at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java

      :127)

      [clientgen]     at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(D

      OMForestScanner.java:92)

      [clientgen]     at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(D

      OMForestScanner.java:100)

      [clientgen]     at com.sun.tools.xjc.reader.internalizer.DOMForestParser.parse(D

      OMForestParser.java:104)

      [clientgen]     at com.sun.tools.xjc.ModelLoader$XMLSchemaParser.parse(ModelLoad

      er.java:269)

      [clientgen]     at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRu

      ntimeEx.java:347)

      [clientgen]     at com.sun.xml.xsom.impl.parser.ParserContext.parse(ParserContex

      t.java:128)

      [clientgen]     at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:171)

       

      [clientgen]     at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:160)

       

      [clientgen]     at com.sun.tools.xjc.ModelLoader.createXSOM(ModelLoader.java:534

      )

      [clientgen]     at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(Schema

      CompilerImpl.java:269)

      [clientgen]     at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(Schema

      CompilerImpl.java:95)

      [clientgen]     at com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.bind

      (JAXBModelBuilder.java:142)

      [clientgen]     at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildJAXB

      Model(WSDLModeler.java:2298)

      [clientgen]     at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.internalB

      uildModel(WSDLModeler.java:198)

      [clientgen]     at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildMode

      l(WSDLModeler.java:141)

      [clientgen]     at com.sun.tools.ws.wscompile.WsimportTool.buildWsdlModel(Wsimpo

      rtTool.java:444)

      [clientgen]     at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java

      :205)

      [clientgen]     at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java

      :183)

      [clientgen]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      [clientgen]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces

      sorImpl.java:62)

      [clientgen]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet

      hodAccessorImpl.java:43)

      [clientgen]     at java.lang.reflect.Method.invoke(Method.java:483)

      [clientgen]     at com.sun.tools.ws.Invoker.invoke(Invoker.java:174)

      [clientgen]     at com.sun.tools.ws.WsImport.main(WsImport.java:57)

      [clientgen] weblogic.wsee.tools.WsBuildException: Error running JAX-WS clientgen

      : wsimport failed

      [clientgen]     at weblogic.wsee.tools.anttasks.ClientGenFacadeTask.execute(Clie

      ntGenFacadeTask.java:264)

      [clientgen]     at weblogic.wsee.tools.anttasks.ClientGenTask.execute(ClientGenT

      ask.java:373)

      [clientgen]     at org.apache.tools.ant.Task.perform(Task.java:341)

      [clientgen]     at org.apache.tools.ant.Target.execute(Target.java:309)

      [clientgen]     at org.apache.tools.ant.Target.performTasks(Target.java:336)

      [clientgen]     at org.apache.tools.ant.Project.executeTarget(Project.java:1339)

       

      [clientgen]     at org.apache.tools.ant.Project.executeTargets(Project.java:1255

      )

      [clientgen]     at org.apache.tools.ant.Main.runBuild(Main.java:609)

      [clientgen]     at org.apache.tools.ant.Main.start(Main.java:196)

      [clientgen]     at org.apache.tools.ant.Main.main(Main.java:235)

      [clientgen] Caused by: weblogic.wsee.tools.WsBuildException: Error running JAX-W

      S clientgen: wsimport failed

      [clientgen]     at weblogic.wsee.tools.clientgen.jaxws.ClientGenImpl.execute(Cli

      entGenImpl.java:220)

      [clientgen]     at weblogic.wsee.tools.anttasks.ClientGenFacadeTask.execute(Clie

      ntGenFacadeTask.java:260)

      [clientgen]     ... 9 more

      [clientgen] Caused by: wsimport failed

      [clientgen]     at com.sun.tools.ws.ant.WsTask2.execute(WsTask2.java:432)

      [clientgen]     at com.sun.tools.ws.ant.WsImport2.execute(WsImport2.java:558)

      [clientgen]     at weblogic.wsee.tools.clientgen.jaxws.ClientGenImpl.execute(Cli

      entGenImpl.java:214)

      [clientgen]     ... 10 more

      [clientgen] --- Nested Exception ---

      [clientgen] weblogic.wsee.tools.WsBuildException: Error running JAX-WS clientgen

      : wsimport failed

      [clientgen]     at weblogic.wsee.tools.clientgen.jaxws.ClientGenImpl.execute(Cli

      entGenImpl.java:220)

      [clientgen]     at weblogic.wsee.tools.anttasks.ClientGenFacadeTask.execute(Clie

      ntGenFacadeTask.java:260)

      [clientgen]     at weblogic.wsee.tools.anttasks.ClientGenTask.execute(ClientGenT

      ask.java:373)

      [clientgen]     at org.apache.tools.ant.Task.perform(Task.java:341)

      [clientgen]     at org.apache.tools.ant.Target.execute(Target.java:309)

      [clientgen]     at org.apache.tools.ant.Target.performTasks(Target.java:336)

      [clientgen]     at org.apache.tools.ant.Project.executeTarget(Project.java:1339)

       

      [clientgen]     at org.apache.tools.ant.Project.executeTargets(Project.java:1255

      )

      [clientgen]     at org.apache.tools.ant.Main.runBuild(Main.java:609)

      [clientgen]     at org.apache.tools.ant.Main.start(Main.java:196)

      [clientgen]     at org.apache.tools.ant.Main.main(Main.java:235)

      [clientgen] Caused by: wsimport failed

      [clientgen]     at com.sun.tools.ws.ant.WsTask2.execute(WsTask2.java:432)

      [clientgen]     at com.sun.tools.ws.ant.WsImport2.execute(WsImport2.java:558)

      [clientgen]     at weblogic.wsee.tools.clientgen.jaxws.ClientGenImpl.execute(Cli

      entGenImpl.java:214)

      [clientgen]     ... 10 more

       

      BUILD FAILED

      file:C:/workspace_agile/view/shentang_view_0808/apcm/docs/webservices/samples/JA

      X-WS-Sample/build/build.xml:46: weblogic.wsee.tools.WsBuildException: Error runn

      ing JAX-WS clientgen: wsimport failed

       

      Total time: 3 seconds