Issue 12220
registry-metadata-sync: NPE parsing technical installation
12220
Reporter: kbraak
Assignee: fmendez
Type: Bug
Summary: registry-metadata-sync: NPE parsing technical installation
Priority: Major
Resolution: WontFix
Status: Closed
Created: 2012-11-06 11:19:06.763
Updated: 2013-12-16 17:50:18.383
Resolved: 2013-03-06 15:47:43.753
Description: The standard.err looked like
Nov 6, 2012 11:10:18 AM com.google.inject.internal.MessageProcessor visit
INFO: An exception was caught and reported. Message: java.lang.NullPointerException
org.apache.ibatis.logging.LogException: Error creating logger for logger org.mybatis.guice.transactional.TransactionalMethodInterceptor. Cause: java.lang.NullPointerException
at org.apache.ibatis.logging.LogFactory.getLog(LogFactory.java:72)
at org.apache.ibatis.logging.LogFactory.getLog(LogFactory.java:65)
at org.mybatis.guice.transactional.TransactionalMethodInterceptor.(TransactionalMethodInterceptor.java:47)
at org.mybatis.guice.AbstractMyBatisModule.configure(AbstractMyBatisModule.java:55)
at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
at com.google.inject.PrivateModule.install(PrivateModule.java:180)
at org.gbif.registry.sync.log.persistence.guice.LogPersistenceModule.configureService(LogPersistenceModule.java:60)
at org.gbif.service.guice.PrivateServiceModule.configure(PrivateServiceModule.java:80)
at com.google.inject.PrivateModule.configure(PrivateModule.java:97)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
at com.google.inject.spi.Elements.getElements(Elements.java:101)
at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
at com.google.inject.Guice.createInjector(Guice.java:95)
at com.google.inject.Guice.createInjector(Guice.java:72)
at com.google.inject.Guice.createInjector(Guice.java:62)
at org.gbif.registry.service.sync.log.DataBaseLogAppender.init(DataBaseLogAppender.java:128)
at org.gbif.registry.service.sync.log.DataBaseLogAppender.append(DataBaseLogAppender.java:92)
at org.gbif.registry.service.sync.log.DataBaseLogAppender.append(DataBaseLogAppender.java:26)
at ch.qos.logback.core.AppenderBase.doAppend(AppenderBase.java:85)
at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:48)
at ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:282)
at ch.qos.logback.classic.Logger.callAppenders(Logger.java:269)
at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:470)
at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:424)
at ch.qos.logback.classic.Logger.debug(Logger.java:531)
at org.apache.ibatis.logging.slf4j.Slf4jImpl.debug(Slf4jImpl.java:47)
at org.apache.ibatis.logging.LogFactory.setImplementation(LogFactory.java:116)
at org.apache.ibatis.logging.LogFactory.useSlf4jLogging(LogFactory.java:77)
at org.apache.ibatis.logging.LogFactory$1.run(LogFactory.java:35)
at org.apache.ibatis.logging.LogFactory.tryImplementation(LogFactory.java:103)
at org.apache.ibatis.logging.LogFactory.(LogFactory.java:33)
at org.mybatis.guice.transactional.TransactionalMethodInterceptor.(TransactionalMethodInterceptor.java:47)
at org.mybatis.guice.AbstractMyBatisModule.configure(AbstractMyBatisModule.java:55)
at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
at com.google.inject.PrivateModule.install(PrivateModule.java:180)
at org.gbif.registry.guice.RegistryServiceMyBatisModule.configureService(RegistryServiceMyBatisModule.java:51)
at org.gbif.service.guice.PrivateServiceModule.configure(PrivateServiceModule.java:80)
at com.google.inject.PrivateModule.configure(PrivateModule.java:97)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
at com.google.inject.AbstractModule.install(AbstractModule.java:118)
at org.gbif.registry.guice.RegistrySynchronizationModule.configure(RegistrySynchronizationModule.java:43)
at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
at com.google.inject.spi.Elements.getElements(Elements.java:101)
at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
at com.google.inject.Guice.createInjector(Guice.java:95)
at com.google.inject.Guice.createInjector(Guice.java:72)
at com.google.inject.Guice.createInjector(Guice.java:62)
at org.gbif.registry.service.sync.app.RegistrySyncApp.main(RegistrySyncApp.java:48)
Caused by: java.lang.NullPointerException
at org.apache.ibatis.logging.LogFactory.getLog(LogFactory.java:70)
... 52 more
Nov 6, 2012 11:16:17 AM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 47 column 6: The element type "p" must be terminated by the matching end-tag "".
org.xml.sax.SAXParseException: The element type "p" must be terminated by the matching end-tag "".
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1427)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1749)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2939)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at org.apache.commons.digester.Digester.parse(Digester.java:1916)
at org.gbif.registry.sync.util.digest.DigesterUtils.digestObject(DigesterUtils.java:212)
at org.gbif.registry.sync.util.digest.DigesterUtils.digestObject(DigesterUtils.java:238)
at org.gbif.registry.service.sync.MetadataParser.parseTechnicalInstallation(MetadataParser.java:170)
at org.gbif.registry.service.sync.MetadataSynchronizerBase.synchronize(MetadataSynchronizerBase.java:213)
at org.gbif.registry.service.sync.messaging.RegistrySyncListener.synchronize(RegistrySyncListener.java:155)
at org.gbif.registry.service.sync.messaging.RegistrySyncListener.onMessage(RegistrySyncListener.java:100)
at org.gbif.registry.service.sync.messaging.RegistrySyncListener.onMessage(RegistrySyncListener.java:40)
at org.gbif.messaging.amqp.AMQPListener.getMessage(AMQPListener.java:71)
at org.gbif.messaging.amqp.AMQPThreadListener.startListening(AMQPThreadListener.java:66)
at org.gbif.messaging.amqp.AMQPThreadListener.run(AMQPThreadListener.java:50)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)]]>
Author: fmendez@gbif.org
Comment: The error described here was caused by non-response of DiGER endpoint, the metadata-sync is logging all there errors and continues the processing
Created: 2013-03-06 15:47:43.782
Updated: 2013-03-06 15:47:43.782