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.

getUserTransaction() problem or com.sybase.ejb.EJBContext vs. javax.ejb.EJBContext

9 posts in General Discussion (old) Last posting was on 2000-03-03 00:25:48.0Z
Victor Rasputnis Posted on 2000-02-15 20:55:42.0Z
Newsgroups: sybase.public.easerver
From: "Victor Rasputnis" <VictorRasputnis@toast.net>
Subject: getUserTransaction() problem or com.sybase.ejb.EJBContext vs. javax.ejb.EJBContext
Date: Tue, 15 Feb 2000 15:55:42 -0500
Lines: 30
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
NNTP-Posting-Host: bk01.bankofny.com 160.254.115.80
Message-ID: <347_Ut#1Ce$d$GA.184@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28631
Article PK: 160765

Dear Newsgroup.

I am having run-time problem with getUserTransaction() method in my
BeanManaged
scenario. Specifically, I get "java.lang.NoSuchMethodError" in the server
log (see below).
What puzzles me also is the dual set of EJBContext and SessionContext, one
set
from com.sybase.ejb.*, another from javax.ejb.*.

Please advise.
Thanks,
Victor
. . . . . . . . . .

Feb 15 15:36:13 2000: Loading: D:\sybase\Jaguar CTS
3.5\html\classes\com\sybase\ejb\SessionContext.class
Feb 15 15:36:13 2000: Loading: D:\sybase\Jaguar CTS
3.5\html\classes\com\sybase\ejb\EJBContext.class
Feb 15 15:36:13 2000: Loading: D:\sybase\Jaguar CTS
3.5\html\classes\com\sybase\ejb\IdentityImpl.class

. . . . . . . . . . . . . . And then, in response to my method call with
getUserTransaction() in it:

Feb 15 15:36:24 2000: java.lang.NoSuchMethodError: javax.ejb.EJBContext:
method getUserTransaction()Ljavax/jts/UserTransaction; not found


Dave Wolf [Sybase] Posted on 2000-02-15 21:11:56.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: getUserTransaction() problem or com.sybase.ejb.EJBContext vs. javax.ejb.EJBContext
Date: Tue, 15 Feb 2000 16:11:56 -0500
Lines: 41
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: dwolf-nt.sybase.com 157.133.41.127
Message-ID: <347_VrONHn$d$GA.184@forums.sybase.com>
References: <347_Ut#1Ce$d$GA.184@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28630
Article PK: 154695

So does your code look something like

javax.transaction.UserTransaction tx = _sessionContext.getUserTransaction()

Dave Wolf
Internet ApplicationsDivision

Victor Rasputnis <VictorRasputnis@toast.net> wrote in message
news:Ut#1Ce$d$GA.184@forums.sybase.com...
> Dear Newsgroup.
>
> I am having run-time problem with getUserTransaction() method in my
> BeanManaged
> scenario. Specifically, I get "java.lang.NoSuchMethodError" in the server
> log (see below).
> What puzzles me also is the dual set of EJBContext and SessionContext, one
> set
> from com.sybase.ejb.*, another from javax.ejb.*.
>
> Please advise.
> Thanks,
> Victor
> . . . . . . . . . .
>
> Feb 15 15:36:13 2000: Loading: D:\sybase\Jaguar CTS
> 3.5\html\classes\com\sybase\ejb\SessionContext.class
> Feb 15 15:36:13 2000: Loading: D:\sybase\Jaguar CTS
> 3.5\html\classes\com\sybase\ejb\EJBContext.class
> Feb 15 15:36:13 2000: Loading: D:\sybase\Jaguar CTS
> 3.5\html\classes\com\sybase\ejb\IdentityImpl.class
>
> . . . . . . . . . . . . . . And then, in response to my method call with
> getUserTransaction() in it:
>
> Feb 15 15:36:24 2000: java.lang.NoSuchMethodError: javax.ejb.EJBContext:
> method getUserTransaction()Ljavax/jts/UserTransaction; not found
>
>
>


Victor Rasputnis Posted on 2000-02-15 21:19:39.0Z
Newsgroups: sybase.public.easerver
From: "Victor Rasputnis" <VictorRasputnis@toast.net>
Subject: Re: getUserTransaction() problem or com.sybase.ejb.EJBContext vs. javax.ejb.EJBContext
Date: Tue, 15 Feb 2000 16:19:39 -0500
Lines: 13
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
NNTP-Posting-Host: bk01.bankofny.com 160.254.115.80
Message-ID: <347_W1yJfr$d$GA.149@forums.sybase.com>
References: <347_Ut#1Ce$d$GA.184@forums.sybase.com> <347_VrONHn$d$GA.184@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28629
Article PK: 160764

Dave,

actually I have this:

private javax.jts.UserTransaction _trx=null;
...
_trx = _sessionContext.getUserTransaction();

Thanks,
Victor


