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.

failed to deploy EJB Proxy

9 posts in EJB Client Last posting was on 2003-10-28 00:03:44.0Z
zhangj Posted on 2003-10-23 08:35:47.0Z
From: "zhangj" <WhisperQQ@163.com>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: failed to deploy EJB Proxy
Lines: 22
Organization: SD.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 218.5.85.18
X-Original-NNTP-Posting-Host: 218.5.85.18
Message-ID: <3f9792e3$1@forums-1-dub>
Date: 23 Oct 2003 01:35:47 -0700
X-Trace: forums-1-dub 1066898147 218.5.85.18 (23 Oct 2003 01:35:47 -0700)
X-Original-Trace: 23 Oct 2003 01:35:47 -0700, 218.5.85.18
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:168
Article PK: 424361

I have gotten an error when I deployed my EJB Proxy Project.
And the info is
---------- Deploy: Deploy of p_javaproxy
Retrieving Powerbuilder Proxies from EJB...
Generation Errors: Bad Java class name: java.nio.channels.FileChannel.
Deployment Error: No files returned for package/component:
't3dwdemo.JavaProxy'. Error code: Unknown. Proxy was not created.
---------- Finished Deploy of p_javaproxy

Then I've tried ejb2pb90 command
too--"D:\Sybase\Shared\PowerBuilder\ejb2pb90 -classpath
E:\XM_Lab\reference\T3DWDemo\JavaProxy.jar; t3dwdemo.JavaProxy j_"
And I got the same Err info--"Bad Java class name:
java.nio.channels.FileChannel."


Does anyone know why ?
much appreciated...


