vCenter

 View Only
  • 1.  Zero bytes may not occur in string parameters

    Posted Oct 05, 2007 08:47 PM
    Hello: I'm trying to monitor a Windows 2003 server using SNMP. I have successfully created a Network Host and Hyperic is monitoring Availability, IP Forwards, IP In Receives etc.
    My problem is that I don't get any stats under 'Network Host Interface' whose members are the servers network adaptors.

    When I look at Metric Data for the adaptors, I see 'No metrics are available for this resource'. So, I 'Show All' metrics and see the none of them have 'Collection Interval' defined.
    I check 'Bits Received per Second', enter 5 in the Collection Interval box and submit. I get an Error page, 'The page requested cannot be displayed due to some error'.
    The stacktrace is shown below.

    Anyone know what the problem is? I'm running Hyperic 3.1.1 server on Windows 2003. The exact same problem occurs against Windows XP. Thanks.

    2007-10-05 16:20:40,602 INFO [org.hibernate.type.StringType] could not bind value 'Network Host Interface:snmp:snmpIp=192.168.3.30,snmpPort=161,snmpVersion=v1,snmpCommunity=public,snmpUser=username,
    snmpPassword=,snmpAuthType=md5,Avail=true:ifOperStatus:snmpIndexName=ifDescr,snmpIndexValue=HP NC7170 Dual Gigabit Server Adapter ' to parameter: 6; Zero bytes may not occur in string parameters.
    2007-10-05 16:20:40,602 WARN [org.hibernate.util.JDBCExceptionReporter] SQL Error: 0, SQLState: 22023
    2007-10-05 16:20:40,602 ERROR [org.hibernate.util.JDBCExceptionReporter] Zero bytes may not occur in string parameters.
    2007-10-05 16:20:40,602 ERROR [org.hibernate.event.def.AbstractFlushingEventListener] Could not synchronize database state with session
    org.hibernate.exception.DataException: could not insert: [org.hyperic.hq.measurement.server.session.RawMeasurement]
    at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:77)
    at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
    at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2267)
    at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2660)
    at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:52)
    at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
    at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232)
    at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:139)
    ...

    Message was edited by: umk


  • 2.  RE: Zero bytes may not occur in string parameters

    Posted Oct 09, 2007 05:45 PM
    I have stumbled upon the reason for the error:

    The interface name (under its Configuration Properties) contained a questionmark character "?". This questionmark appeared as a weird block character in the log file stacktrace. Removing this character fixed the problem.