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

Carl Miller (JIRA) issues at jboss.org
Tue Jun 2 10:51:02 EDT 2015


Carl Miller created DROOLS-805:
----------------------------------

             Summary: 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