Skip to Content
author's profile photo Former Member
Former Member

Null Pointer Exception in HWC when using Personalisation Key as Input for Load Argument for MBO

Hey there,

I have a very strange Error message. I programmed a "Funktionsbaustein" in my SAP Backend. It takes the Customer Number KUNNR and gives me back a transaktion history with some financial data. I can create, delyoy and test an MBO and I recieve values from the Backend. But when I call the findAll operation inside the HWC /Android Emulator) I get the follwoing Exception:

A Personalisation Key is Mapped to a Key that point to an Edit Box. The App did almost the same as the Flight List example from the Sybase Doku. I tried every solution that came to my mind like, set every possible default value, make the Personalisation Key nullable or not nullable, the same with the attribute mapping of the MBO, but nothing works.

Per Definition the KUNNR is nullable and I cannot change this. But I have no Idea if that is the reason for this Error.

That's the Error Dump from the SCC:

2012-11-01 14:18:21.996 Subsystem=Error Application ID=HWC, Application Connection ID=Simulator92ee4434-97e6-4e6c-bfa7-8c40fc01e5eb__HWC, User=supAdmin@admin, Correlation ID=, Package=kundenstammdaten:1.0, MBO=Kundenfinanzdaten, Operation=, Thread ID=4187, Node ID=tdccecs1p, Error=java.lang.RuntimeException was thrown by transaction com.sybase.djc.transaction.TransactionContext.*AnonymousTransaction*\njava.lang.RuntimeException: Failed to execute JCA operation

