[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-3654) Example Project "transform_XML2POJO" doesn't work by default.

Anton Klimkovich (JIRA) jira-events at lists.jboss.org
Wed Feb 4 11:07:54 EST 2009


    [ https://jira.jboss.org/jira/browse/JBIDE-3654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12451104#action_12451104 ] 

Anton Klimkovich commented on JBIDE-3654:
-----------------------------------------

I folowed your steps and here the results of work: Example projects results.txt 
Only projects where need to parse date have failed. 
The problem was in my locale. (Locale Ru)
To format a date for the current Locale, use one of the static factory methods: 
  myString = DateFormat.getDateInstance().format(myDate);

Probably but not neseccary need to update these projects and make them more  universal.

And ofcource need to add a readme file to help to configure the project. 


> Example Project "transform_XML2POJO" doesn't work by default.
> -------------------------------------------------------------
>
>                 Key: JBIDE-3654
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-3654
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: smooks
>    Affects Versions: 3.0.0.CR2
>            Reporter: Anton Klimkovich
>            Assignee: Feng Qian
>             Fix For: 3.0.0.GA
>
>         Attachments: exception.txt
>
>
> EXECUTE: Download project to workspace http://anonsvn.jboss.org/repos/jbosstools/workspace/grid/esb-example/transform_XML2POJO.zip
> EXECUTE: Add ESB Libraries to the project
> EXECUTE: Deploy project to the server
> EXECUTE: Start jboss-esb-server
> EXECUTE: Run SendJMSMessage.java
> ASSERT:    
> ****************************************************************** 
> 21:22:03,720 INFO  [STDOUT] &&&&&&&&&&&&&&&&&&&&&& MyJMSListenerAction &&&&&&&&&&&&&&&&&&&&&&&&&&
> 21:22:03,720 INFO  [STDOUT] 
> &&&&&&&&&&&&&&&&&&&& MyJMSListenerAction &&&&&&&&&&&&&&&&&&&&&&&&&&&&
> 21:22:03,720 INFO  [STDOUT] &&&&&&&&&&&&&&&&&&&&&& MyJMSListenerAction &&&&&&&&&&&&&&&&&&&&&&&&&&
> 21:22:03,752 INFO  [STDOUT] >>>> Message after Smooks intermediate xml -> target pojos : : 
> 21:22:03,752 INFO  [STDOUT] [Demonstrates Smooks ability to rip the XML into Objects
> ********* DVDStoreAction - Order Value Objects Populated *********
> Header: 1, null, 0, 59.97, 64.92, 4.95, 
> Customer: user1,Harry,Fletcher,SD
> Order Items (2):
> 	0: 1,1,364,The 40-Year-Old Virgin ,29.98
> 	1: 2,1,299,Pulp Fiction,29.99
> ****************************************************************** ]
> FAILURE:     java.text.ParseException: Unparseable date: "Wed Nov 15 13:45:28 2006" 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list