You are viewing a plain text version of this content. The canonical link for it is here.
Posted to imperius-user@incubator.apache.org by Christian Rupert <ch...@web.de> on 2010/12/14 15:19:44 UTC

Timeout Exception when executing policy

Hi there,

 

I wrote my own CIM-Provider for my Asterisk Telephone System (PBX). As it
takes very long to i.e. enumerate the instances, I even have to use my
cimcli of OpenPegasus with a timeout parameter:

 

root@rupchr-laptop:/home/rupchr# cimcli --timeout 300 ei Asterisk

path= Asterisk.IP="127.0.0.1",Port="5038",Secret="kt4cm",User="Domi"

 

//Instance of Asterisk

instance of Asterisk

{

IP = "127.0.0.1";

Port = "5038";

User = "Domi";

Secret = "kt4cm";

Uptime = "21 minutes, 32 seconds \n";

Version = "Asterisk 1.6.2.11";

Audiocodecs = " 1 (1 <<  0)      (0x1)  audio       g723   (G.723.1)\n "

    "         2 (1 <<  1)      (0x2)  audio        gsm   (GSM)\n    "

    "      4 (1 <<  2)      (0x4)  audio       ulaw   (G.711 u-law)\n "

    "         8 (1 <<  3)      (0x8)  audio       alaw   (G.711 A-law)\n "

    "        16 (1 <<  4)     (0x10)  audio   g726aal2   (G.726 AAL2)\n "

    "        32 (1 <<  5)     (0x20)  audio      adpcm   (ADPCM)\n  "

    "       64 (1 <<  6)     (0x40)  audio       slin   (16 bit Signed "

    "Linear PCM)\n        128 (1 <<  7)     (0x80)  audio      lpc10 "

    "  (LPC10)\n        256 (1 <<  8)    (0x100)  audio       g729  "

    " (G.729A)\n        512 (1 <<  9)    (0x200)  audio      speex  "

    " (SpeeX)\n       1024 (1 << 10)    (0x400)  audio       ilbc   "

    "(iLBC)\n       2048 (1 << 11)    (0x800)  audio       g726   (G.726 "

    "RFC3551)\n       4096 (1 << 12)   (0x1000)  audio       g722   "

    "(G722)\n";

Videocodecs = " 262144 (1 << 18)  (0x40000)  video       h261   (H.261 "

    "Video)\n     524288 (1 << 19)  (0x80000)  video       h263   (H.263 "

    "Video)\n    1048576 (1 << 20) (0x100000)  video      h263p   (H.263+ "

    "Video)\n    2097152 (1 << 21) (0x200000)  video       h264   (H.264 "

    "Video)\n";

Peers = "Name/username              Host            Dyn Nat ACL Port "

    "    Status     \n0 sip peers [Monitored0 online, 0 offline Unmonitored
"

    "0 online, 0 offline]";

};

 

But when using Imperius to execute policies on my Asterisk Instance, a
timeout occurs.

Imperius uses the SBLIM-jars..which can configured in order to enable
logging.

When executing my Asterisk policy, this error occurs:

...

...

INFO: Error while processing invokeMethod request

org.sblim.wbem.cim.CIMException: CIM_ERR_FAILED(Remote exception at the
CIMOM:CIM_ERR_FAILED: CIM_ERR_FAILED (connection timed out))

                at
org.sblim.wbem.xml.XMLDefaultHandlerImpl.startElement(XMLDefaultHandlerImpl.
java:422)

                at
org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)

                at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
or.java:1284)

                at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
r.java:1806)

                at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1182)

                at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)

                at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)

                at javax.xml.parsers.SAXParser.parse(SAXParser.java:392)

                at
org.sblim.wbem.client.CIMClientXML.invokeMethod(CIMClientXML.java:741)

                at
org.sblim.wbem.client.CIMClient.invokeMethod(CIMClient.java:1320)

                at
org.apache.imperius.cimspl.client.TestClient.executePolicy(TestClient.java:1
97)

                at
org.apache.imperius.cimspl.client.TestClient.main(TestClient.java:140)

14.12.2010 15:57:44 org.sblim.wbem.client.CIMClientXML
invokeMethod(CIMObjectPath, String, Vector, Vector)

FEINER: RETURN null

Error: CIM_ERR_FAILED

 

How can I pass this timeout error? Changing the "http.timeout" value of
SBLIM does not help..

 

Greetings,

Chris

 

 


Re: Timeout Exception when executing policy

Posted by Neeraj Joshi <jn...@us.ibm.com>.
Hey Christian,
Sorry can't help you there, you may have better luck querying the SBLIM 
folks perhaps.
Thanks
Neeraj
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"It is hard enough to remember my opinions, without also remembering my 
reasons for them". -Friedrich Wilhelm Nietzsche

