Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-7766

Getting initialize class org.apache.nifi.util.text.RegexDateTimeMatcher error in jsontreereader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.12.0
    • 1.13.0, 1.12.1
    • Core Framework
    • None

    Description

      Setting the date formats in the jsontreereader causes an error. Server time was set for UTC and has since been changed to ETC but the issue still persists.

      Could not initialize class org.apache.nifi.util.text.RegexDateTimeMatcher$Compiler
      
          0174-1000-e2c7-552f72fd9f08], versionedComponentId=null, processGroup=StandardProcessGroup[identifier=20fdafa4-0174-1000-7885-3f4547c81e71,name=test], active=true]           Failed to invoke @OnEnabled method due to java.lang.ExceptionInInitializerError: {}
       1098 java.lang.ExceptionInInitializerError: null
       1099   at org.apache.nifi.util.text.DateTimeMatcherCompiler.compile(DateTimeMatcherCompiler.java:25)
       1100   at org.apache.nifi.util.text.DateTimeMatcher.compile(DateTimeMatcher.java:66)
       1101   at org.apache.nifi.schema.inference.TimeValueInference.<init>(TimeValueInference.java:39)
       1102   at org.apache.nifi.json.JsonTreeReader.lambda$getSchemaAccessStrategy$1(JsonTreeReader.java:96)
       1103   at org.apache.nifi.schema.inference.SchemaInferenceUtil.getSchemaAccessStrategy(SchemaInferenceUtil.java:47)
       1104   at org.apache.nifi.json.JsonTreeReader.getSchemaAccessStrategy(JsonTreeReader.java:98)
       1105   at org.apache.nifi.serialization.SchemaRegistryService.storeSchemaAccessStrategy(SchemaRegistryService.java:108)
       1106   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       1107   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       1108   at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       1109   at java.base/java.lang.reflect.Method.invoke(Method.java:566)
       1110   at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:142)
       1111   at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:130)
       1112   at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:75)
       1113   at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotation(ReflectionUtils.java:52)
       1114   at org.apache.nifi.controller.service.StandardControllerServiceNode$2.run(StandardControllerServiceNode.java:432)
       1115   at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
       1116   at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
       1117   at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
       1118   at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
       1119   at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
       1120   at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
       1121   at java.base/java.lang.Thread.run(Thread.java:834)
       1122 Caused by: java.lang.NullPointerException: null
       1123   at java.base/java.util.regex.Pattern.quote(Pattern.java:1352)
       1124   at org.apache.nifi.util.text.RegexDateTimeMatcher$Compiler.<clinit>(RegexDateTimeMatcher.java:134)
       1125   ... 23 common frames omitted
      

      Attachments

        1. nifi-app.log
          122 kB
          Lucas Read

        Issue Links

          Activity

            People

              otto Otto Fowler
              readl1 Lucas Read
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m