Giter VIP home page Giter VIP logo

Comments (5)

vtekum avatar vtekum commented on July 22, 2024

Hi.. How did you resolve this issue?
I am getting the same error. It works fine on windows, but fails on linux.
Thanks for your help.

from fuelsdk-java.

AndrewJMiller avatar AndrewJMiller commented on July 22, 2024

One temporary workaround we've found is to allow insecure parsing, but you'll want to be careful changing that setting as it's could open up your system to a DOS vulnerability. http://cxf.apache.org/security-advisories.data/CVE-2013-2160.txt.asc?version=1&modificationDate=1372324301000&api=v2

In java_options and add -Dorg.apache.cxf.stax.allowInsecureParser=1

We would love a fix or a more secure solution.

from fuelsdk-java.

righettime avatar righettime commented on July 22, 2024

Is there an update for this issue? I'm experiencing the same behavior.

from fuelsdk-java.

hanhtd avatar hanhtd commented on July 22, 2024

Apache CXF always requires an XML lib processing to support work with SOAP. And now it only support Woodstox 4.2.x and newer as none of the other. Therefore FuelSDK has a transitive dependency to org.codehaus.woodstox:woodstox-core-asl:4.4.1.

The problem is if you project has an dependency with lower version of woodstox lib (in my project = wstx-asl:3.2.7), the class loader may load lower version then it throw exception.
Please check your project dependency tree and try to resolve this conflict.

It should not consider as a bug. Please close this ticket.

from fuelsdk-java.

ayas-swain avatar ayas-swain commented on July 22, 2024

I faced the same issue recently which took sometime for me to figure out the root cause. Our application's build was running fine on Tomcat-7 but we had upgraded the Tomcat version to Tomcat9 as per a requirement. Application build deployment was successful on one RHEL server while it failed on another similar server. It failed with the below errors -

Error creating bean with name <our app bean name> javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service. Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: java.lang.RuntimeException: Cannot create a secure XMLInputFactory, you should either add woodstox or set org.apache.cxf.stax.allowInsecureParser system property to true if an unsafe mode is acceptable.

In my case the issue was the presence of woodstox-core-asl-4.1.2.jar in WEB-INF/lib folder of the app. Our maven dependency tree was bringing both woodstox-core-asl-4.1.2.jar and woodstox-core-6.2.6.jar into the application's build. Though the group id of these 2 jars are different the package name space (com/ctc/wstx)and teh class names inside the jars are exactly same. The underlying implementations of the classes are different though. The woodstox-core-asl-4.1.2 is a very old jar which was released in Aug-2011 while woodstox-core-6.2.6.jar was released in April-2021 whcih is compatible with Tomcat-8 and above. After i excluded woodstox-core-asl from my maven dependency tree the application got deployed successfully on to Tomcat-9 and it ran without any issues.

from fuelsdk-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.