Odata JDBC Service: getting NullPointerException: while trying to invoke the method

Hi,
I am testing OData, for that I followed the steps given in this tutorial:
http://scn.sap.com/community/developer-center/mobility-platform/blog/2014/06/10/creating-an-odata-service-based-on-sap-gateway-soap-jdbc-and-jpa-data-sources-ba
It wasn't working as it should, so to understand it better, I created a new project with Stock table only.
Manually entered all it's properties and then deploy it.
Issue1: when I create a JDBC connection to connect with derby database, The driver field has maximum limit and whole driver string is not copied. Attached is the screen shot.
Where as I need to enter: org.apache.derby.jdbc.ClientDriver.
Issue 2: I can't test the connection from here, weather it's working fine or not ?
Issue 3:
When I deploy the project and test the result, I get the Stock Service, But when I try to run this, I get nullpointer exception.
URL: http://localhost:8080/gateway/odata/sap/WSTest1;v=1
Response:
<?xml version="1.0" encoding="utf-8"?>
<service xml:base="http://localhost:8080/gateway/odata/sap/WSTest1;v=1/" xmlns="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom">
  <workspace>
   <atom:title>Default</atom:title>
   <collection href="StockSet">
   <atom:title>StockSet</atom:title>
   </collection>
  </workspace>
</service>
Now I need to run StockSet, so next url to access the stock list,
to get stocks:
http://localhost:8080/gateway/odata/sap/WSTest1;v=1/SAP/StockSet
Now I get the following response:
    <?xml version="1.0" ?>
    <error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
    <code>
    </code>
    <message xml:lang="en">java.lang.NullPointerException: while trying to invoke the method java.lang.Object.hashCode() of a null object loaded from local variable 'k'</message>
    </error>
I am not able to figure out, why I am getting this error and how to fix it.
All I want is to create a ODAta on ESPM_STOCK sample table given in example.
Looking forward to hear from you.
Thanks.

Waqas Sadiq
Issue1: when I create a JDBC connection to connect with derby database, The driver field has maximum limit and whole driver string is not copied. Attached is the screen shot.
Are you working on SMP3.0 (lower version than SP03)?
If yes, then there is character restriction in SMP3.0 (SP00, SP01), maximum length for a database driver is 25 characters.
e.g. if driver name is oracle.jdbc.driver.OracleDriver but when you enter this, then you will see onlyoracle.jdbc.driver.Oracle
Until unless we pass the correct driver value things will not work. there is a workaround for this. You create a desitnation with restricted character length.
You would be seeing a property file for each created destination underC:\SAP\MobilePlatform3\Server\config_master\service.destinations\destinations
Go there and open the created "OracleDB" and edit the "DriverName" to the full string:oracle.jdbc.driver.OracleDriver
Please go through this blog for more understanding:
http://scn.sap.com/community/developer-center/mobility-platform/blog/2014/01/09/how-to-connect-an-oracle-db-with-integration-gateway-in-smp3
Note: seems this problem has been resolved in SMP3 SP03
Issue 2: I can't test the connection from here, weather it's working fine or not ?
I didnt find a way to test a destination. So you have to be sure about what all values you are entering.
Once you are done with Destination creation, map it to the respective deployed service under "services" tab.
Issue 3: When I deploy the project and test the result, I get the Stock Service, But when I try to run this, I get nullpointer exception
Make sure you have corrected "Database driver" name manually. And then check if you are facing same issue.
Does this URL expect any input parameters?
http://localhost:8080/gateway/odata/sap/WSTest1;v=1/SAP/StockSet
Regards,
JK

