메뉴 건너뛰기

Bigdata, Semantic IoT, Hadoop, NoSQL

Bigdata, Hadoop ecosystem, Semantic IoT등의 프로젝트를 진행중에 습득한 내용을 정리하는 곳입니다.
필요한 분을 위해서 공개하고 있습니다. 문의사항은 gooper@gooper.com로 메일을 보내주세요.


quartz를 이용하여 주기적으로 작업을 처리하는 모듈에서 아래와 같은 오류가 계속 발생하는데..  

오류내용(1)이 발생후 오류내용(2)가 반복적으로 발생함(quartz때문에 반복적으로 발생하는거 같음)

jackson-core-asl및 jackson-mapper-asl을 이용하는데 버젼이 1.1.1을 사용한다.(버젼이 너무 오래됨)


그래서 버젼을 1.9.4로 바꿔주고 다시 compile후에 package을 했더니.. 정상적으로 수행된다.

(이거 찾느라고 하루를 보냈다. 아흐..)


----------오류내용(2)---------

java.lang.NoClassDefFoundError: Could not initialize class com.gooper.icbms.sda.comm.kafka.avro.COL_ONEM2M

        at com.gooper.icbms.sda.sch.service.CollectStatusDataFromSIJobService.collect(CollectStatusDataFromSIJobService.java:203)

        at com.gooper.icbms.sda.sch.service.CollectStatusDataFromSIJobService.execute(CollectStatusDataFromSIJobService.java:290)

        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)

        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)

[2016-08-29 10:24:00] [ErrorLogger] [2185] [ERROR] Job (TG1000.CollectStatusDatatFromSIJob threw an exception. 

org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.NoClassDefFoundError: Could not initialize class com.gooper.icbms.sda.comm.kafka.avro.COL_ONEM2M]

        at org.quartz.core.JobRunShell.run(JobRunShell.java:213)

        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)

Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.gooper.icbms.sda.comm.kafka.avro.COL_ONEM2M

        at com.gooper.icbms.sda.sch.service.CollectStatusDataFromSIJobService.collect(CollectStatusDataFromSIJobService.java:203)

        at com.gooper.icbms.sda.sch.service.CollectStatusDataFromSIJobService.execute(CollectStatusDataFromSIJobService.java:290)

        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)

        ... 1 more



----------오류내용(1)---------

2016-08-29 14:03:30] [JobRunShell] [211] [ERROR] Job TG1000.CollectStatusDatatFromSIJob threw an unhandled Exception:  

java.lang.NoSuchMethodError: org.codehaus.jackson.JsonFactory.enable(Lorg/codehaus/jackson/JsonParser$Feature;)Lorg/codehaus/jackson/JsonFactory;

        at org.apache.avro.Schema.<clinit>(Schema.java:86)

        at org.apache.avro.Schema$Parser.parse(Schema.java:953)

        at com.gooper.icbms.sda.comm.kafka.avro.COL_ONEM2M.<clinit>(COL_ONEM2M.java:10)

        at com.gooper.icbms.sda.sch.service.CollectStatusDataFromSIJobService.collect(CollectStatusDataFromSIJobService.java:203)

        at com.gooper.icbms.sda.sch.service.CollectStatusDataFromSIJobService.execute(CollectStatusDataFromSIJobService.java:290)

        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)

        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)

[2016-08-29 14:03:30] [ErrorLogger] [2185] [ERROR] Job (TG1000.CollectStatusDatatFromSIJob threw an exception. 

org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.NoSuchMethodError: org.codehaus.jackson.JsonFactory.enable(Lorg/codehaus/jackson/JsonParser$Feature;)Lorg/codehaus/jackson/JsonFactory;]

        at org.quartz.core.JobRunShell.run(JobRunShell.java:213)

        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)

Caused by: java.lang.NoSuchMethodError: org.codehaus.jackson.JsonFactory.enable(Lorg/codehaus/jackson/JsonParser$Feature;)Lorg/codehaus/jackson/JsonFactory;

        at org.apache.avro.Schema.<clinit>(Schema.java:86)

        at org.apache.avro.Schema$Parser.parse(Schema.java:953)

        at com.gooper.icbms.sda.comm.kafka.avro.COL_ONEM2M.<clinit>(COL_ONEM2M.java:10)

        at com.gooper.icbms.sda.sch.service.CollectStatusDataFromSIJobService.collect(CollectStatusDataFromSIJobService.java:203)

        at com.gooper.icbms.sda.sch.service.CollectStatusDataFromSIJobService.execute(CollectStatusDataFromSIJobService.java:290)

        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)

        ... 1 more

번호 제목 글쓴이 날짜 조회 수
13 AIX 7.1에 Python 2.7.11설치하기 총관리자 2016.10.06 651
12 [springframework]Caused by: org.mariadb.jdbc.internal.util.dao.QueryException: Could not read resultset: unexpected end of stream, read 0 bytes from 4 오류 발생시 조치사항 총관리자 2017.01.23 681
11 python test.py실행시 "ImportError: No module named pyspark" 혹은 "ImportError: No module named py4j.protocol"등의 오류 발생시 조치사항 총관리자 2017.07.04 766
10 [Mybatis]Spring과 연동하지 않고 Java+Mybatis 형태의 프로그램 샘플소스 총관리자 2016.09.01 817
9 mybatis와 spring을 org.apache.commons.dbcp2.BasicDataSource의 DataSource로 연동할때 DB설정(참고) 총관리자 2016.10.31 990
8 Mybatis foreach 문법정리(상황에 따른 사용법) 총관리자 2015.11.10 1177
7 lagom-linux용 build.sbt파일 내용 총관리자 2017.10.12 1300
6 [ftgo_application]Unable to infer base url오류 발생시 조치방법 gooper 2023.02.20 1347
5 마이바티스(MyBatis)쿼리로그 출력및 정렬하기 총관리자 2015.12.01 1456
4 jsoup 사용 예제 총관리자 2014.06.06 1506
3 List<Map<String, String>>형태의 데이타에서 중복제거 하는 방법 총관리자 2016.12.23 1712
2 Caused by: java.sql.SQLNonTransientConnectionException: Could not read resultset: unexpected end of stream, read 0 bytes from 4 오류시 확인/조치할 내용 총관리자 2016.10.31 3783
1 [gson]mongodb의 api를 이용하여 데이타를 가져올때 "com.google.gson.stream.MalformedJsonException: Unterminated object at line..." 오류발생시 조치사항 총관리자 2017.12.11 4434

A personal place to organize information learned during the development of such Hadoop, Hive, Hbase, Semantic IoT, etc.
We are open to the required minutes. Please send inquiries to gooper@gooper.com.

위로