Hello,
first - I don't know java. So, I apologize if this is really basic. I am trying to install Nav-3.0.1 from the source on Suse 10.0.
I have been using the Sles 9 instruction for a guide for required packages. That led me to my first error - I suspect these two errors are related
Error 1: This isn't really an error, but a lack of knowledge on my part, I guess.
The instructions say: # The WestHawk Java SNMP library has been replaced by the library found at # http://gicl.cs.drexel.edu/people/sevy/snmp/ # Must be compiled from source wget http://gicl.cs.drexel.edu/people/sevy/snmp/source_1.4.zip ---->>>>> # Follow the build instructions in the archive, you should have JavaSnmp.jar in the end: cp JavaSnmp.jar $JAVA_HOME/jre/lib/ext/
Well, I can't find anything anywhere about how to create JavaSnmp.jar. So - do I just do something like jar -cvf $JAVA_HOME/jre/lib/ext/JavaSnmp.jar from the source/snmp dir?
Error 2: While attempting to run make from within nav-3.0.1 install directory I get the following:
Building SimpleSnmp ... (cd SimpleSnmp && /usr/bin/ant ) && touch SimpleSnmp Buildfile: build.xml
init:
compile: [javac] Compiling 3 source files to /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/build [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:36: package snmp does not exist [javac] import snmp.*; [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:70: cannot resolve symbol [javac] symbol : class SNMPv1CommunicationInterface [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] private SNMPv1CommunicationInterface comInterface = null; [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:598: cannot resolve symbol [javac] symbol : class SNMPVarBindList [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPVarBindList var = null; [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:605: cannot resolve symbol [javac] symbol : class SNMPVarBindList [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] var = new SNMPVarBindList(); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:608: cannot resolve symbol [javac] symbol : class SNMPVarBindList [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPVarBindList nextpair = comInterface.getNextMIBEntry(nextoid); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:609: cannot resolve symbol [javac] symbol : class SNMPObject [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObject snmpobj = nextpair.getSNMPObjectAt(0); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:610: cannot resolve symbol [javac] symbol : class SNMPNull [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] if (snmpobj instanceof SNMPNull) break; [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:611: cannot resolve symbol [javac] symbol : class SNMPSequence [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPSequence pair = (SNMPSequence)snmpobj; [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:611: cannot resolve symbol [javac] symbol : class SNMPSequence [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPSequence pair = (SNMPSequence)snmpobj; [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:612: cannot resolve symbol [javac] symbol : class SNMPObjectIdentifier [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObjectIdentifier snmpOID = (SNMPObjectIdentifier)pair.getSNMPObject At(0); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:612: cannot resolve symbol [javac] symbol : class SNMPObjectIdentifier [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObjectIdentifier snmpOID = (SNMPObjectIdentifier)pair.getSNMPObject At(0); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:623: cannot resolve symbol [javac] symbol : class SNMPBadValueException [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] } catch (SNMPBadValueException exp) { [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:626: cannot resolve symbol [javac] symbol : class SNMPException [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] } catch (SNMPException exp) { [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:627: cannot resolve symbol [javac] symbol : class SNMPGetException [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] if (!(exp instanceof SNMPGetException && exp.getMessage() != null && exp.getMessage().indexOf(" not available for retrieval") >= 0)) { [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:651: cannot resolve symbol [javac] symbol : class SNMPSequence [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPSequence pair = (SNMPSequence)(var.getSNMPObjectAt(i)); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:651: cannot resolve symbol [javac] symbol : class SNMPSequence [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPSequence pair = (SNMPSequence)(var.getSNMPObjectAt(i)); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:652: cannot resolve symbol [javac] symbol : class SNMPObjectIdentifier [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObjectIdentifier snmpOID = (SNMPObjectIdentifier)pair.getSNMPObjectAt(0); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:652: cannot resolve symbol [javac] symbol : class SNMPObjectIdentifier [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObjectIdentifier snmpOID = (SNMPObjectIdentifier)pair.getSNMPObjectAt(0); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:653: cannot resolve symbol [javac] symbol : class SNMPObject [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObject snmpValue = pair.getSNMPObjectAt(1); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:657: cannot resolve symbol [javac] symbol : class SNMPOctetString [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] if (!decodeHex && snmpValue instanceof SNMPOctetString) { [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:663: cannot resolve symbol [javac] symbol : class SNMPOctetString [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] if (data.length() == 0 && !(snmpValue instanceof SNMPOctetString)) { [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:806: cannot resolve symbol [javac] symbol : class SNMPv1CommunicationInterface [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] comInterface = new SNMPv1CommunicationInterface(snmpVersion, hostAddress, cs_ro); [javac] ^ [javac] 22 errors
BUILD FAILED /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/build.xml:30: Compile failed; see the compiler error output for details.
Any suggestions?
Thanks Scott
This e-mail message is intended only for the personal use of the recipient(s) named above. If you are not an intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the Hearst Service Center (cadmin@hearstsc.com) immediately by email and delete the original message.
From SLander at hearstsc.com Thu Jun 1 18:36:11 2006
From: SLander at hearstsc.com (SLander@hearstsc.com) Date: Thu Jun 1 23:32:49 2006 Subject: [Nav-users] problem(s) installing nav-3.0.1, updated Message-ID: OF709F304D.D0C86F82-ON85257180.00766F93-85257180.007654DF@hearstsc.com
By reading the RedHat install directions, I have make it further, and, now have the things at least partially running.... I never made it past error #2 below, but side stepped it by installing the RPM. So - If anyone has any suggestions for fixing that, I would like to continue that path also.
System details: Suse 10.0 Postgres 8.1.3 Nav-3.0.0-1, installed from the noarch rpm, using nodep (had to use nodep because it wanted postgres 7.x)
When adding a new device, I get this database error. I hope someone can help?
Mod_python error: "PythonHandler editdb"
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch result = object(req)
File "/usr/local/nav/apache/webroot/editdb/editdb.py", line 156, in handler output = editPage(req,pageList[table](),request,unicodeError)
File "/usr/local/nav/apache/webroot/editdb/editdb.py", line 524, in editPage listView.fill(req)
File "/usr/local/nav/apache/webroot/editdb/editdb.py", line 798, in fill tooltipDef[2] = executeSQLreturn(sql)
File "/usr/local/nav/apache/webroot/editdb/editdbSQL.py", line 45, in executeSQLreturn database.execute(sql)
ProgrammingError: ERROR: missing FROM-clause entry for table "netboxcategory"
SELECT netboxid,netboxcategory.category FROM netbox WHERE netboxcategory.netboxid=netboxid
Hello,
first - I don't know java. So, I apologize if this is really basic. I am trying to install Nav-3.0.1 from the source on Suse 10.0.
I have been using the Sles 9 instruction for a guide for required packages. That led me to my first error - I suspect these two errors are related
Error 1: This isn't really an error, but a lack of knowledge on my part, I guess.
The instructions say: # The WestHawk Java SNMP library has been replaced by the library found at # http://gicl.cs.drexel.edu/people/sevy/snmp/ # Must be compiled from source wget http://gicl.cs.drexel.edu/people/sevy/snmp/source_1.4.zip ---->>>>> # Follow the build instructions in the archive, you should have JavaSnmp.jar in the end: cp JavaSnmp.jar $JAVA_HOME/jre/lib/ext/
Well, I can't find anything anywhere about how to create JavaSnmp.jar. So - do I just do something like jar -cvf $JAVA_HOME/jre/lib/ext/JavaSnmp.jar from the source/snmp dir?
Error 2: While attempting to run make from within nav-3.0.1 install directory I get the following:
Building SimpleSnmp ... (cd SimpleSnmp && /usr/bin/ant ) && touch SimpleSnmp Buildfile: build.xml
init:
compile: [javac] Compiling 3 source files to /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/build [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:36:
package snmp does not exist [javac] import snmp.*; [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:70:
cannot resolve symbol [javac] symbol : class SNMPv1CommunicationInterface [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] private SNMPv1CommunicationInterface comInterface = null; [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:598:
cannot resolve symbol [javac] symbol : class SNMPVarBindList [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPVarBindList var = null; [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:605:
cannot resolve symbol [javac] symbol : class SNMPVarBindList [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] var = new SNMPVarBindList(); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:608:
cannot resolve symbol [javac] symbol : class SNMPVarBindList [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPVarBindList nextpair = comInterface.getNextMIBEntry(nextoid); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:609:
cannot resolve symbol [javac] symbol : class SNMPObject [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObject snmpobj = nextpair.getSNMPObjectAt(0); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:610:
cannot resolve symbol [javac] symbol : class SNMPNull [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] if (snmpobj instanceof SNMPNull) break; [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:611:
cannot resolve symbol [javac] symbol : class SNMPSequence [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPSequence pair = (SNMPSequence)snmpobj; [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:611:
cannot resolve symbol [javac] symbol : class SNMPSequence [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPSequence pair = (SNMPSequence)snmpobj; [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:612:
cannot resolve symbol [javac] symbol : class SNMPObjectIdentifier [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObjectIdentifier snmpOID = (SNMPObjectIdentifier)pair.getSNMPObject At(0); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:612:
cannot resolve symbol [javac] symbol : class SNMPObjectIdentifier [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObjectIdentifier snmpOID = (SNMPObjectIdentifier)pair.getSNMPObject At(0); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:623:
cannot resolve symbol [javac] symbol : class SNMPBadValueException [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] } catch (SNMPBadValueException exp) { [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:626:
cannot resolve symbol [javac] symbol : class SNMPException [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] } catch (SNMPException exp) { [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:627:
cannot resolve symbol [javac] symbol : class SNMPGetException [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] if (!(exp instanceof SNMPGetException && exp.getMessage() != null && exp.getMessage().indexOf(" not available for retrieval") >= 0)) { [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:651:
cannot resolve symbol [javac] symbol : class SNMPSequence [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPSequence pair = (SNMPSequence)(var.getSNMPObjectAt(i)); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:651:
cannot resolve symbol [javac] symbol : class SNMPSequence [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPSequence pair = (SNMPSequence)(var.getSNMPObjectAt(i)); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:652:
cannot resolve symbol [javac] symbol : class SNMPObjectIdentifier [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObjectIdentifier snmpOID = (SNMPObjectIdentifier)pair.getSNMPObjectAt(0); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:652:
cannot resolve symbol [javac] symbol : class SNMPObjectIdentifier [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObjectIdentifier snmpOID = (SNMPObjectIdentifier)pair.getSNMPObjectAt(0); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:653:
cannot resolve symbol [javac] symbol : class SNMPObject [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObject snmpValue = pair.getSNMPObjectAt(1); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:657:
cannot resolve symbol [javac] symbol : class SNMPOctetString [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] if (!decodeHex && snmpValue instanceof SNMPOctetString) { [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:663:
cannot resolve symbol [javac] symbol : class SNMPOctetString [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] if (data.length() == 0 && !(snmpValue instanceof SNMPOctetString)) { [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:806:
cannot resolve symbol [javac] symbol : class SNMPv1CommunicationInterface [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] comInterface = new SNMPv1CommunicationInterface(snmpVersion, hostAddress, cs_ro); [javac] ^ [javac] 22 errors
BUILD FAILED /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/build.xml:30: Compile failed; see the compiler error output for details.
Any suggestions?
Thanks Scott
This e-mail message is intended only for the personal use of the recipient(s) named above. If you are not an intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the Hearst Service Center (cadmin@hearstsc.com) immediately by email and delete the original message.
From SLander at hearstsc.com Fri Jun 2 14:15:17 2006
From: SLander at hearstsc.com (SLander@hearstsc.com) Date: Fri Jun 2 19:11:54 2006 Subject: [Nav-users] problem(s) installing nav-3.0.1, update2 In-Reply-To: OF709F304D.D0C86F82-ON85257180.00766F93-85257180.007654DF@hearstsc.com Message-ID: OF5A97A55E.22728088-ON85257181.005E6BE4-85257181.005E721C@hearstsc.com
Fixed the below error by modifying lines 1992 to 1994 of editdb.py to be:
subcatTooltip = [['SELECT netbox.netboxid,' + \ 'netboxcategory.category FROM netbox, netboxcategory ' + \ 'WHERE netboxcategory.netboxid=netbox.netboxid',
The error would occur whenever I went to edit an IP device, or upon finishing adding a device.
Scott
Still looking for help on this error:
cannot resolve symbol [javac] symbol : class SNMPv1CommunicationInterface [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] comInterface = new SNMPv1CommunicationInterface(snmpVersion, hostAddress, cs_ro); [javac] ^ [javac] 22 errors
BUILD FAILED /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/build.xml:30: Compile failed; see the compiler error output for details.
By reading the RedHat install directions, I have make it further, and, now have the things at least partially running.... I never made it past error #2 below, but side stepped it by installing the RPM. So - If anyone has any suggestions for fixing that, I would like to continue that path also.
System details: Suse 10.0 Postgres 8.1.3 Nav-3.0.0-1, installed from the noarch rpm, using nodep (had to use nodep because it wanted postgres 7.x)
When adding a new device, I get this database error. I hope someone can help?
Mod_python error: "PythonHandler editdb"
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch result = object(req)
File "/usr/local/nav/apache/webroot/editdb/editdb.py", line 156, in handler output = editPage(req,pageList[table](),request,unicodeError)
File "/usr/local/nav/apache/webroot/editdb/editdb.py", line 524, in editPage listView.fill(req)
File "/usr/local/nav/apache/webroot/editdb/editdb.py", line 798, in fill tooltipDef[2] = executeSQLreturn(sql)
File "/usr/local/nav/apache/webroot/editdb/editdbSQL.py", line 45, in executeSQLreturn database.execute(sql)
ProgrammingError: ERROR: missing FROM-clause entry for table "netboxcategory"
SELECT netboxid,netboxcategory.category FROM netbox WHERE netboxcategory.netboxid=netboxid
Hello,
first - I don't know java. So, I apologize if this is really basic. I am trying to install Nav-3.0.1 from the source on Suse 10.0.
I have been using the Sles 9 instruction for a guide for required packages. That led me to my first error - I suspect these two errors are related
Error 1: This isn't really an error, but a lack of knowledge on my part, I guess.
The instructions say: # The WestHawk Java SNMP library has been replaced by the library found at # http://gicl.cs.drexel.edu/people/sevy/snmp/ # Must be compiled from source wget http://gicl.cs.drexel.edu/people/sevy/snmp/source_1.4.zip ---->>>>> # Follow the build instructions in the archive, you should have JavaSnmp.jar in the end: cp JavaSnmp.jar $JAVA_HOME/jre/lib/ext/
Well, I can't find anything anywhere about how to create JavaSnmp.jar. So - do I just do something like jar -cvf $JAVA_HOME/jre/lib/ext/JavaSnmp.jar from the source/snmp dir?
Error 2: While attempting to run make from within nav-3.0.1 install directory I get the following:
Building SimpleSnmp ... (cd SimpleSnmp && /usr/bin/ant ) && touch SimpleSnmp Buildfile: build.xml
init:
compile: [javac] Compiling 3 source files to /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/build [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:36:
package snmp does not exist [javac] import snmp.*; [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:70:
cannot resolve symbol [javac] symbol : class SNMPv1CommunicationInterface [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] private SNMPv1CommunicationInterface comInterface = null; [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:598:
cannot resolve symbol [javac] symbol : class SNMPVarBindList [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPVarBindList var = null; [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:605:
cannot resolve symbol [javac] symbol : class SNMPVarBindList [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] var = new SNMPVarBindList(); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:608:
cannot resolve symbol [javac] symbol : class SNMPVarBindList [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPVarBindList nextpair = comInterface.getNextMIBEntry(nextoid); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:609:
cannot resolve symbol [javac] symbol : class SNMPObject [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObject snmpobj = nextpair.getSNMPObjectAt(0); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:610:
cannot resolve symbol [javac] symbol : class SNMPNull [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] if (snmpobj instanceof SNMPNull) break; [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:611:
cannot resolve symbol [javac] symbol : class SNMPSequence [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPSequence pair = (SNMPSequence)snmpobj; [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:611:
cannot resolve symbol [javac] symbol : class SNMPSequence [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPSequence pair = (SNMPSequence)snmpobj; [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:612:
cannot resolve symbol [javac] symbol : class SNMPObjectIdentifier [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObjectIdentifier snmpOID = (SNMPObjectIdentifier)pair.getSNMPObject At(0); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:612:
cannot resolve symbol [javac] symbol : class SNMPObjectIdentifier [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObjectIdentifier snmpOID = (SNMPObjectIdentifier)pair.getSNMPObject At(0); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:623:
cannot resolve symbol [javac] symbol : class SNMPBadValueException [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] } catch (SNMPBadValueException exp) { [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:626:
cannot resolve symbol [javac] symbol : class SNMPException [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] } catch (SNMPException exp) { [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:627:
cannot resolve symbol [javac] symbol : class SNMPGetException [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] if (!(exp instanceof SNMPGetException && exp.getMessage() != null && exp.getMessage().indexOf(" not available for retrieval") >= 0)) { [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:651:
cannot resolve symbol [javac] symbol : class SNMPSequence [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPSequence pair = (SNMPSequence)(var.getSNMPObjectAt(i)); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:651:
cannot resolve symbol [javac] symbol : class SNMPSequence [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPSequence pair = (SNMPSequence)(var.getSNMPObjectAt(i)); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:652:
cannot resolve symbol [javac] symbol : class SNMPObjectIdentifier [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObjectIdentifier snmpOID = (SNMPObjectIdentifier)pair.getSNMPObjectAt(0); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:652:
cannot resolve symbol [javac] symbol : class SNMPObjectIdentifier [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObjectIdentifier snmpOID = (SNMPObjectIdentifier)pair.getSNMPObjectAt(0); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:653:
cannot resolve symbol [javac] symbol : class SNMPObject [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] SNMPObject snmpValue = pair.getSNMPObjectAt(1); [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:657:
cannot resolve symbol [javac] symbol : class SNMPOctetString [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] if (!decodeHex && snmpValue instanceof SNMPOctetString) { [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:663:
cannot resolve symbol [javac] symbol : class SNMPOctetString [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] if (data.length() == 0 && !(snmpValue instanceof SNMPOctetString)) { [javac] ^ [javac] /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/src/no/ntnu/nav/SimpleSnmp/SimpleSnmp.java:806:
cannot resolve symbol [javac] symbol : class SNMPv1CommunicationInterface [javac] location: class no.ntnu.nav.SimpleSnmp.SimpleSnmp [javac] comInterface = new SNMPv1CommunicationInterface(snmpVersion, hostAddress, cs_ro); [javac] ^ [javac] 22 errors
BUILD FAILED /data/projects/Nav/nav-3.0.1/src/SimpleSnmp/build.xml:30: Compile failed; see the compiler error output for details.
Any suggestions?
Thanks Scott
This e-mail message is intended only for the personal use of the recipient(s) named above. If you are not an intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the Hearst Service Center (cadmin@hearstsc.com) immediately by email and delete the original message. _______________________________________________ Nav-users mailing list Nav-users@itea.ntnu.no http://mailman.itea.ntnu.no/mailman/listinfo/nav-users
This e-mail message is intended only for the personal use of the recipient(s) named above. If you are not an intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the Hearst Service Center (cadmin@hearstsc.com) immediately by email and delete the original message.
From morten.vold at uninett.no Mon Jun 5 11:58:10 2006
From: morten.vold at uninett.no (Morten Vold) Date: Mon Jun 5 10:58:19 2006 Subject: [Nav-users] ***SPAM*** Cricket compilation error in debian In-Reply-To: 20060531085935.75368.qmail@web8903.mail.in.yahoo.com References: 20060531085935.75368.qmail@web8903.mail.in.yahoo.com Message-ID: 4483F222.7050300@uninett.no
rajesh wrote:
Edit the cricket-conf.pl and set these variables: $gCricketHome = "/usr/share/nav/cricket";
$ /usr/lib/nav/makecricketconfig.pl No path to Cricket specified, searching default paths... Searching in /home/navcron/cricket. Searching in /usr/local/cricket. Found cricket in /usr/local/cricket. Use of uninitialized value in concatenation (.) or string at /usr/lib/nav/makecricketconfig.pl line 82. Can't locate ConfigTree/Cache.pm in @INC (@INC contains: /lib /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/lib/nav/makecricketconfig.pl line 84. BEGIN failed--compilation aborted at /usr/lib/nav/makecricketconfig.pl line 84.
I am looking forward where i am doing wrong.
Rajesh, what are the next few variables after $gCricketHome in your cricket-conf.pl set to?
Makecricketconfig is complaining that it cannot find some Cricket libraries, the specific library it can't find should (in your case) be located at /usr/local/cricket/cricket/lib/ConfigTree/Cache.pm