Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

java.lang.NumberFormatException: Invalid date/time

Stefania Stradi February 17, 2013

Hello,
I'm trying to add a worklog via Web Service with addWorklogAndRetainRemainingEstimate.
When I add it using a SOAP client everything works fine, but when I use the same values to add the worklog
using BPEL it gives me this error, that seems a data format error(but datas are the same used with SOAP client)

What can be the problem?

S.

[2013/02/18 14:04:05] Faulted while invoking operation "addWorklogAndRetainRemainingEstimate" on provider "PartnerLink_1".less
-<messages>
-<input>
-<Invoke_3_addWorklogAndRetainRemainingEstimate_InputVariable>
-<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="in0">
<in0 xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">5ca43c24968bf0386c7f137556272a637e503324
</in0>
</part>
-<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="in1">
<in1 xmlns="" xmlns:def="http://www.w3.org/2001/XMLSchema" xsi:type="def:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">SUPHD-3
</in1>
</part>
-<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="in2">
-<in2 xmlns="" xmlns:def="http://beans.soap.rpc.jira.atlassian.com" xsi:type="def:RemoteWorklog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<author>sstradi
</author>
<comment>prova ws
</comment>
<created>2013-02-18T14:04:05.000Z
</created>
<groupLevel/>
<id/>
<roleLevelId/>
<startDate>2013-02-12T00:00:00.000Z
</startDate>
<timeSpent>8h
</timeSpent>
<timeSpentInSeconds>28800
</timeSpentInSeconds>
<updateAuthor/>
<updated/>
</in2>
</part>
</Invoke_3_addWorklogAndRetainRemainingEstimate_InputVariable>
</input>
-<fault>
-<remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
-<part name="code">
<code>Server.userException
</code>
</part>
-<part name="detail">
<detail>
<detail>
   <faultData xmlns:ns1="http://lang.java" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns1:NumberFormatException"/>
   <ns2:hostname xmlns:ns2="http://xml.apache.org/axis/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">Srv-ProjectNet</ns2:hostname>
</detail>
</detail>
</part>
-<part name="summary">
<summary>java.lang.NumberFormatException: Invalid date/time
</summary>
</part>
</remoteFault>
</fault>
</messages>
[2013/02/18 14:04:05] "{http://schemas.oracle.com/bpel/extension}remoteFault" has been thrown.less
-<remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
-<part name="code">
<code>Server.userException
</code>
</part>
-<part name="detail">
<detail>
<detail>
   <faultData xmlns:ns1="http://lang.java" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns1:NumberFormatException"/>
   <ns2:hostname xmlns:ns2="http://xml.apache.org/axis/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">Srv-ProjectNet</ns2:hostname>
</detail>
</detail>
</part>
-<part name="summary">
<summary>java.lang.NumberFormatException: Invalid date/time
</summary>
</part>
</remoteFault

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Boris Georgiev _Appfire_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 17, 2013

The only possible problem I see is the "updated" field - it's also of type xsd:dateTime but in your trace it's empty, so try passing a value there to see if it will fix the problem.

TAGS
AUG Leaders

Atlassian Community Events