Hi all,
Hi all I talk about this exception before with Erwan in the code you find it
in[1]. You can find it in [2].
I went through the exception and found out that this can cause by two
reasons,
1. Iterator<? extends Factory<R, A>> it =
ServiceLoader.load(factoryInterface).iterator();
2. No matching factory instance for obj.
(R instance = factory.getInstance(obj);)
My problem is, what can be the reason for this exception?
--
thanks
Ganath
[1].
https://github.com/ganathr/ofbiz[2].
[java] 2011-07-03 09:28:41,574 (main) [ DelegatorFactory.java:53 :ERROR]
[java] ---- exception report
----------------------------------------------------------
[java] Exception in thread "main" java.lang.NullPointerException
[java] Exception: java.lang.ClassNotFoundException
[java] Message: java.lang.Class
[java] ---- stack trace
---------------------------------------------------------------
[java] at
java.util.concurrent.ConcurrentHashMap.putIfAbsent(ConcurrentHashMap.java:895)
[java] java.lang.ClassNotFoundException: java.lang.Class
[java]
org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:207)
[java]
org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:51)
[java]
org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContainer.java:229)
[java]
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
[java] at
org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:56)
[java] org.ofbiz.base.start.Start.startStartLoaders(Start.java:247)
[java] org.ofbiz.base.start.Start.start(Start.java:226)
[java] at
org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContainer.java:229)
[java] org.ofbiz.base.start.Start.main(Start.java:70)
[java]
--------------------------------------------------------------------------------
[java] at
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
[java]
[java] at
org.ofbiz.base.start.Start.startStartLoaders(Start.java:247)
[java] at org.ofbiz.base.start.Start.start(Start.java:226)
[java] at org.ofbiz.base.start.Start.main(Start.java:70)
[java] 2011-07-03 09:28:41,588 (Thread-0) [
ContainerLoader.java:246:INFO ] Shutting down containers
[java] Java Result: 1