Jim O'Neil [Sybase] Posted on 2003-10-23 14:09:07.0Z
From: joneil@sybase.com (Jim O'Neil [Sybase])
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: failed to deploy EJB Proxy
Organization: Sybase Technical Support
Reply-To: joneil_REMOVETHISPART@sybase.com
Message-ID: <3f97df36.2691570@forums.sybase.com>
References: <3f9792e3$1@forums-1-dub>
X-Newsreader: Forte Free Agent 1.21/32.243
NNTP-Posting-Host: joneilpc.sybase.com
X-Original-NNTP-Posting-Host: joneilpc.sybase.com
Date: 23 Oct 2003 07:09:07 -0700
X-Trace: forums-1-dub 1066918147 204.167.42.59 (23 Oct 2003 07:09:07 -0700)
X-Original-Trace: 23 Oct 2003 07:09:07 -0700, joneilpc.sybase.com
Lines: 33
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:169
Article PK: 424362

Try the javap command on the home and remote interface classes... do
you receive any errors? is the java.nio.channels.FileChannel class
in your classpath?

On 23 Oct 2003 01:35:47 -0700, "zhangj" <WhisperQQ@163.com> wrote:

>I have gotten an error when I deployed my EJB Proxy Project.
>And the info is
> ---------- Deploy: Deploy of p_javaproxy
>Retrieving Powerbuilder Proxies from EJB...
> Generation Errors: Bad Java class name: java.nio.channels.FileChannel.
> Deployment Error: No files returned for package/component:
>'t3dwdemo.JavaProxy'. Error code: Unknown. Proxy was not created.
> ---------- Finished Deploy of p_javaproxy
>
>Then I've tried ejb2pb90 command
>too--"D:\Sybase\Shared\PowerBuilder\ejb2pb90 -classpath
>E:\XM_Lab\reference\T3DWDemo\JavaProxy.jar; t3dwdemo.JavaProxy j_"
>And I got the same Err info--"Bad Java class name:
>java.nio.channels.FileChannel."
>
>
>Does anyone know why ?
>much appreciated...
>
>
>
>

Jim O'Neil
Principal Technical Support Engineer
Sybase, Inc.
Concord, MA


zhangj Posted on 2003-10-24 03:14:10.0Z
From: "zhangj" <WhisperQQ@163.com>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <3f9792e3$1@forums-1-dub> <3f97df36.2691570@forums.sybase.com>
Subject: Re: failed to deploy EJB Proxy
Lines: 30
Organization: SD.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
X-Original-NNTP-Posting-Host: 218.5.85.18
Message-ID: <3f989a03@forums-2-dub>
X-Original-Trace: 23 Oct 2003 20:18:27 -0700, 218.5.85.18
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 23 Oct 2003 20:07:04 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 23 Oct 2003 20:14:10 -0700
X-Trace: forums-1-dub 1066965250 10.22.108.75 (23 Oct 2003 20:14:10 -0700)
X-Original-Trace: 23 Oct 2003 20:14:10 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:170
Article PK: 424363


> Try the javap command on the home and remote interface classes... do
> you receive any errors?

I tried it and it's OK. It's info is as follows:

E:\>d:\j14\bin\javap -c t3dwdemo.JavaProxy
Compiled from JavaProxy.java
public interface t3dwdemo.JavaProxy extends javax.ejb.EJBObject
/* ACC_SUPER bit NOT set */
{
public abstract void foo(java.nio.channels.FileChannel) throws
java.rmi.RemoteException;
}

E:\>d:\j14\bin\javap -c t3dwdemo.JavaProxyHome
Compiled from JavaProxyHome.java
public interface t3dwdemo.JavaProxyHome extends javax.ejb.EJBHome
/* ACC_SUPER bit NOT set */
{
public abstract t3dwdemo.JavaProxy create() throws
javax.ejb.CreateException, java.rmi.RemoteException;
}

> is the java.nio.channels.FileChannel class in your classpath?

Yes,It was.

But what's wrong? And my Env is pb9.0.1 build 6533/winXP/jdk141


zhangj Posted on 2003-10-24 07:20:25.0Z
From: "zhangj" <WhisperQQ@163.com>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <3f9792e3$1@forums-1-dub> <3f97df36.2691570@forums.sybase.com> <3f989a03@forums-2-dub>
Subject: Re: failed to deploy EJB Proxy
Lines: 48
Organization: SD.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 218.5.85.18
X-Original-NNTP-Posting-Host: 218.5.85.18
Message-ID: <3f98d2b9@forums-1-dub>
Date: 24 Oct 2003 00:20:25 -0700
X-Trace: forums-1-dub 1066980025 218.5.85.18 (24 Oct 2003 00:20:25 -0700)
X-Original-Trace: 24 Oct 2003 00:20:25 -0700, 218.5.85.18
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:171
Article PK: 424364

my classpath always be:
D:\j14\lib\tools.jar;
D:\j14\lib\dt.jar;
D:\j14\jre\lib\jaws.jar;
D:\j14\jre\lib\rt.jar;
D:\oracle\ora81\jdbc\lib\classes12.zip;
D:\bea\weblogic81\server\lib\weblogic.jar;
E:\XM_Lab\reference\T3DWDemo\JavaProxy.jar;

Are those enough?
And ejb2pb90 command still return same error ,when I tried to add j2ee.jar
to classpath.



"zhangj" <WhisperQQ@163.com> дÈëÏûÏ¢ÐÂÎÅ:3f989a03@forums-2-dub...

> > Try the javap command on the home and remote interface classes... do
> > you receive any errors?
>
> I tried it and it's OK. It's info is as follows:
>
> E:\>d:\j14\bin\javap -c t3dwdemo.JavaProxy
> Compiled from JavaProxy.java
> public interface t3dwdemo.JavaProxy extends javax.ejb.EJBObject
> /* ACC_SUPER bit NOT set */
> {
> public abstract void foo(java.nio.channels.FileChannel) throws
> java.rmi.RemoteException;
> }
>
> E:\>d:\j14\bin\javap -c t3dwdemo.JavaProxyHome
> Compiled from JavaProxyHome.java
> public interface t3dwdemo.JavaProxyHome extends javax.ejb.EJBHome
> /* ACC_SUPER bit NOT set */
> {
> public abstract t3dwdemo.JavaProxy create() throws
> javax.ejb.CreateException, java.rmi.RemoteException;
> }
>
> > is the java.nio.channels.FileChannel class in your classpath?
>
> Yes,It was.
>
> But what's wrong? And my Env is pb9.0.1 build 6533/winXP/jdk141
>
>


Jim O'Neil [Sybase] Posted on 2003-10-24 18:28:34.0Z
From: joneil@sybase.com (Jim O'Neil [Sybase])
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: failed to deploy EJB Proxy
Organization: Sybase Technical Support
Reply-To: joneil_REMOVETHISPART@sybase.com
Message-ID: <3f996d46.22162858@forums.sybase.com>
References: <3f9792e3$1@forums-1-dub> <3f97df36.2691570@forums.sybase.com> <3f989a03@forums-2-dub> <3f98d2b9@forums-1-dub>
X-Newsreader: Forte Free Agent 1.21/32.243
NNTP-Posting-Host: joneilpc.sybase.com
X-Original-NNTP-Posting-Host: joneilpc.sybase.com
Date: 24 Oct 2003 11:28:34 -0700
X-Trace: forums-1-dub 1067020114 10.18.61.162 (24 Oct 2003 11:28:34 -0700)
X-Original-Trace: 24 Oct 2003 11:28:34 -0700, joneilpc.sybase.com
Lines: 68
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:172
Article PK: 424365

I'm getting a problem as well. The ejbproxies.err file indicates:

Error: bad class
formatC:\Progra~1\Sybase\Shared\jdk1.4.1_03\jre\lib\rt.jar(java/nio/channels/FileChannel.class)The
major.minor version '48.0' is too recent for this tool to understand.

I also notice that when doing a javap on FileChannel the output has
some errant spaces within the class names, which would also cause a
problem. That, we believe, is a bug in Sun's javap.

Your best bet is to call an issue into Sybase Technical Support on
this.

On 24 Oct 2003 00:20:25 -0700, "zhangj" <WhisperQQ@163.com> wrote:

>my classpath always be:
>D:\j14\lib\tools.jar;
>D:\j14\lib\dt.jar;
>D:\j14\jre\lib\jaws.jar;
>D:\j14\jre\lib\rt.jar;
>D:\oracle\ora81\jdbc\lib\classes12.zip;
>D:\bea\weblogic81\server\lib\weblogic.jar;
>E:\XM_Lab\reference\T3DWDemo\JavaProxy.jar;
>
>Are those enough?
>And ejb2pb90 command still return same error ,when I tried to add j2ee.jar
>to classpath.
>
>
>
>"zhangj" <WhisperQQ@163.com> дÈëÏûÏ¢ÐÂÎÅ:3f989a03@forums-2-dub...
>> > Try the javap command on the home and remote interface classes... do
>> > you receive any errors?
>>
>> I tried it and it's OK. It's info is as follows:
>>
>> E:\>d:\j14\bin\javap -c t3dwdemo.JavaProxy
>> Compiled from JavaProxy.java
>> public interface t3dwdemo.JavaProxy extends javax.ejb.EJBObject
>> /* ACC_SUPER bit NOT set */
>> {
>> public abstract void foo(java.nio.channels.FileChannel) throws
>> java.rmi.RemoteException;
>> }
>>
>> E:\>d:\j14\bin\javap -c t3dwdemo.JavaProxyHome
>> Compiled from JavaProxyHome.java
>> public interface t3dwdemo.JavaProxyHome extends javax.ejb.EJBHome
>> /* ACC_SUPER bit NOT set */
>> {
>> public abstract t3dwdemo.JavaProxy create() throws
>> javax.ejb.CreateException, java.rmi.RemoteException;
>> }
>>
>> > is the java.nio.channels.FileChannel class in your classpath?
>>
>> Yes,It was.
>>
>> But what's wrong? And my Env is pb9.0.1 build 6533/winXP/jdk141
>>
>>
>
>

Jim O'Neil
Principal Technical Support Engineer
Sybase, Inc.
Concord, MA


zhangj Posted on 2003-10-27 07:53:36.0Z
From: "zhangj" <WhisperQQ@163.com>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <3f9792e3$1@forums-1-dub> <3f97df36.2691570@forums.sybase.com> <3f989a03@forums-2-dub> <3f98d2b9@forums-1-dub> <3f996d46.22162858@forums.sybase.com>
Subject: Re: failed to deploy EJB Proxy
Lines: 97
Organization: SD.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
X-Original-NNTP-Posting-Host: 218.5.85.18
Message-ID: <3f9cde1f@forums-2-dub>
X-Original-Trace: 27 Oct 2003 00:58:07 -0700, 218.5.85.18
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 27 Oct 2003 00:46:13 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 27 Oct 2003 00:53:36 -0700
X-Trace: forums-1-dub 1067244816 10.22.108.75 (27 Oct 2003 00:53:36 -0700)
X-Original-Trace: 27 Oct 2003 00:53:36 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:174
Article PK: 424366

I think FileChannel class is newer than javap can work with.So I want to
write srx file by hand.

Could you tell me something about srx file format rules?

And in another letter,you said:
"With PB9, you will generate proxies for all of the Java classes and
interfaces involved
in the method calls and PB9 actually hosts a Java VM on the client, so
you get the full functionality just as if you were using a Java client
application."

So I want to know how to construct an object with argument in PowerScript,as
in java .
eg. public class aa{
...
public void aa(integer i){};
...
}

much appreciated...

"Jim O'Neil [Sybase]" <joneil@sybase.com> дÈëÏûÏ¢ÐÂÎÅ
:3f996d46.22162858@forums.sybase.com...

> I'm getting a problem as well. The ejbproxies.err file indicates:
>
> Error: bad class
>

formatC:\Progra~1\Sybase\Shared\jdk1.4.1_03\jre\lib\rt.jar(java/nio/channels
/FileChannel.class)The
> major.minor version '48.0' is too recent for this tool to understand.
>
> I also notice that when doing a javap on FileChannel the output has
> some errant spaces within the class names, which would also cause a
> problem. That, we believe, is a bug in Sun's javap.
>
> Your best bet is to call an issue into Sybase Technical Support on
> this.
>
> On 24 Oct 2003 00:20:25 -0700, "zhangj" <WhisperQQ@163.com> wrote:
>
> >my classpath always be:
> >D:\j14\lib\tools.jar;
> >D:\j14\lib\dt.jar;
> >D:\j14\jre\lib\jaws.jar;
> >D:\j14\jre\lib\rt.jar;
> >D:\oracle\ora81\jdbc\lib\classes12.zip;
> >D:\bea\weblogic81\server\lib\weblogic.jar;
> >E:\XM_Lab\reference\T3DWDemo\JavaProxy.jar;
> >
> >Are those enough?
> >And ejb2pb90 command still return same error ,when I tried to add
j2ee.jar
> >to classpath.
> >
> >
> >
> >"zhangj" <WhisperQQ@163.com> дÈëÏûÏ¢ÐÂÎÅ:3f989a03@forums-2-dub...
> >> > Try the javap command on the home and remote interface classes... do
> >> > you receive any errors?
> >>
> >> I tried it and it's OK. It's info is as follows:
> >>
> >> E:\>d:\j14\bin\javap -c t3dwdemo.JavaProxy
> >> Compiled from JavaProxy.java
> >> public interface t3dwdemo.JavaProxy extends javax.ejb.EJBObject
> >> /* ACC_SUPER bit NOT set */
> >> {
> >> public abstract void foo(java.nio.channels.FileChannel) throws
> >> java.rmi.RemoteException;
> >> }
> >>
> >> E:\>d:\j14\bin\javap -c t3dwdemo.JavaProxyHome
> >> Compiled from JavaProxyHome.java
> >> public interface t3dwdemo.JavaProxyHome extends javax.ejb.EJBHome
> >> /* ACC_SUPER bit NOT set */
> >> {
> >> public abstract t3dwdemo.JavaProxy create() throws
> >> javax.ejb.CreateException, java.rmi.RemoteException;
> >> }
> >>
> >> > is the java.nio.channels.FileChannel class in your classpath?
> >>
> >> Yes,It was.
> >>
> >> But what's wrong? And my Env is pb9.0.1 build 6533/winXP/jdk141
> >>
> >>
> >
> >
>
> Jim O'Neil
> Principal Technical Support Engineer
> Sybase, Inc.
> Concord, MA


Jim O'Neil [Sybase] Posted on 2003-10-27 12:40:41.0Z
From: joneil@sybase.com (Jim O'Neil [Sybase])
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: failed to deploy EJB Proxy
Organization: Sybase Technical Support
Reply-To: joneil_REMOVETHISPART@sybase.com
Message-ID: <3f9d1ddb.1125738@forums.sybase.com>
References: <3f9792e3$1@forums-1-dub> <3f97df36.2691570@forums.sybase.com> <3f989a03@forums-2-dub> <3f98d2b9@forums-1-dub> <3f996d46.22162858@forums.sybase.com> <3f9cde1f@forums-2-dub>
X-Newsreader: Forte Free Agent 1.21/32.243
X-Original-NNTP-Posting-Host: joneilpc.sybase.com
X-Original-Trace: 27 Oct 2003 05:45:08 -0700, joneilpc.sybase.com
Lines: 118
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 27 Oct 2003 05:33:16 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 27 Oct 2003 05:40:41 -0700
X-Trace: forums-1-dub 1067262041 10.22.108.75 (27 Oct 2003 05:40:41 -0700)
X-Original-Trace: 27 Oct 2003 05:40:41 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:175
Article PK: 424367

As far as .srx format rules, just take one of the existing ones that
was generated successfully and modify it. The pattern should be
pretty clear. The ALIAS for the methods is based on the JNI syntax
for calling a Java method, so you can get the information needed from
the Sun website. Or create a class that's as 'close' to FileChannel
as possible, generate the proxies for it, and then modify as
necessary.

To use a parameterized constructor. Use the CreateJavaClass method on
the EJBConnectionObject and then call the desired constructor with the
argument you want. You will be calling a method on an object that is
already created, versus creating the object with the constructor, but
the end result should be the same.

On 27 Oct 2003 00:53:36 -0700, "zhangj" <WhisperQQ@163.com> wrote:

>I think FileChannel class is newer than javap can work with.So I want to
>write srx file by hand.
>
>Could you tell me something about srx file format rules?
>
>And in another letter,you said:
>"With PB9, you will generate proxies for all of the Java classes and
>interfaces involved
>in the method calls and PB9 actually hosts a Java VM on the client, so
>you get the full functionality just as if you were using a Java client
>application."
>
>So I want to know how to construct an object with argument in PowerScript,as
>in java .
>eg. public class aa{
> ...
> public void aa(integer i){};
> ...
> }
>
>much appreciated...
>
>"Jim O'Neil [Sybase]" <joneil@sybase.com> дÈëÏûÏ¢ÐÂÎÅ
>:3f996d46.22162858@forums.sybase.com...
>> I'm getting a problem as well. The ejbproxies.err file indicates:
>>
>> Error: bad class
>>
>formatC:\Progra~1\Sybase\Shared\jdk1.4.1_03\jre\lib\rt.jar(java/nio/channels
>/FileChannel.class)The
>> major.minor version '48.0' is too recent for this tool to understand.
>>
>> I also notice that when doing a javap on FileChannel the output has
>> some errant spaces within the class names, which would also cause a
>> problem. That, we believe, is a bug in Sun's javap.
>>
>> Your best bet is to call an issue into Sybase Technical Support on
>> this.
>>
>> On 24 Oct 2003 00:20:25 -0700, "zhangj" <WhisperQQ@163.com> wrote:
>>
>> >my classpath always be:
>> >D:\j14\lib\tools.jar;
>> >D:\j14\lib\dt.jar;
>> >D:\j14\jre\lib\jaws.jar;
>> >D:\j14\jre\lib\rt.jar;
>> >D:\oracle\ora81\jdbc\lib\classes12.zip;
>> >D:\bea\weblogic81\server\lib\weblogic.jar;
>> >E:\XM_Lab\reference\T3DWDemo\JavaProxy.jar;
>> >
>> >Are those enough?
>> >And ejb2pb90 command still return same error ,when I tried to add
>j2ee.jar
>> >to classpath.
>> >
>> >
>> >
>> >"zhangj" <WhisperQQ@163.com> дÈëÏûÏ¢ÐÂÎÅ:3f989a03@forums-2-dub...
>> >> > Try the javap command on the home and remote interface classes... do
>> >> > you receive any errors?
>> >>
>> >> I tried it and it's OK. It's info is as follows:
>> >>
>> >> E:\>d:\j14\bin\javap -c t3dwdemo.JavaProxy
>> >> Compiled from JavaProxy.java
>> >> public interface t3dwdemo.JavaProxy extends javax.ejb.EJBObject
>> >> /* ACC_SUPER bit NOT set */
>> >> {
>> >> public abstract void foo(java.nio.channels.FileChannel) throws
>> >> java.rmi.RemoteException;
>> >> }
>> >>
>> >> E:\>d:\j14\bin\javap -c t3dwdemo.JavaProxyHome
>> >> Compiled from JavaProxyHome.java
>> >> public interface t3dwdemo.JavaProxyHome extends javax.ejb.EJBHome
>> >> /* ACC_SUPER bit NOT set */
>> >> {
>> >> public abstract t3dwdemo.JavaProxy create() throws
>> >> javax.ejb.CreateException, java.rmi.RemoteException;
>> >> }
>> >>
>> >> > is the java.nio.channels.FileChannel class in your classpath?
>> >>
>> >> Yes,It was.
>> >>
>> >> But what's wrong? And my Env is pb9.0.1 build 6533/winXP/jdk141
>> >>
>> >>
>> >
>> >
>>
>> Jim O'Neil
>> Principal Technical Support Engineer
>> Sybase, Inc.
>> Concord, MA
>
>

Jim O'Neil
Principal Technical Support Engineer
Sybase, Inc.
Concord, MA


zhangj Posted on 2003-10-28 00:03:44.0Z
From: "zhangj" <WhisperQQ@163.com>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <3f9792e3$1@forums-1-dub> <3f97df36.2691570@forums.sybase.com> <3f989a03@forums-2-dub> <3f98d2b9@forums-1-dub> <3f996d46.22162858@forums.sybase.com> <3f9cde1f@forums-2-dub> <3f9d1ddb.1125738@forums.sybase.com>
Subject: Re: failed to deploy EJB Proxy
Lines: 128
Organization: SD.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 218.5.85.18
X-Original-NNTP-Posting-Host: 218.5.85.18
Message-ID: <3f9dc070@forums-1-dub>
Date: 27 Oct 2003 17:03:44 -0700
X-Trace: forums-1-dub 1067303024 218.5.85.18 (27 Oct 2003 17:03:44 -0700)
X-Original-Trace: 27 Oct 2003 17:03:44 -0700, 218.5.85.18
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:176
Article PK: 424369

Thank you very much!

"Jim O'Neil [Sybase]" <joneil@sybase.com> дÈëÏûÏ¢ÐÂÎÅ
:3f9d1ddb.1125738@forums.sybase.com...

> As far as .srx format rules, just take one of the existing ones that
> was generated successfully and modify it. The pattern should be
> pretty clear. The ALIAS for the methods is based on the JNI syntax
> for calling a Java method, so you can get the information needed from
> the Sun website. Or create a class that's as 'close' to FileChannel
> as possible, generate the proxies for it, and then modify as
> necessary.
>
> To use a parameterized constructor. Use the CreateJavaClass method on
> the EJBConnectionObject and then call the desired constructor with the
> argument you want. You will be calling a method on an object that is
> already created, versus creating the object with the constructor, but
> the end result should be the same.
>
> On 27 Oct 2003 00:53:36 -0700, "zhangj" <WhisperQQ@163.com> wrote:
>
> >I think FileChannel class is newer than javap can work with.So I want to
> >write srx file by hand.
> >
> >Could you tell me something about srx file format rules?
> >
> >And in another letter,you said:
> >"With PB9, you will generate proxies for all of the Java classes and
> >interfaces involved
> >in the method calls and PB9 actually hosts a Java VM on the client, so
> >you get the full functionality just as if you were using a Java client
> >application."
> >
> >So I want to know how to construct an object with argument in
PowerScript,as
> >in java .
> >eg. public class aa{
> > ...
> > public void aa(integer i){};
> > ...
> > }
> >
> >much appreciated...
> >
> >"Jim O'Neil [Sybase]" <joneil@sybase.com> дÈëÏûÏ¢ÐÂÎÅ
> >:3f996d46.22162858@forums.sybase.com...
> >> I'm getting a problem as well. The ejbproxies.err file indicates:
> >>
> >> Error: bad class
> >>
>
>formatC:\Progra~1\Sybase\Shared\jdk1.4.1_03\jre\lib\rt.jar(java/nio/channel
s
> >/FileChannel.class)The
> >> major.minor version '48.0' is too recent for this tool to understand.
> >>
> >> I also notice that when doing a javap on FileChannel the output has
> >> some errant spaces within the class names, which would also cause a
> >> problem. That, we believe, is a bug in Sun's javap.
> >>
> >> Your best bet is to call an issue into Sybase Technical Support on
> >> this.
> >>
> >> On 24 Oct 2003 00:20:25 -0700, "zhangj" <WhisperQQ@163.com> wrote:
> >>
> >> >my classpath always be:
> >> >D:\j14\lib\tools.jar;
> >> >D:\j14\lib\dt.jar;
> >> >D:\j14\jre\lib\jaws.jar;
> >> >D:\j14\jre\lib\rt.jar;
> >> >D:\oracle\ora81\jdbc\lib\classes12.zip;
> >> >D:\bea\weblogic81\server\lib\weblogic.jar;
> >> >E:\XM_Lab\reference\T3DWDemo\JavaProxy.jar;
> >> >
> >> >Are those enough?
> >> >And ejb2pb90 command still return same error ,when I tried to add
> >j2ee.jar
> >> >to classpath.
> >> >
> >> >
> >> >
> >> >"zhangj" <WhisperQQ@163.com> дÈëÏûÏ¢ÐÂÎÅ:3f989a03@forums-2-dub...
> >> >> > Try the javap command on the home and remote interface classes...
do
> >> >> > you receive any errors?
> >> >>
> >> >> I tried it and it's OK. It's info is as follows:
> >> >>
> >> >> E:\>d:\j14\bin\javap -c t3dwdemo.JavaProxy
> >> >> Compiled from JavaProxy.java
> >> >> public interface t3dwdemo.JavaProxy extends javax.ejb.EJBObject
> >> >> /* ACC_SUPER bit NOT set */
> >> >> {
> >> >> public abstract void foo(java.nio.channels.FileChannel) throws
> >> >> java.rmi.RemoteException;
> >> >> }
> >> >>
> >> >> E:\>d:\j14\bin\javap -c t3dwdemo.JavaProxyHome
> >> >> Compiled from JavaProxyHome.java
> >> >> public interface t3dwdemo.JavaProxyHome extends javax.ejb.EJBHome
> >> >> /* ACC_SUPER bit NOT set */
> >> >> {
> >> >> public abstract t3dwdemo.JavaProxy create() throws
> >> >> javax.ejb.CreateException, java.rmi.RemoteException;
> >> >> }
> >> >>
> >> >> > is the java.nio.channels.FileChannel class in your classpath?
> >> >>
> >> >> Yes,It was.
> >> >>
> >> >> But what's wrong? And my Env is pb9.0.1 build 6533/winXP/jdk141
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> Jim O'Neil
> >> Principal Technical Support Engineer
> >> Sybase, Inc.
> >> Concord, MA
> >
> >
>
> Jim O'Neil
> Principal Technical Support Engineer
> Sybase, Inc.
> Concord, MA


zhangj Posted on 2003-10-27 04:36:16.0Z
From: "zhangj" <WhisperQQ@163.com>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <3f9792e3$1@forums-1-dub> <3f97df36.2691570@forums.sybase.com> <3f989a03@forums-2-dub> <3f98d2b9@forums-1-dub> <3f996d46.22162858@forums.sybase.com>
Subject: Re: failed to deploy EJB Proxy
Lines: 77
Organization: SD.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 218.5.85.18
X-Original-NNTP-Posting-Host: 218.5.85.18
Message-ID: <3f9caed0$1@forums-1-dub>
Date: 26 Oct 2003 21:36:16 -0700
X-Trace: forums-1-dub 1067232976 218.5.85.18 (26 Oct 2003 21:36:16 -0700)
X-Original-Trace: 26 Oct 2003 21:36:16 -0700, 218.5.85.18
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:173
Article PK: 424368

Thank you!

"Jim O'Neil [Sybase]" <joneil@sybase.com> дÈëÏûÏ¢ÐÂÎÅ
:3f996d46.22162858@forums.sybase.com...

> I'm getting a problem as well. The ejbproxies.err file indicates:
>
> Error: bad class
>

formatC:\Progra~1\Sybase\Shared\jdk1.4.1_03\jre\lib\rt.jar(java/nio/channels
/FileChannel.class)The
> major.minor version '48.0' is too recent for this tool to understand.
>
> I also notice that when doing a javap on FileChannel the output has
> some errant spaces within the class names, which would also cause a
> problem. That, we believe, is a bug in Sun's javap.
>
> Your best bet is to call an issue into Sybase Technical Support on
> this.
>
> On 24 Oct 2003 00:20:25 -0700, "zhangj" <WhisperQQ@163.com> wrote:
>
> >my classpath always be:
> >D:\j14\lib\tools.jar;
> >D:\j14\lib\dt.jar;
> >D:\j14\jre\lib\jaws.jar;
> >D:\j14\jre\lib\rt.jar;
> >D:\oracle\ora81\jdbc\lib\classes12.zip;
> >D:\bea\weblogic81\server\lib\weblogic.jar;
> >E:\XM_Lab\reference\T3DWDemo\JavaProxy.jar;
> >
> >Are those enough?
> >And ejb2pb90 command still return same error ,when I tried to add
j2ee.jar
> >to classpath.
> >
> >
> >
> >"zhangj" <WhisperQQ@163.com> дÈëÏûÏ¢ÐÂÎÅ:3f989a03@forums-2-dub...
> >> > Try the javap command on the home and remote interface classes... do
> >> > you receive any errors?
> >>
> >> I tried it and it's OK. It's info is as follows:
> >>
> >> E:\>d:\j14\bin\javap -c t3dwdemo.JavaProxy
> >> Compiled from JavaProxy.java
> >> public interface t3dwdemo.JavaProxy extends javax.ejb.EJBObject
> >> /* ACC_SUPER bit NOT set */
> >> {
> >> public abstract void foo(java.nio.channels.FileChannel) throws
> >> java.rmi.RemoteException;
> >> }
> >>
> >> E:\>d:\j14\bin\javap -c t3dwdemo.JavaProxyHome
> >> Compiled from JavaProxyHome.java
> >> public interface t3dwdemo.JavaProxyHome extends javax.ejb.EJBHome
> >> /* ACC_SUPER bit NOT set */
> >> {
> >> public abstract t3dwdemo.JavaProxy create() throws
> >> javax.ejb.CreateException, java.rmi.RemoteException;
> >> }
> >>
> >> > is the java.nio.channels.FileChannel class in your classpath?
> >>
> >> Yes,It was.
> >>
> >> But what's wrong? And my Env is pb9.0.1 build 6533/winXP/jdk141
> >>
> >>
> >
> >
>
> Jim O'Neil
> Principal Technical Support Engineer
> Sybase, Inc.
> Concord, MA