Dave Wolf [Sybase] Posted on 2000-02-15 21:22:58.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: getUserTransaction() problem or com.sybase.ejb.EJBContext vs. javax.ejb.EJBContext
Date: Tue, 15 Feb 2000 16:22:58 -0500
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: dwolf-nt.sybase.com 157.133.41.127
Message-ID: <347_XCgRSt$d$GA.324@forums.sybase.com>
References: <347_Ut#1Ce$d$GA.184@forums.sybase.com> <347_VrONHn$d$GA.184@forums.sybase.com> <347_W1yJfr$d$GA.149@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28628
Article PK: 160768

Then there inlies the probelm. The prototype from javax.ejb.EJBObject is

public abstract javax.transaction.UserTransaction getUserTransaction();

Not javax.jts.UserTransaction.

You can see for yourself by doing

javap javax.ejb.EJBObject

Dave Wolf
Internet Applications Division

Victor Rasputnis <VictorRasputnis@toast.net> wrote in message
news:W1yJfr$d$GA.149@forums.sybase.com...
> Dave,
>
> actually I have this:
>
> private javax.jts.UserTransaction _trx=null;
> ...
> _trx = _sessionContext.getUserTransaction();
>
> Thanks,
> Victor
>
>
>


Victor Rasputnis Posted on 2000-02-15 21:45:06.0Z
Newsgroups: sybase.public.easerver
From: "Victor Rasputnis" <VictorRasputnis@toast.net>
Subject: Re: getUserTransaction() problem or com.sybase.ejb.EJBContext vs. javax.ejb.EJBContext
Date: Tue, 15 Feb 2000 16:45:06 -0500
Lines: 58
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_002F_01BF77D4.036B29B0"
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
NNTP-Posting-Host: bk01.bankofny.com 160.254.115.80
Message-ID: <347_6y8Lq5$d$GA.149@forums.sybase.com>
References: <347_Ut#1Ce$d$GA.184@forums.sybase.com> <347_VrONHn$d$GA.184@forums.sybase.com> <347_W1yJfr$d$GA.149@forums.sybase.com> <347_XCgRSt$d$GA.324@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28625
Article PK: 160762

Dave,
 now I have :
 
 private javax.transaction.UserTransaction _trx=null;
......
   _trx = (javax.transaction.UserTransaction) _sessionContext.getUserTransaction();
Yet, the result remains the same:
 
: java.lang.NoSuchMethodError: javax.ejb.EJBContext: method getUserTransaction()Ljavax/jts/UserTransaction; not found
 
 
Thanks,
Victor
 
 


Dave Wolf [Sybase] Posted on 2000-02-15 22:28:00.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: getUserTransaction() problem or com.sybase.ejb.EJBContext vs. javax.ejb.EJBContext
Date: Tue, 15 Feb 2000 17:28:00 -0500
Lines: 101
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_0070_01BF77DA.01700E40"
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: dwolf-nt.sybase.com 157.133.41.127
Message-ID: <347_RQ44nRAe$GA.184@forums.sybase.com>
References: <347_Ut#1Ce$d$GA.184@forums.sybase.com> <347_VrONHn$d$GA.184@forums.sybase.com> <347_W1yJfr$d$GA.149@forums.sybase.com> <347_XCgRSt$d$GA.324@forums.sybase.com> <347_6y8Lq5$d$GA.149@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28618
Article PK: 160755

Please open a case with support.  This is appearing to be a bug in PowerJ. 
 
javax.jts.UserTransaction is deprecated.  The proper class should be javax.transaction.UserTransaction.  PowerJ is confusing Jaguar with the object package mismatch.

Please copy me on the case number, and Ill open the CR.
 
Dave Wolf
Internet Applications Division
 
Victor Rasputnis <VictorRasputnis@toast.net> wrote in message news:6y8Lq5$d$GA.149@forums.sybase.com...
Dave,
 now I have :
 
 private javax.transaction.UserTransaction _trx=null;
......
   _trx = (javax.transaction.UserTransaction) _sessionContext.getUserTransaction();
Yet, the result remains the same:
 
: java.lang.NoSuchMethodError: javax.ejb.EJBContext: method getUserTransaction()Ljavax/jts/UserTransaction; not found
 
 
Thanks,
Victor
 
 


Reed Shilts Posted on 2000-03-02 23:36:29.0Z
Newsgroups: sybase.public.easerver
Date: Thu, 02 Mar 2000 18:36:29 -0500
From: Reed Shilts <nospam@sybase.com>
Organization: PowerBuilder & PowerJ Kernel Group
X-Mailer: Mozilla 4.5 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: getUserTransaction() problem or com.sybase.ejb.EJBContext vs. javax.ejb.EJBContext
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 30
NNTP-Posting-Host: bigreed.sybase.com 199.93.181.155
Message-ID: <347_38BEFAFC.3FB52BD0@sybase.com>
References: <347_Ut#1Ce$d$GA.184@forums.sybase.com> <347_VrONHn$d$GA.184@forums.sybase.com> <347_W1yJfr$d$GA.149@forums.sybase.com> <347_XCgRSt$d$GA.324@forums.sybase.com> <347_6y8Lq5$d$GA.149@forums.sybase.com> <347_RQ44nRAe$GA.184@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27278
Article PK: 158694

