You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Noel Sebastien <Se...@external-staff.com> on 2001/04/19 12:28:08 UTC

Digester : "java.lang.InternalError: (Ex02) An error has occurred " AND "addCallParam"

Hello,

It seems that addCallParam push a String on the stack, why ? It is very
annoying for my program. How can I by pass that problem ?


I would like to parse the following XML :

	<connector name="MQ1" className="connector.MqJmsConnector">
		<config configClassName="connector.JmsConnectorConfig">
			<attribute name="pooledSessionInitNb" value="3"/>
		</config>
	</connector>

1/ first : I push my global object on stack (digester.push)
2/ on config tag : create configClassName object with nested attribute (new
Object on Digester Stack with addObjectCreate and addSetProperty).
Before automatically pop, I do a addSetNext to store newly object reference
to global object.

3/ on connector end tag I would like to run a method with name and className
parameters : so I use addCallMethod et 2 addCallParam on connector pattern,
BUT
addCallParam push a String on stack and my previous AddSetNext is now
launched on that String instead of the global object !!!! Thus I receive
that InternalError !!!

I can't believe it is impossible !! Does somebody have any idea ?
Please,
Thanks,

Sébastien


---------------------

Un courrier électronique n'engage pas son émetteur. Tout message susceptible de comporter un engagement doit être confirmé par un écrit dûment signé.

An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed.

Ein elektronischer Brief bzw. eine elektronische Nachricht ist für den Absender nicht verbindlich. Jede Nachricht,  welche eine Verpflichtung beinhaltet, muß schriftlich bestätigt und ordnungsgemäß unterzeichnet werden.

---------------------



Re: Digester : "java.lang.InternalError: (Ex02) An error has occurred " AND "addCallParam"

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Thu, 19 Apr 2001, Noel Sebastien wrote:

> Hello,
> 
> It seems that addCallParam push a String on the stack, why ? It is very
> annoying for my program. How can I by pass that problem ?
> 
> 
> I would like to parse the following XML :
> 
> 	<connector name="MQ1" className="connector.MqJmsConnector">
> 		<config configClassName="connector.JmsConnectorConfig">
> 			<attribute name="pooledSessionInitNb" value="3"/>
> 		</config>
> 	</connector>
> 
> 1/ first : I push my global object on stack (digester.push)
> 2/ on config tag : create configClassName object with nested attribute (new
> Object on Digester Stack with addObjectCreate and addSetProperty).
> Before automatically pop, I do a addSetNext to store newly object reference
> to global object.
> 
> 3/ on connector end tag I would like to run a method with name and className
> parameters : so I use addCallMethod et 2 addCallParam on connector pattern,
> BUT
> addCallParam push a String on stack and my previous AddSetNext is now
> launched on that String instead of the global object !!!! Thus I receive
> that InternalError !!!
> 
> I can't believe it is impossible !! Does somebody have any idea ?
> Please,
> Thanks,
> 

Could you describe the exact rules you are trying to use?  It's not
possible to answer your questions just from this description.

> S�bastien
> 

Craig