com.sun.xml.bind.api.AccessorException: java.lang.NumberFormatException: For input string: "UNKN"]; nested exception is javax.xml.bind.UnmarshalException: java.lang.NumberFormatException: For input string: "UNKN" - with linked exception: [com.sun.xml.bind.api.AccessorException: java.lang.NumberFormatException: For input string: "UNKN"]

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Using jrobin, and StoreByGroup. The RRD migrator fails on many RRD files with this kind of error: Merging data from /opennms/current/share/rrd/snmp/1395/Fa1_0_21 to /opennms/current/share/rrd/snmp/1395/Fa1_0_21-0016c880ee97 merging JRB /opennms/current/share/rrd/snmp/1395/Fa1_0_21/mib2-interfaces.jrb into /opennms/current/share/rrd/snmp/1395/Fa1_0_21-0016c880ee97/mib2-interfaces.jrb Error: Can't upgrade Interface[ifName=Fa1/0/21, nodeId=1395, foreignSource=hf_network_switch, foreignId=man-pehfswe1.ocado.com] because Failed to marshal/unmarshal XML file while unmarshalling an object (RRDv1): javax.xml.bind.UnmarshalException: java.lang.NumberFormatException: For input string: "UNKN" - with linked exception: [com.sun.xml.bind.api.AccessorException: java.lang.NumberFormatException: For input string: "UNKN"]; nested exception is javax.xml.bind.UnmarshalException: java.lang.NumberFormatException: For input string: "UNKN" - with linked exception: [com.sun.xml.bind.api.AccessorException: java.lang.NumberFormatException: For input string: "UNKN"]: org.opennms.core.xml.MarshallingResourceFailureException: Failed to marshal/unmarshal XML file while unmarshalling an object (RRDv1): javax.xml.bind.UnmarshalException: java.lang.NumberFormatException: For input string: "UNKN" - with linked exception: [com.sun.xml.bind.api.AccessorException: java.lang.NumberFormatException: For input string: "UNKN"]; nested exception is javax.xml.bind.UnmarshalException: java.lang.NumberFormatException: For input string: "UNKN" - with linked exception: [com.sun.xml.bind.api.AccessorException: java.lang.NumberFormatException: For input string: "UNKN"] at org.opennms.core.xml.MarshallingExceptionTranslator.translate(MarshallingExceptionTranslator.java:81) at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:185) at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:140) at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:133) at org.opennms.netmgt.rrd.model.RrdConvertUtils.dumpJrb(RrdConvertUtils.java:70) at org.opennms.upgrade.implementations.SnmpInterfaceRrdMigratorOnline.mergeJrb(SnmpInterfaceRrdMigratorOnline.java:334) at org.opennms.upgrade.implementations.SnmpInterfaceRrdMigratorOnline.merge(SnmpInterfaceRrdMigratorOnline.java:278) at org.opennms.upgrade.implementations.SnmpInterfaceRrdMigratorOnline.execute(SnmpInterfaceRrdMigratorOnline.java:174) at org.opennms.upgrade.support.Upgrade.executeUpgrade(Upgrade.java:145) at org.opennms.upgrade.support.Upgrade.execute(Upgrade.java:234) at org.opennms.upgrade.support.Upgrade.main(Upgrade.java:260) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.opennms.bootstrap.Bootstrap$3.run(Bootstrap.java:362) at java.lang.Thread.run(Thread.java:744) Caused by: javax.xml.bind.UnmarshalException: java.lang.NumberFormatException: For input string: "UNKN" - with linked exception: [com.sun.xml.bind.api.AccessorException: java.lang.NumberFormatException: For input string: "UNKN"] at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:662) at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:258) at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.handleGenericException(Loader.java:245) at com.sun.xml.bind.v2.runtime.unmarshaller.LeafPropertyLoader.text(LeafPropertyLoader.java:67) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.text(UnmarshallingContext.java:514) at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.processText(SAXConnector.java:181) at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.endElement(SAXConnector.java:154) at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570) at org.opennms.core.xml.SimpleNamespaceFilter.endElement(SimpleNamespaceFilter.java:94) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:357) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:218) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:196) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:247) at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:180) ... 15 more Caused by: com.sun.xml.bind.api.AccessorException: java.lang.NumberFormatException: For input string: "UNKN" at com.sun.xml.bind.v2.runtime.reflect.AdaptedAccessor.set(AdaptedAccessor.java:87) at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.parse(TransducedAccessor.java:247) at com.sun.xml.bind.v2.runtime.unmarshaller.LeafPropertyLoader.text(LeafPropertyLoader.java:65) ... 33 more Caused by: java.lang.NumberFormatException: For input string: "UNKN" at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1241) at java.lang.Double.valueOf(Double.java:504) at java.lang.Double.<init>(Double.java:597) at org.opennms.netmgt.rrd.model.DoubleAdapter.unmarshal(DoubleAdapter.java:78) at org.opennms.netmgt.rrd.model.DoubleAdapter.unmarshal(DoubleAdapter.java:38) at com.sun.xml.bind.v2.runtime.reflect.AdaptedAccessor.set(AdaptedAccessor.java:85) ... 35 more . Rolling back changes Unzipping to /opennms/current/share/rrd/snmp/1395/Fa1_0_21/mib2-interfaces.jrb Unzipping to /opennms/current/share/rrd/snmp/1395/Fa1_0_21/mib2-X-interfaces.jrb Unzipping to /opennms/current/share/rrd/snmp/1395/Fa1_0_21/mib2-X-interfaces.meta Unzipping to /opennms/current/share/rrd/snmp/1395/Fa1_0_21/mib2-X-interfaces-pkts.meta Unzipping to /opennms/current/share/rrd/snmp/1395/Fa1_0_21/cisco-router-interface.jrb Unzipping to /opennms/current/share/rrd/snmp/1395/Fa1_0_21/cisco-router-interface.meta Unzipping to /opennms/current/share/rrd/snmp/1395/Fa1_0_21/mib2-X-interfaces-pkts.jrb Unzipping to /opennms/current/share/rrd/snmp/1395/Fa1_0_21/ds.properties Unzipping to /opennms/current/share/rrd/snmp/1395/Fa1_0_21/strings.properties Unzipping to /opennms/current/share/rrd/snmp/1395/Fa1_0_21/mib2-interfaces.meta Unzipping to /opennms/current/share/rrd/snmp/1395/Fa1_0_21-0016c880ee97/mib2-interfaces.jrb Unzipping to /opennms/current/share/rrd/snmp/1395/Fa1_0_21-0016c880ee97/mib2-X-interfaces.jrb Unzipping to /opennms/current/share/rrd/snmp/1395/Fa1_0_21-0016c880ee97/mib2-X-interfaces.meta Unzipping to /opennms/current/share/rrd/snmp/1395/Fa1_0_21-0016c880ee97/mib2-X-interfaces-pkts.meta Unzipping to /opennms/current/share/rrd/snmp/1395/Fa1_0_21-0016c880ee97/cisco-router-interface.jrb Unzipping to /opennms/current/share/rrd/snmp/1395/Fa1_0_21-0016c880ee97/cisco-router-interface.meta Unzipping to /opennms/current/share/rrd/snmp/1395/Fa1_0_21-0016c880ee97/mib2-X-interfaces-pkts.jrb Unzipping to /opennms/current/share/rrd/snmp/1395/Fa1_0_21-0016c880ee97/ds.properties Unzipping to /opennms/current/share/rrd/snmp/1395/Fa1_0_21-0016c880ee97/strings.properties Unzipping to /opennms/current/share/rrd/snmp/1395/Fa1_0_21-0016c880ee97/mib2-interfaces.meta
    via by jcat,
  • java.lang.StackOverflowError?
    via by Unknown author,
  • (Dynamic) Attribute Calculator
    via by michaelm,
  • How to reproduce: 1. Have a collection with a "2dsphere" index (in my case, i have had a "MyModel" annotated with @GeoSpatialIndexed(type=GeoSpatialIndexType.GEO_2DSPHERE) 2. Get a mongoTemplate and execute the code: {code} final String collectionName = mongoTemplate.getCollectionName(MyModel.class); final IndexOperations indexOps = mongoTemplate.indexOps(collectionName); final List<IndexInfo> indexInfo = indexOps.getIndexInfo(); {code} This raises an exception: {code} Caused by: java.lang.NumberFormatException: For input string: "2dsphere" at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043) at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110) at java.lang.Double.parseDouble(Double.java:538) at java.lang.Double.<init>(Double.java:608) at org.springframework.data.mongodb.core.DefaultIndexOperations$4.getIndexData(DefaultIndexOperations.java:147) at org.springframework.data.mongodb.core.DefaultIndexOperations$4.doInCollection(DefaultIndexOperations.java:125) at org.springframework.data.mongodb.core.DefaultIndexOperations$4.doInCollection(DefaultIndexOperations.java:122) at org.springframework.data.mongodb.core.MongoTemplate.execute(MongoTemplate.java:410) at org.springframework.data.mongodb.core.DefaultIndexOperations.getIndexInfo(DefaultIndexOperations.java:122) at com.example.config.PersistenceConfig.ensureIndex(PersistenceConfig.java:31) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1545) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:703) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106) at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:771) at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:763) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:706) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95) at org.eclipse.jetty.server.Server.doStart(Server.java:277) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at runjettyrun.Bootstrap.main(Bootstrap.java:80){code} I think, this should not happen. What do you think? IMHO the error did not occur, when using MongoDb 2.6.0
    via by Olaf Krische,
  • Floating decimal problem!!
    via by 843798,
    • com.sun.xml.bind.api.AccessorException: java.lang.NumberFormatException: For input string: "UNKN"]; nested exception is javax.xml.bind.UnmarshalException: java.lang.NumberFormatException: For input string: "UNKN" - with linked exception: [com.sun.xml.bind.api.AccessorException: java.lang.NumberFormatException: For input string: "UNKN"] at org.opennms.core.xml.MarshallingExceptionTranslator.translate(MarshallingExceptionTranslator.java:81) at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:185) at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:140) at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:133) at org.opennms.netmgt.rrd.model.RrdConvertUtils.dumpJrb(RrdConvertUtils.java:70) at org.opennms.upgrade.implementations.SnmpInterfaceRrdMigratorOnline.mergeJrb(SnmpInterfaceRrdMigratorOnline.java:334) at org.opennms.upgrade.implementations.SnmpInterfaceRrdMigratorOnline.merge(SnmpInterfaceRrdMigratorOnline.java:278) at org.opennms.upgrade.implementations.SnmpInterfaceRrdMigratorOnline.execute(SnmpInterfaceRrdMigratorOnline.java:174) at org.opennms.upgrade.support.Upgrade.executeUpgrade(Upgrade.java:145) at org.opennms.upgrade.support.Upgrade.execute(Upgrade.java:234) at org.opennms.upgrade.support.Upgrade.main(Upgrade.java:260) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.opennms.bootstrap.Bootstrap$3.run(Bootstrap.java:362) at java.lang.Thread.run(Thread.java:744) Caused by: javax.xml.bind.UnmarshalException: java.lang.NumberFormatException: For input string: "UNKN" - with linked exception: [com.sun.xml.bind.api.AccessorException: java.lang.NumberFormatException: For input string: "UNKN"] at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:662) at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:258) at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.handleGenericException(Loader.java:245) at com.sun.xml.bind.v2.runtime.unmarshaller.LeafPropertyLoader.text(LeafPropertyLoader.java:67) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.text(UnmarshallingContext.java:514) at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.processText(SAXConnector.java:181) at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.endElement(SAXConnector.java:154) at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570) at org.opennms.core.xml.SimpleNamespaceFilter.endElement(SimpleNamespaceFilter.java:94) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:357) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:218) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:196) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:247) at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:180) ... 15 more Caused by: com.sun.xml.bind.api.AccessorException: java.lang.NumberFormatException: For input string: "UNKN" at com.sun.xml.bind.v2.runtime.reflect.AdaptedAccessor.set(AdaptedAccessor.java:87) at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.parse(TransducedAccessor.java:247) at com.sun.xml.bind.v2.runtime.unmarshaller.LeafPropertyLoader.text(LeafPropertyLoader.java:65) ... 33 more Caused by: java.lang.NumberFormatException: For input string: "UNKN" at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1241) at java.lang.Double.valueOf(Double.java:504) at java.lang.Double.<init>(Double.java:597) at org.opennms.netmgt.rrd.model.DoubleAdapter.unmarshal(DoubleAdapter.java:78) at org.opennms.netmgt.rrd.model.DoubleAdapter.unmarshal(DoubleAdapter.java:38) at com.sun.xml.bind.v2.runtime.reflect.AdaptedAccessor.set(AdaptedAccessor.java:85) ... 35 more

    Users with the same issue

    osvzs
    osvzs2 times, last one,
    marcbouvierdav
    marcbouvierdav6 times, last one,
    odd
    odd1 times, last one,
    batwalrus76
    batwalrus762 times, last one,
    eti22
    eti221 times, last one,
    23 more bugmates