AgentGen code generation failure

Noam Wolf NoamW____flashnetworks.com
Thu Apr 12 11:08:10 CEST 2001


Hi Frank

I ran the AgentGen from the batch file, as you recommended.
It seems to be a NullPointerException as you suggested (below is the output
).

Do you have any further suggestions?
When I try to compile small parts of my Mib, the code generation succeeds.
Might it be related to the ASN1 file's size?

Thanks,
		Noam Wolf.


The console output:

java.lang.NullPointerException
        at com.agentpp.agentgen.AgentGen._$2772(AgentGen.java, Compiled
Code)
        at com.agentpp.agentgen.AgentGen.genCodeTable(AgentGen.java,
Compiled Code)
        at com.agentpp.agentgen.AgentGen.genBodyForObject(AgentGen.java,
Compiled Code)
        at com.agentpp.agentgen.AgentGen.genCodeForModule(AgentGen.java,
Compiled Code)
        at
com.agentpp.agentgen.gui.AgentGenFrame._$268869(AgentGenFrame.java, Compiled
Code)
        at
com.agentpp.agentgen.gui.AgentGenFrame.generateButton_actionPerformed(AgentG
enFrame.java, Compiled Code)
        at
com.agentpp.agentgen.gui.AgentGenFrame.generateMenuItem_actionPerformed(Agen
tGenFrame.java:1317)
        at
com.agentpp.agentgen.gui.AgentGenFrame$12.actionPerformed(AgentGenFrame.java
:252)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown
Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.AbstractButton.doClick(Unknown Source)
        at
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unkno
wn Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForComponent(Unknown
Source)
        at java.awt.EventDispatchThread.pumpEventsForComponent(Unknown
Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

-----Original Message-----
From: Frank.Fock____t-online.de [mailto:Frank.Fock____t-online.de]
Sent: Tuesday, April 10, 2001 7:45 PM
To: Noam Wolf
Cc: 'agentpp-dl____fock.de'
Subject: Re: AgentGen code generation failure


Hi Noam,

This seems to be a NullPointerException. Do you use the latest
version of AgentGen Pro? In that case, please start AgentGen Pro
using the batch file (replace javaw by java before) or shell script.
Then reproduce the problem and capture the stack trace which
is hopefully printed on the console. With that stack trace it will
be easy to locate the problem.

TIA,
Frank

Noam Wolf wrote:

> Hi all Agent++
>
> I tried to generate c++ code with the Agent Generator.
> I loaded my ASN1 file successfully, but when trying to generate the code I
> received the message:
>         "AGENT++ code generation failed (null)"
> Does any one know what might cause such a message?
>
> Thanks,
>                 Noam Wolf



More information about the AGENTPP mailing list