Neeraj Joshi (knee-rudge)
WebSphere XD - Compute Grid
AIM, IBM
Apache Imperius - http://incubator.apache.org/imperius
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



From:
"Christian Rupert" <ch...@web.de>
To:
<im...@incubator.apache.org>
Date:
12/14/2010 10:22 AM
Subject:
Timeout Exception when executing policy
Sent by:
christian.rupert@web.de



Hi there,

 

I wrote my own CIM-Provider for my Asterisk Telephone System (PBX). As it
takes very long to i.e. enumerate the instances, I even have to use my
cimcli of OpenPegasus with a timeout parameter:

 

root@rupchr-laptop:/home/rupchr# cimcli --timeout 300 ei Asterisk

path= Asterisk.IP="127.0.0.1",Port="5038",Secret="kt4cm",User="Domi"

 

//Instance of Asterisk

instance of Asterisk

{

IP = "127.0.0.1";

Port = "5038";

User = "Domi";

Secret = "kt4cm";

Uptime = "21 minutes, 32 seconds \n";

Version = "Asterisk 1.6.2.11";

Audiocodecs = " 1 (1 <<  0)      (0x1)  audio       g723   (G.723.1)\n "

    "         2 (1 <<  1)      (0x2)  audio        gsm   (GSM)\n    "

    "      4 (1 <<  2)      (0x4)  audio       ulaw   (G.711 u-law)\n "

    "         8 (1 <<  3)      (0x8)  audio       alaw   (G.711 A-law)\n "

    "        16 (1 <<  4)     (0x10)  audio   g726aal2   (G.726 AAL2)\n "

    "        32 (1 <<  5)     (0x20)  audio      adpcm   (ADPCM)\n  "

    "       64 (1 <<  6)     (0x40)  audio       slin   (16 bit Signed "

    "Linear PCM)\n        128 (1 <<  7)     (0x80)  audio      lpc10 "

    "  (LPC10)\n        256 (1 <<  8)    (0x100)  audio       g729  "

    " (G.729A)\n        512 (1 <<  9)    (0x200)  audio      speex  "

    " (SpeeX)\n       1024 (1 << 10)    (0x400)  audio       ilbc   "

    "(iLBC)\n       2048 (1 << 11)    (0x800)  audio       g726   (G.726 "

    "RFC3551)\n       4096 (1 << 12)   (0x1000)  audio       g722   "

    "(G722)\n";

Videocodecs = " 262144 (1 << 18)  (0x40000)  video       h261   (H.261 "

    "Video)\n     524288 (1 << 19)  (0x80000)  video       h263   (H.263 "

    "Video)\n    1048576 (1 << 20) (0x100000)  video      h263p   (H.263+ 
"

    "Video)\n    2097152 (1 << 21) (0x200000)  video       h264   (H.264 "

    "Video)\n";

Peers = "Name/username              Host            Dyn Nat ACL Port "

    "    Status     \n0 sip peers [Monitored0 online, 0 offline 
Unmonitored
"

    "0 online, 0 offline]";

};

 

But when using Imperius to execute policies on my Asterisk Instance, a
timeout occurs.

Imperius uses the SBLIM-jars..which can configured in order to enable
logging.

When executing my Asterisk policy, this error occurs:

...

...

INFO: Error while processing invokeMethod request

org.sblim.wbem.cim.CIMException: CIM_ERR_FAILED(Remote exception at the
CIMOM:CIM_ERR_FAILED: CIM_ERR_FAILED (connection timed out))

                at
org.sblim.wbem.xml.XMLDefaultHandlerImpl.startElement(XMLDefaultHandlerImpl.
java:422)

                at
org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)

                at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
or.java:1284)

                at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
r.java:1806)

                at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1182)

                at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)

                at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)

                at javax.xml.parsers.SAXParser.parse(SAXParser.java:392)

                at
org.sblim.wbem.client.CIMClientXML.invokeMethod(CIMClientXML.java:741)

                at
org.sblim.wbem.client.CIMClient.invokeMethod(CIMClient.java:1320)

                at
org.apache.imperius.cimspl.client.TestClient.executePolicy(TestClient.java:1
97)

                at
org.apache.imperius.cimspl.client.TestClient.main(TestClient.java:140)

14.12.2010 15:57:44 org.sblim.wbem.client.CIMClientXML
invokeMethod(CIMObjectPath, String, Vector, Vector)

FEINER: RETURN null

Error: CIM_ERR_FAILED

 

How can I pass this timeout error? Changing the "http.timeout" value of
SBLIM does not help..

 

Greetings,

Chris