UtilGenerics.checkMap doesn't like the mrp service

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

UtilGenerics.checkMap doesn't like the mrp service

Scott Gray
Hi All

I don't know much about this stuff so reporting here instead:
Try doing an mrp run with  a blank mrpName and async service fails
during checkMap.

2007-10-31 21:20:24,437 (org.ofbiz.service.job.JobPoller@cf99e8) [
GenericDispatcher.java:58 :INFO ] Creating new dispatcher
[JobDispatcher] (org.ofbiz.service.job.JobPoller@cf99e8)
2007-10-31 21:20:24,437 (org.ofbiz.service.job.JobPoller@cf99e8) [
ServiceDispatcher.java:164:INFO ] Registered dispatcher: JobDispatcher
2007-10-31 21:20:24,437 (org.ofbiz.service.job.JobPoller@cf99e8) [
GenericDispatcher.java:128:INFO ] [LocalDispatcher] : Created
Dispatcher for: JobDispatcher
2007-10-31 21:20:24,531 (default-invoker-Thread-7) [
JobInvoker.java:211:INFO ] Invoker [default-invoker-Thread-7] received
job [1193818806015] from poller
[org.ofbiz.service.job.JobPoller@cf99e8]
2007-10-31 21:20:24,531 (default-invoker-Thread-7)
[PersistedServiceJob.java:138:INFO ]
org.ofbiz.service.job.PersistedServiceJob@14d13ef[10100] -- Next
runtime: -1
2007-10-31 21:20:24,593 (default-invoker-Thread-7) [
GenericServiceJob.java:116:ERROR]
---- runtime exception report --------------------------------------------------
Async-Service failed.
Exception: java.lang.IllegalArgumentException
Message: Value(5), with value(null) is not a class java.lang.Object
---- stack trace ---------------------------------------------------------------
java.lang.IllegalArgumentException: Value(5), with value(null) is not
a class java.lang.Object
org.ofbiz.base.util.UtilGenerics.checkMap(UtilGenerics.java:82)
org.ofbiz.service.job.PersistedServiceJob.getContext(PersistedServiceJob.java:239)
org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:69)
org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:221)
java.lang.Thread.run(Thread.java:595)
--------------------------------------------------------------------------------

Regards
Scott
Reply | Threaded
Open this post in threaded view
|

Re: UtilGenerics.checkMap doesn't like the mrp service

Jacopo Cappellato
Yeah,

I've noticed that error yesterday.

However it always happens even if you set an mrp name...

I've recreated it in the demo server a few minutes ago and here is the
error message:

2007-10-31 03:46:20,523 (default-invoker-Thread-9)
[PersistedServiceJob.java:138:INFO ]
org.ofbiz.service.job.PersistedServiceJob@2fc571[10007] -- Next runtime: -1
2007-10-31 03:46:20,585 (default-invoker-Thread-9) [
GenericServiceJob.java:116:ERROR] ---- runtime exception report
-------------------------------------------------- Async-Service failed.
Exception: java.lang.IllegalArgumentException Message: Value(6), with
value(null) is not a class java.lang.Object ---- stack trace
---------------------------------------------------------------
java.lang.IllegalArgumentException: Value(6), with value(null) is not a
class java.lang.Object
org.ofbiz.base.util.UtilGenerics.checkMap(UtilGenerics.java:82)
org.ofbiz.service.job.PersistedServiceJob.getContext(PersistedServiceJob.java:239)
org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:69)
org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:221)
java.lang.Thread.run(Thread.java:595)
--------------------------------------------------------------------------------



I'm not sure how to fix this and which one of the recent framework
changes broke it.

Jacopo


  Scott Gray wrote:

