Hi ,
 i am new to Jboss user list and to Jbss too..
can anyone tell me whats is ejb-jar.xml iwas not able to find it anywhere in
the jboss downloaded bundle ..
And teh other thing is how to connect to an Oracle 8.0 database through
Jbosb..
please help its urgent

regards
abhinav

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 03, 2001 10:50 PM
Subject: JBoss-user digest, Vol 1 #394 - 15 msgs


> Send JBoss-user mailing list submissions to
> [EMAIL PROTECTED]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> or, via email, send a message with subject or body 'help' to
> [EMAIL PROTECTED]
>
> You can reach the person managing the list at
> [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of JBoss-user digest..."
>
>
> Today's Topics:
>
>    1. Re: Trying to find out how many instance of an ejb are created by
the JBoss at a moment in time (Guy Rouillier)
>    2. RE: [JBoss-user]expected one name tag ; Someone familar with this er
ror? (Vincent Harcq)
>    3. Re: problems launching JBoss2.2.x from a user shell (Guy Rouillier)
>    4. External reference inside one jar ([EMAIL PROTECTED])
>    5. Scalability question ([EMAIL PROTECTED])
>    6. thanks, transactions and attributes (Scherr Gerolf)
>    7. Re: [JBoss-user]expected one name tag ; Someone fami
>        lar with this er ror? (=?iso-8859-1?Q?Roman_Br=FCckner?=)
>    8. choosing a naming/directory server federated with jnp?
([EMAIL PROTECTED])
>    9. Trying to find out how many instance of an ejb component are created
by the JBoss at a moment in time (Adrian Vicentiu Omusoru)
>   10. Custom finders with JBoss and SQL Server ?? (Cumps Jef)
>   11. ClassCastException problem (Cumps Jef)
>   12. RE: External reference inside one jar - SOLVED
([EMAIL PROTECTED])
>   13. RE: Re: Unable to load a ResultSet column into a var
>        iable of type '[B' (John Moore)
>
> --__--__--
>
> Message: 1
> From: "Guy Rouillier" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: Re: [JBoss-user] Trying to find out how many instance of an ejb
are created by the JBoss at a moment in time
> Date: Thu, 3 May 2001 12:09:34 -0400
> Reply-To: [EMAIL PROTECTED]
>
> EJBs are single-threaded.  The container will create as many as it thinks
it
> needs to service requests.  If an instance is available and unused, that
> instance will be used.  If not, the container may create another instance.
> I don't think the specs dictate how a container is to manage the instances
> it creates.  As I understand it, only one user can be using a single
> instance at any point in time.
>
> ----- Original Message -----
> From: "Adrian Vicentiu Omusoru" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, May 03, 2001 10:47 AM
> Subject: [JBoss-user] Trying to find out how many instance of an ejb are
> created by the JBoss at a moment in time
>
>
> > Hello,
> > I need your help in finding out:
> > For an ejb, let's name it X, how many instance of it are created at a
> > specific moment in time.
> > Or anothe way to put the question: i want to know how many users are
> > accessing the X ejb at a momnet in time.
> >
> > Do you have any ideas?
> >
> > Thanks for your help.
> > Adisor.
> >
> >
> > ----- Original Message -----
> > From: "Jim Downing" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, May 03, 2001 5:16 PM
> > Subject: Re: [JBoss-user] choosing a database
> >
> >
> > > Is there a web resource with the results of this test? If so could you
> > post
> > > the url please?
> > >
> > > jim
> > >
> > > >>>
> > > Interbase : www.interbase.com
> > >
> > > They came in 2. on a major German source test. (Right after Oracle -
but
> > > ahead of MySQL and MSSQL)
> > >
> > > JBoss won 2. place in open-source (after Tomcat!)
> > > <<<
> > >
> > >
> > >
> > > _______________________________________________
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
>
>
> --__--__--
>
> Message: 2
> From: "Vincent Harcq" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: RE: [JBoss-user] [JBoss-user]expected one name tag ; Someone
familar with this er ror?
> Date: Thu, 3 May 2001 18:18:39 +0200
> Reply-To: [EMAIL PROTECTED]
>
> Hi,
> you do not need to define findAll method in jaws.xml, it is magic.
> Anyway, your definition of finder method is not correct at all.
> Review the doc
> Vincent.
>
> > -----Message d'origine-----
> > De : [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]De la part de Roman
> > Brückner
> > Envoyé : jeudi 3 mai 2001 17:29
> > À : '[EMAIL PROTECTED]'
> > Objet : [JBoss-user] [JBoss-user]expected one name tag ; Someone familar
> > with this er ror?
> >
> >
> > Hi,
> > I am trying to deploy a jar file which contains a few EJBs, however I am
> > getting th efollowing error message:
> >
> > [Container factory] Deploying TariffSession
> > [Container factory] org.jboss.ejb.DeploymentException: Error in
> > jaws.xml for Ent
> > ity Discount: expected one name tag
> >
> > Well this is my jaws.xml for the discount bean:
> >
> > <datasource>java:/DefaultDS</datasource>
> >   <type-mapping>Oracle8</type-mapping>
> >   <enterprise-beans>
> >     <entity>
> >       <ejb-name>Discount</ejb-name>
> >       <table-name>Discount</table-name>
> >       <cmp-field>
> >         <field-name>discountID</field-name>
> >         <column-name>discount_id</column-name>
> >       </cmp-field>
> >       <finder>
> >   <method-signature>findAll()</method-signature>
> >   <where-clause></where-clause>
> >   <load-state>True</load-state>
> > </finder>
> > </entity>
> >
> > Well I don't have a clue how to resolve this, maybe someone can help me,
> > please.
> > Roman
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>
> --__--__--
>
> Message: 3
> From: "Guy Rouillier" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: Re: [JBoss-user] problems launching JBoss2.2.x from a user shell
> Date: Thu, 3 May 2001 12:11:06 -0400
> Reply-To: [EMAIL PROTECTED]
>
> Having done this, is there a way to shut down JBoss gracefully, so it has
a
> chance to shut down everything that is running in a controlled fashion?
Or
> do you just kill the process, and hope for the best?
>
> ----- Original Message -----
> From: "Jim Brownfield" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, May 03, 2001 11:40 AM
> Subject: RE: [JBoss-user] problems launching JBoss2.2.x from a user shell
>
>
> > Hi Juan,
> >
> > try "nohup ./JBoss2.2.1/bin/run.sh &"
> >
> > This should keep the terminal group from axing your JBoss subprocess
when
> > the terminal exits.
> >
> > Jim
> >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]]On Behalf Of Juan
Arraiza
> > > Sent: Thursday, May 03, 2001 2:03 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: [JBoss-user] problems launching JBoss2.2.x from a user shell
> > >
> > >
> > > Hi all,
> > > We are founding trouble when launching JBoss2.2.x as a background
> > > process from a user shell in Solaris 2.6. If we close that user
terminal
> > > (or finish the X-Windows session) from which we have launched JBoss,
> > > JBoss dies.
> > >
> > > We launch JBoss typing:
> > > ./JBoss2.2.1/bin/run.sh &
> > >
> > > In theory (although I confess I am not a great expert in Unix), that
> > > process we start does not depend on the terminal from which we have
> > > launched it (since it is launched as a background process). As I said,
> > > when we close that terminal, the process dissapears with it.
> > >
> > > Does anybody know why?
> > >
> > > TIA
> > >
> > > Juan
> > >
> >
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
>
>
> --__--__--
>
> Message: 4
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Date: Thu, 3 May 2001 18:12:15 +0200
> Subject: [JBoss-user] External reference inside one jar
> Reply-To: [EMAIL PROTECTED]
>
> Hi,
>
> I need to deploy same beans in different jar files in same JBoss instance
> (I'm using JBoss 2.0 FINAL). These beans implement user account bases, and
I
> need two different account bases.
>
> To acomplish this, I use <ejb-ref> reference in the ejb-jar.xml and
> appropriate <ejb-ref> in jboss.xml specifying in ejb-ref/jndi-name local
> JNDI name.
>
> When I look into the log file, i see that all references were resolved
> correctly:
>
> [Container factory] Binding an EJBReference jndi/accountGroup
> [Container factory] Binding jndi/accountGroup to external JNDI source:
> account.group
> [Container factory] Binding an EJBReference jndi/group
> [Container factory] Binding jndi/group to external JNDI source:
group.group
> [Container factory] Binding an EJBReference jndi/account
> [Container factory] Binding jndi/account to external JNDI source:
> account.account
> ....
> [Container factory] Bound ProfileHandlerBean to profile
> [Container factory] Bound UserAccountBean to account.account
> [Container factory] Bound UserGroupFactoryBean to group.factory
> [Container factory] Bound UserGroupBean to group.group
> [Container factory] Bound UserAccountGroupBean to account.group
> ....
>
> Ok, one thing that I've found, is that reference names does not start with
> ejb/, but everything works ok, if I use internal references and deploy
only
> one jar file. Another thing is, that I do not use the full external URL,
but
> only local. However, local JNDI names are resolved correctly, because I
get
> references to some instances.
>
> I'm not able to use internal reference in case of two and more deployed
> jars, because JBoss start mixing references. Seems that <ejb-ref-name> is
> unique to the JBoss instance, and not the bean context (which is logical,
> but I didn't find anything in specifications that supports or deny the
scope
> of the <ejb-ref-name>).
>
> Does anybody came across such problem and what was the solution, if any?
>
> Roman Rokytskyy
>
>
> --__--__--
>
> Message: 5
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Date: Thu, 3 May 2001 18:16:44 +0200
> Subject: [JBoss-user] Scalability question
> Reply-To: [EMAIL PROTECTED]
>
> Hi all,
>
> I'm going to handle approximately 100,000 entity beans with simultaneous
> access approximately 1-10 bean accesses per second.
>
> Is JBoss 2.0 FINAL capable handling such amounth of entity beans?
>
> And what database would you recommend to handle such load?
>
> Thank you in advance,
> Roman Rokytskyy
>
>
> --__--__--
>
> Message: 6
> From: Scherr Gerolf <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Date: Thu, 3 May 2001 18:16:26 +0200
> Subject: [JBoss-user] thanks, transactions and attributes
> Reply-To: [EMAIL PROTECTED]
>
> Hi everybody!
>
> we are using JBoss for a workflow - management - system,
> we were developing since july last year, went to production in january and
> this week we were celebrating our 100.000th processed document, so i
decided
> its time to thank all developers and contributers for their great work :-)
>
> but I have also got a few questions:
>
> - would it be possible to provide a CHANGES - file for new versions of
jboss
> (it cost me a few hours to find out that the jboss.dependencies file is no
> longer supported, so our our custom mbeans/mlets(which depend on the
Naming
> service) refused to run, no matter how many dependencies I added )
> (or did I just miss that information?)
>
> - sometimes we are getting
> 2001-04-24 12:34:21 [Auftraggeber] LOCKING-WAITING (CTX) for id
Auftraggeber
> 102 ctx.hash 1901414 method getData
> or
> 2001-05-02 10:26:20 [BA] LOCKING-WAITING (CTX) for id BA 11581 ctx.hash
> 3955756
> ...
> [a few megs cut]
>
> - What is the meaning of this message?
> is it two threads in different transaction contexts accessing the same
> object?
> is it two transaction contexts in the same thread?
> yesterday I got one of those with only one client running
>
> - what can we do to avoid it ?
>
> - are our transation attributes correctly set?
> we are using 'Required' for our setter methods and 'Supports' for * (->
also
> for the getXX call mentioned above)
>
> our configuration is:
> win2k server,
> mssql 7
> jdk 1.3
> (patched) jboss 2.0 final + tomcat 3.2b8 for production and
> jboss 2.2.1 + tomcat 3.2.1 for test (yesterday I tried to switch this
> configuration over to production, started and got 40megs of
LOCKING-WAITING,
> so I decided to switch back:-( )
>
>
>
> thanks for your help
> gerolf.
>
>
>
>
> --__--__--
>
> Message: 7
> From: =?iso-8859-1?Q?Roman_Br=FCckner?= <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'"
> <[EMAIL PROTECTED]>
> Subject: Re: [JBoss-user] [JBoss-user]expected one name tag ; Someone fami
> lar with this er ror?
> Date: Thu, 3 May 2001 18:36:52 +0200
> Reply-To: [EMAIL PROTECTED]
>
> Is it possible that this has something do to with the <finder>, that =
> there
> is a name tag required?
>
> -----Urspr=FCngliche Nachricht-----
> Von: Roman Br=FCckner [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 3. Mai 2001 17:29
> An: '[EMAIL PROTECTED]'
> Betreff: [JBoss-user] [JBoss-user]expected one name tag ; Someone
> familar with this er ror?
>
>
> Hi,
> I am trying to deploy a jar file which contains a few EJBs, however I =
> am
> getting th efollowing error message:
>
> [Container factory] Deploying TariffSession
> [Container factory] org.jboss.ejb.DeploymentException: Error in
> jaws.xml for Ent
> ity Discount: expected one name tag
>
> Well this is my jaws.xml for the discount bean:
>
> <datasource>java:/DefaultDS</datasource>
>   <type-mapping>Oracle8</type-mapping>
>   <enterprise-beans>
>     <entity>
>       <ejb-name>Discount</ejb-name>
>       <table-name>Discount</table-name>
>       <cmp-field>
>         <field-name>discountID</field-name>
>         <column-name>discount_id</column-name>
>       </cmp-field>
>       <finder>
>   <method-signature>findAll()</method-signature>
>   <where-clause></where-clause>
>   <load-state>True</load-state>
> </finder>
> </entity>
>
> Well I don't have a clue how to resolve this, maybe someone can help =
> me,
> please.
> Roman
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
> --__--__--
>
> Message: 8
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Date: Thu, 3 May 2001 10:43:35 -0600
> Subject: [JBoss-user] choosing a naming/directory server federated with
jnp?
> Reply-To: [EMAIL PROTECTED]
>
>
> Hi
>
> Can you recommend a high quality open source naming/directory server with
> jndi naming or preferably directory
> support, and preferably using ldap service provider?
>
> I understand that there is openLdap, but it is only for *nix. Win2K's
> active directory is one option, but need to install the server domain
> controller (anybody used it for general purpose naming/directory service
> and federated it with jboss?). What we need is an extremely lightweight
> (embedded style, a few hundreds entries) naming server (and preferably
> directory later).
>
> Because there are high quality embedded relational databases, so, if there
> is open source ldap (or other reasonably good naming/directory protocol)
> "wrapper" on top of relational database, it should be also fine.
>
> And this question again: does jnp support general purpose naming service?
> i.e., can a client (or ejbean) program (not in descriptors, but in a java
> running program, i.e., runtime dynamically) bind some info into jnp, and
> later lookup, even after restart jboss?
>
> Also, "open source" is preferred, but other low-end(low cost) solutions
are
> also fine.
>
>
> thanks in advance!!!
>
>
> Kai
>
>
>
>
>
>
>
>
>
> --__--__--
>
> Message: 9
> From: "Adrian Vicentiu Omusoru" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Date: Thu, 3 May 2001 19:48:46 +0300
> Subject: [JBoss-user] Trying to find out how many instance of an ejb
component are created by the JBoss at a moment in time
> Reply-To: [EMAIL PROTECTED]
>
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_001D_01C0D40A.10BFCA60
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> Hello,
> I need your help in finding out:
> - for an ejb componet, let's name it X, how many instance of it are =
> created at a specific moment in time.
> - or another way to put the question: I want to know how many users are =
> accessing the X ejb at a moment in time.
>
> Do you have any ideas how to program (code) this?
>
> Thanks for your help.
> Adisor.
>
>
> ------=_NextPart_000_001D_01C0D40A.10BFCA60
> Content-Type: text/html;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=3DContent-Type content=3D"text/html; =
> charset=3Diso-8859-1">
> <META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
> <STYLE></STYLE>
> </HEAD>
> <BODY bgColor=3D#ffffff>
> <DIV><FONT face=3DArial size=3D2><FONT face=3D"Times New Roman" =
> size=3D3>Hello,<BR>I=20
> need your help in finding out:<BR>- for an ejb componet, let's name it =
> X, how=20
> many instance of it are created at a specific moment in time.<BR>- or =
> another=20
> way to put the question:&nbsp;I want to know how many users are =
> accessing the X=20
> ejb at a moment in time.<BR><BR>Do you have any ideas how to program =
> (code)=20
> this?<BR><BR>Thanks for your=20
> help.<BR>Adisor.</FONT><BR></FONT></DIV></BODY></HTML>
>
> ------=_NextPart_000_001D_01C0D40A.10BFCA60--
>
>
>
> --__--__--
>
> Message: 10
> Date: Thu,  3 May 2001 18:53:20 +0200
> From: "Cumps Jef" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: [JBoss-user] Custom finders with JBoss and SQL Server ??
> Reply-To: [EMAIL PROTECTED]
>
> Hi,
>
> I read in the documentation how to write custom finders, but i can't get
them to work. I'm using MS SQL Server as a database with JBoss 2.0.
>
> Does anyone hes excperience (or examples) with custom finders ?? Is there
anything special i have to do, except from what's explained in the
documentation ?? Is it because of SQL server that my custom finders won't
work ???
>
> any help (tips, example code ...) would be really appreciated,
>
>
> Jef Cumps
>
>
> --__--__--
>
> Message: 11
> Date: Thu,  3 May 2001 18:57:56 +0200
> From: "Cumps Jef" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: [JBoss-user] ClassCastException problem
> Reply-To: [EMAIL PROTECTED]
>
> Hi all,
>
> I'm trying to query a MS SQL database in a stateless session bean, using
the following code:
>
> String myDriver = "com.inet.tds.TdsDriver";
> String url = "jdbc:inetdae7://onuris.groept.be?database=JFK_CarTracker";
> String loginname = "710521079";
> String password = "710521079";
> Class.forName(myDriver);
> Connection con = DriverManager.getConnection(url,loginname,password);
>
> I've put the jar file from the driver in my classpath.
>
> I'm getting a ClassCasException on the forName()-command. Does anyone has
an idea why ?????
>
> any help would be really appreciated!!
> Jef
>
>
> --__--__--
>
> Message: 12
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] External reference inside one jar - SOLVED
> Date: Thu, 3 May 2001 19:12:46 +0200
> Reply-To: [EMAIL PROTECTED]
>
> Hi again,
>
> I've solved the problem. It has nothing to the external references at all.
> The problem was with JAWS descriptor, it caused the incorrect SQLs to be
> issued:
>
> My bean has composite primary key: {byte[] accountId, String groupName}.
> During create(byte[] accountId, String groupName) JBoss seems to fill the
> accountId field with serialized form of the byte[].
>
> Then, when I invoke findByAccountId(byte[] accountId), in case of presense
> of JAWS descriptor, instead of using the serialized version of the byte[],
> it uses the string with hexidecimal representation of bytes in array...
> Certainly, nothing can be found in this case...
>
> If JAWS descriptor is absent, everything goes fine.
>
> So, can this be a JAWS bug?
>
> Regards,
> Roman
>
> > -----Original Message-----
> > From: Rokytskyy, Roman (BER)
> > Sent: Donnerstag, 3. Mai 2001 18:12
> > To: [EMAIL PROTECTED]
> > Subject: [JBoss-user] External reference inside one jar
> >
> >
> > Hi,
> >
> > I need to deploy same beans in different jar files in same
> > JBoss instance
> > (I'm using JBoss 2.0 FINAL). These beans implement user
> > account bases, and I
> > need two different account bases.
> >
> > To acomplish this, I use <ejb-ref> reference in the ejb-jar.xml and
> > appropriate <ejb-ref> in jboss.xml specifying in
> > ejb-ref/jndi-name local
> > JNDI name.
> >
> > When I look into the log file, i see that all references were resolved
> > correctly:
> >
> > [Container factory] Binding an EJBReference jndi/accountGroup
> > [Container factory] Binding jndi/accountGroup to external JNDI source:
> > account.group
> > [Container factory] Binding an EJBReference jndi/group
> > [Container factory] Binding jndi/group to external JNDI
> > source: group.group
> > [Container factory] Binding an EJBReference jndi/account
> > [Container factory] Binding jndi/account to external JNDI source:
> > account.account
> > ....
> > [Container factory] Bound ProfileHandlerBean to profile
> > [Container factory] Bound UserAccountBean to account.account
> > [Container factory] Bound UserGroupFactoryBean to group.factory
> > [Container factory] Bound UserGroupBean to group.group
> > [Container factory] Bound UserAccountGroupBean to account.group
> > ....
> >
> > Ok, one thing that I've found, is that reference names does
> > not start with
> > ejb/, but everything works ok, if I use internal references
> > and deploy only
> > one jar file. Another thing is, that I do not use the full
> > external URL, but
> > only local. However, local JNDI names are resolved correctly,
> > because I get
> > references to some instances.
> >
> > I'm not able to use internal reference in case of two and
> > more deployed
> > jars, because JBoss start mixing references. Seems that
> > <ejb-ref-name> is
> > unique to the JBoss instance, and not the bean context (which
> > is logical,
> > but I didn't find anything in specifications that supports or
> > deny the scope
> > of the <ejb-ref-name>).
> >
> > Does anybody came across such problem and what was the
> > solution, if any?
> >
> > Roman Rokytskyy
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
>
> --__--__--
>
> Message: 13
> From: John Moore <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'"
> <[EMAIL PROTECTED]>
> Subject: RE: [JBoss-user] Re: Unable to load a ResultSet column into a var
> iable of type '[B'
> Date: Thu, 3 May 2001 10:18:35 -0700
> Reply-To: [EMAIL PROTECTED]
>
> This message is in MIME format. Since your mail reader does not understand
> this format, some or all of this message may not be legible.
>
> ------_=_NextPart_001_01C0D3F5.15BD7540
> Content-Type: text/plain;
> charset="iso-8859-1"
>
> Dmitri,
>
> If I understand what you are doing there is another approach instead of
> attempting to store a byte[].  Take the encrypted byte[] and run it
through
> a Base64 conversion and out pops a String you can easily store/retrieve.
>
> John
>
>
>
>
> -----Original Message-----
> From: Burkhard Vogel [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 03, 2001 3:05 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Re: Unable to load a ResultSet column into a
> variable of type '[B'
>
>
> Hi,
> byte is AFAIK a primitive type. To use it as Primary Key you need to to
> define a helper class as primary key, which declares a byte var as it only
> member. I had this problem when trying to use a GUID as Primary key
> (VARBINARY(16)). Look like this:
>
> public class GuidPK implements Serializable {
>     public byte guid[];
>
>     public GuidPK(byte _guid[]) {
>         guid = _guid;
>     }
>     public boolean equals(Object obj) {
>         if( this.getClass().equals(obj.getClass()) ) {
>             GuidPK that = (GuidPK)obj;
>             return (this.guid==that.guid);
>         }
>         return false;
>     }
>     public int hashCode() {
>         return super.hashCode();
>     }
>     public String toString() {
>         GUID tmp=null;
>         try {
>             tmp = new GUID();
>             tmp.setBytes(guid); } catch(Exception Ex) {}
>         String result = tmp.toFormattedGuid();
>         return result;
>     }
> }
> Burkhard
>
> ----- Original Message -----
> From: "Dmitri Colebatch" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, May 03, 2001 10:06 AM
> Subject: [JBoss-user] Re: Unable to load a ResultSet column into a
variable
> of type '[B'
>
>
> > A question I should've posed last time is could this be a problem with
the
> > Postgres driver?  In the JBoss doco it notes that the driver can have a
> > problem with large long values....  I'm not sure about this, but if
> someone
> > who knows more about this could give it 2 minutes thought?
> >
> > cheers, tia again
> > dim
> >
> > On Thu,  3 May 2001 17:35, Dmitri Colebatch wrote:
> > > Hi all,
> > >
> > > (could any replies to this come directly to me as well as the list
> please -
> > > I get the list in digest mode)
> > >
> > > I have a basic CMP entity bean that models a user's account in a
system,
> > > and I have a password field that I need to encrypt.  This is a very
> simple
> > > example, but you'll see my problem from it.
> > >
> > > I have the password field declared as a byte[], but get/set methods
have
> > > String param/return type.  My methods are then:
> > >
> > > public void setPassword(String password) { this.password =
> > > password.getBytes(); }
> > > public String getPassword() { return new String(password); }
> > >
> > > This all seems to work fine, but it breaks some of my other test
cases.
> I
> > > haven't been able to identify exactly what the circumstances are that
> cause
> > > it, but basically after a call to remove() on the bean I get the
> following
> > > exception:
> > >
> > > java.sql.SQLException: Unable to load a ResultSet column into a
variable
> of
> > > type '[B': java.io.StreamCorruptedException: InputStream does not
> contain a
> > > serialized object
> > >
> > > I only get this exception in some cases, and I haven't been able to
> > > replicate it in isolation away from the other tests.  I'm running on
> > > Postgres, and JBoss 2.1 with Sun 1.3 JVM.
> > >
> > > When JBoss creates the table, it creates the password column as an
"oid"
> > > type - I dont know what this is, but if I do a JDBC query on it I get
an
> > > Integer type.  I can also get it as a Blob, but Postgres' Blob isn't
> fully
> > > implemented so I haven't been able to determine a lot from that.
> > >
> > > The value is never null - I found a previous mail that had the same
> > > exception from trying to put a null value into a primitive int type.
> > >
> > > I have very little idea what the exact cause of this is, any help
would
> be
> > > apprecitated - see the stack trace below.
> > >
> > > cheers, tia for any help
> > > dim
> > >
> > > Stack trace:  (edited to make readable)
> > >
> > >  [Account] TRANSACTION ROLLBACK EXCEPTION:Load failed; nested
exception
> is:
> > >  java.sql.SQLException: Unable to load a ResultSet column into a
> variable
> > > of type '[B': java.io.StreamCorruptedException: InputStream does not
> > > contain a serialized object; nested exception is:
> > >  java.rmi.ServerException: Load failed; nested exception is:
> > >  java.sql.SQLException: Unable to load a ResultSet column into a
> variable
> > > of type '[B': java.io.StreamCorruptedException: InputStream does not
> > > contain a serialized object
> > >  [Account] java.rmi.ServerException: Load failed; nested exception is:
> > >  [Account] java.sql.SQLException: Unable to load a ResultSet column
into
> a
> > > variable of type '[B': java.io.StreamCorruptedException: InputStream
> does
> > > not contain a serialized object
> > >  [Account] java.sql.SQLException: Unable to load a ResultSet column
into
> a
> > > variable of type '[B': java.io.StreamCorruptedException: InputStream
> does
> > > not contain a serialized object
> > >  [Account] at
> > >
>
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.getResultObject(JDBCCommand.jav
> > >a: 482) [Account] at
> > >
>
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.getResultObject(JDBCCommand.jav
> > >a: 498) [Account] at
> > >
>
org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.handleResult(JDBCLoad
> > >En tityCommand.java:115) [Account] at
> > >
>
org.jboss.ejb.plugins.jaws.jdbc.JDBCQueryCommand.executeStatementAndHandleR
> > >es ult(JDBCQueryCommand.java:59) [Account] at
> > >
>
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:15
> > >9) [Account] at
> > >
>
org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntit
> > >yC ommand.java:78) [Account] at
> > >
>
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.loadEntity(JAWSPersistenc
> > >eM anager.java:150) [Account] at
> > >
>
org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManage
> > >r. java:341) [Account] at
> > >
>
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchro
> > >ni zationInterceptor.java:192) [Account] at
> > >
>
org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterc
> > >ep tor.java:186) [Account] at
> > >
>
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133
> > >) [Account] at
> > >
>
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT
> > >.j ava:263) [Account] at
> > >
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
> > >  [Account] at
> > >
>
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:1
> > >77 ) [Account] at
> > > org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
> > >  [Account] at
> > > org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:323)
[Account]
> > > at
> > >
>
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainer
> > >In voker.java:471) [Account] at
> > >
>
org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(EntityProxy.java:1
> > >46 ) [Account] at $Proxy16.getBdoId(Unknown Source)
> > >  [Account] at
> > >
>
com.nuix.bdo.connection.ConnectionManagerEJB.removeConnection(ConnectionMan
> > >ag erEJB.java:148) [Account] at java.lang.reflect.Method.invoke(Native
> > > Method) [Account] at
> > >
>
org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(Stateful
> > >Se ssionContainer.java:570) [Account] at
> > >
>
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:1
> > >77 ) [Account] at
> > >
>
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSes
> > >si onInstanceInterceptor.java:206) [Account] at
> > >
>
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133
> > >) [Account] at
> > >
>
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT
> > >.j ava:263) [Account] at
> > >
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
> > >  [Account] at
> > > org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
> > >  [Account] at
> > >
>
org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java
> > >:3 26) [Account] at
> > >
>
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainer
> > >In voker.java:471) [Account] at
> > >
>
org.jboss.ejb.plugins.jrmp.interfaces.StatefulSessionProxy.invoke(StatefulS
> > >es sionProxy.java:150) [Account] at $Proxy12.removeConnection(Unknown
> > > Source) [Account] at
> > >
>
com.nuix.interceptor.interpretor.DeleteConnectionInterpretor.execute(Delete
> > >Co nnectionInterpretor.java:149) [Account] at
> > > com.nuix.interceptor.InterceptorEJB.execute(InterceptorEJB.java:127)
> > >  [Account] at java.lang.reflect.Method.invoke(Native Method)
> > >  [Account] at
> > >
>
org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(Stateful
> > >Se ssionContainer.java:570) [Account] at
> > >
>
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:1
> > >77 ) [Account] at
> > >
>
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSes
> > >si onInstanceInterceptor.java:206) [Account] at
> > >
>
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133
> > >) [Account] at
> > >
>
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT
> > >.j ava:263) [Account] at
> > >
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
> > >  [Account] at
> > > org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
> > >  [Account] at
> > >
>
org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java
> > >:3 26) [Account] at
> > >
>
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainer
> > >In voker.java:381) [Account] at java.lang.reflect.Method.invoke(Native
> > > Method) [Account] at
> > > sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
> > >  [Account] at sun.rmi.transport.Transport$1.run(Transport.java:142)
> > >  [Account] at java.security.AccessController.doPrivileged(Native
Method)
> > >  [Account] at
> sun.rmi.transport.Transport.serviceCall(Transport.java:139)
> > >  [Account] at
> > >
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443)
> > >  [Account] at
> > >
>
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:
> > >64 3) [Account] at java.lang.Thread.run(Thread.java:484)
> > >
> > > -------------------------------------------------------
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
> ------_=_NextPart_001_01C0D3F5.15BD7540
> Content-Type: text/html;
> charset="iso-8859-1"
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
> <HTML>
> <HEAD>
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
> <META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
> <TITLE>RE: [JBoss-user] Re: Unable to load a ResultSet column into a
variable of type '[B'</TITLE>
> </HEAD>
> <BODY>
>
> <P><FONT SIZE=2>Dmitri,</FONT>
> </P>
>
> <P><FONT SIZE=2>If I understand what you are doing there is another
approach instead of</FONT>
> <BR><FONT SIZE=2>attempting to store a byte[].&nbsp; Take the encrypted
byte[] and run it through </FONT>
> <BR><FONT SIZE=2>a Base64 conversion and out pops a String you can easily
store/retrieve.&nbsp; </FONT>
> </P>
>
> <P><FONT SIZE=2>John</FONT>
> </P>
> <BR>
> <BR>
> <BR>
>
> <P><FONT SIZE=2>-----Original Message-----</FONT>
> <BR><FONT SIZE=2>From: Burkhard Vogel [<A
HREF="mailto:[EMAIL PROTECTED]";>mailto:[EMAIL PROTECTED]</A>]</FONT>
> <BR><FONT SIZE=2>Sent: Thursday, May 03, 2001 3:05 AM</FONT>
> <BR><FONT SIZE=2>To: [EMAIL PROTECTED]</FONT>
> <BR><FONT SIZE=2>Subject: Re: [JBoss-user] Re: Unable to load a ResultSet
column into a</FONT>
> <BR><FONT SIZE=2>variable of type '[B'</FONT>
> </P>
> <BR>
>
> <P><FONT SIZE=2>Hi,</FONT>
> <BR><FONT SIZE=2>byte is AFAIK a primitive type. To use it as Primary Key
you need to to</FONT>
> <BR><FONT SIZE=2>define a helper class as primary key, which declares a
byte var as it only</FONT>
> <BR><FONT SIZE=2>member. I had this problem when trying to use a GUID as
Primary key</FONT>
> <BR><FONT SIZE=2>(VARBINARY(16)). Look like this:</FONT>
> </P>
>
> <P><FONT SIZE=2>public class GuidPK implements Serializable {</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; public byte guid[];</FONT>
> </P>
>
> <P><FONT SIZE=2>&nbsp;&nbsp;&nbsp; public GuidPK(byte _guid[]) {</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; guid =
_guid;</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; }</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; public boolean equals(Object obj)
{</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(
this.getClass().equals(obj.getClass()) ) {</FONT>
> <BR><FONT
SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
GuidPK that = (GuidPK)obj;</FONT>
> <BR><FONT
SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
return (this.guid==that.guid);</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return
false;</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; }</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; public int hashCode() {</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return
super.hashCode();</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; }</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; public String toString() {</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GUID
tmp=null;</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; try {</FONT>
> <BR><FONT
SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
tmp = new GUID();</FONT>
> <BR><FONT
SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
tmp.setBytes(guid); } catch(Exception Ex) {}</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; String result
= tmp.toFormattedGuid();</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return
result;</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; }</FONT>
> <BR><FONT SIZE=2>}</FONT>
> <BR><FONT SIZE=2>Burkhard</FONT>
> </P>
>
> <P><FONT SIZE=2>----- Original Message -----</FONT>
> <BR><FONT SIZE=2>From: &quot;Dmitri Colebatch&quot;
&lt;[EMAIL PROTECTED]&gt;</FONT>
> <BR><FONT SIZE=2>To: &lt;[EMAIL PROTECTED]&gt;</FONT>
> <BR><FONT SIZE=2>Sent: Thursday, May 03, 2001 10:06 AM</FONT>
> <BR><FONT SIZE=2>Subject: [JBoss-user] Re: Unable to load a ResultSet
column into a variable</FONT>
> <BR><FONT SIZE=2>of type '[B'</FONT>
> </P>
> <BR>
>
> <P><FONT SIZE=2>&gt; A question I should've posed last time is could this
be a problem with the</FONT>
> <BR><FONT SIZE=2>&gt; Postgres driver?&nbsp; In the JBoss doco it notes
that the driver can have a</FONT>
> <BR><FONT SIZE=2>&gt; problem with large long values....&nbsp; I'm not
sure about this, but if</FONT>
> <BR><FONT SIZE=2>someone</FONT>
> <BR><FONT SIZE=2>&gt; who knows more about this could give it 2 minutes
thought?</FONT>
> <BR><FONT SIZE=2>&gt;</FONT>
> <BR><FONT SIZE=2>&gt; cheers, tia again</FONT>
> <BR><FONT SIZE=2>&gt; dim</FONT>
> <BR><FONT SIZE=2>&gt;</FONT>
> <BR><FONT SIZE=2>&gt; On Thu,&nbsp; 3 May 2001 17:35, Dmitri Colebatch
wrote:</FONT>
> <BR><FONT SIZE=2>&gt; &gt; Hi all,</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT SIZE=2>&gt; &gt; (could any replies to this come directly to me
as well as the list</FONT>
> <BR><FONT SIZE=2>please -</FONT>
> <BR><FONT SIZE=2>&gt; &gt; I get the list in digest mode)</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT SIZE=2>&gt; &gt; I have a basic CMP entity bean that models a
user's account in a system,</FONT>
> <BR><FONT SIZE=2>&gt; &gt; and I have a password field that I need to
encrypt.&nbsp; This is a very</FONT>
> <BR><FONT SIZE=2>simple</FONT>
> <BR><FONT SIZE=2>&gt; &gt; example, but you'll see my problem from
it.</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT SIZE=2>&gt; &gt; I have the password field declared as a byte[],
but get/set methods have</FONT>
> <BR><FONT SIZE=2>&gt; &gt; String param/return type.&nbsp; My methods are
then:</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT SIZE=2>&gt; &gt; public void setPassword(String password) {
this.password =</FONT>
> <BR><FONT SIZE=2>&gt; &gt; password.getBytes(); }</FONT>
> <BR><FONT SIZE=2>&gt; &gt; public String getPassword() { return new
String(password); }</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT SIZE=2>&gt; &gt; This all seems to work fine, but it breaks some
of my other test cases.</FONT>
> <BR><FONT SIZE=2>I</FONT>
> <BR><FONT SIZE=2>&gt; &gt; haven't been able to identify exactly what the
circumstances are that</FONT>
> <BR><FONT SIZE=2>cause</FONT>
> <BR><FONT SIZE=2>&gt; &gt; it, but basically after a call to remove() on
the bean I get the</FONT>
> <BR><FONT SIZE=2>following</FONT>
> <BR><FONT SIZE=2>&gt; &gt; exception:</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT SIZE=2>&gt; &gt; java.sql.SQLException: Unable to load a
ResultSet column into a variable</FONT>
> <BR><FONT SIZE=2>of</FONT>
> <BR><FONT SIZE=2>&gt; &gt; type '[B': java.io.StreamCorruptedException:
InputStream does not</FONT>
> <BR><FONT SIZE=2>contain a</FONT>
> <BR><FONT SIZE=2>&gt; &gt; serialized object</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT SIZE=2>&gt; &gt; I only get this exception in some cases, and I
haven't been able to</FONT>
> <BR><FONT SIZE=2>&gt; &gt; replicate it in isolation away from the other
tests.&nbsp; I'm running on</FONT>
> <BR><FONT SIZE=2>&gt; &gt; Postgres, and JBoss 2.1 with Sun 1.3
JVM.</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT SIZE=2>&gt; &gt; When JBoss creates the table, it creates the
password column as an &quot;oid&quot;</FONT>
> <BR><FONT SIZE=2>&gt; &gt; type - I dont know what this is, but if I do a
JDBC query on it I get an</FONT>
> <BR><FONT SIZE=2>&gt; &gt; Integer type.&nbsp; I can also get it as a
Blob, but Postgres' Blob isn't</FONT>
> <BR><FONT SIZE=2>fully</FONT>
> <BR><FONT SIZE=2>&gt; &gt; implemented so I haven't been able to determine
a lot from that.</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT SIZE=2>&gt; &gt; The value is never null - I found a previous
mail that had the same</FONT>
> <BR><FONT SIZE=2>&gt; &gt; exception from trying to put a null value into
a primitive int type.</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT SIZE=2>&gt; &gt; I have very little idea what the exact cause of
this is, any help would</FONT>
> <BR><FONT SIZE=2>be</FONT>
> <BR><FONT SIZE=2>&gt; &gt; apprecitated - see the stack trace
below.</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT SIZE=2>&gt; &gt; cheers, tia for any help</FONT>
> <BR><FONT SIZE=2>&gt; &gt; dim</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT SIZE=2>&gt; &gt; Stack trace:&nbsp; (edited to make
readable)</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT SIZE=2>&gt; &gt;&nbsp; [Account] TRANSACTION ROLLBACK
EXCEPTION:Load failed; nested exception</FONT>
> <BR><FONT SIZE=2>is:</FONT>
> <BR><FONT SIZE=2>&gt; &gt;&nbsp; java.sql.SQLException: Unable to load a
ResultSet column into a</FONT>
> <BR><FONT SIZE=2>variable</FONT>
> <BR><FONT SIZE=2>&gt; &gt; of type '[B': java.io.StreamCorruptedException:
InputStream does not</FONT>
> <BR><FONT SIZE=2>&gt; &gt; contain a serialized object; nested exception
is:</FONT>
> <BR><FONT SIZE=2>&gt; &gt;&nbsp; java.rmi.ServerException: Load failed;
nested exception is:</FONT>
> <BR><FONT SIZE=2>&gt; &gt;&nbsp; java.sql.SQLException: Unable to load a
ResultSet column into a</FONT>
> <BR><FONT SIZE=2>variable</FONT>
> <BR><FONT SIZE=2>&gt; &gt; of type '[B': java.io.StreamCorruptedException:
InputStream does not</FONT>
> <BR><FONT SIZE=2>&gt; &gt; contain a serialized object</FONT>
> <BR><FONT SIZE=2>&gt; &gt;&nbsp; [Account] java.rmi.ServerException: Load
failed; nested exception is:</FONT>
> <BR><FONT SIZE=2>&gt; &gt;&nbsp; [Account] java.sql.SQLException: Unable
to load a ResultSet column into</FONT>
> <BR><FONT SIZE=2>a</FONT>
> <BR><FONT SIZE=2>&gt; &gt; variable of type '[B':
java.io.StreamCorruptedException: InputStream</FONT>
> <BR><FONT SIZE=2>does</FONT>
> <BR><FONT SIZE=2>&gt; &gt; not contain a serialized object</FONT>
> <BR><FONT SIZE=2>&gt; &gt;&nbsp; [Account] java.sql.SQLException: Unable
to load a ResultSet column into</FONT>
> <BR><FONT SIZE=2>a</FONT>
> <BR><FONT SIZE=2>&gt; &gt; variable of type '[B':
java.io.StreamCorruptedException: InputStream</FONT>
> <BR><FONT SIZE=2>does</FONT>
> <BR><FONT SIZE=2>&gt; &gt; not contain a serialized object</FONT>
> <BR><FONT SIZE=2>&gt; &gt;&nbsp; [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.getResultObject(JDBCComma
nd.jav</FONT>
> <BR><FONT SIZE=2>&gt; &gt;a: 482) [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.getResultObject(JDBCComma
nd.jav</FONT>
> <BR><FONT SIZE=2>&gt; &gt;a: 498) [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.handleResult(JD
BCLoad</FONT>
> <BR><FONT SIZE=2>&gt; &gt;En tityCommand.java:115) [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.plugins.jaws.jdbc.JDBCQueryCommand.executeStatementAndH
andleR</FONT>
> <BR><FONT SIZE=2>&gt; &gt;es ult(JDBCQueryCommand.java:59) [Account]
at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.j
ava:15</FONT>
> <BR><FONT SIZE=2>&gt; &gt;9) [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.execute(JDBCLoa
dEntit</FONT>
> <BR><FONT SIZE=2>&gt; &gt;yC ommand.java:78) [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.loadEntity(JAWSPers
istenc</FONT>
> <BR><FONT SIZE=2>&gt; &gt;eM anager.java:150) [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistence
Manage</FONT>
> <BR><FONT SIZE=2>&gt; &gt;r. java:341) [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntityS
ynchro</FONT>
> <BR><FONT SIZE=2>&gt; &gt;ni zationInterceptor.java:192) [Account]
at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstance
Interc</FONT>
> <BR><FONT SIZE=2>&gt; &gt;ep tor.java:186) [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.ja
va:133</FONT>
> <BR><FONT SIZE=2>&gt; &gt;) [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
torCMT</FONT>
> <BR><FONT SIZE=2>&gt; &gt;.j ava:263) [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)</FON
T>
> <BR><FONT SIZE=2>&gt; &gt;&nbsp; [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
java:1</FONT>
> <BR><FONT SIZE=2>&gt; &gt;77 ) [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)</FONT>
> <BR><FONT SIZE=2>&gt; &gt;&nbsp; [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;
org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:323)
[Account]</FONT>
> <BR><FONT SIZE=2>&gt; &gt; at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPCon
tainer</FONT>
> <BR><FONT SIZE=2>&gt; &gt;In voker.java:471) [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(EntityProxy.
java:1</FONT>
> <BR><FONT SIZE=2>&gt; &gt;46 ) [Account] at $Proxy16.getBdoId(Unknown
Source)</FONT>
> <BR><FONT SIZE=2>&gt; &gt;&nbsp; [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>com.nuix.bdo.connection.ConnectionManagerEJB.removeConnection(Connect
ionMan</FONT>
> <BR><FONT SIZE=2>&gt; &gt;ag erEJB.java:148) [Account] at
java.lang.reflect.Method.invoke(Native</FONT>
> <BR><FONT SIZE=2>&gt; &gt; Method) [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(St
ateful</FONT>
> <BR><FONT SIZE=2>&gt; &gt;Se ssionContainer.java:570) [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
java:1</FONT>
> <BR><FONT SIZE=2>&gt; &gt;77 ) [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(State
fulSes</FONT>
> <BR><FONT SIZE=2>&gt; &gt;si onInstanceInterceptor.java:206) [Account]
at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.ja
va:133</FONT>
> <BR><FONT SIZE=2>&gt; &gt;) [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
torCMT</FONT>
> <BR><FONT SIZE=2>&gt; &gt;.j ava:263) [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)</FON
T>
> <BR><FONT SIZE=2>&gt; &gt;&nbsp; [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)</FONT>
> <BR><FONT SIZE=2>&gt; &gt;&nbsp; [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContaine
r.java</FONT>
> <BR><FONT SIZE=2>&gt; &gt;:3 26) [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPCon
tainer</FONT>
> <BR><FONT SIZE=2>&gt; &gt;In voker.java:471) [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.plugins.jrmp.interfaces.StatefulSessionProxy.invoke(Sta
tefulS</FONT>
> <BR><FONT SIZE=2>&gt; &gt;es sionProxy.java:150) [Account] at
$Proxy12.removeConnection(Unknown</FONT>
> <BR><FONT SIZE=2>&gt; &gt; Source) [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>com.nuix.interceptor.interpretor.DeleteConnectionInterpretor.execute(
Delete</FONT>
> <BR><FONT SIZE=2>&gt; &gt;Co nnectionInterpretor.java:149) [Account]
at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;
com.nuix.interceptor.InterceptorEJB.execute(InterceptorEJB.java:127)</FONT>
> <BR><FONT SIZE=2>&gt; &gt;&nbsp; [Account] at
java.lang.reflect.Method.invoke(Native Method)</FONT>
> <BR><FONT SIZE=2>&gt; &gt;&nbsp; [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(St
ateful</FONT>
> <BR><FONT SIZE=2>&gt; &gt;Se ssionContainer.java:570) [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
java:1</FONT>
> <BR><FONT SIZE=2>&gt; &gt;77 ) [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(State
fulSes</FONT>
> <BR><FONT SIZE=2>&gt; &gt;si onInstanceInterceptor.java:206) [Account]
at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.ja
va:133</FONT>
> <BR><FONT SIZE=2>&gt; &gt;) [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
torCMT</FONT>
> <BR><FONT SIZE=2>&gt; &gt;.j ava:263) [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)</FON
T>
> <BR><FONT SIZE=2>&gt; &gt;&nbsp; [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)</FONT>
> <BR><FONT SIZE=2>&gt; &gt;&nbsp; [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContaine
r.java</FONT>
> <BR><FONT SIZE=2>&gt; &gt;:3 26) [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPCon
tainer</FONT>
> <BR><FONT SIZE=2>&gt; &gt;In voker.java:381) [Account] at
java.lang.reflect.Method.invoke(Native</FONT>
> <BR><FONT SIZE=2>&gt; &gt; Method) [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)</FONT>
> <BR><FONT SIZE=2>&gt; &gt;&nbsp; [Account] at
sun.rmi.transport.Transport$1.run(Transport.java:142)</FONT>
> <BR><FONT SIZE=2>&gt; &gt;&nbsp; [Account] at
java.security.AccessController.doPrivileged(Native Method)</FONT>
> <BR><FONT SIZE=2>&gt; &gt;&nbsp; [Account] at</FONT>
> <BR><FONT
SIZE=2>sun.rmi.transport.Transport.serviceCall(Transport.java:139)</FONT>
> <BR><FONT SIZE=2>&gt; &gt;&nbsp; [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443)</FO
NT>
> <BR><FONT SIZE=2>&gt; &gt;&nbsp; [Account] at</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT
SIZE=2>sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
.java:</FONT>
> <BR><FONT SIZE=2>&gt; &gt;64 3) [Account] at
java.lang.Thread.run(Thread.java:484)</FONT>
> <BR><FONT SIZE=2>&gt; &gt;</FONT>
> <BR><FONT SIZE=2>&gt;
&gt; -------------------------------------------------------</FONT>
> <BR><FONT SIZE=2>&gt;</FONT>
> <BR><FONT SIZE=2>&gt;
_______________________________________________</FONT>
> <BR><FONT SIZE=2>&gt; JBoss-user mailing list</FONT>
> <BR><FONT SIZE=2>&gt; [EMAIL PROTECTED]</FONT>
> <BR><FONT SIZE=2>&gt; <A
HREF="http://lists.sourceforge.net/lists/listinfo/jboss-user";
TARGET="_blank">http://lists.sourceforge.net/lists/listinfo/jboss-user</A></
FONT>
> </P>
> <BR>
>
> <P><FONT SIZE=2>_______________________________________________</FONT>
> <BR><FONT SIZE=2>JBoss-user mailing list</FONT>
> <BR><FONT SIZE=2>[EMAIL PROTECTED]</FONT>
> <BR><FONT SIZE=2><A
HREF="http://lists.sourceforge.net/lists/listinfo/jboss-user";
TARGET="_blank">http://lists.sourceforge.net/lists/listinfo/jboss-user</A></
FONT>
> </P>
>
> </BODY>
> </HTML>
> ------_=_NextPart_001_01C0D3F5.15BD7540--
>
>
>
> --__--__--
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
> End of JBoss-user Digest
>


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to