My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 2: Formato Data
1 person starred this issue and may be notified of changes. Back to list
 
Project Member Reported by mandroc...@gmail.com, Jun 6, 2009
Quando ad invocare createCustomer nella RegistrationServlet ottengo un 
NumberFormatException

Andando a fondo noto che c'è un problema di tipi
Nello stub prendo in input un XMLGregorianCalendar, mentre nella
sessionBean un oggetto Date

C'è da rifare ancora gli stub?
Jun 6, 2009
Project Member #1 d.bonfi...@gmail.com
no, il fatto e' che gli stub sono stati creati automaticamente dal file wsdl che e'
una descrizione "astratta" (con dei tipi di dati tutti suoi, indipendenti da java)
dell'interfaccia delle session bean, e il tool automatico di creazione degli stub ha
deciso che per quel tipo di dato wsdl ci andava assegnato XMLGregorianCalendar. In
teoria se usi normalmente XMLgregorianCalendar e chiami gli stub con questo tipo
tutto dovrebbe andare bene, le conversioni dovrebbero essere automatiche. penso che
il NumberFormatException potrebbe essere qualche altro problema.
Jun 6, 2009
Project Member #2 mandroc...@gmail.com
Ok
Ho trovato tutti i nomi dei parametri della pagina jsp differenti...
Adesso provvedo a cambiare...Mannaggia!
Jun 6, 2009
Project Member #3 mandroc...@gmail.com
Ora va ma stampa 
16:57:00,471 INFO  [STDOUT] javax.xml.bind.MarshalException: Invalid set of fields
set for XMLGregorianCalendar type dateTime.  Seconds not set.  Minutes not set.  Hour
not set.
Status: Started
Jun 8, 2009
Project Member #4 mandroc...@gmail.com
Risolto. Mancava il settaggio dell'ora
Status: Done

Powered by Google Project Hosting