IBM Support

Running the agent server for FileiO gives (java.lang.IllegalArgumentException)

Troubleshooting


Problem

Running the agent server for FileiO gives (java.lang.IllegalArgumentException)

Symptom

PART: File Adapter 5.0 Platform
PRODUCT: Supply Chain Event Management
COMPONENT: File Schema
OS: <None> - <None>
DATABASE: <None> - <None>
WEB SERVER: -
WEB BROWSER: -

Runing the agentserver script to run my custom FlatFileServer. The service Calls the FileIO, then Text Translator, then XSL Translator and then the CreateOrder. Following exception is thrown when agentserver.sh is used to start the server


Exception in thread "main" java.lang.IllegalArgumentException: No attributes are implemented
at weblogic.apache.xerces.jaxp.DocumentBuilderFactoryImpl.setAttribute(DocumentBuil derFactoryImpl.java:93)
at weblogic.xml.jaxp.WebLogicDocumentBuilderFactory.setAttribute(WebLogicDocumentBu ilderFactory.java:132)
at weblogic.xml.jaxp.RegistryDocumentBuilder.setupDocumentBuilderFactory(RegistryDo cumentBuilder.java:296)
at weblogic.xml.jaxp.RegistryDocumentBuilder.getDefaultDocumentBuilderFactory(Regis tryDocumentBuilder.java:260)
at weblogic.xml.jaxp.RegistryDocumentBuilder.getDocumentBuilder(RegistryDocumentBui lder.java:200)
at weblogic.xml.jaxp.RegistryDocumentBuilder.parse(RegistryDocumentBuilder.java:133 )
at com.yantra.interop.services.ff.schema.InputSchemaValidator.validate(InputSchemaV alidator.java:154)
at com.yantra.interop.services.ff.schema.FFSchemaRepository.loadSchemaAndValidate(F FSchemaRepository.java:139)
at com.yantra.interop.services.ff.schema.FFSchemaRepository.getValidatedSchema(FFSc hemaRepository.java:115)
at com.yantra.interop.services.ff.FFConfigurationDescriptor.validateReceiverConfig( FFConfigurationDescriptor.java:718)
at com.yantra.interop.services.ff.FFContext.configureReceiver(FFContext.java:89)<br > at com.yantra.interop.services.ff.FFContext.initServices(FFContext.java:62)
at com.yantra.integration.adapter.IntegrationAdapter.initServices(IntegrationAdapte r.java:200)
at com.yantra.integration.adapter.IntegrationAdapter.start(IntegrationAdapter.java: 305)
at com.yantra.integration.adapter.IntegrationAdapter.main(IntegrationAdapter.java:3 61)

Cause

Resolving The Problem

While starting the Integration Server set the following two properties to the JVM

-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFac toryImpl
-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBu ilderFactoryImpl

so the agentserver.sh script should look somethig like this.....
java -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilde rFactoryImpl com.yantra.integration.adapter.IntegrationAdapter <ServerName>

[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

PRI49207

Product Synonym

[<p><b>]Fact[</b><p>];

Document Information

Modified date:
16 June 2018

UID

swg21521887