[ 
https://issues.apache.org/jira/browse/SYNCOPE-305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13568672#comment-13568672
 ] 

Massimiliano Perrone commented on SYNCOPE-305:
----------------------------------------------

This is due to the following statement, used in TaskRestClient.createSyncTask 
and TaskRestClient.createSchedTask.
Long id = 
Long.valueOf(response.getHeaderString(SyncopeConstants.REST_HEADER_ID));

Moreover, it seems that this REST_HEADER_ID is only used in the two methods 
mentioned above: why?

                
> Can't create Sync or Sched Task in Console
> ------------------------------------------
>
>                 Key: SYNCOPE-305
>                 URL: https://issues.apache.org/jira/browse/SYNCOPE-305
>             Project: Syncope
>          Issue Type: Bug
>            Reporter: Colm O hEigeartaigh
>             Fix For: 1.1.0
>
>
> I can't create either a Sync or Sched Task in the Console at the moment. 
> Steps to reproduce:
> 1) Create a new project + just launch Syncope in embedded mode using the test 
> configuration
> 2) Create a new Sync Task with one of the predefined Resources. You'll see a 
> Wicket Error. In Console.log I see:
> Caused by: java.lang.NumberFormatException: null
>         at java.lang.Long.parseLong(Long.java:375) ~[na:1.6.0_35]
>         at java.lang.Long.valueOf(Long.java:525) ~[na:1.6.0_35]
>         at 
> org.apache.syncope.console.rest.TaskRestClient.createSyncTask(TaskRestClient.java:175)
>  ~[TaskRestClient.class:na]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to