<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic JaxpContext Error when executing  API request in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/JaxpContext-Error-when-executing-API-request/m-p/128726#M2300</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help on this error plz?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when trying to send a request i get this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Caused by: java.lang.IllegalStateException: Unable to determine StAX implementation: class __redirected.__XMLInputFactory
	at com.netapp.nmsdk.common.xml.JaxpContext$Stax.detectStaxImplementation(JaxpContext.java:161)
	at com.netapp.nmsdk.common.xml.JaxpContext$Stax.&amp;lt;init&amp;gt;(JaxpContext.java:70)
	at com.netapp.nmsdk.common.xml.JaxpContext$Stax.&amp;lt;init&amp;gt;(JaxpContext.java:44)
	at com.netapp.nmsdk.common.xml.JaxpContext.&amp;lt;clinit&amp;gt;(JaxpContext.java:35)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After trying again, the error changes and i get this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.netapp.nmsdk.common.xml.JaxpContext
	at com.netapp.nmsdk.client.XmlApiInvocation.writeRequest(XmlApiInvocation.java:81)
	at com.netapp.nmsdk.client.ApiInvocation.invoke(ApiInvocation.java:109)
	at com.netapp.nmsdk.client.XmlApiInvocation.invoke(XmlApiInvocation.java:42)
	at com.netapp.nmsdk.client.ApiRunner.run(ApiRunner.java:135)
	at com.netapp.nmsdk.client.ApiRunner.run(ApiRunner.java:105)
	at com.netapp.nmsdk.client.ApiIteratorSupport$GetIterStyleIterator.retrieveNextBatch(ApiIteratorSupport.java:182)
	at com.netapp.nmsdk.client.ApiIteratorSupport$ApiIterator.retrieveNextBatchIfNecessary(ApiIteratorSupport.java:125)
	at com.netapp.nmsdk.client.ApiIteratorSupport$ApiIterator.hasNext(ApiIteratorSupport.java:102)&lt;/PRE&gt;&lt;P&gt;the JaxpContext is there (in com.netapp.nmsdk.client) but i dont have the source code to check what it needs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you list the necessary dependencies to other libraries? I am curretnly using the following.&lt;/P&gt;&lt;P&gt;nmsdk-runtime 5.6&lt;/P&gt;&lt;P&gt;ontap-api 8.3.1&lt;/P&gt;&lt;P&gt;commons-lang 2.6&lt;/P&gt;&lt;P&gt;commons-io 2.4&lt;/P&gt;&lt;P&gt;commons-codec 1.8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 15:22:48 GMT</pubDate>
    <dc:creator>Nexica</dc:creator>
    <dc:date>2025-06-04T15:22:48Z</dc:date>
    <item>
      <title>JaxpContext Error when executing  API request</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/JaxpContext-Error-when-executing-API-request/m-p/128726#M2300</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help on this error plz?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when trying to send a request i get this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Caused by: java.lang.IllegalStateException: Unable to determine StAX implementation: class __redirected.__XMLInputFactory
	at com.netapp.nmsdk.common.xml.JaxpContext$Stax.detectStaxImplementation(JaxpContext.java:161)
	at com.netapp.nmsdk.common.xml.JaxpContext$Stax.&amp;lt;init&amp;gt;(JaxpContext.java:70)
	at com.netapp.nmsdk.common.xml.JaxpContext$Stax.&amp;lt;init&amp;gt;(JaxpContext.java:44)
	at com.netapp.nmsdk.common.xml.JaxpContext.&amp;lt;clinit&amp;gt;(JaxpContext.java:35)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After trying again, the error changes and i get this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.netapp.nmsdk.common.xml.JaxpContext
	at com.netapp.nmsdk.client.XmlApiInvocation.writeRequest(XmlApiInvocation.java:81)
	at com.netapp.nmsdk.client.ApiInvocation.invoke(ApiInvocation.java:109)
	at com.netapp.nmsdk.client.XmlApiInvocation.invoke(XmlApiInvocation.java:42)
	at com.netapp.nmsdk.client.ApiRunner.run(ApiRunner.java:135)
	at com.netapp.nmsdk.client.ApiRunner.run(ApiRunner.java:105)
	at com.netapp.nmsdk.client.ApiIteratorSupport$GetIterStyleIterator.retrieveNextBatch(ApiIteratorSupport.java:182)
	at com.netapp.nmsdk.client.ApiIteratorSupport$ApiIterator.retrieveNextBatchIfNecessary(ApiIteratorSupport.java:125)
	at com.netapp.nmsdk.client.ApiIteratorSupport$ApiIterator.hasNext(ApiIteratorSupport.java:102)&lt;/PRE&gt;&lt;P&gt;the JaxpContext is there (in com.netapp.nmsdk.client) but i dont have the source code to check what it needs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you list the necessary dependencies to other libraries? I am curretnly using the following.&lt;/P&gt;&lt;P&gt;nmsdk-runtime 5.6&lt;/P&gt;&lt;P&gt;ontap-api 8.3.1&lt;/P&gt;&lt;P&gt;commons-lang 2.6&lt;/P&gt;&lt;P&gt;commons-io 2.4&lt;/P&gt;&lt;P&gt;commons-codec 1.8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 15:22:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/JaxpContext-Error-when-executing-API-request/m-p/128726#M2300</guid>
      <dc:creator>Nexica</dc:creator>
      <dc:date>2025-06-04T15:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: JaxpContext Error when executing  API request</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/JaxpContext-Error-when-executing-API-request/m-p/129274#M2314</link>
      <description>&lt;P&gt;We investigated and found the problem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is happening when using WildFly 10.1.0 Final, which uses a Proxy Implementation of WOODSTOX and cannot be detected as a valid implementation of &amp;nbsp;StaxImplementation in&amp;nbsp;JaxpContext. The problem lies on these lines:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;public static enum StaxImplementation {
            WOODSTOX{

                @Override
                boolean isInstance(XMLInputFactory xmlInputFactory) {
                    try {
                        return Class.forName("com.ctc.wstx.stax.WstxInputFactory", true, Thread.currentThread().getContextClassLoader()).isInstance(xmlInputFactory);
                    }
                    catch (ClassNotFoundException e) {
                        return false;
                    }
                }

            &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;And the solution we tried is this one:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;public static enum StaxImplementation {
			WOODSTOX {

				@Override
				boolean isInstance(XMLInputFactory xmlInputFactory) {
					try {

						try {
							if ((xmlInputFactory.getProperty("org.codehaus.stax2.implVersion") == null)) {
								return Class.forName("com.ctc.wstx.stax.WstxInputFactory",true,&lt;BR /&gt;                                                                                            Thread.currentThread().getContextClassLoader())
										.isInstance(xmlInputFactory);
							}
						} catch (IllegalArgumentException e) {
							return Class.forName("com.ctc.wstx.stax.WstxInputFactory", true,
									Thread.currentThread().getContextClassLoader()).isInstance(xmlInputFactory);
						}

						return true;
					} catch (ClassNotFoundException e) {
						return false;
					}
				} &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;reference: &lt;A href="https://github.com/jamesagnew/hapi-fhir/issues/551" target="_blank"&gt;https://github.com/jamesagnew/hapi-fhir/issues/551&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We would appreciate if you could solve this issue in the next release.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 07:42:28 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/JaxpContext-Error-when-executing-API-request/m-p/129274#M2314</guid>
      <dc:creator>Nexica</dc:creator>
      <dc:date>2017-03-22T07:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: JaxpContext Error when executing  API request</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/JaxpContext-Error-when-executing-API-request/m-p/129388#M2317</link>
      <description>&lt;P&gt;I have responded to&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/31406"&gt;@Nexica&lt;/a&gt;&amp;nbsp;privately, but for the community's knowledge, this has been created as a bug. &amp;nbsp;Please let me know if you have any questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 14:02:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/JaxpContext-Error-when-executing-API-request/m-p/129388#M2317</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2017-03-24T14:02:38Z</dc:date>
    </item>
  </channel>
</rss>

