You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Sherwin Lu <sh...@hotmail.com> on 2003/05/19 16:55:58 UTC
Problems persisting an object in JBoss/MySQL w/ PBAPI
Hi All,
Looking at the sample ejb's, I have written my own ejb's (JBoss/MySQL) to do
some simple persistence, but I'm running into the following errors/warnings
when I try to persist the object. If anyone has any ideas on what my problem
is, I'd very much appreciate it.
07:43:57,309 INFO [STDOUT] lookup name is: java:/ojb/PBAPI
07:43:58,451 INFO [STDOUT] Successfully created the AssessmentTemplate
Object In
Memory. Now attempting to persist the AssessmentTemplate object.
07:43:58,491 INFO [STDOUT] [DEFAULT] WARN:
07:43:58,491 INFO [STDOUT] [PlatformFactory] problems with platform
org.apache.ojb.broker.platforms.PlatformMysqlImpl:
org.apache.ojb.broker.platforms.PlatformMysqlImpl
07:43:58,491 INFO [STDOUT] [DEFAULT] WARN:
07:43:58,491 INFO [STDOUT] [PlatformFactory] OJB will use
PlatformDefaultImpl instead
07:43:58,541 INFO [STDOUT] Persist the AssessmentTemplate Object
07:43:58,581 ERROR [STDERR] java.lang.IllegalAccessError: tried to access
method
org.apache.ojb.broker.query.Criteria.setQuery(Lorg/apache/ojb/broker/query/Q
ueryByCriteria;)V from class org.apache.ojb.broker.query.QueryByCriteria
07:43:58,591 ERROR [STDERR] at
org.apache.ojb.broker.query.QueryByCriteria.setCriteria(Unknown Source)
Thanks.
-Sherwin
Re: Problems persisting an object in JBoss/MySQL w/ PBAPI
Posted by Sherwin Lu <sh...@hotmail.com>.
Thanks!
That fixed that problem.
Don't suppose you have a fix for my other problem now that the warning is
gone...
08:20:58,363 INFO [STDOUT] lookup name is: java:/ojb/PBAPI
08:20:59,575 INFO [STDOUT] Successfully created the AssessmentTemplate
Object
08:20:59,675 INFO [STDOUT] Persist the AssessmentTemplate Object
08:20:59,715 ERROR [STDERR] java.lang.IllegalAccessError: tried to access
method
org.apache.ojb.broker.query.Criteria.setQuery(Lorg/apache/ojb/broker/query/Q
uer
yByCriteria;)V from class org.apache.ojb.broker.query.QueryByCriteria
08:20:59,715 ERROR [STDERR] at
org.apache.ojb.broker.query.QueryByCriteria.s
etCriteria(Unknown Source)
08:20:59,715 ERROR [STDERR] at
org.apache.ojb.broker.query.QueryByCriteria.<
init>(Unknown Source)
-Sherwin
----- Original Message -----
From: "Raymond Barlow" <rb...@raymanoz.com>
To: "OJB Users List" <oj...@db.apache.org>
Sent: Monday, May 19, 2003 8:04 AM
Subject: Re: Problems persisting an object in JBoss/MySQL w/ PBAPI
> I can answer this one for you (because I got told how to fix this one
> today too!):
>
> Sherwin Lu wrote:
>
> >07:43:58,491 INFO [STDOUT] [DEFAULT] WARN:
> >07:43:58,491 INFO [STDOUT] [PlatformFactory] problems with platform
> >org.apache.ojb.broker.platforms.PlatformMysqlImpl:
> >org.apache.ojb.broker.platforms.PlatformMysqlImpl
> >
> >
> in you repository_database.xml file (or whatever you may have called
> it), change:
> <jdbc-connection-descriptor
> :
> platform="Mysql"
>
> to
> <jdbc-connection-descriptor
> :
> platform="MySQL"
>
> Notice the case of "MySQL".
>
> Cheers,
> Raymond Barlow
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
Re: Problems persisting an object in JBoss/MySQL w/ PBAPI
Posted by Raymond Barlow <rb...@raymanoz.com>.
I can answer this one for you (because I got told how to fix this one
today too!):
Sherwin Lu wrote:
>07:43:58,491 INFO [STDOUT] [DEFAULT] WARN:
>07:43:58,491 INFO [STDOUT] [PlatformFactory] problems with platform
>org.apache.ojb.broker.platforms.PlatformMysqlImpl:
>org.apache.ojb.broker.platforms.PlatformMysqlImpl
>
>
in you repository_database.xml file (or whatever you may have called
it), change:
<jdbc-connection-descriptor
:
platform="Mysql"
to
<jdbc-connection-descriptor
:
platform="MySQL"
Notice the case of "MySQL".
Cheers,
Raymond Barlow