Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2012-06-20 16:43:45,542 [TrapCollector(0x2202a50)] Unhandled exception when calling <bound method TrapCollector.handle_read of <noc.sa.activator.trap_collector.TrapCollector object at 0x2202a50>>
- 2012-06-20 16:43:45,574 UNHANDLED EXCEPTION (2012-06-20 16:43:45.542914)
- Working directory: /opt/noc
- <class 'pyasn1.error.SubstrateUnderrunError'>
- 97-octet short
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/pyasn1-0.1.2-py2.6.egg/pyasn1/codec/ber/decoder.py (Line: 632)
- Function: __call__
- 625 for char in lengthString:
- 626 length = (length << 8) | oct2int(char)
- 627 size = size + 1
- 628 state = stGetValueDecoder
- 629 substrate = substrate[size:]
- 630 if length != -1 and len(substrate) < length:
- 631 raise error.SubstrateUnderrunError(
- 632 ==> '%d-octet short' % (length - len(substrate))
- 633 )
- 634 if state == stGetValueDecoder:
- 635 if asn1Spec is None:
- 636 state = stGetValueDecoderByTag
- 637 else:
- 638 state = stGetValueDecoderByAsn1Spec
- Variables:
- tagClass = 64
- substrate = 'llo\x00'
- firstOctet = 101
- tagId = 8
- recursiveFlag = 0
- length = 101
- asn1Spec = None
- self = <pyasn1.codec.ber.decoder.Decoder instance at 0x1d5fdd0>
- state = 2
- t = 104
- tagSet = TagSet(Tag(tagClass=64, tagFormat=32, tagId=8))
- lastTag = Tag(tagClass=64, tagFormat=32, tagId=8)
- tagFormat = 32
- fullSubstrate = 'hello\x00'
- size = 1
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/pysnmp-4.2.1-py2.6.egg/pysnmp/proto/api/verdec.py (Line: 4)
- Function: decodeMessageVersion
- 1 from pyasn1.codec.ber import decoder
- 2
- 3 def decodeMessageVersion(wholeMsg):
- 4 ==> seq, wholeMsg = decoder.decode(wholeMsg, recursiveFlag=0)
- 5 ver, wholeMsg = decoder.decode(wholeMsg, recursiveFlag=0)
- 6 return ver
- Variables:
- wholeMsg = 'hello\x00'
- ------------------------------------------------------------------------
- File: /opt/noc/sa/activator/trap_collector.py (Line: 71)
- Function: on_read
- 64 return fm_escape(v)
- 65
- 66 object = self.map_event(address)
- 67 if not object:
- 68 # Skip events from unknown sources
- 69 return
- 70 while whole_msg:
- 71 ==> msg_version = int(api.decodeMessageVersion(whole_msg))
- 72 if api.protoModules.has_key(msg_version):
- 73 p_mod = api.protoModules[msg_version]
- 74 else:
- 75 self.error('Unsupported SNMP version %s from %s' % (
- 76 msg_version, address))
- 77 return
- Variables:
- self = <noc.sa.activator.trap_collector.TrapCollector object at 0x2202a50>
- object = u'42'
- whole_msg = 'hello\x00'
- oid_to_str = <function oid_to_str at 0x22c5f50>
- address = '172.16.6.19'
- extract = <function extract at 0x22c8b90>
- port = 53968
- ------------------------------------------------------------------------
- File: /opt/noc/lib/nbsocket/listenudpsocket.py (Line: 49)
- Function: handle_read
- 42 """
- 43 Process incoming data. Call .on_read() for each portion
- 44 of data received
- 45 """
- 46 msg, transport_address = self.socket.recvfrom(self.READ_CHUNK)
- 47 if msg == "":
- 48 return
- 49 ==> self.on_read(msg, transport_address[0], transport_address[1])
- 50
- 51 def on_read(self, data, address, port):
- 52 """
- 53 :param data: Data received
- 54 :type data: str
- 55 :param address: Source address
- Variables:
- msg = 'hello\x00'
- self = <noc.sa.activator.trap_collector.TrapCollector object at 0x2202a50>
- transport_address = ('172.16.6.19', 53968)
- ------------------------------------------------------------------------
- File: /opt/noc/lib/nbsocket/socketfactory.py (Line: 178)
- Function: guarded_socket_call
- 171 Wrapper for safe call of socket method. Handles and reports
- 172 socket errors.
- 173
- 174 :return: Call status
- 175 :rtype: Bool
- 176 """
- 177 try:
- 178 ==> method()
- 179 except:
- 180 exc = get_socket_error()
- 181 try:
- 182 if exc:
- 183 socket.on_error(exc)
- 184 else:
- Variables:
- self = <noc.lib.nbsocket.socketfactory.SocketFactory object at 0x1e59bd0>
- socket = <noc.sa.activator.trap_collector.TrapCollector object at 0x2202a50>
- exc = None
- method = <bound method TrapCollector.handle_read of <noc.sa.activator.trap_collector.TrapCollector object at 0x2202a50>>
- ------------------------------------------------------------------------
- END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement