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


Solutions on the web1

Solution icon of opennms
via The OpenNMS Issue Tracker by jcat, 9 months ago
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"]

Stack trace

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

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

2 times, 6 months ago
6 times, 7 months ago
2 times, 1 month ago
Once, 3 months ago
2 times, 5 months ago
24 more bugmates