axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deepal Jayasinghe (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (AXIS2-3334) optional attributes are generated as required
Date Mon, 12 Nov 2007 16:51:50 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-3334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Deepal Jayasinghe reassigned AXIS2-3334:
----------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> optional attributes are generated as required
> ---------------------------------------------
>
>                 Key: AXIS2-3334
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3334
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.3
>         Environment: Windows XP, Java 1.4.2
>            Reporter: Antoni Alatalo
>            Assignee: Amila Chinthaka Suriarachchi
>
> Optional attributes are generated as requered in getPullParser method.
> For example:
> <attribute name="createdDate" type="dateTime">
> 			<annotation>
> 				<documentation>date of entity creation</documentation>
> 			</annotation>
> 		</attribute>
> Is generated (wsdl2java or XSD2java) as:
> attribList.add(new javax.xml.namespace.QName("", "createdDate"));
> 		attribList.add(org.apache.axis2.databinding.utils.ConverterUtil
> 				.convertToString(localCreatedDate));
> This is totally wrong. This causes NullPinterException at ConverUtil class row 107
> public static String convertToString(Calendar value) {
>         // lexical form of the calendar is '-'? yyyy '-' mm '-' dd 'T' hh ':' mm ':'
ss ('.' s+)? (zzzzzz)?
>         SimpleDateFormat zulu = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
>         zulu.setTimeZone(TimeZone.getTimeZone("GMT"));
>         // Sun JDK bug http://developer.java.sun.com/developer/bugParade/bugs/4229798.html
> --> row 107        return zulu.format(value.getTime());
>     }
> There must be a code:
> if(attribute != null){
>     attribList.add(org.apache.axis2.databinding.utils.ConverterUtil
> 				.convertToString(localCreatedDate));
> }
> The same thing should be in all optional attributes!!!
> Regards
> Antoni

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message