> Hi All
>
> I don't know much about this stuff so reporting here instead:
> Try doing an mrp run with  a blank mrpName and async service fails
> during checkMap.
>
> 2007-10-31 21:20:24,437 (org.ofbiz.service.job.JobPoller@cf99e8) [
> GenericDispatcher.java:58 :INFO ] Creating new dispatcher
> [JobDispatcher] (org.ofbiz.service.job.JobPoller@cf99e8)
> 2007-10-31 21:20:24,437 (org.ofbiz.service.job.JobPoller@cf99e8) [
> ServiceDispatcher.java:164:INFO ] Registered dispatcher: JobDispatcher
> 2007-10-31 21:20:24,437 (org.ofbiz.service.job.JobPoller@cf99e8) [
> GenericDispatcher.java:128:INFO ] [LocalDispatcher] : Created
> Dispatcher for: JobDispatcher
> 2007-10-31 21:20:24,531 (default-invoker-Thread-7) [
> JobInvoker.java:211:INFO ] Invoker [default-invoker-Thread-7] received
> job [1193818806015] from poller
> [org.ofbiz.service.job.JobPoller@cf99e8]
> 2007-10-31 21:20:24,531 (default-invoker-Thread-7)
> [PersistedServiceJob.java:138:INFO ]
> org.ofbiz.service.job.PersistedServiceJob@14d13ef[10100] -- Next
> runtime: -1
> 2007-10-31 21:20:24,593 (default-invoker-Thread-7) [
> GenericServiceJob.java:116:ERROR]
> ---- runtime exception report --------------------------------------------------
> Async-Service failed.
> Exception: java.lang.IllegalArgumentException
> Message: Value(5), with value(null) is not a class java.lang.Object
> ---- stack trace ---------------------------------------------------------------
> java.lang.IllegalArgumentException: Value(5), with value(null) is not
> a class java.lang.Object
> org.ofbiz.base.util.UtilGenerics.checkMap(UtilGenerics.java:82)
> org.ofbiz.service.job.PersistedServiceJob.getContext(PersistedServiceJob.java:239)
> org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:69)
> org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:221)
> java.lang.Thread.run(Thread.java:595)
> --------------------------------------------------------------------------------
>
> Regards
> Scott

Reply | Threaded
Open this post in threaded view
|

Re: UtilGenerics.checkMap doesn't like the mrp service

Adam Heath-2
In reply to this post by Scott Gray
Scott Gray wrote:

> Hi All
>
> I don't know much about this stuff so reporting here instead:
> Try doing an mrp run with  a blank mrpName and async service fails
> during checkMap.
>
> 2007-10-31 21:20:24,437 (org.ofbiz.service.job.JobPoller@cf99e8) [
> GenericDispatcher.java:58 :INFO ] Creating new dispatcher
> [JobDispatcher] (org.ofbiz.service.job.JobPoller@cf99e8)
> 2007-10-31 21:20:24,437 (org.ofbiz.service.job.JobPoller@cf99e8) [
> ServiceDispatcher.java:164:INFO ] Registered dispatcher: JobDispatcher
> 2007-10-31 21:20:24,437 (org.ofbiz.service.job.JobPoller@cf99e8) [
> GenericDispatcher.java:128:INFO ] [LocalDispatcher] : Created
> Dispatcher for: JobDispatcher
> 2007-10-31 21:20:24,531 (default-invoker-Thread-7) [
> JobInvoker.java:211:INFO ] Invoker [default-invoker-Thread-7] received
> job [1193818806015] from poller
> [org.ofbiz.service.job.JobPoller@cf99e8]
> 2007-10-31 21:20:24,531 (default-invoker-Thread-7)
> [PersistedServiceJob.java:138:INFO ]
> org.ofbiz.service.job.PersistedServiceJob@14d13ef[10100] -- Next
> runtime: -1
> 2007-10-31 21:20:24,593 (default-invoker-Thread-7) [
> GenericServiceJob.java:116:ERROR]
> ---- runtime exception report --------------------------------------------------
> Async-Service failed.
> Exception: java.lang.IllegalArgumentException
> Message: Value(5), with value(null) is not a class java.lang.Object
> ---- stack trace ---------------------------------------------------------------
> java.lang.IllegalArgumentException: Value(5), with value(null) is not
> a class java.lang.Object
> org.ofbiz.base.util.UtilGenerics.checkMap(UtilGenerics.java:82)
> org.ofbiz.service.job.PersistedServiceJob.getContext(PersistedServiceJob.java:239)
> org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:69)
> org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:221)
> java.lang.Thread.run(Thread.java:595)
> --------------------------------------------------------------------------------

Class.isInstance() doesn't allow for nulls.  I've just added explicit
checking for this, in revision 591093.