Similar Messages

  • While trying to invoke the method java.lang.String.length() of an object loaded from local variable 'payload'

    Hi,
    Our PI is getting data from WebSphere MQ and pushing to SAP. So our sender CC is JMS and receiver is Proxy. Our PI version is 7.31.
    Our connectivity between the MQ is success but getting the following error while trying to read the payload.
    Text: TxManagerFilter received an error:
    [EXCEPTION]
    java.lang.NullPointerException: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'payload'
           at com.sap.aii.adapter.jms.core.channel.filter.ConvertJmsMessageToBinaryFilter.filter(ConvertJmsMessageToBinaryFilter.java:73)
           at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:204)
           at com.sap.aii.adapter.jms.core.channel.filter.InboundDuplicateCheckFilter.filter(InboundDuplicateCheckFilter.java:348)
           at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:204)
    I have searched SDN but couldn't fix it. Please provide your suggestion.
    With Regards
    Amarnath M

    Hi Amarnath,
    Where exactly you are getting this error?
    If you are getting at JMS Sender communication channel, try to stop and start the JMS communication channel and see the status, also use XPI Inspector to get the exact error log.
    for reference follow below blogs:
    Michal's PI tips: ActiveMQ - JMS - topics with SAP PI 7.3
    Michal's PI tips: XPI inspector - help OSS and yourself
    XPI Inspector

  • RSSDK:300 while trying to invoke the method org.omg.cwm.reso urce.relationa

    Hi All,
    While trying to load data through an info package till PSA, the data load is getting failed with error message "RSSDK:300 while trying to invoke the method org.omg.cwm.reso urce.relational.Table.getName() of an object loade d from local v".
    The source system is UD Connect.
    Does anyone have any idea on this issue.

    Hi All,
    While trying to load data through an info package till PSA, the data load is getting failed with error message "RSSDK:300 while trying to invoke the method org.omg.cwm.reso urce.relational.Table.getName() of an object loade d from local v".
    The source system is UD Connect.
    Does anyone have any idea on this issue.

  • Error: while trying to invoke the method javax.xml.transform.Transformer.

    Hi All,
    I am working on Version 12.1.8 Build(20),  I have referred  SAP notes 1294013 and placed the following files
    - serializer.jar
    - xalan.jar
    - xercesImpl.jar
    - xml-apis.jar
    - xsltc.jar
    in the specified path.
    now when i use XSLT transformation block using IllumRowsetTableWithPageBreaks.xsl i am getting an error
    [ERROR] [XSL_Transformation_0]XSLTransform error: while trying to invoke the method javax.xml.transform.Transformer.transform(javax.xml.transform.Source, javax.xml.transform.Result) of an object loaded from local variable 'processor'
    please guide me.

    Hi Alex,
    No, the case you have explained is not applicable to me. Sharing the code snippet for your reference. This is the code due to which my XSLT gives an error, if I remove these lines of code then the XSLT works fine.
    <xsl:variable name="ENERGY" select="translate(ENERGY,',','')">
         <xsl:choose>
              <xsl:when test="ENERGY= ''">
                   <xsl:value-of select="0.00"/>
              </xsl:when>
              <xsl:otherwise>
                   <xsl:value-of select="ENERGY"/>
              </xsl:otherwise>
         </xsl:choose>
    </xsl:variable>
    Also, the same XSLT works absolutely fine in 12.1 but gives error in 14.0 SP05.
    Warm Regards,
    Anuj

  • Approval task SP09: Evaluation of approvalid failed with Exception: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'aValue'

    Hi everyone,
    I just installed SP09 and i was testing the solution. And I found a problem with the approvals tasks.
    I configured a simple ROLE approval task for validate add event. And when the runtime executes the task, the dispatcher log shows a error:
    ERROR: Evaluation of approvalid failed with Exception: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'aValue'
    And the notifications configured on approval task does not start either.
    The approval goes to the ToDO tab of the approver, but when approved, also the ROLE stays in "Pending" State.
    I downgraded the Runtime components to SP08 to test, and the approvals tasks works correctly.
    Has anyone passed trough this situation in SP09?
    I think there is an issue with the runtime components delivered with this initial package of SP09.
    Suggestions?

    Hi Kelvin,2016081
    The issue is caused by a program error in the Dispatcher component. A fix will be provided in Identity Management SP9 Patch 2 for the Runtime component. I expect the patch will be delivered within a week or two.
    For more info about the issue and the patch please refer to SAPNote 2016081.
    @Michael Penn - I might be able to assist if you provide the ticket number
    Cheers,
    Kristiyan
    IdM Development

  • Error HTTP Status 500 - while trying to invoke the method java.util.Properties.entrySet() of a null object loaded from local variable 'globalProperties'

    Hi,
    I installed BI platform SBOP BI PLAT 4.1 and was able to log in to CMC and BI Launchpad. Post this, I installed SBOP DATA SERVICES 4.2 SP01 PATCH 3 WINDOWS 64B and am getting the above error while trying to open CMC and BI Launchpad.
    Please help

    Thanks Jawahar, re deploying web apps helped.

  • "While trying to invoke the method com.sap.ip.bi.bics.dataaccess consumer.queryview.hierarchy.iqqvDrillPathElement.getCharacteristics Type ()of an object loaded from local variable 'pathElement' (WIS 00000)"

    Hi Gurus,
       We are using BOBI 4.1 and we have created a webI report and while refreshing the report, we are facing the below error first time. After we close the error message and if we refresh again, its working fine. I have found one note (1724168 - Hierarchy error when refreshing a Web Intelligence document) stated that its a bug in 4.0 and its resolved in 4.1. But still am facing the same error in 4.1. Kindly help me to resolve the issue. Anyone input is highly appreciated.
    Thanking you in anticipation.
    Obinna.

    Dear Henry,
       Please find my inputs below.
    What SP are you on? --------- BOBI 4.1 SP2
    what does your webi query look like -   are you selecting a full hierarchy ?  ------- No
    are you filtering your dataset at runtime using input variables / parameters? -------Yes. We  have used formula variable at BW level and I have hard cored its value at BO side in different queries (same report) by giving different value for each query.
    Is your APS / DSL_Bridge properly up-sized on the BIPlatform?  what's the Xmx value in the command line?  --------- Xmx4G
    Does your administrator monitor anything unusual in the BW  SM66/ST05/ST22 ? -------- Everything is working fine in BW system side.
    How high mem usage seen task manager / PIDs on the BIPlatform? -------- Everything is normal (Total RAM Size 24 GB)

  • Service not Available while trying to update the D...

    Hi,
    I am trying to update the device software of my Nokia E5.
    In Ovi Suite it shows that 1 software update for the device is available.
    However, while trying to update the device it creates a backup and says "Service Not Available" -- Try Again Later. This is happening for quite a long time.
    Please help in this matter.
    Thanks.

    wezzyd wrote:
    might be the nokia servers down
    No issues 13.00hrs GMT 30/01/12
    Happy to have helped forum with a Support Ratio = 42.5

  • Getting warning while trying to start the Jdeveloper for first time

    Hi ,
    Every day i am facing this problem while trying to start the Jdeveloper first time, and not able to start till some time.
    i am getting the below exception...
    Unable to create an instance of the java virtual Machine Located at path
    E:\Oracle\Middleware\jdk160_24\jre\bin\client\jvm.dll
    Please can i have the solution to this..
    Regards,
    Rajesh

    user,
    better you remove the contact number. dont leave those things in forums,
    some one may misuse that.
    nice, you can search over forums.
    Jdeveloper installation issue
    https://cn.forums.oracle.com/forums/thread.jspa?messageID=9665899
    http://adfhowto.blogspot.in/2011/09/troubleshooting-unable-t-o-create.html
    https://kr.forums.oracle.com/forums/thread.jspa?threadID=1070230
    unable to create an instance of the Java Virtual Machine Located at path:
    http://pisceansheart.wordpress.com/2009/08/06/solution-to-unable-to-create-an-instance-of-the-java-virtual-machine-for-jdeveloper/

  • Getting error while trying to open the b2b console

    Hi All,
    I have installed weblogic server 10..3.1.0 and SOA 11.1.1.1.0. After installation I started the admin server and managed servers. While trying to open b2b console after login I am getting the following error message
    access denied (oracle.security.jps.service.policystore.PolicyStoreAccessPermission context=APPLICATION,name=b2bui getApplicationPolicy)
    Can anyone suggest whst could be the issue with this.

    hi,
    Suppose if you are installing linux system...
    Once try to change the permissions to your specfied user!
    try this way may be your problem is solved!
    Regards,
    Bala satish Kamma
    Edited by: 932483 on Jun 11, 2012 7:02 PM

  • Getting error while trying to create the push certificate...

    I am getting the following error while trying to create a push certificate for the mdm from the apple site.
    Certificate Signature Verification failed because the signature  is invalid.
    I am mdm vendor as well as the customer. I did the following steps.
    openssl x509 -inform der -in mdm_identity.cer -out mdm.pem
    openssl x509 -inform der -in AppleWWDRCA.cer -out intermediate.pem
    openssl x509 -inform der -in AppleIncRootCertificate.cer -out root.pem
    openssl req -inform pem -outform der -in customer.csr -out customer.der
    created the plist_encoded file using a java program which uses the "SHA1WthRSA"
    When i tried to upload the plist_encoded file to the apple site (https://identity.apple.com/pushcert/), it creates a file with the following error
    {"ErrorCode":-80018,"ErrorMessage":"Certificate Signature Verification failed","ErrorDescription":"Certificate Signature Verification failed because the <a href=\"http://www.apple.com/business/mdm\" target=\"_blank\">signature<\/a> is invalid."}
    Any help would be greatly appreciated....

    Please see the solution in (The Descriptive Flexfield With Application Name Receivables (AR) and Name Party Site Information (HZ_PARTY_SITES) Is Not Frozen [ID 743262.1]).
    Thanks,
    Hussein

  • Getting error while trying to open the web forms in classic planning app

    hello,
    I am new to OTN forum. can someone please help me to resolve my issue in classic planning application.
    i have created two web forms in classic planning . but while i am trying to open the web forms ,its showing the error like
    the" data form Report1(Report name) is invalid. Check log for details.
    i have checked the log file also but was not able to understand the errors.
    Before this i have tried lots of things to make this issue fixed like updated JVM size then in task manager i have checked the memory usages for process .
    but these were not helpful to solve.
    Kindly anyone suggest me the solution.......

    It is probably worth refreshing the metadata to see if that fixes the problem; error message might indicate that the form has members on that have not yet been passed to Essbase.
    You dont give the version you are using, but for v11.1.2.1 you do this through Workspace, menu options Administration/Application/Refresh Database - tick Database and Refresh. Its advised that you back up your Outline and data before refreshing.
    Hope this helps.
    JB

  • Message thrown while trying to redefine the method GOSAddObjects in SWO1

    Hi,
    I am trying to create a Business Object in SWO1 for GOS. I want to redefine the method GOSAddObjects but when I am trying to do this it shows the Message no. OL645 (Composite definition not allowed for local elements). Please help to solve this issue.
    Thanks and Regards,
    Rahul M.B.

    To edit this method, if F6 is not working,,we can:
    -> Select/ point cursor on 'GOSAddObjects'
    -> On toolbar, theres a button 'Program' -> Click on it and you can edit now.
    Regards,
    KS

  • Getting error while trying to upload the data in excel from SSIS package through sql agent job

    We are getting below errors.
    Error:
    The Microsoft Jet database engine cannot open the file '\\serversdev\Documents\QC Files\Prod.xls'. It is already opened exclusively by another
    user, or you need permission to view its data.
    Please suggest ASAP
    Regards,
    Ramu
    Ramu Gade

    Hi Dikshan Gade,
    According to your description, you want to upload data from excel to database, when you call ssis package through SQL Server Agent job, you got the error message.
    To troubleshoot the problem, please refer to the following steps:
    Validate that the account has permissions on the file and the folder.
    Verify that the file and the data source name (DSN) are not marked as Exclusive.
    Make sure SQL Server Agent Services service account has the permission to access the database.
    We can check SQL Server Agent’s activity logs, Windows Event logs and SSIS logs to get more clues. Also the tool Process Monitor is helpful to track the cause of registry or file access related issues. For more information about the issue, please refer to
    the following KB article:
    http://support.microsoft.com/kb/306269
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • Getting error while trying to import the eex files

    I am facing few problem while importing..
    here is the error message from log
    Processing files for US language ...
    Searching D:/sachin/Discoverer/AU_TOP/discover/US directory for files to import ...
    Number of files to process for US language : 2648
    adupdeul.sh: line 766: perl: command not found
    ERROR : adupdeul_ald2 is unable to determine character set encoding
    for D:/sachin/Discoverer/AU_TOP/discover/US/abmactaccdaseflo.eex file.
    adupdeul_ald2 is exiting with status 1
    I checked the code in adupdeul.sh
    here is the code which errored out
    firstspace=" "
    cset=`head -10 $topdir/$lang/$fname | \
    perl -e 'while(<>){' \
    -e ' if (/^<\?xml.*\sencoding=\"(.+)"/){ ' \
    -e ' print uc "$1\n";' \
    -e ' }' \
    -e '}' `
    if test "$cset" = ""; then
    echo "ERROR : $program is unable to determine character set encoding"
    echo " for $topdir/$lang/$fname file."
    exit 1
    else
    echo "$cset" >> $tmpcsetfile
    fi
    First 10 lines from D:/sachin/Discoverer/AU_TOP/discover/US/abmactaccdaseflo.eex file
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <EndUserLayerExport SourceEULId="20001214113219" SourceEULVersion="4.1.44.00.00" MinimumCodeVersion="4.1.0" ExportFileVersion="4.1.0">
    <ExternalElement>
    <APPS Header="$Header: abmactaccdaseflo.eex 115.7 2003/02/19 18:11:04 pkm ship $"> </APPS>
    </ExternalElement>
    <ExternalElement>
    <OraTranslatability>
         <XlatElement Name="BusinessArea">
              <XlatID>
                   <Key>DeveloperKey</Key>
    I think this code should work...
    Please help me :-(
    - Sachin

    Hi,
    I'm following the note 139516.1 on metalink to use Discoverer 4i with E-Business Suite 11.5.10.2.
    Everything goes well until I try to import the eex files (downloaded to my Windows XP desktop). Here is what I get:
    You are running adupdeul, version 115.11
    Start of adupdeul session
    Date/time is Fri Jul 27 10:15:16 WEST 2007
    Log file is adupdeul.log
    Command line arguments are
         "connect=apps/apps@CESEBTST"
         "resp=System Administrator"
         "gwyuid=APPLSYSPUB/PUB"
         "fndnam=APPS"
         "secgroup=standard"
         "topdir=/cygdrive/c/oracle/Disco4i/Discover/discover"
         "language=US"
         "eulprefix=EUL"
         "eultype=OLTP"
         "mode=complete"
    Processing files for US language ...
    Searching /cygdrive/c/oracle/Disco4i/Discover/discover/US directory for files to import ...
    Number of files to process for US language : 2648
    Determining the character set for the import session ...
    The following encoding schemes have been found
         ISO-8859-1
         UTF-8
    ERROR : adupdeul does not support importing files with
    multiple encodings.
    adupdeul is exiting with status 1
    End of adupdeul session
    Date/time is Fri Jul 27 10:20:20 WEST 2007
    Could someone explain me this multiple encodings error and tell me how to avoid it?
    Thanks in advance!

Maybe you are looking for

  • Error exporting long movie in Premiere Elements 4

    I just finished editing a movie in Premiere Elements 4.  Every time I try to export the movie, it begins rendering, gets as far as about 15%, and then says "Export Error: Error compiling movie.  Unknown error."  This happens no matter what format I c

  • Picture not "right" with Photo Contacts on Phone Page

    Hello, I have assigned a few pictures to some of the contacts on my iPhone 3G. However, they do not seem to act in the same way as the example on the Phone features page on the iPhone website. What I mean by this is, when you look on the iPhone web p

  • Missing Pre-Order $10 Certificate

    Hello -  I recently pre-ordered and purchased Shadows of Mordor, and I don't think my $10 RZ certificate is processing correctly. When I pre-ordered, I selected the XB1 version, but chose to switch to the PS4 version when I picked it up. I asked the

  • IDoc status error 51 : A company code cannot be determined for LS

    Hi, We are trying to post an Idoc into R/3 but getting the IDoc status code 51 :  A company code cannot be determined for LS What could be the possible reason? Should we use Party in Receiver IDoc scenarios?

  • Account details on HP live photo

    HP Live Photo Software I have put a wrong Account name on this application.  How do you change the account name?