org.apache.cxf.tools.common.ToolException

java.lang.reflect.UndeclaredThrowableException

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web4

  • java.lang.reflect.UndeclaredThrowableException
  • via nabble.com by Unknown author, 1 year ago
    java.lang.reflect.UndeclaredThrowableException
  • java.lang.reflect.UndeclaredThrowableException
  • Stack trace

    • org.apache.cxf.tools.common.ToolException: java.lang.reflect.UndeclaredThrowableException at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:279) 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.reflect.UndeclaredThrowableException at $Proxy38.required(Unknown Source) at com.sun.tools.xjc.generator.bean.field.AbstractField.annotateReference(AbstractField.java:187) at com.sun.tools.xjc.generator.bean.field.AbstractField.annotate(AbstractField.java:156) at com.sun.tools.xjc.generator.bean.field.AbstractFieldWithVar.createField(AbstractFieldWithVar.java:75) at com.sun.tools.xjc.generator.bean.field.SingleField.<init>(SingleField.java:89) at com.sun.tools.xjc.generator.bean.field.SingleField.<init>(SingleField.java:76) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.sun.tools.xjc.generator.bean.field.GenericFieldRenderer.generate(GenericFieldRenderer.java:64) at com.sun.tools.xjc.generator.bean.field.DefaultFieldRenderer.generate(DefaultFieldRenderer.java:79) at com.sun.tools.xjc.generator.bean.BeanGenerator.generateFieldDecl(BeanGenerator.java:759) at com.sun.tools.xjc.generator.bean.BeanGenerator.generateClassBody(BeanGenerator.java:540) at com.sun.tools.xjc.generator.bean.BeanGenerator.<init>(BeanGenerator.java:243) at com.sun.tools.xjc.generator.bean.BeanGenerator.generate(BeanGenerator.java:161) at com.sun.tools.xjc.model.Model.generateCode(Model.java:286) at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:252) at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:85) at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:381) at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateTypes(WSDLToJavaContainer.java:573) at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:228) at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:128) at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:271) ... 4 more Caused by: java.lang.NoSuchMethodException: javax.xml.bind.annotation.XmlElementRef.required() at java.lang.Class.getDeclaredMethod(Class.java:1937) at com.sun.codemodel.TypedAnnotationWriter.invoke(TypedAnnotationWriter.java:108) ... 28 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    5 times, 1 month ago
    63 times, 1 month ago
    2 times, 1 month ago
    Unknown user
    Once, 2 months ago
    11 times, 3 months ago
    48 more bugmates