java.util.concurrent.ExecutionException: java.lang.NullPointerException

Apache's JIRA Issue Tracker | Jacques Le Roux | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    When you add a new entity-group in an entitygroup.xml, eg {code} <entity-group group="new.group.name" {code} but forget to set the corresponding delegator/group-map in entityengine.xml {code} <group-map group-name="new.group.name" {code} You get an error stack like {code} [java] 2015-06-25 16:56:25,036 |delegator-startup-1 |ModelEntityChecker |INFO| [initReservedWords] array length = 1025 [java] 2015-06-25 16:56:25,105 |main |ExecutionPool |ERROR| null [java] java.util.concurrent.ExecutionException: java.lang.NullPointerException [java] at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.7.0_45] [java] at java.util.concurrent.FutureTask.get(FutureTask.java:188) ~[?:1.7.0_45] [java] at org.ofbiz.base.concurrent.ExecutionPool.getAllFutures(ExecutionPool.java:83) [ofbiz-base.jar:?] [java] at org.ofbiz.entity.DelegatorContainer.start(DelegatorContainer.java:55) [ofbiz-entity.jar:?] [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:237) [ofbiz-base.jar:?] [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:343) [ofbiz.jar:?] [java] at org.ofbiz.base.start.Start.start(Start.java:369) [ofbiz.jar:?] [java] at org.ofbiz.base.start.Start.main(Start.java:136) [ofbiz.jar:?] [java] Caused by: java.lang.NullPointerException [java] at org.ofbiz.entity.GenericDelegator.getEntityFieldType(GenericDelegator.java:561) ~[ofbiz-entity.jar:?] [java] at org.ofbiz.entity.model.ModelEntityChecker.checkEntities(ModelEntityChecker.java:111) ~[ofbiz-entity.jar:?] [java] at org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:224) ~[ofbiz-entity.jar:?] [java] at org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:33) ~[ofbiz-entity.jar:?] [java] at org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:25) ~[ofbiz-entity.jar:?] [java] at org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:200) ~[ofbiz-base.jar:?] [java] at org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:83) ~[ofbiz-entity.jar:?] [java] at org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:74) ~[ofbiz-entity.jar:?] [java] at java.util.concurrent.FutureTask.run(FutureTask.java:262) ~[?:1.7.0_45] [java] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ~[?:1.7.0_45] [java] at java.util.concurrent.FutureTask.run(FutureTask.java:262) ~[?:1.7.0_45] [java] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) ~[?:1.7.0_45] [java] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) ~[?:1.7.0_45] [java] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[?:1.7.0_45] [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ~[?:1.7.0_45] [java] at java.lang.Thread.run(Thread.java:744) ~[?:1.7.0_45] [....] {code} and that's hard to debug. So we need to put a warning somewhere in the log... This can happen when several teams or developers work together and forget to communicate their entitygroup changes...

    Apache's JIRA Issue Tracker | 2 years ago | Jacques Le Roux
    java.util.concurrent.ExecutionException: java.lang.NullPointerException
  2. 0

    [OFBIZ-6071] Issue in decrypting entity fields where encrypt="true" is used in tenant - ASF JIRA

    apache.org | 1 year ago
    java.lang.Exception: Failure in storeAll operation: org.ofbiz.entity.GenericEntityException: There is no datasource (Helper) configured for the entity-group ; was trying to find datasource (helper) for entity . Rolling back transaction.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Re: Configuring EPSON TM-T88IV Thermal printer in POS

    apache.org | 1 year ago
    org.ofbiz.base.start.StartupException: Cannot start() org.ofbiz.pos.container.JposDeviceContainer (null) at >> >> >> >> >> >> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:82) at >> >> org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.ofbiz.entity.GenericDelegator.getEntityFieldType()
    2. org.ofbiz.entity
      DelegatorFactoryImpl.getInstance
      1. org.ofbiz.entity.GenericDelegator.getEntityFieldType(GenericDelegator.java:561)[ofbiz-entity.jar:?]
      2. org.ofbiz.entity.model.ModelEntityChecker.checkEntities(ModelEntityChecker.java:111)[ofbiz-entity.jar:?]
      3. org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:224)[ofbiz-entity.jar:?]
      4. org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:33)[ofbiz-entity.jar:?]
      5. org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:25)[ofbiz-entity.jar:?]
      5 frames
    3. org.ofbiz.base
      UtilObject.getObjectFromFactory
      1. org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:200)[ofbiz-base.jar:?]
      1 frame
    4. org.ofbiz.entity
      DelegatorFactory$DelegatorConfigurable.call
      1. org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:83)[ofbiz-entity.jar:?]
      2. org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:74)[ofbiz-entity.jar:?]
      2 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:262)[?:1.7.0_45]
      2. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[?:1.7.0_45]
      3. java.util.concurrent.FutureTask.run(FutureTask.java:262)[?:1.7.0_45]
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[?:1.7.0_45]
      5. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[?:1.7.0_45]
      6. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[?:1.7.0_45]
      7. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[?:1.7.0_45]
      8. java.lang.Thread.run(Thread.java:744)[?:1.7.0_45]
      8 frames