Comments (5)
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.
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.
Is there an update for this issue? I'm experiencing the same behavior.
from fuelsdk-java.
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.
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)
- [BUG] FuelSdk is not compatible with Java 11 HOT 10
- [BUG] Issue updating ETAsset using client.update()
- [BUG]
- [Enhancement] Support PUT method for ETRestConnection
- Retrieve Automation Object
- Successfully execute update data extension row in SDK, but the row in SFMC is not updated.
- [BUG] ErrorCodeId is not present in the SubscriberResult in etframework.wsdl which is causing un-marsheling exceptions HOT 3
- [BUG] ETLClient createDataExtensionDataRow have too long size of the request headers for field User-Agent and request failed
- [BUG] High vulnerabilities found in org.apache.cxf_cxf-core version 3.1.2 HOT 1
- [CVE-2021-44228] zero-day in the Log4j Java library HOT 15
- [BUG] Message xxxx is not valid for the client.
- [ISSUE] - Initiate ET client throwing Runtime modeler execption HOT 1
- Tenant's endpoint API integrations update HOT 1
- [BUG] CVE-2017-5645 - upgrade org.apache.logging.log4j:log4j-core to version 2.8.2 or higher HOT 1
- [Enhancement] - Replace log4j by a logging facade
- [BUG] variable [soap] is not assigned if variable [continueRequestId] is not null HOT 1
- [Enhancement] Expose Parent Id on ETFolder
- [Enhancement] Add support for Spring Boot 3 / add Jakarta-based artifact
- [Enhancement] - support java 17
- [BUG] Can't create Asset HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fuelsdk-java.