[jboss-jira] [JBoss JIRA] (DROOLS-805) JobResult causes exception creating JAXB context

Mario Fusco (JIRA) issues at jboss.org
Thu Jun 4 13:08:05 EDT 2015


    [ https://issues.jboss.org/browse/DROOLS-805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13074274#comment-13074274 ] 

Mario Fusco commented on DROOLS-805:
------------------------------------

Sorry but I'm not understanding what you're reporting. Is JobResult a Drools class? I cannot find it.

> JobResult causes exception creating JAXB context
> ------------------------------------------------
>
>                 Key: DROOLS-805
>                 URL: https://issues.jboss.org/browse/DROOLS-805
>             Project: Drools
>          Issue Type: Bug
>          Components: core engine
>    Affects Versions: 6.2.0.Final
>            Reporter: Carl Miller
>            Assignee: Mario Fusco
>
> In trying to use the following snippet of code:
>         JAXBContext jc = JAXBContext.newInstance( JobResult.class );
> to transform a json string returned by a /jobs/jobId REST call into a JobResult, I kept getting an error stating setLastModified( Long ) was not a method in that class. Upon further examination, the getter in the JobResult.java class returns a "Long" yet the setter accepts a "long" (subtle difference). Made the change to setLastModified to accept a Long and my JaxBContext issue went away. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list