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"]

The OpenNMS Issue Tracker | jcat | 3 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    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

    The OpenNMS Issue Tracker | 3 years ago | jcat
    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"]
  2. 0

    OpenNMS - devel - running tests

    nabble.com | 2 years ago
    java.net.UnknownHostException: D at > org.opennms.core.xml.MarshallingExceptionTranslator.translate(MarshallingExceptionTranslator.java:55)
  3. 0

    OpenNMS - discuss - RuntimeException thrown in operation init

    nabble.com | 1 year ago
    org.opennms.netmgt.config.poller.PollerConfiguration: A minimum of 1 > _downtimeList object(s) (whose xml name is 'downtime') are required for > class: org.opennms.netmgt.config.poller.Package{File: [not available]; > line: 278; column: 24} at > org.exolab.castor.xml.Unmarshaller.convertSAXExceptionToMarshalException > (Unmarshaller.java:755) at > org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:721) at > org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:610) at > org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:812) at > org.opennms.netmgt.config.PollerConfigManager.reloadXML(PollerConfigMana > ger.java:160) at > org.opennms.netmgt.config.PollerConfigManager.<init>(PollerConfigManager > .java:102) at > org.opennms.netmgt.config.PollerConfigFactory.<init>(PollerConfigFactory > .java:98) at > org.opennms.netmgt.config.PollerConfigFactory.init(PollerConfigFactory.j > ava:128)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Exception while unmarshalling UTF-8 encoded XML String, using JAXB.

    Oracle Community | 1 decade ago | 843834
    org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0xae) was found in the element content of the document.]
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NumberFormatException

    For input string: "UNKN"

    at sun.misc.FloatingDecimal.readJavaFormatString()
  2. Java RT
    Double.<init>
    1. sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1241)
    2. java.lang.Double.valueOf(Double.java:504)
    3. java.lang.Double.<init>(Double.java:597)
    3 frames
  3. org.opennms.netmgt
    DoubleAdapter.unmarshal
    1. org.opennms.netmgt.rrd.model.DoubleAdapter.unmarshal(DoubleAdapter.java:78)
    2. org.opennms.netmgt.rrd.model.DoubleAdapter.unmarshal(DoubleAdapter.java:38)
    2 frames
  4. Old JAXB Runtime
    SAXConnector.endElement
    1. com.sun.xml.bind.v2.runtime.reflect.AdaptedAccessor.set(AdaptedAccessor.java:85)
    2. com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.parse(TransducedAccessor.java:247)
    3. com.sun.xml.bind.v2.runtime.unmarshaller.LeafPropertyLoader.text(LeafPropertyLoader.java:65)
    4. com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.text(UnmarshallingContext.java:514)
    5. com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.processText(SAXConnector.java:181)
    6. com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.endElement(SAXConnector.java:154)
    6 frames
  5. Java RT
    XMLFilterImpl.endElement
    1. org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570)
    1 frame
  6. org.opennms.core
    SimpleNamespaceFilter.endElement
    1. org.opennms.core.xml.SimpleNamespaceFilter.endElement(SimpleNamespaceFilter.java:94)
    1 frame
  7. Xerces2-j
    AbstractSAXParser.parse
    1. org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    2. org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
    3. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    4. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    5. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    6. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    7. org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    8. org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    8 frames
  8. Java RT
    XMLFilterImpl.parse
    1. org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:357)
    1 frame
  9. Old JAXB Runtime
    UnmarshallerImpl.unmarshal
    1. com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:218)
    2. com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:196)
    3. com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:247)
    3 frames
  10. org.opennms.core
    JaxbUtils.unmarshal
    1. org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:180)
    2. org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:140)
    3. org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:133)
    3 frames
  11. org.opennms.netmgt
    RrdConvertUtils.dumpJrb
    1. org.opennms.netmgt.rrd.model.RrdConvertUtils.dumpJrb(RrdConvertUtils.java:70)
    1 frame
  12. org.opennms.upgrade
    Upgrade.main
    1. org.opennms.upgrade.implementations.SnmpInterfaceRrdMigratorOnline.mergeJrb(SnmpInterfaceRrdMigratorOnline.java:334)
    2. org.opennms.upgrade.implementations.SnmpInterfaceRrdMigratorOnline.merge(SnmpInterfaceRrdMigratorOnline.java:278)
    3. org.opennms.upgrade.implementations.SnmpInterfaceRrdMigratorOnline.execute(SnmpInterfaceRrdMigratorOnline.java:174)
    4. org.opennms.upgrade.support.Upgrade.executeUpgrade(Upgrade.java:145)
    5. org.opennms.upgrade.support.Upgrade.execute(Upgrade.java:234)
    6. org.opennms.upgrade.support.Upgrade.main(Upgrade.java:260)
    6 frames
  13. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  14. org.opennms.bootstrap
    Bootstrap$3.run
    1. org.opennms.bootstrap.Bootstrap$3.run(Bootstrap.java:362)
    1 frame
  15. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:744)
    1 frame