My Oracle Support Banner

Translation Failure - Failed to translate JSON to XML. After Migrating To 12.2.1.4 From 12.2.1.2 (Doc ID 2631627.1)

Last updated on JANUARY 27, 2020

Applies to:

Oracle Service Bus - Version 12.2.1.4.0 and later
Information in this document applies to any platform.

Symptoms

On : 12.2.1.4.0 version, OSB Transports

After migrating to 12.2.1.4 from 12.2.1.2 , seeing JsonTranslator.translateFromNative TranslationException

ERROR
-----------------------

2019-12-24T12:55:47.190+01:00] [osbpre91] [ERROR] [] [oracle.tip.pc.services.translation.xlators.json.JsonTranslator] [tid: [ACTIVE].ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 2aa18f10-763a-4bbb-b456-7d6fa1e9a1b6-000d4efb,0:5] [partition-name: PartitionName] [tenant-name: TenantName] [FlowId: xxxxMwrkpPY0nn7prGP5iY1TzAokxxxxxB] JsonTranslator.translateFromNative TranslationException caught[[
ORABPEL-15235

Translation Failure.
Failed to translate JSON to XML.
The incoming data does not conform to the NXSD schema. Please correct the problem.

at oracle.tip.pc.services.translation.xlators.json.JsonTranslator.translateFromNative(JsonTranslator.java:265)
at oracle.tip.pc.services.translation.xlators.json.JsonTranslator.translateFromNative(JsonTranslator.java:118)
at com.bea.wli.sb.resources.wadl.translation.JSONTranslator.decode(JSONTranslator.java:126)
at com.bea.wli.sb.service.handlerchain.handlers.OutboundWsdlRestHandler$AbstractResponseMessage.getPart(OutboundWsdlRestHandler.java:365)
at com.bea.wli.sb.service.handlerchain.handlers.OutboundWsdlRestHandler$AbstractResponseMessage.getPart(OutboundWsdlRestHandler.java:318)
at com.bea.alsb.ws.codec.internal.runtime.soap.SoapDocCodec.marshallBody(SoapDocCodec.java:67)
at com.bea.alsb.ws.codec.internal.runtime.soap.SoapCodec.marshall(SoapCodec.java:146)
at com.bea.alsb.ws.codec.internal.runtime.soap.SoapDocClientCodec.marshall(SoapDocClientCodec.java:58)
at com.bea.wli.sb.service.handlerchain.handlers.OutboundWsdlRestHandler.handleResponse(OutboundWsdlRestHandler.java:208)
at com.bea.wli.sb.service.handlerchain.handlers.AbstractHandler$1.handleResponse(AbstractHandler.java:292)
at com.bea.wli.sb.service.handlerchain.handlers.AbstractHandler.handleResponse(AbstractHandler.java:137)
at com.bea.wli.sb.service.handlerchain.handlers.OutboundMessageContentHandler.handleResponse(OutboundMessageContentHandler.java:89)
at com.bea.wli.sb.service.handlerchain.handlers.AbstractHandler$1.handleResponse(AbstractHandler.java:292)
at com.bea.wli.sb.service.handlerchain.handlers.AbstractHandler.handleResponse(AbstractHandler.java:137)
at com.bea.wli.sb.service.handlerchain.handlers.LoadBalanceFailover$LoadBalanceFailoverHelper.handleResponse(LoadBalanceFailover.java:510)
at com.bea.wli.sb.service.handlerchain.handlers.AbstractHandler.handleResponse(AbstractHandler.java:137)
at com.bea.wli.sb.service.handlerchain.handlers.UpdateOutboundStatistics.handleResponse(UpdateOutboundStatistics.java:88)
at com.bea.wli.sb.service.handlerchain.handlers.AbstractHandler$1.handleResponse(AbstractHandler.java:292)
at com.bea.wli.sb.service.handlerchain.handlers.AbstractHandler.handleResponse(AbstractHandler.java:137)
at com.bea.wli.sb.service.handlerchain.handlers.EndpointManagementHandler.handleResponse(EndpointManagementHandler.java:122)
at com.bea.wli.sb.service.handlerchain.handlers.AbstractHandler$1.handleResponse(AbstractHandler.java:292)
at com.bea.wli.sb.service.handlerchain.handlers.TransportProviderInvoker$ServiceTransportListener.onReceiveResponse(TransportProviderInvoker.java:325)
at com.bea.wli.sb.transports.http.wls.rest.JerseyBasicOutboundMessageContext.callListenerAndClose(JerseyBasicOutboundMessageContext.java:611)
at com.bea.wli.sb.transports.http.wls.rest.JerseyBasicOutboundMessageContext$Reply.run(JerseyBasicOutboundMessageContext.java:674)
at weblogic.work.WorkAreaContextWrap.run(WorkAreaContextWrap.java:60)
at com.bea.alsb.platform.weblogic.WlsWorkManagerServiceImpl$WorkAdapter.run(WlsWorkManagerServiceImpl.java:304)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:681)
at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:352)
at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:337)
at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:57)
at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:655)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:420)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:360)
Caused by: java.lang.NullPointerException
at de.odysseus.staxon.json.JsonXMLStreamReader.readData(JsonXMLStreamReader.java:117)
at de.odysseus.staxon.json.JsonXMLStreamReader.consume(JsonXMLStreamReader.java:205)
at de.odysseus.staxon.json.JsonXMLStreamReader.consume(JsonXMLStreamReader.java:153)
at de.odysseus.staxon.base.AbstractXMLStreamReader.hasNext(AbstractXMLStreamReader.java:411)
at oracle.tip.pc.services.translation.xlators.json.JsonSaxEventsGenerator.generateEvents(JsonSaxEventsGenerator.java:261)
at oracle.tip.pc.services.translation.xlators.json.JsonTranslator.translateFromNative(JsonTranslator.java:177)
... 33 more

]]



STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Migrate the environment from 12.2.1.2.0 to 12.2.1.4.0
2. Execute the service to see the mentioned error



Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.