[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opennms-devel
Subject:    [opennms-devel] Error when opennms tries to insert a node in the database
From:       Gurman Grewal <ggrewal () datavalet ! com>
Date:       2015-10-19 20:53:31
Message-ID: BLUPR0101MB1585E5B65315A79CCDA6598DA23A0 () BLUPR0101MB1585 ! prod ! exchangelabs ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi


Through Pris I am trying to add new requisition. OpenNMS is successfully able to \
import the nodes for that pris requisition. However, when it tries to insert the node \
in the database, it throws exception:  ERROR [importExecutor-3] \
o.h.u.JDBCExceptionReporter: ERROR: duplicate key value violates unique constraint \
"ipinterface_pkey"

Detail: Key (id)=(1705) already exists.


The strange thing is that the exception is for an already provisioned node and not \
for the new node and their ipinterface is not the same.

Error log is attached in the text file (highlighted in red)


There is another exception that I have no idea about since I am using http driver and \
not file driver:

java.io.FileNotFoundException: URL [http://0.0.0.0:8000/requisitions/NCC] cannot be \
resolved to absolute file path because it does not reside in the file system: \
http://0.0.0.0:8000/requisitions/NCC

at org.springframework.util.ResourceUtils.getFile(ResourceUtils.java:204)



Thank you

Gurman Grewal


[Attachment #5 (text/html)]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} \
--></style> </head>
<body dir="ltr">
<div id="divtagdefaultwrapper" \
style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
 <p>Hi</p>
<p><br>
</p>
<p>Through Pris I am trying to add new requisition. OpenNMS is successfully able to \
import the nodes for that pris requisition. However, when it tries to insert the node \
in the database, it throws exception:&nbsp; <font color="#006fc9">ERROR \
[importExecutor-3] o.h.u.JDBCExceptionReporter: ERROR: duplicate key value violates \
unique constraint &quot;ipinterface_pkey&quot;</font><br> </p>
<p><font color="#006fc9">Detail: Key (id)=(1705) already exists.</font>&nbsp;</p>
<p><br>
</p>
<p>The strange thing is that the exception is for an already provisioned node and not \
for the new node and their ipinterface is not the same.<br> </p>
<p>Error log is attached in the text file <b>(highlighted in red)</b></p>
<p><br>
</p>
<p>There is another exception that I have no idea about since I am using http driver \
and not file driver: </p>
<p><font color="#006fc9">java.io.FileNotFoundException: URL \
[http://0.0.0.0:8000/requisitions/NCC] cannot be resolved to absolute file path \
because it does not reside in the file system: http://0.0.0.0:8000/requisitions/NCC \
</font></p> <p><font color="#006fc9">at \
org.springframework.util.ResourceUtils.getFile(ResourceUtils.java:204) </font></p>
<br>
<p></p>
<p></p>
<p><br>
</p>
<p>Thank you<br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; \
background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif"> <p>Gurman \
Grewal<br> </p>
</div>
</div>
</div>
</body>
</html>


["error.doc" (application/msword)]

------------------------------------------------------------------------------


_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic