Hi,
I am using cator-jdo for first time.
I am trying to run a sample, when i try to call
getDatabase(), I get the following exception:
org.exolab.castor.jdo.DatabaseNotFoundException: No
configuration loaded for database XFILES -- use the JDO interface to load a
configuration for this data
Hi,
Im using a custom FieldHandler to format fields generated in a specific
manner. However, when I use the marshaller, I get an xsi:type on the
message that we're going to send to a client. Is there any way to remove
this xsi:type
http://www.w3.org/2001/XMLSchema-instance";>
61
Hi,
I am using Castor-JDO for database
operations.
I am trying to update an object. When
I retreive an object and try to update it, it throws the following
exception:
java.lang.IllegalArgumentException: A master object
that involves in a long transaction must be a TimeStampable!
at
org.e
This one time, at band camp, Yi Jiang said:
YJ>Bruce,
YJ>I was trying to simplify the question with faked
YJ>objects, here is the real ones,
YJ>
YJ>mapping file:
YJ>key-generator="UUID">
YJ>TJDO Object for the Entity
YJ>'reminder'
YJ>
YJ>set-method="setId">
YJ>
YJ>
YJ>get-method="getRemindertext"
This one time, at band camp, tek1 said:
t>can someone please explain how classes are loaded by castor?
t>
t>when running castor locally (i.e. on some junit tests), i had no problem
t>using castor.
t>
t>however, i packaged up my persistence-related classes and castor-specific
t>configuration files
This one time, at band camp, Marc Dugger said:
MD>I'm looking for any insight into this strange problem I'm having: I am
MD>receiving an ObjectModifiedException when loading and committing an object
MD>with Database.update(Object o) being called to support the long transaction.
MD>However, my JU
Please someone tell me what's going on ?
i have a simple XML Document with simple XSD file. Document has root element
called Order.
I've generated object model with Source Generator.
Everything works fine (including marshalling and unmarshalling). But there
is a problem.
When i'm trying to unmar
This one time, at band camp, Smartifacts said:
S>I am using cator-jdo for first time.
S>I am trying to run a sample, when i try to call getDatabase(), I get the following
exception:
S>
S>org.exolab.castor.jdo.DatabaseNotFoundException: No configuration loaded for
database XFILES -- use the JDO
This one time, at band camp, Smartifacts said:
S>I am using Castor-JDO for database operations.
S>I am trying to update an object. When I retreive an object and try to update it, it
throws the following exception:
S>
S>java.lang.IllegalArgumentException: A master object that involves in a long
Daniel--
Try loading the file just once (outside the loop) and
see how long the Castor part takes inside the loop.
It'll be interesting to see if JBoss has an I/O performance issue.
Chris
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17,
Of course i've tried but results are the same.
Even when i'm using String instead of file (outside the loop)
like this:
Order order=Order.unmarshal(new StringReader("blah blah XMLstring"))
executing loop local - execution time is about 4 sec.
executing on jboss3.0 in SessBean - execution time 60
Daniel--
Since its not I/O-related, and you've already shown that Castor performs
well outside of JBoss, I'd look at run-time issues like EJB container
performance or the interaction between JBoss and Castor.
You need a profiling tool. Depending on your JVM and JBoss' capabilities,
you might b
Bruce,
This makes a lot of sense. Damn, I should have thought
about this.
Thanks a lot,
- Yi
--- Bruce Snyder <[EMAIL PROTECTED]> wrote:
> This one time, at band camp, Yi Jiang said:
>
> YJ>Bruce,
> YJ>I was trying to simplify the question with faked
> YJ>objects, here is the real ones,
>
[EMAIL PROTECTED] a écrit :
>
> When i'm trying to unmarshall my XML document local (without app Server) -
> execution of unmarshalling lasts about 4500 ms.
> But when i'm using JBOSS 3.0 with simple SessionBean - unmarshalling of the
> same document (in SessionBean with the same code - see bel
Hi Mickael.
My xml doesn't contain any links to XSD, so i think it's not a validation
problem. Maybe JBOSS have some problems with model generated by
SourceGenerator ??? ... that model is deployed with my TestSessionBean into
AppServer. However unmarshalling works but as i said it's very very
SLOO
thanks for your reply bruce.
i found the problem, but it's very strange. jboss has a version (not sure
which) of castor in [JBOSS]/server/default/lib, and i was also including
the latest version of castor in my .war inside the .ear. i deleted the
jboss version from the lib directory and it w
I have an existing DB2 table (EVENT_HISTORY) to which I've mapped the object
Request (see below). This table has a LONG VARCHAR column that corresponds
to Request.text.
When I try to use db.update(request) to update a Request that has been
modified, I get the following error from DB2:
COM.ibm.db
I found the answer to my own question.
I need to change the element for "eh_event_data" to look like the
following:
This will keep ev_event_data from showing up in the WHERE clause of the
UPDATE.
Cheers...
> -Original Message-
> From: Beck, Brad [mailto:[EMAIL PROTECTED]]
> Sent:
what version of jboss are you using?
also, how are you packaging your app to work in jboss? have you included
the latest version of castor (from the website) with your app, or are you
using jboss' version of castor?
i was having a strange problem with jboss also (whereby my castor app ran
fi
Well I have a patch to allow inner class names in OQL names, but I have
another issue that is more troublesome. So right now one can use an
inner class name in a mapping and in OQL, but one cannot use it in a
relationship. The reason is that the XSD for the mapping file defines
'type' as NMT
Is the following supported
currently:
oql = db.getOQLQuery("SELECT b FROM
com.xyz.Person b WHERE deleted = $1 order by $2 (asc)");
oql.bind(false);
oql.bind("lastName");
Thank you.
I did as you said, but the problem was still there.
So I've kept on investigating, and with some chance (a mistyped an
attribute), I arrived to this puzzling diagnostic:
If I define an element or attribute with a slash:
attr-name
inside Jboss, when I call the unmarshalling method, the proper cl
Bruce,
Thanks a ton for your assistance! Ultimately, the dirty="ignore" was not
the issue exactly, but did force me to investigate and debug the SQLEngine
where I caught a null String being included in the WHERE clause. It turns
out that I was missing some null checking in a business object. T
I've added the ability to suppress the xsi:type attribute. You'll need
to use the CVS version to get the feature however.
Simply use:
myMarshaller.setSuppressXSIType(true);
Be careful however, if you do suppress the xsi:type attribute you might
not be able to unmarshal the document.
Informati
Title: Generate Database
Hi all,
I am using Castor Source Generator, Castor XML and now I star with Castor JDO.
I thing all is great, but i miss one thing, generate de database using the xsd file of Castor Source Generator.
Is there any tool that do similar operation???
Is there plan
Title: RE: [castor-dev] Unwanted xsi:type on generated message from Marshaller
We had a similar issue that I posted about about two weeks ago and I'm glad to see that its been worked out. Our problem, however, is that we do want the xsi:type, it just has to have the correct value, i.e. "strin
I figured out that this exception was due to an internal error occuring
inside
my getContainedComponents() accessor method. It worked fine after fixing
this problem.
Sorry for any inconvenience,
Roshan
Roshan Joyce wrote:
> Hi,
>
> I am new to Castor and have been trying to use it to map a tr
I thought that I should report -- I finally got this working. It turns out that the problem
was that I had the jdbc-se2.0.jar file on my classpath. As soon as I removed this it works perfectly.
Strange but I am not complaining. I think the documentation says we need that, but it should not say tha
Hi Bill,
Castor does try to use the correct Schema type when available, but I
think that it's currently only working for complexTypes and not
simpleTypes.
I'll look into it further.
Thanks,
--Keith
> Bill Simons wrote:
>
> We had a similar issue that I posted about about two weeks ago and
29 matches
Mail list logo