agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
[Pljava-dev] ENC: ERROR: java.lang.NoClassDefFoundError
2+ messages / 0 participants
[nested] [flat]

* [Pljava-dev] ENC: ERROR: java.lang.NoClassDefFoundError
@ 2012-10-08 13:24  
  0 siblings, 1 reply; 2+ messages in thread

From:  @ 2012-10-08 13:24 UTC (permalink / raw)

Please, can anybody help me with this error... 

ERROR:  java.lang.NoClassDefFoundError:
com/sun/xml/messaging/saaj/util/ByteInputStream 

I?m trying to consume a webservice. 

Using Netbeans, everything works fine. 

Descri??o:
http://postgresql.1045698.n5.nabble.com/file/n5726623/netbeans_-_ok.png

But, with PostgreSql ... 

Descri??o:
http://postgresql.1045698.n5.nabble.com/file/n5726623/postgres.png

I have recorded this package, but the ByteInputStream class are in different
"place". 

Descri??o:
http://postgresql.1045698.n5.nabble.com/file/n5726623/postgres_jar_entry.png

[other informations] 
Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-31-generic x86_64) 

JDK 7 

PostgreSQL PostgreSQL 9.1.5 on x86_64-unknown-linux-gnu, compiled by gcc
(Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3, 64-bit 

PlJava from 
 
<http://pgfoundry.org/frs/download.php/3280/pljava-src-snapshot.20120525.0.t
ar.gz>
http://pgfoundry.org/frs/download.php/3280/pljava-src-snapshot.20120525.0.ta
r.gz


Thanks

 

_______________________________________________
Fabr?cio Fachini

Analista Desenvolvedor

Interfocus Tecnologia ? Desenvolvimento de Software

(+55 (14) 3454-2681

(+55 (14) 9631-4277

 

Descri??o: cid:image002.png at 01CD875E.4D9C0AC0

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20121008/8255d288/attachment.html;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 129412 bytes
Desc: not available
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20121008/8255d288/attachment.png;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 144533 bytes
Desc: not available
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20121008/8255d288/attachment-0001.png;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 147235 bytes
Desc: not available
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20121008/8255d288/attachment-0002.png;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 12236 bytes
Desc: not available
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20121008/8255d288/attachment-0003.png;



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* [Pljava-dev] ENC: ERROR: java.lang.NoClassDefFoundError
@ 2012-10-08 16:30  
  parent: 
  0 siblings, 0 replies; 2+ messages in thread

From:  @ 2012-10-08 16:30 UTC (permalink / raw)

Do you know if those classes are in the JVM used by the postgresql server
or in the jar files you've explicitly deployed? That's burned me a few
times, enough that I


I've been fighting a similar problem for a few days.

1. Try writing a simple user-defined function that calls
classloader.forName('...ByteInputStream') and return a boolean indicating
success (or throw a SQLException if you got a ClassNotFoundException).  You
might not have the library in the /postgresql/ jvm or a jar file you
explicitly loaded.

2. If the classloader failed it might be because static initialization
failed.

3. The class might not be a complete implementation and/or refer to a
missing class. I had some very confusing class not found exceptions due to
this.

That might not be enough - I'm still trying to figure out why I'm getting
that error on class that contains nothing but an empty method that takes a
trigger argument, but it can get you started.

BTW one of my errors was because java.security.Provider.Service isn't
implemented. That makes it hard to query the system to learn what
encryption algorithms are available!



On Mon, Oct 8, 2012 at 7:24 AM, Fabricio-Interfocus <
fabricio at interfocus.com.br> wrote:

> Please, can anybody help me with this error...
>
>
> ERROR:  java.lang.NoClassDefFoundError:
> com/sun/xml/messaging/saaj/util/ByteInputStream
>
> I?m trying to consume a webservice.
>
> Using Netbeans, everything works fine.
>
> [image: Descri??o:
> http://postgresql.1045698.n5.nabble.com/file/n5726623/netbeans_-_ok.png]
>
> But, with PostgreSql ...
>
> [image: Descri??o:
> http://postgresql.1045698.n5.nabble.com/file/n5726623/postgres.png]
>
>
> I have recorded this package, but the ByteInputStream class are in
> different "place".
>
> [image: Descri??o:
> http://postgresql.1045698.n5.nabble.com/file/n5726623/postgres_jar_entry.png]
>
>
> [other informations]
> Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-31-generic x86_64)
>
> JDK 7
>
> PostgreSQL PostgreSQL 9.1.5 on x86_64-unknown-linux-gnu, compiled by gcc
> (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3, 64-bit
>
> PlJava from
>
> http://pgfoundry.org/frs/download.php/3280/pljava-src-snapshot.20120525.0.tar.gz
>
>
>
> Thanks****
>
> ** **
>
> *_______________________________________________
> Fabr?cio Fachini*
>
> Analista Desenvolvedor****
>
> Interfocus Tecnologia ? Desenvolvimento de Software****
>
> (+55 (14) 3454-2681****
>
> (+55 (14) 9631-4277****
>
> ** **
>
> [image: Descri??o: cid:image002.png at 01CD875E.4D9C0AC0]****
>
> ** **
>
> _______________________________________________
> Pljava-dev mailing list
> Pljava-dev at pgfoundry.org
> http://pgfoundry.org/mailman/listinfo/pljava-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20121008/80ef5bbf/attachment.html;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 144533 bytes
Desc: not available
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20121008/80ef5bbf/attachment.png;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 12236 bytes
Desc: not available
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20121008/80ef5bbf/attachment-0001.png;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 147235 bytes
Desc: not available
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20121008/80ef5bbf/attachment-0002.png;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 129412 bytes
Desc: not available
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20121008/80ef5bbf/attachment-0003.png;



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2012-10-08 16:30 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-10-08 13:24 [Pljava-dev] ENC: ERROR: java.lang.NoClassDefFoundError 
2012-10-08 16:30 ` 

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox