Jim,
Does it not provide an xpath location as part of the exception, such as:
/a/b/c ? It's supposed to do that.
If not, please file a bug report with a sample test case and we'll try
to make the validation message more meaningful. Or, if you have the time
and want to update the error messages
Hi Andrea,
Can you open up a bug report on this and we'll take a look into it.
Thanks,
--Keith
Andrea A. A. Gariboldi wrote:
Hi all,
i had a problem using the binding file for the Source Generator:
I had this complex type:
t I don't understand what's going on in the code enough to know
what the if statement's condition needs to be.
I have tried the latest code from CVS and the problem still exists.
Thanks,
Dan.
-Original Message-
From: Keith Visco [mailto:[EMAIL PROTECTED]
Sent: Thu 03/03/2005
Hi Dan,
Can you open up a bug report at http://bugzilla.exolab.org. If you can
attach a small-as-possible test case to the bug report that would be
great. I'm actually working with the UnmarshalHandler at the moment and
checked in a few fixes related to the location attribute though I don't
thi
Hi David,
How do you distinguish between whether something is a Contract or a
Payment if they both use the Contract element name?
Castor basically follows the rules set forth in XML Schema, which
doesn't allow two sibling elements to have the same name and different
types. Basically if you have
failed");
}
} catch (Exception e){
e.printStackTrace();
}
}
}
any help is greatly appreciated. If there's another way set
StrictElements to off and still use object.unmarshal() static method
that would be great.
peter lin
On Fri, 04 Feb 2005 18:
If you have a forum account, you can vote here without having to send to
one of the mailing lists:
http://castor.exolab.org/phpBB2/viewtopic.php?p=368
Cheers!
--Keith
Keith Visco wrote:
Hi all,
We're currently in the process of moving the project over to
codehaus.org. Please be patient wi
Hi all,
We're currently in the process of moving the project over to
codehaus.org. Please be patient with us during the move process.
As part of this process we need to create new mailing lists.
We'd like to get your vote on whether we should re-subscribe everyone
automatically to the new lists
#x27;m hoping others find the
enhancement useful enough to include. thanks
peter
On Wed, 02 Feb 2005 19:35:18 -0600, Keith Visco <[EMAIL PROTECTED]> wrote:
Peter,
The static unmarshal() methods are simply for convenience.
You can easily construct an Unmarshaller, configure it, and invoke it
Peter,
The static unmarshal() methods are simply for convenience.
You can easily construct an Unmarshaller, configure it, and invoke it as
such:
Unmarshaller unm = new Umarshaller(MyClass.class);
unm.setIgnoreExtraElements(true);
unm.unmarshal(myReader);
--Keith
Peter Lin wrote:
has anyone given
Hi Paul,
See inline...
Paul Grillo wrote:
Keith,
I've tried this several times. I don't see a difference.
Builder properties file has:
org.exolab.castor.builder.javaclassmapping=type
The following class files are always built. I've checked and rechecked.
The builder file is being picked up.
V
code that uses the
classes, but it's sort of ugly. Hoping there was a clearcut approach.
-Original Message-----
From: Keith Visco [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 27, 2005 2:25 PM
To: castor-dev@exolab.org
Subject: Re: [castor-dev] Source Generator - Advice/hel
Paul,
Try generating your source code using the "type" approach. You can
specify this in the "castorbuilder.properties" or in a binding-file if
you're using one.
http://castor.exolab.org/sourcegen.html#Class-Creation/Mapping
--Keith
Paul Grillo wrote:
I would really appreciate some help on this,
Interesting example Stephen, I'll try and look into it a bit more when I
have chance to and get back to you on it. The deriveByClass code is
basically at the top of the private Marshaller#marshal() method so it
really deals with elements only. I'll see what it would take to tweak
the attribute
Hi all,
If anyone needs to contact me directly, please use keith AT kvisco DOT
com as my [EMAIL PROTECTED] address will no longer work.
As I was laid-off this week from Intalio, my availablility will be on
and off over the next couple weeks so please be patient if you're
waiting for a response
You're on the right track, but you should probably return null from the
newInstance methods instead of throwing exceptions. Castor will invoke
those methods and will expect either an actual instance or null as the
return value.
Also if you extend GeneralizedFieldHandler instead of
AbstractFie
Hi Jene,
Thanks for the patches and test cases. I appreciate the effort you spent
on looking into this issue.
It would be much better for everyone, however, if you could attach these
directly to bug 1723 instead of using the mailing list. It allows us to
track the bug progress in a single place
Bruce,
Without sending me off to some link to read some 3rd party marketing
speak about why I would want to upgrade to Subversion (not that you
would do that to me of course), can you please highlight from your own
experience what such features of SVN you are desperately seeking that
are not cu
Hey Andrew,
I think it's a good idea, especially since more and more people don't
want to include the entire Xerces jar just to get the serialization
support required from Castor. I've been contemplating that for a long
time now, just never had the time to tackle it. It should be pretty
straigh
Hi Jon,
This may be a similar issue to the one reported here:
http://bugzilla.exolab.org/show_bug.cgi?id=1834
That bug was fixed for RC3, but there may be another jdo descriptor file
which needs the same fix that I applied to the CategoryDescriptor.java.
I guess this means that the JDO test case
Hi Paul,
Yes, please file a bug and I'll try and get that cleaned up before we do
the 0.9.6 final release.
--Keith
Paul Spencer wrote:
Castor 0.9.6-RC3 is not trimming whitespace like version 0.9.5.3 does.
My application does a Unmarshaller.setPreserveWhitespace(false) before
unmarshalling.
Fr
Hi Stein,
You're not alone, I'm having problems with it as well. I've already asked
someone to look into it.
Thanks,
--Keith
>
> Hi!
>
> I'm experiencing some problems when trying to connect to the cvs,
> "Connection refused: /cvs/castor: no such repository", am I alone with
> this?
>
> Stein
Martin Fuchs wrote:
H Keith,
That's really a problem with the clients though, not the server, in my
opinon anyway. I wrote a little command line utility that automatically
adjusts the timestamp in the CVS/Entries files. I just run that once
after a timezone change and it fixes the problem local
Martin Fuchs wrote:
On 07.01.2005 10:29:59 Werner Guttmann wrote:
thank for your valuable feedback, and to some degree I agree with you. I for
myself have never seen any problems with CVS (except for teams spread
across locations such as New York, London and Tokyo, where all team members
in a diff
Hi John,
If you enable validation you should get a SAXException which wraps a
root ValidationException which many further contain a linked set of
exceptions, one for each unresolved IDREF.
If you look at UnmarshalHandler line 858, you should see the following:
//-- if we are at root...
Hey Martin, et al.,
I hope you had a wonderful holiday.
As for Subversion, I think I'm in the "Why fix it if it isn't broke" camp
that Nick mentioned in his previous reponse.
I really don't think we have any resources to put on this, and I'm very
happy with CVS and my WinCVS client that I don'
Hi Larry,
Can you open up a bug report on this (http://bugzilla.exolab.org) and
attach your patch to the bug report.
Thanks,
--Keith
Lawrence McCay wrote:
Greetings:
The attached patch is for normalizing timezones to zulu time.
While implementing it as prescribed for adding durations to date/time
Fixed.
--Keith
Paul Spencer wrote:
The following distributions on the download page for version 0.9.5.4 do
not exist:
-The Castor JARs, docs, DTDs, command line tools and examples
ftp://ftp.exolab.org/pub/castor/castor_0.9.5.4/castor-0.9.5.4.tgz
ftp://ftp.exolab.org/pub/castor/castor_0.9.5.4/
Hi Stephen,
Both "Funny Things" appear to be legitimate bugs. The first being a bug
in the error reporting and the second being a bug in the traversing of
the state stack. Your solution should work, but instead of checking for
a null fieldDesc it should probably check to see if the state is a p
Paul,
We're aware of this problem and hope to have it cleared up shortly. Can
you try using the loadMapping(InputSource) method instead?
--Keith
Paul Spencer wrote:
I upgraded from Castor 0.9.5.3 to 0.9.5.4 and the following exception is
now being thrown.
Caused by: java.io.FileNotFoundExceptio
See inline below...
Saravanan Subbiah wrote:
On Fri, 05 Nov 2004 22:17:34 -0600
Keith Visco <[EMAIL PROTECTED]> sed :
Saravanan Subbiah wrote:
> Hi all,
>
> I am trying to see find XSD Key and KeyRef support in castor. I
> see that castor generates KeyRef classes. Bu
Saravanan Subbiah wrote:
> Hi all,
>
> I am trying to see find XSD Key and KeyRef support in castor. I see
> that castor generates KeyRef classes. But does it actually validates it
> ?
>
> I think no. I wrote a test program which adds an invalid reference and
> tried to Marshal it and it went
Hi Jim,
Indentation is handled by the underlying XML Serializer, which basically
means that Xerces is handling all the indentation.
As far as I know, it's not something that can be fine-tuned. However,
Since the Castor Marshaller can marshal to any SAX ContentHandler or
DocumentHandler, feel fr
msjob/simplejob/executable/environment
at
org.exolab.castor.xml.FieldValidator.validate(FieldValidator.java:277
I hope it helps you to find the problem.
All the best,
Tomek
Keith Visco wrote:
Hi Tomasz,
This was also reported over on the forums:
http://castor.exolab.org/phpBB2/viewtopic.php?t=263
Though I was unable
Hi Tomasz,
This was also reported over on the forums:
http://castor.exolab.org/phpBB2/viewtopic.php?t=263
Though I was unable to reproduce the problem myself.
The user on the forums reported the problem when using a mapping file.
So I tried to reproduce that, as you can see from the forum message,
Hi all,
I'm in the process of finalizing the release of Castor 0.9.5.4. In the
meantime I've placed a copy of Castor 0.9.5.4 rc1 on the ftp site.
ftp://ftp.exolab.org/pub/castor/castor_0.9.5.4/
This is a bug fix release, so please do not expect new features slated
for 0.9.6 to appear in this re
Hi all,
This is just a notice to inform you of the upcoming releases of Castor.
We are planning on releasing Castor 0.9.5.4 on October 4th. This release
will be be a bug fix only release. The release will be based off of the
0.9.5.x branch of the Castor CVS.
We are also planning on releasing Ca
Jos,
By default, Castor uses the Jakarta RegExp or the Jakarta ORO regular
expression libraries, depending on which version of Castor you are
using.
You can however, use whatever regular expression library that you want
by specifying it in the castor.properties file.
All it takes is a simple w
Christian,
You should be able to implement an org.exolab.castor.xml.IDResolver and
pass it off to the Unmarshaller. When the Unmarshaller encounters and ID
that it doesn't know how to resolve, it will ask the registered
IDResolver to handle the resolution.
--Keith
Christian Schuhegger wrote:
>
Hi Eric,
Yes, this change has caused some migration headaches. The main reason
for the change was because of inheritence issues. If the more specific
type is used in the method signature, then there was issues with
subclasses and a bug in the SourceGenerator/SourceFactory that didn't
correctly r
27;s why I tried to assign an other class name (cardRecords) to this tag.
> Is it possible?
> have any idea?? Thanks!
>
> -Youssef
>
> |-+------->
> | | Keith Visco |
> | |
defaultBindingType='element'>
>
>
>
>
>
>
>
> to rename Class 'cardRecord' to 'cardRecords'. But it still does not work
> :-(((
>
> any idea?
> Many thanks.
> -Youssef
>
>
>
You need to use a binding file to do this. You can see a sample of
binding file here:
http://castor.exolab.org/phpBB2/viewtopic.php?t=9
And there is more information here:
http://castor.exolab.org/sourcegen.html#Binding-File
--Keith
[EMAIL PROTECTED] wrote:
>
> Hello Bruce and all,
>
> is
To make the generated source code more JDO friendly you can do the
following:
http://castor.exolab.org/xml-faq.html#How-can-I-make-the-generated-source-code-more-JDO-friendly?
However, bi-directional relationships are not handled via the source
generator directly. One way to handle it is to def
.ProjectManager.loadProject(ProjectManager.java:486)
> at
> com.vort.ads.gui.project.JFrOpenProject.jBOpenActionPerformed(JFrOpenPro
> ject.
>
> The interesting part is that it is "accepting/returning object of type
> null was not found" whats up with this? I am
Hi Nick,
Castor supports "isSomething" for booleans, it's working for me.
As for specifying only a getter and not the setter. The behavior in
Castor is that if you don't specify any accessor methods, Castor will
look for them and try and determine them automatically. But if you only
specify one
Justin,
You could add annotations to the schema for your Xdoclet tags. See the
following:
http://www.mail-archive.com/castor-user%40exolab.org/msg00394.html
--Keith
Justin Permar wrote:
>
> Werner Guttmann wrote:
>
> >Justin,
> >
> >if you were to use Castor JDO as persistance framework, th
Thanks Jeremy!
--Keith
Jeremy Haile wrote:
>
> I just posted a test case online for bug 1560
> (http://bugzilla.exolab.org/show_bug.cgi?id=1560). I hope this can help
> us resolve this validation bug. If there is anything I can do to help
> debug this problem, let me know.
>
> Jeremy
>
> -
d and vice versa ?
>
> Werner
>
> On Sun, 04 Jul 2004 01:29:58 -0500, Keith Visco wrote:
>
> >
> >
> >Hi all,
> >
> >We just set up a message board for Castor:
> >
> >http://castor.exolab.org/phpBB2
> >
> >To get it kicked started I
Thanooja,
If you want to remove the namespace completely, just (temporarily)
remove the targetNamespace from your schema and regerate the sources.
If you simply want to use a different prefix than "ns1" you can declare
the prefix mapping on the Marshaller (see
Marshaller#setNamespaceMapping.
-
Hi all,
We just set up a message board for Castor:
http://castor.exolab.org/phpBB2
To get it kicked started I posted a Castor XML binding file example as
the first posting on the board.
I personally find message boards more user-friendly than mailing lists
as it keeps the information in a mu
rties, being able to programmatically overwrite properties (I
> realize a good read through the API will get this as well but still),
> the fact that only supplied properties are overwritten. I think that's
> about it as far as what we've discussed here. :)
>
> -Nick
>
>
Hi Tomasz,
We'll get that estimate updated soon. Sorry for the inconvenience.
Thanks,
--Keith
Tomasz Piontek wrote:
>
> Hi,
>
> According to the web page the time of the next release was estimated to
> 7th June.
>
> > >Next Release
> > >Next scheduled release (0.9.6): June, 7 2004 (tentati
Jay is correct, Castor loads the castor.properties in the following
order:
1. From classpath (usually from the jar file)
2. From {java.home}/lib (if present)
3. From the local working directory
Each one overrides the previous. So you don't have to come up with a
properties file with all the pr
Hi Bowden,
Looks like it might be a problem! :-)
Can you file a bug report on that (http://bugzilla.exolab.org).
Thanks,
--Keith
"Wise, Bowden (Research)" wrote:
>
> I resent my original query as plaintext below as requested:
>
> I have a schema that uses durations (e.g., xs:duration) type
a
> huge hack.
>
> One more comment below:
>
> On 05/24/04 15:44:19, Keith Visco wrote:
> > The XMLSerializer is correct in throwing an error with (char)0 since
> > it's not a valid XML character.
>
> True it's not a valid XML character, but it _is_ a vali
Hi Jim,
The XMLSerializer is correct in throwing an error with (char)0 since
it's not a valid XML character. There is little we can do about that,
the character simply cannot exist in an xml document.
I've answered the question about vectors and references in a response to
your previous postin
Hi Jason,
I just responsed on the castor-user list, sorry for the delay, I'm just
getting around to Castor related mail today.
--Keith
Jason Dillon wrote:
>
> Hi. I did not get any responses about this problem on the user list, so I
> am trying the dev list in the hope of at least some comme
Earl,
Since you know how to marshal attributes, using node="attribute", then
it's easy to understand how to do the same for text content using
node="text":
--Keith
[EMAIL PROTECTED] wrote:
>
> I'm new to Castor and to XML, but I REALLY like Castor and have been
> testing it for m
Hi Andy,
If you want to do XML Schema validation during unmarshalling when using
a mapping file for the binding, you need to enable parser validation in
the castor.properties.
org.exolab.castor.parser.validation=true
By default it's disabled.
This will allow Xerces (or whatever parser you're
HI Alexandr,
This should work with the CVS version of Castor. The issue with the JXDM
schema was reported previously and I already fixed this one in the CVS.
Thanks,
--Keith
Alexandr Pushkin wrote:
>
> Hello,
>
> I have attempted to use Castor's SourceGenerator for Global Justice XML Data
myUnmarshaller.setWhitespacePreserve(true);
--Keith
sire chembiparambil wrote:
>
> We recently upgraded from castor-0.9.4.3 to castor-0.9.5.3. As a part of
> the upgrade I also had to add two jar files jakarta-regexp-1.3.jar and
> jakarta-oro-2.0.8.jar to the class path.
>
> Now when I use t
Hi Brent,
I see no reason why setters can't exist for AnyNode. I guess Arnaud just
added them to the constructor for use during unmarshalling since we
don't change the value, no additional setters were needed.
So it was probably simply that they were not needed at the time, I don't
think there
If you're using existing classes, you need to use a mapping file:
http://castor.exolab.org/xml-mapping.html
The generated classes are of no-use to you since you have your own
existing classes.
--Keith
¹Ë ´óÃ÷ wrote:
>
> Hi all,
>
> I¡¯m new to castor and trying to write something can bind
>
>
>
>
>
>
>
>
> -Original Message-
> From: Keith Visco [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 03, 2004 9:35 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [castor-dev] changing Source
> to unsubscribe till someone actually fixes the
> config/server problem.
>
> Bad way to run a list
>
> On Fri, 30 Apr 2004, Keith Visco wrote:
>
> >
> >
> >
> > You can unsubscribe, by using your old address in the From: field of the
> > mess
I have someone looking at the list, however, I was able to subscribe and
unsubscribe successfully.
The from: field must be the e-mail that you were subscribed under.
We are still having problems with the <<< No Message Collected >>>
e-mails coming from the updated Spam filters, I'm hopeful that
You can unsubscribe, by using your old address in the From: field of the
message.
--Keith
[EMAIL PROTECTED] wrote:
>
> Correct, but they don't solve the problem ;-)
> As I try to unsubscribe with my new email address, I get:
> quote:
>
> Internal error while processing your request; report
The number on the contact page should not definately not be there, but
it does work, I just tried it. I'll get it removed though.
What error did you get with unsubscribe?
--Keith
Bruce Snyder wrote:
>
> This one time, at band camp, Robert Adamsky said:
>
> RA>Bad sign when number is disconn
Just use a mapping file, and don't specify the "y" field.
http://castor.exolab.org/xml-mapping.html
--Keith
> [EMAIL PROTECTED] wrote:
>
> Hi,
>
> Can the Castor marsheling use a filter mechanism to produce XML output
> for few methods on the java beans and ignore the remaining methods ?
>
Isidoro,
This should be working properly in Castor 0.9.5.3.
--Keith
> "Legido Martínez, Isidoro" wrote:
>
> Probably I'm doing something wrong, but I don't get the expected
> result when marshalling
> objects if I use the into de mapping file.
> I will explain :-)
>
> -
> "Nandakumar, Manoj" wrote:
>
> Hi,
>
> Just wanted to know what needs to be done to ensure that the Castor
> Source Code generator generates corresponding setter methods for all
> getter methods.
>
> For Java types that map to a simple type like this
>
>
>
>
>
>
Hi Balaji,
We currently don't have the feature to specify the "factory method" for
the type-safe enumeration, but I don't see why we couldn't do that.
Can you file an enhancement request at http://bugzilla.exolab.org so
that this request doesn't get lost among the list.
Thanks,
--Keith
> "A
Hi Erik, et al.,
"Ostermueller, Erik" wrote:
>
> I sure haven't seen anything like this,
> Here is my wishlist for improvements in the validation framework.
> I think my number 2 is similar to what you're requesting here.
>
> 1) Currently, when the validator encounters an exception, it punts r
Hi Earl,
Castor will work with Vector and List as well, I don't have any problems
using them, so I'm not sure what kind of issues you were running into.
If you have a small, complete example you can share (in a zip format)
that demonstrates the issue, please send it along and I can run it here
Hi Earl,
Thanks for your interest in Castor and willingness to help fix the issue
you've run across.
In order for us to better determine if your patch is the proper one, can
you open a bug report at http://bugzilla.exolab.org and attach your
patch (as a diff file), as well as a small test case
You have to get the ComplexType from the ElementDecl.
XMLType type = element.getType();
if (type.isComplexType()) {
ComplexType cType = (ComplexType)type;
Enumeration enum = cType.enumerate();
while (enum.hasMoreElements()) {
Structure st = (Structure) enum.nextElement();
Patrick Wright wrote:
>
> Hi
>
> I'm trying to understand how Castor processes namespace mappings declared
> in a mapping file. It seems the documentation is incomplete.
>
> What I would like to know is:
> 1) under what circumstances Castor will add a ns1:, ns2:, etc. on its own
>
When it f
How are you calling the Marshaller ? Make sure you are not using one of
the static marshal methods.
--Keith
> g r i t s e n k o wrote:
>
> Brief error description:
>
>
>
> Castor ignores map-to xml=resume in mapping for Resume class, which
> at run time is materialized by proxy class A
Milind Rao wrote:
>
> >> 1. What I'd like to get on Marshalling a Member is an XML that looks like
> >>
> >>ie. I want the level ID, not the Level object. Do I have to write my own
> >> FieldHandler for this
> >>or is there some way to do this in the XML Mapping file?
> >
> >You c
Milind Rao wrote:
>
> I just started using Castor to convert Objects to XML and back and have a couple of
> questions
>
> I have the following Objects
>
> public class Member
> {
> private int iID
> private Level iLevel;
>
> // Constructor is package-private
> Member(theMID,
Hi Shuping,
I just checked in a patch for your example, can you retry the CVS.
Thanks,
--Keith
---
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
Andy,
It sounds like the *Descriptor files have not been compiled, can you
verify that you compiled all classes, keeping in mind that the java
object model that is generated is not "java dependent" on the generated
descriptors, so compiling the class for your top-level element TX, will
only comp
Hi David,
David Blevins wrote:
>
> Hello Castor crew, hope all is well.
It's been a while! Things are good...hope all is well with you.
>
> I am also having trouble with preserving whitespace, figured I'd respond
> to this thread for archive purposes (love news.gmane.org).
>
> I am in the p
Hi Andrew,
Just change the node="element" to node="text".
--Keith
Andrew Mace wrote:
>
> Hi,
>
> I'm wondering if any of you can help me.
>
> I have classes such as
>
> public class Book{
>...
>
>public String id;
>...
>
>public String getId()
>..
Hi Ranjith,
With nillable="true" Castor should use the primitive wrapper classes
instead of the actual primitive types, this is a known issue (or was a
known issue) I haven't checked in a while. Have you tried using Castor
0.9.5.3? I'm not sure if a bug report exists for this. Feel free to fil
Gregory,
Castor will look for the getter+setter on whatever class you are
mapping. If is being specified in the mapping for the
Location class, then Castor will look at the Location class. I don't see
anywhere in your example where you are providing a mapping for
LocationMapping, or a mapping
Castor doesn't create recursive extends, per se. What it's doing in the
default "element" mode (or for top-level elements in "type" mode)
binding is creating a class for the element and then a class for the
complexType. The class for the element extends that of the complexType.
If both element a
Hi Adam,
There are a couple bugs open on the location attribute already, I think
the following covers this situation that you describe:
http://bugzilla.exolab.org/show_bug.cgi?id=1516
Since that bug is lacking a test case, can you add your test case to the
bug, and put yourself in the cc list
To all contributors,
This is just a friendly reminder...
We can't include any JBoss code in Castor as they use the LGPL. I
believe we can link to a compiled jar, but I'd rather not deal with any
GNU licensed products what-so-ever.
If you want to use that code you must get written permission
Hi Paul,
Yes, please file a bug report on this, and if you can attach your test
case, that would be great.
Thanks,
--Keith
Paul Grillo wrote:
>
> Well, it looks to me that there is a bug in the XML Mapping. I haven't
> been able to solve it. Don't know if anybody had a look at the previou
Hi Tim,
We've removed the restriction for 1.1 compatible code, so no. The lowest
common denominator that is supported is now JDK 1.2.
Castor internally handles Iterators, by wrapping them in a simple
IteratorEnumeration. This was initially done because of the JDK 1.1
compatibility...so we need
Hi Katja,
You mapping for the key is as follows:
So you're telling castor that you only care about one field, but then
you mark it as transient, I have a feeling you want the following
instead:
[EMAIL PROTECTED] wrote:
>
> Removing 'container="false"' didn't really help.
> Wha
I think the problem is coming from the container="false".
Try removing that and it should work ok.
--Keith
[EMAIL PROTECTED] wrote:
>
> Hello,
>
> I'm un/marshalling a HashMap but not all attributes of the key are getting
> marshalled. Of course I can't unmarshall them either.
> Following i
You need to modify your mapping.xml file as such:
should be:
--Keith
jose luis campos wrote:
>
> org.xml.sax.SAXException: unable to find FieldDescriptor for
> 'product_group' in ClassDescriptor of org.sibum.amazon.Catalog{file:
> [not available]; line: 6; column: 16}
>
>
> What im
Damian,
That's because your binding-file is not a binding-file, but rather a
mapping file. They are different file types, so you are giving Castor
the wrong file type.
Please see the following for more information on binding-file:
http://castor.exolab.org/sourcegen.html#Binding-File
Please s
Robert,
please see my previous reply...it's the difference between using
non-static and static unmarshal method. All non-static configuration on
the Unmarshaller cannot be accessed via the static unmarshal method,
which you were using in your first example.
Now you are using a non-static method
Hi Robert,
It's not a bug...you are using a static unmarshal method, so any of your
changes done on the Unmarshaller will not be accessible from the static
method.
--Keith
[EMAIL PROTECTED] wrote:
>
> I am trying to parse a file that may have additional elements that are unforeseen.
> I do
Thanks Roman,
I'll mark that as PCDATA for now instead of ID.
--Keith
Roman Maeder wrote:
>
> Hi
>
> I am using the new nested class mapping feature to map key/value pairs to a
> Java HashMap. The XML mapping doc says that this can be used if more than
> one mapping for a particular class
You can create a custom FieldHandler which does basically nothing in the
setValue method and simply returns null in the getValue method.
Then simply specify the handler in the mapping file:
--Keith
> Sourabh wrote:
>
> Suppose in my mapping file i mapped 4 different attributes for a
> cla
1 - 100 of 1031 matches
Mail list logo