Hello list,

I try to create an event by using the CORBA API of Spectrum. By using the 
method createEvent(int, int, CsCAttrValList). Defined:

Parameters:
modelID - The ID of the model for which to create the event.
type - The type (event code) of the event.
attrValList - The attribute values which define the event data. It is not 
necessary to specify the model handle, model name, model type handle, or model 
type name.

I have problems with the second int value. When using the way, which is 
described in the manual / examples, I got an error when using a Eventtype > 
0xF0000000:

..
eventCode = Integer.decode( args[1] );
..
byte[] eventid = md.createEvent( modelID.intValue(), eventCode.intValue(), avl 
);

Error:
java.lang.NumberFormatException: For input string: "fff00065"
        at java.lang.NumberFormatException.forInputString(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at java.lang.Integer.valueOf(Unknown Source)
        at java.lang.Integer.decode(Unknown Source)

With all Eventtype <0xF0000000 this method works perfectly. I think the problem 
is the signed int variable.
Maybe anybody has a hint or solution for me. Else I have to use Events with an 
Eventype <0xF000000

Thanks

Regards
--
Christoph Keßler                E-Mail: [email protected]
  amasol AG, Elsenheimerstraße 7, 80687 München, Germany
  Phone: +49 89 1894743-24        Fax: +49 89 1894743-99

amasol Aktiengesellschaft für Informations- und Kommunikationstechnologie
Aufsichtsrat: Prof. Dr. Stephan Kaiser (Vorsitzender)
Vorstand: Wolfgang Bachmann, Stefan Deml, Thomas Dirsch, Frank Jahn, Johann 
Maurer
Amtsgericht München HRB 128327, Sitz der Gesellschaft München

---
To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected]

Reply via email to