at com.sybase.vader.da.jca.JcaInteractionOperation.execute(

at com.sybase.vader.statistics.MonitoringOperation.execute(

at com.sybase.vader.service.interaction.BranchingInteractionOperation.getRootRecord(

at com.sybase.vader.service.interaction.BranchingInteractionOperation.execute(

at com.sybase.vader.core.vdb.interaction.InteractionQueryOperation.executeQuery(

at com.sybase.vader.cache.VTFindAllQueryOperation.executeQuery(

at com.sybase.vader.cache.PKMergeProcessor.executeCurrentQuery(

at com.sybase.vader.cache.PKMergeProcessor.actualAccumulateDeltas(

at com.sybase.vader.cache.PKMergeProcessor.accumulateDeltas(

at com.sybase.vader.cache.PKMergeProcessor.accumulateDeltas(

at com.sybase.vader.cache.MonitoringMergeProcessor.accumulateDeltas(

at com.sybase.vader.cache.SimpleRefreshManager.accumulateDeltas(

at com.sybase.vader.cache.SimpleRefreshManager.refreshLoadGroup(

at com.sybase.vader.cache.SimpleRefreshManager.refreshLoadGroups(

at com.sybase.vader.cache.SimpleRefreshManager.access$600(

at com.sybase.vader.cache.SimpleRefreshManager$2.invoke(

at com.sybase.vader.djc.environment.MmsDjcTransactionManager.internalInvoke(

at com.sybase.vader.djc.environment.MmsDjcTransactionManager.access$000(

at com.sybase.vader.djc.environment.MmsDjcTransactionManager$1.invoke(

at com.sybase.djc.transaction.TransactionManager.invokeRequiresNew(

at com.sybase.djc.transaction.TransactionManager.invokeRequiresNew(

at com.sybase.vader.djc.environment.MmsDjcTransactionManager.invokeRequiresNew(

at com.sybase.vader.cache.SimpleRefreshManager.internalRefreshAsNeeded(

at sun.reflect.GeneratedMethodAccessor394.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(

at java.lang.reflect.Method.invoke(

at com.sybase.vader.cache.CacheUtil.invokeWithDeadlockRetry(

at com.sybase.vader.cache.SimpleRefreshManager.invokeWithDeadlockRetry(

at com.sybase.vader.cache.SimpleRefreshManager.refreshAsNeeded(

at com.sybase.vader.cache.SimpleRefreshManager.refreshAsNeeded(

at com.sybase.vader.cache.CacheStatisticsRefreshManager.refreshAsNeeded(

at com.sybase.vader.cache.CompositeRefreshManager.refreshAsNeeded(

at com.sybase.vader.mms.DataServiceImpl.beforeDownload(

at Kundenstammdaten.server.Kundenfinanzdaten.searchHandler(

at Kundenstammdaten.server.intrnl.Kundenfinanzdaten_ML.onMessage(

at Kundenstammdaten.server.KundenstammdatenDB.dispatchReceivedMessage(

at Kundenstammdaten.server.intrnl.KundenstammdatenDB_ML.onMessage(

at com.sybase.sup.server.mbs.MessageReceiver.processMessage(

at com.sybase.sup.server.mbs.MboRequestHandler.execute(

at com.sybase.sup.server.msgchannel.internal.MessageChannelInternal.dispatch(

at com.sybase.sup.server.msgchannel.internal.MessageChannelInternal_DJC.access$001(

at com.sybase.sup.server.msgchannel.internal.MessageChannelInternal_DJC$1.invoke(

at com.sybase.djc.transaction.TransactionManager.invokeRequiresNew(

at com.sybase.djc.transaction.TransactionManager.invokeRequiresNew(

at com.sybase.sup.server.msgchannel.internal.MessageChannelInternal_DJC.dispatch(

at com.sybase.sup.server.msgchannel.internal.InboundMoIIOPTransportImpl.process(

at com.sybase.sup.server.msgchannel.internal.InboundMoIIOPTransportImpl.execute(

at com.sybase.sup.server.msgchannel.internal.InboundMoIIOPTransportImpl_DJC.$invoke(

at com.sybase.djc.rmi.iiop.server.MessageHandler.processRequest(


at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(

at java.util.concurrent.ThreadPoolExecutor$


Caused by: java.lang.NullPointerException

at com.sybase.vader.jca.sap3.connector.cci.SapFunctionModuleDynamicMetadataMappedRecord.put(

at com.sybase.vader.jca.sap3.connector.cci.SapRootInteraction.execute(

at com.sybase.vader.da.jca.JcaInteractionOperation.execute(

... 52 more

I'm thankful for every help with this.

Greetings David

exception.png (136.2 kB)
nullable.png (24.0 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Nov 01, 2012 at 07:32 PM

    Its possible someone from the SUP server team, specifically the DS team, will recognize this error, but unfortunately I don't. Based on the way that is manifesting, I don't imagine we'll be able to diagnose it without substantially more information, such as the logs and so forth. Your best bet, frankly, is to open up an OSS message, or something similar, and have us help you through that mechanism.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 02, 2012 at 02:40 PM

    Hey David,

    I only have the log output. I guess that something went wrong at the creation of the Fuba. Solution sounds strange, but it worked. I wonder because erverything in the Preview MBO View worked fine, also the Fuba inside SAP worked. Only inside the HWC an error appeard. I can send you my coding if you like.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 01, 2012 at 05:00 PM

    I switched the Input Parameter of the Funktionsbaustein to the follwing

    so I was able to make the Load Parameters not nullable with no effekt. Previously the "Bezugstyp" was "KUNNR".

    But with no effect.Same error again.

    I setup an example project where a stored procedure from the sampledb take a value and return its result. Everything works fine in that case. Now I have completly no Idea what the error could be.

    input.png (13.8 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 02, 2012 at 11:26 AM

    So the error stays the same. I switched to Tabels for im and exporting the data in the Fuba. Everytime the same. In the Preview in the Sybase Workspace it is working, in the HWC the Exception is thrown.

    When I set an "external Breakpoint" in my Fuba I noticed that it is not called before the Exception is thrown, so it has to be some sort of Internal HWC Error.

    If I delete the Personalisation key from my projekt, the error stays.

    If I use my Fuba without any selected input parameters there is no error.

    So there has to be something wrong with the mapping inside the HWC because when the error appears the Fuba is not called. How to figure that out, debugging the HWC running inside the android emulator is no fun at all.

    Add a comment
    10|10000 characters needed characters exceeded

    • When I set an "external Breakpoint" in my Fuba I noticed that it is not called before the Exception is thrown, so it has to be some sort of Internal HWC Error.

      Actually, no, that's not what it means. What's happening, based on the logs you've shown, is that it makes it to the SUP server, but it throws an exception while attempting to formulate the call to the RFC. That's why the RFC call is never made.

  • author's profile photo Former Member
    Former Member
    Posted on Nov 02, 2012 at 12:16 PM

    So here is the Solution:

    I created a new RFC Fuba, copied 1 to 1 my coding from the existing one. And it works.


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.