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.

[ASE15] The file x contained in the jar does not represent a valid Java class file

3 posts in General Discussion Last posting was on 2011-03-30 20:54:30.0Z
blured Posted on 2011-03-30 18:08:02.0Z
Sender: 60f6.4d9370b7.1804289383@sybase.com
From: blured
Newsgroups: sybase.public.ase.general
Subject: [ASE15] The file x contained in the jar does not represent a valid Java class file
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4d937182.6124.1681692777@sybase.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 30 Mar 2011 10:08:02 -0800
X-Trace: forums-1-dub 1301508482 10.22.241.41 (30 Mar 2011 10:08:02 -0800)
X-Original-Trace: 30 Mar 2011 10:08:02 -0800, 10.22.241.41
Lines: 58
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.ase.general:30081
Article PK: 79309

Hi,

Using instjava to push java classes to server side (sybase
ASE 15) in order to use sqlj, I've got the following error
whatever the jar I use even the one provided in sample
(http://www.sypron.nl/udf_prt.html).

<<
The file 'xxxx.class' contained in the jar does not
represent a valid Java class file
>>

C:\>instjava -f c:\DateTimeFormat.jar -U sa
Password:
Server Message: PC - Msg 10795, Level 16, State 1:
The file 'DateTimeFormat.class' contained in the jar does
not represent a valid Java class file.


Have you got any clues to resolve this problem ?

I've tried the compilation with jdk 1.6 & jdk 1.4 without
any better results.

Regards,
Blured.

---
Bonjour,

En utilisant instjava pour pousser des classes java du
côté du serveur Sybase 15 afin de faire du SQLJ,
j'obtiens l'erreur suivante quelque soit le jar que
j'utilise même celui livré en exemple
(http://www.sypron.nl/udf_prt.html).

<<
The file 'xxxx.class' contained in the jar does not
represent a valid Java class file
>>

C:\>instjava -f c:\DateTimeFormat.jar -U sa
Password:
Server Message: PC - Msg 10795, Level 16, State 1:
The file 'DateTimeFormat.class' contained in the jar does
not represent a valid Java class file.

J'ai l'impression que le SQL/J n'est pas beaucoup utilisé.
Les forums ne fourmillent pas d'informations sur son
utilisation.

Auriez-vous une piste ?

J'ai essayé de compiler ma classe en 1.6 et en 1.4 sans
noté de différence quand au message.

Merci d'avance.
Blured.


"Mark A. Parsons" <iron_horse Posted on 2011-03-30 18:56:54.0Z
From: "Mark A. Parsons" <iron_horse@no_spamola.compuserve.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7
MIME-Version: 1.0
Newsgroups: sybase.public.ase.general
Subject: Re: [ASE15] The file x contained in the jar does not represent a valid Java class file
References: <4d937182.6124.1681692777@sybase.com>
In-Reply-To: <4d937182.6124.1681692777@sybase.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4d937cf6$1@forums-1-dub>
Date: 30 Mar 2011 10:56:54 -0800
X-Trace: forums-1-dub 1301511414 10.22.241.152 (30 Mar 2011 10:56:54 -0800)
X-Original-Trace: 30 Mar 2011 10:56:54 -0800, vip152.sybase.com
Lines: 85
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.ase.general:30082
Article PK: 79311

Found the following in solved cases @ sybase.com:

===================================
Case Number: 11641007

Case Description
----------------
Trying to install a jar file into ASE 15.5 environment and is getting this error:

"Server Message: ServerName - Msg 10795, Level 16, State 1:
The file 'gnu/inet/encoding/CombiningClass.class' contained in the jar does not represent a valid Java class file."

Tip or Workaround
-----------------

Starting ASE 15.0.3, to enable Java in database feature you must enable PCI and configure sybpcidb database

http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc00641.1503/html/newfeat1503/BJFEADAD.htm

http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc31652.1550/html/java/java35.htm

Resolution
----------
Customer able to install jar after installing/configuring sybpcidb and sp_configure 'enable pci' to 1.
===================================

On 03/30/2011 14:08, blured wrote:
> Hi,
>
> Using instjava to push java classes to server side (sybase
> ASE 15) in order to use sqlj, I've got the following error
> whatever the jar I use even the one provided in sample
> (http://www.sypron.nl/udf_prt.html).
>
> <<
> The file 'xxxx.class' contained in the jar does not
> represent a valid Java class file
>>>
>
> C:\>instjava -f c:\DateTimeFormat.jar -U sa
> Password:
> Server Message: PC - Msg 10795, Level 16, State 1:
> The file 'DateTimeFormat.class' contained in the jar does
> not represent a valid Java class file.
>
>
> Have you got any clues to resolve this problem ?
>
> I've tried the compilation with jdk 1.6& jdk 1.4 without
> any better results.
>
> Regards,
> Blured.
>
> ---
> Bonjour,
>
> En utilisant instjava pour pousser des classes java du
> côté du serveur Sybase 15 afin de faire du SQLJ,
> j'obtiens l'erreur suivante quelque soit le jar que
> j'utilise même celui livré en exemple
> (http://www.sypron.nl/udf_prt.html).
>
> <<
> The file 'xxxx.class' contained in the jar does not
> represent a valid Java class file
>>>
>
> C:\>instjava -f c:\DateTimeFormat.jar -U sa
> Password:
> Server Message: PC - Msg 10795, Level 16, State 1:
> The file 'DateTimeFormat.class' contained in the jar does
> not represent a valid Java class file.
>
> J'ai l'impression que le SQL/J n'est pas beaucoup utilisé.
> Les forums ne fourmillent pas d'informations sur son
> utilisation.
>
> Auriez-vous une piste ?
>
> J'ai essayé de compiler ma classe en 1.6 et en 1.4 sans
> noté de différence quand au message.
>
> Merci d'avance.
> Blured.


blured Posted on 2011-03-30 20:54:30.0Z
Sender: 62bf.4d93750e.1804289383@sybase.com
From: blured
Newsgroups: sybase.public.ase.general
Subject: Re: [ASE15] The file x contained in the jar does not represent a valid Java class file
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4d939886.68fc.1681692777@sybase.com>
References: <4d937cf6$1@forums-1-dub>
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 30 Mar 2011 12:54:30 -0800
X-Trace: forums-1-dub 1301518470 10.22.241.41 (30 Mar 2011 12:54:30 -0800)
X-Original-Trace: 30 Mar 2011 12:54:30 -0800, 10.22.241.41
Lines: 102
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.ase.general:30083
Article PK: 79312

Thanks, it resolve my case. However, I needed also to create
by hand the database 'sybpcidb' and use the script
C:\Sybase\ASE-15_0\scripts\installpcidb

Regards,
Blured.

> Found the following in solved cases @ sybase.com:
>
>
===================================
> Case Number: 11641007
>
> Case Description
> ----------------
> Trying to install a jar file into ASE 15.5 environment and
> is getting this error:
>
> "Server Message: ServerName - Msg 10795, Level 16, State
> 1: The file 'gnu/inet/encoding/CombiningClass.class'
> contained in the jar does not represent a valid Java class
> file."
>
> Tip or Workaround
> -----------------
>
> Starting ASE 15.0.3, to enable Java in database feature
> you must enable PCI and configure sybpcidb database
>
>
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc00641.1503/html/newfeat1503/BJFEADAD.htm
>
>
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc31652.1550/html/java/java35.htm
>
> Resolution
> ----------
> Customer able to install jar after installing/configuring
> sybpcidb and sp_configure 'enable pci' to 1.
>
===================================
>
> On 03/30/2011 14:08, blured wrote:
> > Hi,
> >
> > Using instjava to push java classes to server side
> > (sybase ASE 15) in order to use sqlj, I've got the
> > following error whatever the jar I use even the one
> > provided in sample (http://www.sypron.nl/udf_prt.html).
> >
> > <<
> > The file 'xxxx.class' contained in the jar does not
> > represent a valid Java class file
> >>>
> >
> > C:\>instjava -f c:\DateTimeFormat.jar -U sa
> > Password:
> > Server Message: PC - Msg 10795, Level 16, State 1:
> > The file 'DateTimeFormat.class' contained in the jar
> > does not represent a valid Java class file.
> >
> >
> > Have you got any clues to resolve this problem ?
> >
> > I've tried the compilation with jdk 1.6& jdk 1.4
> > without any better results.
> >
> > Regards,
> > Blured.
> >
> > ---
> > Bonjour,
> >
> > En utilisant instjava pour pousser des classes java du
> > côté du serveur Sybase 15 afin de faire du SQLJ,
> > j'obtiens l'erreur suivante quelque soit le jar que
> > j'utilise même celui livré en exemple
> > (http://www.sypron.nl/udf_prt.html).
> >
> > <<
> > The file 'xxxx.class' contained in the jar does not
> > represent a valid Java class file
> >>>
> >
> > C:\>instjava -f c:\DateTimeFormat.jar -U sa
> > Password:
> > Server Message: PC - Msg 10795, Level 16, State 1:
> > The file 'DateTimeFormat.class' contained in the jar
> > does not represent a valid Java class file.
> >
> > J'ai l'impression que le SQL/J n'est pas beaucoup
> > utilisé. Les forums ne fourmillent pas d'informations
> > sur son utilisation.
> >
> > Auriez-vous une piste ?
> >
> > J'ai essayé de compiler ma classe en 1.6 et en 1.4
sans
> > noté de différence quand au message.
> >
> > Merci d'avance.
> > Blured.