If I'm reading things right, EJB 1.0 had specified the use of the deprecated API.
You may be able to use the new API by modifying your PowerJ code (which is
generated only once, so you can mess with it).

Hope this helps,
Reed Shilts
PowerBuilder / PowerJ Kernel Group
***Nothing I Say Is Official***

"Dave Wolf [Sybase]" wrote:

> Please open a case with support. This is appearing to be a bug in
> PowerJ. javax.jts.UserTransaction is deprecated. The proper class should be
> javax.transaction.UserTransaction. PowerJ is confusing Jaguar with the object package mismatch.
> Please copy me on the case number, and Ill open the CR. Dave WolfInternet Applications Division
>
> Victor Rasputnis <VictorRasputnis@toast.net> wrote in message
> news:6y8Lq5$d$GA.149@forums.sybase.com...Dave, now I have : private
> javax.transaction.UserTransaction _trx=null;
> ...... _trx = (javax.transaction.UserTransaction)
> _sessionContext.getUserTransaction();Yet, the result remains the same: :
> java.lang.NoSuchMethodError: javax.ejb.EJBContext: method
> getUserTransaction()Ljavax/jts/UserTransaction; not found Thanks,Victor
>


Dave Wolf [Sybase] Posted on 2000-03-03 00:25:48.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: getUserTransaction() problem or com.sybase.ejb.EJBContext vs. javax.ejb.EJBContext
Date: Thu, 2 Mar 2000 19:25:48 -0500
Lines: 43
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: 158.159.8.48
Message-ID: <347_1sU8QeKh$GA.285@forums.sybase.com>
References: <347_Ut#1Ce$d$GA.184@forums.sybase.com> <347_VrONHn$d$GA.184@forums.sybase.com> <347_W1yJfr$d$GA.149@forums.sybase.com> <347_XCgRSt$d$GA.324@forums.sybase.com> <347_6y8Lq5$d$GA.149@forums.sybase.com> <347_RQ44nRAe$GA.184@forums.sybase.com> <347_38BEFAFC.3FB52BD0@sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27271
Article PK: 158692

I believe PowerJ has an outdated copy of the javax.ejb package and needs to
be updated.

Dave Wolf
Internet Applications Division

"Reed Shilts" <nospam@sybase.com> wrote in message
news:38BEFAFC.3FB52BD0@sybase.com...
> If I'm reading things right, EJB 1.0 had specified the use of the
deprecated API.
> You may be able to use the new API by modifying your PowerJ code (which is
> generated only once, so you can mess with it).
>
> Hope this helps,
> Reed Shilts
> PowerBuilder / PowerJ Kernel Group
> ***Nothing I Say Is Official***
>
>
> "Dave Wolf [Sybase]" wrote:
>
> > Please open a case with support. This is appearing to be a bug in
> > PowerJ. javax.jts.UserTransaction is deprecated. The proper class
should be
> > javax.transaction.UserTransaction. PowerJ is confusing Jaguar with the
object package mismatch.
> > Please copy me on the case number, and Ill open the CR. Dave
WolfInternet Applications Division
> >
> > Victor Rasputnis <VictorRasputnis@toast.net> wrote in message
> > news:6y8Lq5$d$GA.149@forums.sybase.com...Dave, now I have :
private
> > javax.transaction.UserTransaction _trx=null;
> > ...... _trx = (javax.transaction.UserTransaction)
> > _sessionContext.getUserTransaction();Yet, the result remains the
same: :
> > java.lang.NoSuchMethodError: javax.ejb.EJBContext: method
> > getUserTransaction()Ljavax/jts/UserTransaction; not found
Thanks,Victor
> >
>


Dave Wolf [Sybase] Posted on 2000-02-15 22:00:13.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: getUserTransaction() problem or com.sybase.ejb.EJBContext vs. javax.ejb.EJBContext
Date: Tue, 15 Feb 2000 17:00:13 -0500
Lines: 83
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_0052_01BF77D6.20428400"
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: dwolf-nt.sybase.com 157.133.41.127
Message-ID: <347_L8bQHCAe$GA.184@forums.sybase.com>
References: <347_Ut#1Ce$d$GA.184@forums.sybase.com> <347_VrONHn$d$GA.184@forums.sybase.com> <347_W1yJfr$d$GA.149@forums.sybase.com> <347_XCgRSt$d$GA.324@forums.sybase.com> <347_6y8Lq5$d$GA.149@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28624
Article PK: 160761

Im looking into it.  Something is not right.  Give me a bit.

Dave Wolf
Internet Applications Division
 
Victor Rasputnis <VictorRasputnis@toast.net> wrote in message news:6y8Lq5$d$GA.149@forums.sybase.com...
Dave,
 now I have :
 
 private javax.transaction.UserTransaction _trx=null;
......
   _trx = (javax.transaction.UserTransaction) _sessionContext.getUserTransaction();
Yet, the result remains the same:
 
: java.lang.NoSuchMethodError: javax.ejb.EJBContext: method getUserTransaction()Ljavax/jts/UserTransaction; not found
 
 
Thanks,
Victor