SAP Knowledge Base Article - Preview

3425421 - Could not parse attributes XML string for Channel[*]. Couldn't descramble pwd for attribute HttpPassword.

Symptom

You're trying to:

  • Activate a channel. 
  • Performing a consistency check for a channel.
  • Creating a new Adapter. 
  • Trying to change an existing Adapter.

In the XPI trace, you can find the below error:

Failure at Cache-Refresh data consumption !!!
<?xml version="1.0" encoding="UTF-8"?>
<CacheRefreshError>
  <EngineType>AE</EngineType>
  <EngineName>***</EngineName>
  <RefreshMode>C</RefreshMode>
  <Channel>
    <PartyName></PartyName>
    <ServiceName>BC_XXX_TEST_RECEIVER</ServiceName>
    <ChannelName>REST_RECEIVER_LV_MATCHER_S4</ChannelName>
    <ChannelObjectId>***</ChannelObjectId>
    <ChannelError>
      <Message>
        Could not parse Channel '**********'(ObjectId: ***) AdapterType: REST|http://sap.com/xi/XI/System|***: 
      </Message>
      <Trace>
        com.sap.aii.af.service.cpa.impl.exception.CPASchemaException: Could not parse attributes XML string for Channel[REST] with Id ***. Reason: org.xml.sax.SAXException: Couldn't descramble pwd for attribute HttpPassword. Reason: java.lang.NullPointerException: while trying to get the length of a null array loaded from local variable 'bytes'
java.lang.NullPointerException: while trying to get the length of a null array loaded from local variable 'bytes'
at com.sap.aii.af.service.cpa.impl.schema.SchemaManagedCPAObject.parseObjectFromXML(SchemaManagedCPAObject.java:305)
at com.sap.aii.af.service.cpa.impl.container.AttributeExtendedCPAObjectImpl.getSchemaManagedObject(AttributeExtendedCPAObjectImpl.java:68)
at com.sap.aii.af.service.cpa.impl.container.AttributeExtendedCPAObjectImpl.parseXMLAttributes(AttributeExtendedCPAObjectImpl.java:90)
at...
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:185)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:302)
Caused by: org.xml.sax.SAXException: Couldn't descramble pwd for attribute HttpPassword. Reason: java.lang.NullPointerException: while trying to get the length of a null array loaded from local variable 'bytes'
java.lang.NullPointerException: while trying to get the length of a null array loaded from local variable 'bytes'
at com.sap.aii.af.service.cpa.impl.schema.SchemaManagedCPAObject$SAXHandler.endElement(SchemaManagedCPAObject.java:417)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:610)
at...
at com.sap.aii.af.service.cpa.impl.schema.SchemaManagedCPAObject.parseObjectFromXML(SchemaManagedCPAObject.java:298)
... 24 more
Caused by: java.lang.NullPointerException: while trying to get the length of a null array loaded from local variable 'bytes'
at java.lang.String.<init>(String.java:491)
at com.sap.aii.utilxi.misc.encrypt.HardWiredEncryptor.decryptBytes2String(HardWiredEncryptor.java:95)
at com.sap.aii.utilxi.misc.encrypt.HardWiredEncryptor.decryptString2String(HardWiredEncryptor.java:82)
at com.sap.aii.af.service.cpa.impl.schema.SchemaManagedCPAObject$SAXHandler.endElement(SchemaManagedCPAObject.java:413)
... 38 more

      </Trace>
    </ChannelError>
  </Channel>
</CacheRefreshError>

PS: This issue might also occur post SP upgrade (example SP25 to SP28).


Read more...

Environment

SAP PI/PO, Process Integration, Process Orchestration, NWA 7.5

Product

SAP NetWeaver 7.5

Keywords

NWDS, PI, PO Process Integration, Process Orchestration, Integrated Flow, communication channel, CPA cache, SP28, SP27, SP26, SP25, SAP 7.5, while trying to get the length of a null array loaded from local variable 'bytes',  com.sap.aii.af.service.cpa.impl.exception.CPASchemaException: Could not parse attributes XML string for Channel[REST] with Id  , KBA , BC-XI-IBF-VNT , Versioning & Transport , BC-XI-IDE-IFL , NWDS / Eclipse IDE Tools for Integration Flow , BC-XI-IBC-SRV , Services , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.