Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.5.0.Final
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Sprint:
      2018 Week 01-02
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      This code in ClassObjectTypeConf assumes that an event class always has an @Expires annotation, which is optional:

                  Role role = clazz.getAnnotation(Role.class);
                  if (role != null) {
                      isEvent = role.value() == Type.EVENT;
                      if (isEvent) {
                          Expires expires = clazz.getAnnotation(Expires.class);
                          expirationOffset = TimeIntervalParser.parseSingle( expires.value() );
                      }
                  }
      
      java.lang.NullPointerException
      	at org.drools.core.reteoo.ClassObjectTypeConf.<init>(ClassObjectTypeConf.java:99)
      	at org.drools.core.common.ObjectTypeConfigurationRegistry.getObjectTypeConf(ObjectTypeConfigurationRegistry.java:69)
      	at org.drools.core.common.NamedEntryPoint.insert(NamedEntryPoint.java:181)
      	at org.drools.core.impl.StatefulKnowledgeSessionImpl.insert(StatefulKnowledgeSessionImpl.java:1493)
      	at org.drools.core.impl.StatefulKnowledgeSessionImpl.insert(StatefulKnowledgeSessionImpl.java:1453)
      	at org.drools.core.impl.StatefulKnowledgeSessionImpl.insert(StatefulKnowledgeSessionImpl.java:1447)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mfusco Mario Fusco
                Reporter:
                christian.bauer Christian Bauer
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: