You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by Colin Chalmers <Co...@xs4all.nl> on 2003/09/10 17:25:38 UTC

New machine old problems

Hi all,

I'm switching jobs,  machines & tools so I'm trying to get things 
building again on a new machine. Hum, didn't quite back-up everything I 
guess.

Well the problem is as follows:
I try to to build latest version using maven but have two unresolved 
dependancies; latest Fulcrum and jdbc-2.0. The latter I can't seem to 
find anywhere, yes I looked up SUN site but can only seem to find 
javadocs! The former seems to choke on the following

BUILD FAILED
file:/C:/Documents and 
Settings/Administrator/.maven/plugins/maven-multiproject-
plugin-1.0-SNAPSHOT/:133:62: <j:set> This tag does not understand the 
'name' att
ribute

I'm using Beta 10 of Maven

Can anyone help me out with these probs? Or send me the two Jars in 
question (offline)?

Thx

Colin




Re: New machine old problems

Posted by Eric Emminger <er...@ericemminger.com>.
Colin

> I try to to build latest version using maven but have two unresolved 
> dependancies; latest Fulcrum and jdbc-2.0. The latter I can't seem to 

http://java.sun.com/products/jdbc/download.html#spec

hth

Eric


Re: New machine old problems

Posted by Colin Chalmers <Co...@xs4all.nl>.
Henning,

These issues have been resolved and had to do with Maven project properties.

Colin


Henning P. Schmiedehausen wrote:

>Colin Chalmers <Co...@xs4all.nl> writes:
>
>  
>
>>I basically checked out the fulcrum code this afternoon and tried to 
>>build it with maven beta-10 which I also downloaded today.
>>    
>>
>
>  
>
>>I have now got the missing Jars but  am still experiencing problems 
>>building Turbine-2.3. Looks like a prob. with Criteria Objects. will dig 
>>further.
>>    
>>
>
>Can you tell us what exactly the problems are?
>
>	Regards
>		Henning
>
>  
>



Re: New machine old problems

Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
Colin Chalmers <Co...@xs4all.nl> writes:

>I basically checked out the fulcrum code this afternoon and tried to 
>build it with maven beta-10 which I also downloaded today.

>I have now got the missing Jars but  am still experiencing problems 
>building Turbine-2.3. Looks like a prob. with Criteria Objects. will dig 
>further.

Can you tell us what exactly the problems are?

	Regards
		Henning

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
hps@intermeta.de        +49 9131 50 654 0   http://www.intermeta.de/

Java, perl, Solaris, Linux, xSP Consulting, Web Services 
freelance consultant -- Jakarta Turbine Development  -- hero for hire

"Dominate!! Dominate!! Eat your young and aggregate! I have grotty silicon!" 
      -- AOL CD when played backwards  (User Friendly - 200-10-15)

Re: Is Turbine.java eating an extra exception?

Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
"Eric Pugh" <ep...@upstate.com> writes:

>Hi all,

ReHi,

I put that ITE in there. I didn't think that using the "uh, an error
happened" path is actually used in an application and preferred
getting the error into the log.

But yes, we should make this configureable (I prefer to keep my app
running, because having an action throw an exception "up" into Turbine
means that my error processing has already broken down).

>I am updating an app from some older 2.3 dev version.  In my various actions
>I always just throw any exception.  And previously they where trapped, and
>the user recieved my Error.vm page specified in TR.props:
>template.error=Error.vm

So you use the Error.vm for some meaningful error message or just
"This action is not allowed at this point" messages?

	Regards
		Henning



-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
hps@intermeta.de        +49 9131 50 654 0   http://www.intermeta.de/

Java, perl, Solaris, Linux, xSP Consulting, Web Services 
freelance consultant -- Jakarta Turbine Development  -- hero for hire

"Dominate!! Dominate!! Eat your young and aggregate! I have grotty silicon!" 
      -- AOL CD when played backwards  (User Friendly - 200-10-15)

Got Proof! Was RE: Is Turbine.java eating an extra exception?

Posted by Eric Pugh <ep...@upstate.com>.
Hi all,

I just committed a unit test that proves that ActionLoader deals with
default doPerform events differently from doMyevent in ActionEvents.

Currently, the doPerform event properly throws an exception that turbine
deals with by looking up the error screen.  But, if it is a doSomething
style
event, it eats the exception!

I believe VelocityActionEvent needs to throw an exception here:
catch (InvocationTargetException ite)
        {
            Throwable t = ite.getTargetException();
            log.error("Invokation of " + method , t);
        }

I wanted to run it by those who really grok the whole event stuff!

Eric Pugh



