[jboss-jira] [JBoss JIRA] (DROOLS-805) JobResult causes exception creating JAXB context
Marco Rietveld (JIRA)
issues at jboss.org
Fri Aug 26 08:51:00 EDT 2016
[ https://issues.jboss.org/browse/DROOLS-805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marco Rietveld reassigned DROOLS-805:
-------------------------------------
Assignee: Marco Rietveld (was: Mario Fusco)
> 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: Marco Rietveld
>
> 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.4.11#64026)
More information about the jboss-jira
mailing list