Advertisement
Guest User

Untitled

a guest
Jul 16th, 2012
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.57 KB | None | 0 0
  1. 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>>
  2. 2012-06-20 16:43:45,574 UNHANDLED EXCEPTION (2012-06-20 16:43:45.542914)
  3. Working directory: /opt/noc
  4. <class 'pyasn1.error.SubstrateUnderrunError'>
  5. 97-octet short
  6. START OF TRACEBACK
  7. ------------------------------------------------------------------------
  8. File: /opt/noc/contrib/lib/pyasn1-0.1.2-py2.6.egg/pyasn1/codec/ber/decoder.py (Line: 632)
  9. Function: __call__
  10. 625 for char in lengthString:
  11. 626 length = (length << 8) | oct2int(char)
  12. 627 size = size + 1
  13. 628 state = stGetValueDecoder
  14. 629 substrate = substrate[size:]
  15. 630 if length != -1 and len(substrate) < length:
  16. 631 raise error.SubstrateUnderrunError(
  17. 632 ==> '%d-octet short' % (length - len(substrate))
  18. 633 )
  19. 634 if state == stGetValueDecoder:
  20. 635 if asn1Spec is None:
  21. 636 state = stGetValueDecoderByTag
  22. 637 else:
  23. 638 state = stGetValueDecoderByAsn1Spec
  24. Variables:
  25. tagClass = 64
  26. substrate = 'llo\x00'
  27. firstOctet = 101
  28. tagId = 8
  29. recursiveFlag = 0
  30. length = 101
  31. asn1Spec = None
  32. self = <pyasn1.codec.ber.decoder.Decoder instance at 0x1d5fdd0>
  33. state = 2
  34. t = 104
  35. tagSet = TagSet(Tag(tagClass=64, tagFormat=32, tagId=8))
  36. lastTag = Tag(tagClass=64, tagFormat=32, tagId=8)
  37. tagFormat = 32
  38. fullSubstrate = 'hello\x00'
  39. size = 1
  40. ------------------------------------------------------------------------
  41. File: /opt/noc/contrib/lib/pysnmp-4.2.1-py2.6.egg/pysnmp/proto/api/verdec.py (Line: 4)
  42. Function: decodeMessageVersion
  43. 1 from pyasn1.codec.ber import decoder
  44. 2
  45. 3 def decodeMessageVersion(wholeMsg):
  46. 4 ==> seq, wholeMsg = decoder.decode(wholeMsg, recursiveFlag=0)
  47. 5 ver, wholeMsg = decoder.decode(wholeMsg, recursiveFlag=0)
  48. 6 return ver
  49. Variables:
  50. wholeMsg = 'hello\x00'
  51. ------------------------------------------------------------------------
  52. File: /opt/noc/sa/activator/trap_collector.py (Line: 71)
  53. Function: on_read
  54. 64 return fm_escape(v)
  55. 65
  56. 66 object = self.map_event(address)
  57. 67 if not object:
  58. 68 # Skip events from unknown sources
  59. 69 return
  60. 70 while whole_msg:
  61. 71 ==> msg_version = int(api.decodeMessageVersion(whole_msg))
  62. 72 if api.protoModules.has_key(msg_version):
  63. 73 p_mod = api.protoModules[msg_version]
  64. 74 else:
  65. 75 self.error('Unsupported SNMP version %s from %s' % (
  66. 76 msg_version, address))
  67. 77 return
  68. Variables:
  69. self = <noc.sa.activator.trap_collector.TrapCollector object at 0x2202a50>
  70. object = u'42'
  71. whole_msg = 'hello\x00'
  72. oid_to_str = <function oid_to_str at 0x22c5f50>
  73. address = '172.16.6.19'
  74. extract = <function extract at 0x22c8b90>
  75. port = 53968
  76. ------------------------------------------------------------------------
  77. File: /opt/noc/lib/nbsocket/listenudpsocket.py (Line: 49)
  78. Function: handle_read
  79. 42 """
  80. 43 Process incoming data. Call .on_read() for each portion
  81. 44 of data received
  82. 45 """
  83. 46 msg, transport_address = self.socket.recvfrom(self.READ_CHUNK)
  84. 47 if msg == "":
  85. 48 return
  86. 49 ==> self.on_read(msg, transport_address[0], transport_address[1])
  87. 50
  88. 51 def on_read(self, data, address, port):
  89. 52 """
  90. 53 :param data: Data received
  91. 54 :type data: str
  92. 55 :param address: Source address
  93. Variables:
  94. msg = 'hello\x00'
  95. self = <noc.sa.activator.trap_collector.TrapCollector object at 0x2202a50>
  96. transport_address = ('172.16.6.19', 53968)
  97. ------------------------------------------------------------------------
  98. File: /opt/noc/lib/nbsocket/socketfactory.py (Line: 178)
  99. Function: guarded_socket_call
  100. 171 Wrapper for safe call of socket method. Handles and reports
  101. 172 socket errors.
  102. 173
  103. 174 :return: Call status
  104. 175 :rtype: Bool
  105. 176 """
  106. 177 try:
  107. 178 ==> method()
  108. 179 except:
  109. 180 exc = get_socket_error()
  110. 181 try:
  111. 182 if exc:
  112. 183 socket.on_error(exc)
  113. 184 else:
  114. Variables:
  115. self = <noc.lib.nbsocket.socketfactory.SocketFactory object at 0x1e59bd0>
  116. socket = <noc.sa.activator.trap_collector.TrapCollector object at 0x2202a50>
  117. exc = None
  118. method = <bound method TrapCollector.handle_read of <noc.sa.activator.trap_collector.TrapCollector object at 0x2202a50>>
  119. ------------------------------------------------------------------------
  120. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement