Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Dynamo35 -> EJB with java.lang.Integer as a parameter

2 posts in General Discussion (old) Last posting was on 2000-03-06 21:49:55.0Z
<=one way=> Posted on 2000-03-06 16:43:01.0Z
Newsgroups: sybase.public.easerver
From: "<=one way=>" <oneway_111@yahoo.com>
Subject: Dynamo35 -> EJB with java.lang.Integer as a parameter
Date: Mon, 6 Mar 2000 11:43:01 -0500
Lines: 104
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_002C_01BF8761.205D34E0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
NNTP-Posting-Host: oppenheimer163.oppenheimerfunds.com 216.44.5.163
Message-ID: <347_vqqZzw4h$GA.202@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27087
Article PK: 158014

For some reason, I am having problems calling an EJB method with java.lang.Integer as a parameter. It appears that a value passed to the home.findByPrimaryKey() is always null. TIA.
 
        ......
        var home = java.GetHomeInterface( ....)
 
         var univId = java.CreateObject("java.lang.Integer", 1);
// same result
// univId = java.CreateObject("java.lang.Integer");
// univId = java.CallStaticMethod("java.lang.Integer", "valueOf", "1");

         if (univId = null) {
             document.WriteLn("ERROR: Universe Id is null.'" + site.GetErrorInfo () + "'<BR>\n");
             exit;
         }
         
         var comp = home.findByPrimaryKey(univId);
        // var comp = home.findByPrimaryKey(1);
         if (comp == null) {
            document.writeln(site.GetErrorInfo());
            exit;
         }
....


<=one way=> Posted on 2000-03-06 21:49:55.0Z
Newsgroups: sybase.public.easerver
From: "<=one way=>" <oneway_111@yahoo.com>
Subject: Re: Dynamo35 -> EJB with java.lang.Integer as a parameter
Date: Mon, 6 Mar 2000 16:49:55 -0500
Lines: 129
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_0009_01BF878C.002291E0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
NNTP-Posting-Host: oppenheimer163.oppenheimerfunds.com 216.44.5.163
Message-ID: <347_3EG3Sc7h$GA.251@forums.sybase.com>
References: <347_vqqZzw4h$GA.202@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27047
Article PK: 157985

Never mind. Thanks.
<=one way=> <oneway_111@yahoo.com> wrote in message news:vqqZzw4h$GA.202@forums.sybase.com...
For some reason, I am having problems calling an EJB method with java.lang.Integer as a parameter. It appears that a value passed to the home.findByPrimaryKey() is always null. TIA.
 
        ......
        var home = java.GetHomeInterface( ....)
 
         var univId = java.CreateObject("java.lang.Integer", 1);
// same result
// univId = java.CreateObject("java.lang.Integer");
// univId = java.CallStaticMethod("java.lang.Integer", "valueOf", "1");

         if (univId = null) {
             document.WriteLn("ERROR: Universe Id is null.'" + site.GetErrorInfo () + "'<BR>\n");
             exit;
         }
         
         var comp = home.findByPrimaryKey(univId);
        // var comp = home.findByPrimaryKey(1);
         if (comp == null) {
            document.writeln(site.GetErrorInfo());
            exit;
         }
....