Re: [castor-dev] Can marshalling error messages be more specific?

2005-04-10 Thread Keith Visco
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

Re: [castor-dev] Binding file Problem (member collection)

2005-03-14 Thread Keith Visco
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:

Re: [castor-dev] RE: "unable to find FieldDescriptor" when using auto-naming with location attribute

2005-03-03 Thread Keith Visco
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

Re: [castor-dev] RE: "unable to find FieldDescriptor" when using auto-naming with location attribute

2005-03-02 Thread Keith Visco
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

Re: [castor-dev] Castor XML - duplicate bind-xml names

2005-02-28 Thread Keith Visco
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

Re: [castor-dev] question on strictelements

2005-02-17 Thread Keith Visco
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:

Re: [castor-dev] Project Update, Need your vote!

2005-02-09 Thread Keith Visco
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

[castor-dev] Project Update, Need your vote!

2005-02-09 Thread Keith Visco
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

Re: [castor-dev] question on strictelements

2005-02-04 Thread Keith Visco
#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

Re: [castor-dev] question on strictelements

2005-02-02 Thread Keith Visco
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

Re: [castor-dev] Source Generator - Advice/help? please

2005-01-28 Thread Keith Visco
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

Re: [castor-dev] Source Generator - Advice/help? please

2005-01-27 Thread Keith Visco
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

Re: [castor-dev] Source Generator - Advice/help? please

2005-01-27 Thread Keith Visco
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,

Re: [castor-dev] deriveByClass for XML Attributes

2005-01-24 Thread Keith Visco
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

[castor-dev] My status and contact info

2005-01-22 Thread Keith Visco
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

Re: [castor-dev] Re: TypeSafe Enums and Collections

2005-01-18 Thread Keith Visco
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

[castor-dev] Re: Unmarshalling and Validating xsi:nil

2005-01-17 Thread Keith Visco
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

Re: [castor-dev] Fw: SVN -- Bugzilla (switch from CVS to Subversion)

2005-01-13 Thread Keith Visco
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

Re: [castor-dev] Dependency on Xerces in Castor XML?

2005-01-13 Thread Keith Visco
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

Re: [castor-dev] Castor 0.9.6-RC3 database loading issues

2005-01-12 Thread Keith Visco
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

Re: [castor-dev] Castor 0.9.6-RC3 not trimming all whitespace like 0.9.5.3 does.

2005-01-12 Thread Keith Visco
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

Re: [castor-dev] CVS problems

2005-01-08 Thread Keith Visco
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

Re: [castor-dev] Re: switch from CVS to Subversion

2005-01-07 Thread Keith Visco
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

Re: [castor-dev] Re: switch from CVS to Subversion

2005-01-07 Thread Keith Visco
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

Re: [castor-dev] XML: Unresolved ID/IDREF Pairs

2005-01-06 Thread Keith Visco
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...

Re: [castor-dev] switch from CVS to Subversion

2005-01-03 Thread Keith Visco
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'

Re: [castor-dev] XML: DateTimeBase normalization patch

2004-12-17 Thread Keith Visco
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

Re: [castor-dev] Missing 0.9.5.4 distributions

2004-12-17 Thread Keith Visco
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/

Re: [castor-dev] [XML] UnmarshalHandler behavior with invalid Map collections

2004-12-16 Thread Keith Visco
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

Re: [castor-dev] FileNotFoundException from loadMapping() in 0.9.5.4

2004-12-16 Thread Keith Visco
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

Re: [castor-dev] Key and KeyRef Support in Castor. (?)

2004-11-08 Thread Keith Visco
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

Re: [castor-dev] Key and KeyRef Support in Castor. (?)

2004-11-05 Thread Keith Visco
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

Re: [castor-dev] Is Indentation configurable?

2004-10-15 Thread Keith Visco
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

Re: [castor-dev] Regression BUG in 0.9.5.4rc

2004-10-08 Thread Keith Visco
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

Re: [castor-dev] Regression BUG in 0.9.5.4rc

2004-10-07 Thread Keith Visco
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,

[castor-dev] Castor 0.9.5.4 Release Candidate

2004-10-06 Thread Keith Visco
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

[castor-dev] Upcoming Releases

2004-09-23 Thread Keith Visco
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

Re: [castor-dev] bug in pattern evaluation

2004-09-17 Thread Keith Visco
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

Re: [castor-dev] is it possible to read an xml file where some

2004-09-14 Thread Keith Visco
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: >

Re: [castor-dev] Enhancement Request

2004-07-30 Thread Keith Visco
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

Re: [castor-dev] getter/setter, can anyone help me?

2004-07-29 Thread Keith Visco
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 | > | |

Re: [castor-dev] getter/setter, can anyone help me?

