Hi,
On 31.05.2011 11:03, ranbaab wrote:
>
> Hi all,
>
> I am working on a web based application deployed on tomcat and planning to
> move to geronimo.
>
> The application was deploy to geronimo tomcat and run
> successfully(partially). Some of the page are having issue due to null
> pointer exception because the string without the default value return null
> after unmarshalling.
>
> In the schema, there is a string which does not have a default value.
> <xs:attribute name="n-columns" type="xs:string" minOccurs="1"
> maxOccurs="1"/>
>
> org.exolab.castor.builder.SourceGeneratorMain is used to generate the class,
> while the xml has the value n-columns=""
>
> The generated default constructor does not set the string to it default
> value.
>
> public class SubGroup
> implements Serializable
> {
> private String _nColumns;
>
> public SubGroup()
> {
>
> }
>
> After the Unmarshaller.unmarshal(Configuration, reader)
> The string value is return null.
>
> But when the application is deployed with tomcat, the string value is return
> as "" string.
> I am wondering whether there is any jar conflict?
I think you might be right here. I would search your geronimo
installations to see whether there are any old Castor JARs
configured/deployed.
Regards
Werner
>
> Thanks,
> Ranjan
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email