agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
Subject: [Pljava-dev] ENC: ERROR: java.lang.NoClassDefFoundError
Date: Mon, 8 Oct 2012 10:30:29 -0600
Message-ID: <CALBNtw7xiikoS-4wLPMdknNSOuRkoMqW-6bnJtFdKbs8aVCpcw@mail.gmail.com> (raw)
In-Reply-To: <!&!AAAAAAAAAAAYAAAAAAAAAI8wjF8gzrxPp8zJI+DFEPnCgAAAEAAAAC7ryZ4Qmf9JgBEw9Ml7mKkBAAAAAA==@interfocus.com.br>
References: <!&!AAAAAAAAAAAYAAAAAAAAAI8wjF8gzrxPp8zJI+DFEPnCgAAAEAAAAC7ryZ4Qmf9JgBEw9Ml7mKkBAAAAAA==@interfocus.com.br>

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;



view thread (2+ messages)

Message-ID: <CALBNtw7xiikoS-4wLPMdknNSOuRkoMqW-6bnJtFdKbs8aVCpcw@mail.gmail.com>
Permalink:  ../CALBNtw7xiikoS-4wLPMdknNSOuRkoMqW-6bnJtFdKbs8aVCpcw@mail.gmail.com/
Also on:    postgresql.org/message-id/CALBNtw7xiikoS-4wLPMdknNSOuRkoMqW-6bnJtFdKbs8aVCpcw@mail.gmail.com

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pljava-dev@postgresql.org
  Subject: Re: [Pljava-dev] ENC: ERROR: java.lang.NoClassDefFoundError
  In-Reply-To: <CALBNtw7xiikoS-4wLPMdknNSOuRkoMqW-6bnJtFdKbs8aVCpcw@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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