2004-07-28 Thread Keith Visco
defaultBindingType='element'> > > > > > > > > to rename Class 'cardRecord' to 'cardRecords'. But it still does not work > :-((( > > any idea? > Many thanks. > -Youssef > > >

Re: [castor-dev] getter/setter, can anyone help me?

2004-07-27 Thread Keith Visco
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

Re: [castor-dev] SourceGenerator vs JDO

2004-07-14 Thread Keith Visco
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

Re: [castor-dev] Get/set for booleans

2004-07-14 Thread Keith Visco
.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

Re: [castor-dev] Get/set for booleans

2004-07-13 Thread Keith Visco
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

Re: [castor-dev] [XML] Persistable generated (source generator)

2004-07-09 Thread Keith Visco
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

Re: [castor-dev] [XML] Castor Validation Bug Test Case

2004-07-09 Thread Keith Visco
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 > > -

Re: [castor-dev] [Ann] Castor Message Board

2004-07-04 Thread Keith Visco
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

Re: [castor-dev] Remove namespace prefix from the castor generated XML

2004-07-04 Thread Keith Visco
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. -

[castor-dev] [Ann] Castor Message Board

2004-07-03 Thread Keith Visco
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

Re: [castor-dev] Easier way to configure castor...

2004-06-22 Thread Keith Visco
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 > >

Re: [castor-dev] Estimated time of next release

2004-06-22 Thread Keith Visco
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

Re: [castor-dev] Easier way to configure castor...

2004-06-22 Thread Keith Visco
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

Re: [castor-dev] Milliseconds in durations restricted to 4 significant

2004-06-10 Thread Keith Visco
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

Re: [castor-dev] [XML] Reference Woes & others

2004-05-24 Thread Keith Visco
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

Re: [castor-dev] [XML] Reference Woes & others

2004-05-24 Thread Keith Visco
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

Re: [castor-dev] FW: [castor-user] Problems marshalling class with an

2004-05-21 Thread Keith Visco
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

Re: [castor-dev] Both attributes and value in the same element?

2004-05-20 Thread Keith Visco
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

Re: [castor-dev] XML Databinding and Validation of Incoming XML Document

2004-05-17 Thread Keith Visco
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

Re: [castor-dev] SourceGenerator fails to generate classes with

2004-05-10 Thread Keith Visco
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

Re: [castor-dev] Newlines being stripped from element value

2004-05-05 Thread Keith Visco
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

Re: [castor-dev] AnyNode is not mutable?

2004-05-05 Thread Keith Visco
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

Re: [castor-dev] Using Existing Classes

2004-05-05 Thread Keith Visco
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

Re: [castor-dev] changing SourceGenerator - classes for simpleTypes?

2004-05-05 Thread Keith Visco
> > > > > > > > > -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

Re: [castor-dev] mailinglist: how to unsubscribe

2004-04-30 Thread Keith Visco
> 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

Re: [castor-dev] mailinglist: how to unsubscribe

2004-04-30 Thread Keith Visco
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

Re: [castor-dev] mailinglist: how to unsubscribe

2004-04-30 Thread Keith Visco
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

Re: [castor-dev] not a good sign

2004-04-29 Thread Keith Visco
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

Re: [castor-dev] Filter on Java Bean Methods during marsheling

2004-04-26 Thread Keith Visco
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 ? >

Re: [castor-dev] Mapping XML, problems with include

2004-04-22 Thread Keith Visco
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 :-) > > -

Re: [castor-dev] Setter methods not being generated

2004-04-22 Thread Keith Visco
> "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 > > > > > >

Re: [castor-dev] typesafe enum in mapping file - how to?

2004-04-16 Thread Keith Visco
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

Re: [castor-dev] ValidationException : how to determine exact XML data

2004-04-15 Thread Keith Visco
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

Re: [castor-dev] Update: Unmarshalling a Vector of Objects/What should

2004-04-13 Thread Keith Visco
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

Re: [castor-dev] Null Pointer Exception in XMLClassDescriptorImpl

2004-04-12 Thread Keith Visco
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

Re: [castor-dev] Getting the childeren from ElementDec

2004-04-12 Thread Keith Visco
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();

Re: [castor-dev] Rules on namespaces

2004-04-12 Thread Keith Visco
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

Re: [castor-dev] Interface, when root, not marshalled, mapping ignored

2004-04-12 Thread Keith Visco
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

Re: [castor-dev] Need some help in XML Mapping

2004-04-07 Thread Keith Visco
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

Re: [castor-dev] Need some help in XML Mapping

2004-04-06 Thread Keith Visco
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,

[castor-dev] Re: FieldName which has NumberFormatException

2004-04-02 Thread Keith Visco
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

Re: [castor-dev] Problem with unmarshalling, maybe mistake generating

2004-03-30 Thread Keith Visco
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

Re: [castor-dev] Re: Having trouble with whiteSpace="preserve"

2004-03-30 Thread Keith Visco
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

Re: [castor-dev] Mapping file representation

2004-03-30 Thread Keith Visco
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() >..

Re: [castor-dev] ValidationException: nillabe="true"

2004-03-26 Thread Keith Visco
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

Re: [castor-dev] BUG: Accessing with nested attributes and

2004-03-24 Thread Keith Visco
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

Re: [castor-dev] buggy example

2004-03-22 Thread Keith Visco
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

Re: [castor-dev] problems unmarshalling both the attribute and CDATA for

2004-03-18 Thread Keith Visco
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

Re: [castor-dev] The lowest common denominator is JDK 1.2?

2004-03-18 Thread Keith Visco
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

Re: [castor-dev] XML Mapping - Problems using identity and extends.

2004-03-17 Thread Keith Visco
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

Re: [castor-dev] Iterator instead of Enumeration?

2004-03-17 Thread Keith Visco
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

Re: [castor-dev] not all attributes of object are marshalled

2004-03-15 Thread Keith Visco
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

Re: [castor-dev] not all attributes of object are marshalled

2004-03-15 Thread Keith Visco
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

Re: [castor-dev] unable to find FieldDescriptor

2004-03-15 Thread Keith Visco
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

Re: [castor-dev] Source generator error with binding file

2004-03-15 Thread Keith Visco
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

Re: [castor-dev] Ignore extra elements when Unmarshalling bug??

2004-03-15 Thread Keith Visco
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

Re: [castor-dev] Ignore extra elements when Unmarshalling bug??

2004-03-15 Thread Keith Visco
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

Re: [castor-dev] XML validation problem whith multiple nested class

2004-03-15 Thread Keith Visco
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

Re: [castor-dev] possible to create a java object which has less

2004-03-12 Thread Keith Visco
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   2   3   4   5   6   7   8   9   10   >