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.

Powerbuilder 10.5 crashes on EJB proxy call

4 posts in EJB Client Last posting was on 2007-01-22 08:08:07.0Z
Alex Posted on 2007-01-17 14:36:11.0Z
From: "Alex" <alexanderhlee@gmail.com>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Powerbuilder 10.5 crashes on EJB proxy call
Date: 17 Jan 2007 06:36:11 -0800
Organization: http://groups.google.com
Lines: 31
Message-ID: <1169044571.921544.242030@v45g2000cwv.googlegroups.com>
NNTP-Posting-Host: 72.77.158.2
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1169044583 14723 127.0.0.1 (17 Jan 2007 14:36:23 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 17 Jan 2007 14:36:23 +0000 (UTC)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: v45g2000cwv.googlegroups.com; posting-host=72.77.158.2; posting-account=fbAGNA0AAADjJRJwCq2FKgAA7nlTOzxb
Path: forums-1-dub!forums-master!newswest.sybase.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!v45g2000cwv.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:722
Article PK: 424823

Hello all. This time, I am able to generate the proxies for a class in
ABC.jar. Let's call it SoapClass. PB generates all the proxies for
SOAPclass (and of course all the ancillary proxy classes as well,
arraylist, etc) and puts them into a separate PBL that I desginated. So
far so good. Here's what happens next:

I call create JavaVM, then I call
l_javaVM.CreateJavaInstance(l_soapclass, "SoapClass"). SoapClass has
several methods in it. No matter which one I call (even a dummy method
that just returns null), it causes PB to crash every time. So for
example:

l_soapclass.dummymethod()

causes PB to crash. Even if I am running the deployed PB application
(exe) it causes that app to crash as well. I have tried PBDebug, but it
just has "Executing instruction at line 58" and then stops, which makes
sense since that is the line where the method call is.

I'm wondering if there's a problem with my System classpath or the
class path of my JavaVM instance. Both are one in the same, since I
check the classpath of my JavaVM instance in the code before the line
that causes the crash. Interestingly, if I call one of the ancillary
classes (like arraylist for example) it's fine, no crash. It's only
when I try to call the SoapClass.[any method here] that causes the
problem. Moreover, even if, in the debugger, if I try to expand the
l_soapClass once it gets instantiated in the debugger IDE, that too
will cause PB to crash.

This is frustrating to say the least. Any suggestions?


Alex Posted on 2007-01-17 16:58:31.0Z
From: "Alex" <alexanderhlee@gmail.com>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Powerbuilder 10.5 crashes on EJB proxy call
Date: 17 Jan 2007 08:58:31 -0800
Organization: http://groups.google.com
Lines: 42
Message-ID: <1169053111.651431.136370@51g2000cwl.googlegroups.com>
References: <1169044571.921544.242030@v45g2000cwv.googlegroups.com>
NNTP-Posting-Host: 72.77.158.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Trace: posting.google.com 1169053117 27091 127.0.0.1 (17 Jan 2007 16:58:37 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 17 Jan 2007 16:58:37 +0000 (UTC)
In-Reply-To: <1169044571.921544.242030@v45g2000cwv.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: 51g2000cwl.googlegroups.com; posting-host=72.77.158.2; posting-account=fbAGNA0AAADjJRJwCq2FKgAA7nlTOzxb
Path: forums-1-dub!forums-master!newswest.sybase.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!51g2000cwl.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:723
Article PK: 424824

Sorry to reply to my own post, but I noticed something. The PB
documentation says that proxy generation should always generate the EJB
reference objects (for example, EJBHome and EJBObject). Well, when my
proxies are generated, these objects are NOT there. Now, as I should
have mentioned, the java classes I am generating proxies for are NOT
technically EJBs. They're just straight java classes, but the fact
remains that I do have legitimate Home and Remote classes (the Home
class is a dummy however, no methods in there). Shouldn't PB be
generating the base EJB objects as stated in the documentation?

Alex wrote:
> Hello all. This time, I am able to generate the proxies for a class in
> ABC.jar. Let's call it SoapClass. PB generates all the proxies for
> SOAPclass (and of course all the ancillary proxy classes as well,
> arraylist, etc) and puts them into a separate PBL that I desginated. So
> far so good. Here's what happens next:
>
> I call create JavaVM, then I call
> l_javaVM.CreateJavaInstance(l_soapclass, "SoapClass"). SoapClass has
> several methods in it. No matter which one I call (even a dummy method
> that just returns null), it causes PB to crash every time. So for
> example:
>
> l_soapclass.dummymethod()
>
> causes PB to crash. Even if I am running the deployed PB application
> (exe) it causes that app to crash as well. I have tried PBDebug, but it
> just has "Executing instruction at line 58" and then stops, which makes
> sense since that is the line where the method call is.
>
> I'm wondering if there's a problem with my System classpath or the
> class path of my JavaVM instance. Both are one in the same, since I
> check the classpath of my JavaVM instance in the code before the line
> that causes the crash. Interestingly, if I call one of the ancillary
> classes (like arraylist for example) it's fine, no crash. It's only
> when I try to call the SoapClass.[any method here] that causes the
> problem. Moreover, even if, in the debugger, if I try to expand the
> l_soapClass once it gets instantiated in the debugger IDE, that too
> will cause PB to crash.
>
> This is frustrating to say the least. Any suggestions?


Alex Posted on 2007-01-17 21:55:42.0Z
From: "Alex" <alexanderhlee@gmail.com>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Powerbuilder 10.5 crashes on EJB proxy call
Date: 17 Jan 2007 13:55:42 -0800
Organization: http://groups.google.com
Lines: 37
Message-ID: <1169070942.756639.208740@38g2000cwa.googlegroups.com>
References: <1169044571.921544.242030@v45g2000cwv.googlegroups.com>
NNTP-Posting-Host: 72.77.158.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Trace: posting.google.com 1169070949 13317 127.0.0.1 (17 Jan 2007 21:55:49 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 17 Jan 2007 21:55:49 +0000 (UTC)
In-Reply-To: <1169044571.921544.242030@v45g2000cwv.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: 38g2000cwa.googlegroups.com; posting-host=72.77.158.2; posting-account=fbAGNA0AAADjJRJwCq2FKgAA7nlTOzxb
Path: forums-1-dub!forums-master!newswest.sybase.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!38g2000cwa.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:724
Article PK: 424825

Well here I am again replying to my own post, but I wanted to let
everyone know that I figured out the problem. The java class that I was
referencing needed to have an explicitly coded empty constructor. Once
we had that put in, PB no longer crashed.

Alex wrote:
> Hello all. This time, I am able to generate the proxies for a class in
> ABC.jar. Let's call it SoapClass. PB generates all the proxies for
> SOAPclass (and of course all the ancillary proxy classes as well,
> arraylist, etc) and puts them into a separate PBL that I desginated. So
> far so good. Here's what happens next:
>
> I call create JavaVM, then I call
> l_javaVM.CreateJavaInstance(l_soapclass, "SoapClass"). SoapClass has
> several methods in it. No matter which one I call (even a dummy method
> that just returns null), it causes PB to crash every time. So for
> example:
>
> l_soapclass.dummymethod()
>
> causes PB to crash. Even if I am running the deployed PB application
> (exe) it causes that app to crash as well. I have tried PBDebug, but it
> just has "Executing instruction at line 58" and then stops, which makes
> sense since that is the line where the method call is.
>
> I'm wondering if there's a problem with my System classpath or the
> class path of my JavaVM instance. Both are one in the same, since I
> check the classpath of my JavaVM instance in the code before the line
> that causes the crash. Interestingly, if I call one of the ancillary
> classes (like arraylist for example) it's fine, no crash. It's only
> when I try to call the SoapClass.[any method here] that causes the
> problem. Moreover, even if, in the debugger, if I try to expand the
> l_soapClass once it gets instantiated in the debugger IDE, that too
> will cause PB to crash.
>
> This is frustrating to say the least. Any suggestions?


bede Posted on 2007-01-22 08:08:07.0Z
From: bede <bedenosp@msofico.be>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Powerbuilder 10.5 crashes on EJB proxy call
Message-ID: <MPG.201959987ba1116598985e@forums.sybase.com>
References: <1169044571.921544.242030@v45g2000cwv.googlegroups.com> <1169070942.756639.208740@38g2000cwa.googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
User-Agent: MicroPlanet-Gravity/2.70.2067
NNTP-Posting-Host: uu194-7-38-226.unknown.uunet.be
X-Original-NNTP-Posting-Host: uu194-7-38-226.unknown.uunet.be
Date: 22 Jan 2007 01:08:07 -0700
X-Trace: forums-1-dub 1169456887 194.7.38.226 (22 Jan 2007 01:08:07 -0700)
X-Original-Trace: 22 Jan 2007 01:08:07 -0700, uu194-7-38-226.unknown.uunet.be
Lines: 42
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:725
Article PK: 424826

seems like you're having a ball ;)

In article <1169070942.756639.208740@38g2000cwa.googlegroups.com>, alexanderhlee@gmail.com
says...

> Well here I am again replying to my own post, but I wanted to let
> everyone know that I figured out the problem. The java class that I was
> referencing needed to have an explicitly coded empty constructor. Once
> we had that put in, PB no longer crashed.
>
> Alex wrote:
> > Hello all. This time, I am able to generate the proxies for a class in
> > ABC.jar. Let's call it SoapClass. PB generates all the proxies for
> > SOAPclass (and of course all the ancillary proxy classes as well,
> > arraylist, etc) and puts them into a separate PBL that I desginated. So
> > far so good. Here's what happens next:
> >
> > I call create JavaVM, then I call
> > l_javaVM.CreateJavaInstance(l_soapclass, "SoapClass"). SoapClass has
> > several methods in it. No matter which one I call (even a dummy method
> > that just returns null), it causes PB to crash every time. So for
> > example:
> >
> > l_soapclass.dummymethod()
> >
> > causes PB to crash. Even if I am running the deployed PB application
> > (exe) it causes that app to crash as well. I have tried PBDebug, but it
> > just has "Executing instruction at line 58" and then stops, which makes
> > sense since that is the line where the method call is.
> >
> > I'm wondering if there's a problem with my System classpath or the
> > class path of my JavaVM instance. Both are one in the same, since I
> > check the classpath of my JavaVM instance in the code before the line
> > that causes the crash. Interestingly, if I call one of the ancillary
> > classes (like arraylist for example) it's fine, no crash. It's only
> > when I try to call the SoapClass.[any method here] that causes the
> > problem. Moreover, even if, in the debugger, if I try to expand the
> > l_soapClass once it gets instantiated in the debugger IDE, that too
> > will cause PB to crash.
> >
> > This is frustrating to say the least. Any suggestions?
>
>