> -----Original Message-----
> From: Eric Pugh [mailto:epugh@upstate.com]
> Sent: Thursday, September 11, 2003 10:17 AM
> To: 'Turbine Developers List'
> Subject: Is Turbine.java eating an extra exception?
>
>
> Hi all,
>
> I am updating an app from some older 2.3 dev version.  In my
> various actions
> I always just throw any exception.  And previously they where
> trapped, and
> the user recieved my Error.vm page specified in TR.props:
> template.error=Error.vm
>
> Now, i upgraded to 2.3, and when my action event that throws
> an exception
> happens, the enclosing VelocityActionEvent class catches it as an
> InvocationTargetException ite.  That means it never gets
> thrown out of the
> VelocityActionEvent to Turbine.java where the catch statement would
> previously
>
>
> Here is the offending code (around line 190 of
> VelocityActionEvent.java):
>
>  try
>         {
>             method = getClass().getMethod(theButton, methodParams);
>             Object[] methodArgs = new Object[] { data, context };
>
>             if (log.isDebugEnabled())
>             {
>                 log.debug("Invoking " + method);
>             }
>
>             method.invoke(this, methodArgs);
>         }
>      <snip>
>         catch (InvocationTargetException ite)
>         {
>             Throwable t = ite.getTargetException();
>             log.error("Invokation of " + method , t);
>         }
>
> Therefore, the handleException method of Turbine.java never
> recieves the
> Exception, and setting the screen to the template.error never happens!
>
> It seems like tiher the InvocationTargetException should be
> rethrown, or the
> InvocationTargetException should then check for template.error...?
>
> Eric Pugh
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-dev-help@jakarta.apache.org


Is Turbine.java eating an extra exception?

Posted by Eric Pugh <ep...@upstate.com>.
Hi all,

I am updating an app from some older 2.3 dev version.  In my various actions
I always just throw any exception.  And previously they where trapped, and
the user recieved my Error.vm page specified in TR.props:
template.error=Error.vm

Now, i upgraded to 2.3, and when my action event that throws an exception
happens, the enclosing VelocityActionEvent class catches it as an
InvocationTargetException ite.  That means it never gets thrown out of the
VelocityActionEvent to Turbine.java where the catch statement would
previously


Here is the offending code (around line 190 of VelocityActionEvent.java):

 try
        {
            method = getClass().getMethod(theButton, methodParams);
            Object[] methodArgs = new Object[] { data, context };

            if (log.isDebugEnabled())
            {
                log.debug("Invoking " + method);
            }

            method.invoke(this, methodArgs);
        }
     <snip>
        catch (InvocationTargetException ite)
        {
            Throwable t = ite.getTargetException();
            log.error("Invokation of " + method , t);
        }

Therefore, the handleException method of Turbine.java never recieves the
Exception, and setting the screen to the template.error never happens!

It seems like tiher the InvocationTargetException should be rethrown, or the
InvocationTargetException should then check for template.error...?

Eric Pugh


Re: New machine old problems

Posted by Colin Chalmers <Co...@xs4all.nl>.
I basically checked out the fulcrum code this afternoon and tried to 
build it with maven beta-10 which I also downloaded today.

I have now got the missing Jars but  am still experiencing problems 
building Turbine-2.3. Looks like a prob. with Criteria Objects. will dig 
further.

Colin

Eric Pugh wrote:

>What fulcrum jars are you having problems with?  Are you trying to build the
>repackaged fulcrum code from CVS?
>
>Eric
>
>  
>
>>-----Original Message-----
>>From: Colin Chalmers [mailto:Colin.Chalmers@xs4all.nl]
>>Sent: Wednesday, September 10, 2003 5:26 PM
>>To: Turbine Developers List
>>Subject: New machine old problems
>>
>>
>>Hi all,
>>
>>I'm switching jobs,  machines & tools so I'm trying to get things
>>building again on a new machine. Hum, didn't quite back-up
>>everything I
>>guess.
>>
>>Well the problem is as follows:
>>I try to to build latest version using maven but have two unresolved
>>dependancies; latest Fulcrum and jdbc-2.0. The latter I can't seem to
>>find anywhere, yes I looked up SUN site but can only seem to find
>>javadocs! The former seems to choke on the following
>>
>>BUILD FAILED
>>file:/C:/Documents and
>>Settings/Administrator/.maven/plugins/maven-multiproject-
>>plugin-1.0-SNAPSHOT/:133:62: <j:set> This tag does not understand the
>>'name' att
>>ribute
>>
>>I'm using Beta 10 of Maven
>>
>>Can anyone help me out with these probs? Or send me the two Jars in
>>question (offline)?
>>
>>Thx
>>
>>Colin
>>
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
>
>
>
>  
>



RE: New machine old problems

Posted by Eric Pugh <ep...@upstate.com>.
What fulcrum jars are you having problems with?  Are you trying to build the
repackaged fulcrum code from CVS?

Eric

> -----Original Message-----
> From: Colin Chalmers [mailto:Colin.Chalmers@xs4all.nl]
> Sent: Wednesday, September 10, 2003 5:26 PM
> To: Turbine Developers List
> Subject: New machine old problems
>
>
> Hi all,
>
> I'm switching jobs,  machines & tools so I'm trying to get things
> building again on a new machine. Hum, didn't quite back-up
> everything I
> guess.
>
> Well the problem is as follows:
> I try to to build latest version using maven but have two unresolved
> dependancies; latest Fulcrum and jdbc-2.0. The latter I can't seem to
> find anywhere, yes I looked up SUN site but can only seem to find
> javadocs! The former seems to choke on the following
>
> BUILD FAILED
> file:/C:/Documents and
> Settings/Administrator/.maven/plugins/maven-multiproject-
> plugin-1.0-SNAPSHOT/:133:62: <j:set> This tag does not understand the
> 'name' att
> ribute
>
> I'm using Beta 10 of Maven
>
> Can anyone help me out with these probs? Or send me the two Jars in
> question (offline)?
>
> Thx
>
> Colin
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-dev-help@jakarta.apache.org