I had a gui set up that displayed menu items a window and some buttons at the bottom. i am having it communicate with an outside program using commands. i recieved a strange error msg after i tried to have it communicate with the other program. I know the gui worked before i tried linking it to the outside program.

this is the error stack....

agi.core.AgCoreException: java.lang.reflect.InvocationTargetException
at agi.core.AgUnknown.createInstance(Unknown Source)
at agi.core.AgUnknown.initialize(Unknown Source)
at agi.core.AgUnknown.<init>(Unknown Source)
at agi.stkobjects.AgStkObjectRootClass.<init>(Unknown Source)
at windowPanel.buildPanel(windowPanel.java:115)
at windowPanel.<init>(windowPanel.java:85)
at windowPanel.main(windowPanel.java:309)
Caused by: agi.core.awt.AgAwtException: java.lang.reflect.InvocationTargetException
at agi.core.awt.AgAwtToolkitThreadDelegate.invokeAndWait(Unknown Source)
at agi.AgWindowToolkitThreadDelegate.invokeAndWait(Unknown Source)
... 7 more
Caused by: java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1042)
at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1326)
... 9 more
Caused by: agi.core.AgComException: Error creating the class instance.
at agi.stkobjects.AgStkObjectRootClass.CreateInstance(Native Method)
at agi.core.AgUnknown$CreateInstanceRunner.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:602)
at java.awt.EventQueue$1.run(EventQueue.java:600)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

i can attach the code if you want but its kinda long and has a lot of calls to the outside program that might not be understandable. let me know.

Looks like Exceptions being thrown and chained inside AGI - is the is Asterisk interface? If so, you will probably get an answer from their support forum.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.