You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Weldon Washburn <we...@gmail.com> on 2006/10/17 18:02:08 UTC

[classlib] build fails: build-java.xml:143: java.lang.reflect.InvocationTargetException

I am at revision 464949.  Does anyone else see this problem?



BUILD FAILED
C:\t_harmony\classlib\trunk\build.xml:108: The following error occurred
while ex
ecuting this line:
C:\t_harmony\classlib\trunk\make\build-java.xml:143:
java.lang.reflect.Invocatio
nTargetException

Total time: 22 seconds


-- 
Weldon Washburn
Intel Middleware Products Division

Re: [classlib] build fails: build-java.xml:143: java.lang.reflect.InvocationTargetException

Posted by Alexei Zakharov <al...@gmail.com>.
Thanks, that helps.
ant -Dhy.javac.maxmem=512M doesn't work for some reason.

Regards,

2006/10/17, Andrew Zhang <zh...@gmail.com>:
> Please try to set ANT_OPTS = -Xms256M -Xmx512M
>
> I met the same problem 10 hours ago. :-)
>
>
> On 10/18/06, Alexei Zakharov <al...@gmail.com> wrote:
> >
> > Hmm, I've got the same problem. Current workaround is to switch back
> > to sun javac
> > ant -Dhy.javac.compiler=modern -Dhy.javac.maxmem=512M
> >
> > I am still trying...
> >
> > Regards,
> >
> > 2006/10/17, Weldon Washburn <we...@gmail.com>:
> > > I am at revision 464949.  Does anyone else see this problem?
> > >
> > >
> > >
> > > BUILD FAILED
> > > C:\t_harmony\classlib\trunk\build.xml:108: The following error occurred
> > > while ex
> > > ecuting this line:
> > > C:\t_harmony\classlib\trunk\make\build-java.xml:143:
> > > java.lang.reflect.Invocatio
> > > nTargetException
> > >
> > > Total time: 22 seconds


-- 
Alexei Zakharov,
Intel Enterprise Solutions Software Division, Russia

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [classlib] build fails: build-java.xml:143: java.lang.reflect.InvocationTargetException

Posted by Tim Ellison <t....@gmail.com>.
Nathan Beyer wrote:
> That's Linux only though, correct? You need a "IBM" PC for windows.

<joke>
	People have non-IBM PC's ?! :-0
</joke>

If you are an Eclipse-person you can work with IBM JDK and Eclipse by
getting the "Development Kit for Eclipse" from the same page.

Regards,
Tim

-- 

Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [classlib] build fails: build-java.xml:143: java.lang.reflect.InvocationTargetException

Posted by "Geir Magnusson Jr." <ge...@pobox.com>.
that is odd.  an "IBM" system.

I have to admit - it was cool to see the Dev package for Harmony listed 
there...

geir

Nathan Beyer wrote:
> That's Linux only though, correct? You need a "IBM" PC for windows.
> 
> There's also BEA's JDK. It's pretty good on Windows.
> 
> On 10/18/06, Tim Ellison <t....@gmail.com> wrote:
>> Geir Magnusson Jr. wrote:
>> > Where can we find the downloads for windows and linux?  I'll switch :)
>>
>> here
>>
>>         http://www.ibm.com/developerworks/java/jdk
>>
>>
>> Regards,
>> Tim
>>
>> -- 
>>
>> Tim Ellison (t.p.ellison@gmail.com)
>> IBM Java technology centre, UK.
>>
>> ---------------------------------------------------------------------
>> Terms of use : http://incubator.apache.org/harmony/mailing.html
>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
>> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
> 

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [classlib] build fails: build-java.xml:143: java.lang.reflect.InvocationTargetException

Posted by Nathan Beyer <nb...@gmail.com>.
That's Linux only though, correct? You need a "IBM" PC for windows.

There's also BEA's JDK. It's pretty good on Windows.

On 10/18/06, Tim Ellison <t....@gmail.com> wrote:
> Geir Magnusson Jr. wrote:
> > Where can we find the downloads for windows and linux?  I'll switch :)
>
> here
>
>         http://www.ibm.com/developerworks/java/jdk
>
>
> Regards,
> Tim
>
> --
>
> Tim Ellison (t.p.ellison@gmail.com)
> IBM Java technology centre, UK.
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [classlib] build fails: build-java.xml:143: java.lang.reflect.InvocationTargetException

Posted by Tim Ellison <t....@gmail.com>.
Geir Magnusson Jr. wrote:
> Where can we find the downloads for windows and linux?  I'll switch :)

here

	http://www.ibm.com/developerworks/java/jdk


Regards,
Tim

-- 

Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [classlib] build fails: build-java.xml:143: java.lang.reflect.InvocationTargetException

Posted by "Geir Magnusson Jr." <ge...@pobox.com>.

Tim Ellison wrote:
> Geir Magnusson Jr. wrote:
>> can we set this in the build somewhere ?  (why is ECJ such a pig? :)
> 
> Which JRE are you using to run Ant?  I'm using IBM 5.0 SR2 (without
> ANT_OPTS) and don't have this problem. 

Where can we find the downloads for windows and linux?  I'll switch :)

> I also see OOM during gen-report
> with Sun code, but not with IBM's.
> 
> I don't know what the default -Xmx is for Sun.
> 
> Regards,
> Tim
> 

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [classlib] build fails: build-java.xml:143: java.lang.reflect.InvocationTargetException

Posted by Alexei Zakharov <al...@gmail.com>.
> Which JRE are you using to run Ant?
> I don't know what the default -Xmx is for Sun.

I was using Sun JDK 1.5.0 indeed. There is some info about memory
limits in Sun VM at [1]:

<--
 maximum heap size:

    Smaller of 1/4th of the physical memory or 1GB. Before J2SE 5.0,
the default maximum heap size was 64MB. You can override this default
using the -Xmx command-line option.
<--

However, it is only valid if the parallel gabage collector is used.

[1] http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html

Regards,

2006/10/18, Tim Ellison <t....@gmail.com>:
> Geir Magnusson Jr. wrote:
> > can we set this in the build somewhere ?  (why is ECJ such a pig? :)
>
> Which JRE are you using to run Ant?  I'm using IBM 5.0 SR2 (without
> ANT_OPTS) and don't have this problem.  I also see OOM during gen-report
> with Sun code, but not with IBM's.
>
> I don't know what the default -Xmx is for Sun.
>
> Regards,
> Tim


-- 
Alexei Zakharov,
Intel Enterprise Solutions Software Division, Russia

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [classlib] build fails: build-java.xml:143: java.lang.reflect.InvocationTargetException

Posted by Tim Ellison <t....@gmail.com>.
Geir Magnusson Jr. wrote:
> can we set this in the build somewhere ?  (why is ECJ such a pig? :)

Which JRE are you using to run Ant?  I'm using IBM 5.0 SR2 (without
ANT_OPTS) and don't have this problem.  I also see OOM during gen-report
with Sun code, but not with IBM's.

I don't know what the default -Xmx is for Sun.

Regards,
Tim

-- 

Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [classlib] build fails: build-java.xml:143: java.lang.reflect.InvocationTargetException

Posted by "Geir Magnusson Jr." <ge...@pobox.com>.
can we set this in the build somewhere ?  (why is ECJ such a pig? :)

Andrew Zhang wrote:
> Please try to set ANT_OPTS = -Xms256M -Xmx512M
> 
> I met the same problem 10 hours ago. :-)
> 
> 
> On 10/18/06, Alexei Zakharov <al...@gmail.com> wrote:
>>
>> Hmm, I've got the same problem. Current workaround is to switch back
>> to sun javac
>> ant -Dhy.javac.compiler=modern -Dhy.javac.maxmem=512M
>>
>> I am still trying...
>>
>> Regards,
>>
>> 2006/10/17, Weldon Washburn <we...@gmail.com>:
>> > I am at revision 464949.  Does anyone else see this problem?
>> >
>> >
>> >
>> > BUILD FAILED
>> > C:\t_harmony\classlib\trunk\build.xml:108: The following error occurred
>> > while ex
>> > ecuting this line:
>> > C:\t_harmony\classlib\trunk\make\build-java.xml:143:
>> > java.lang.reflect.Invocatio
>> > nTargetException
>> >
>> > Total time: 22 seconds
>>
>>
>> -- 
>> Alexei Zakharov,
>> Intel Enterprise Solutions Software Division, Russia
>>
>> ---------------------------------------------------------------------
>> Terms of use : http://incubator.apache.org/harmony/mailing.html
>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
>> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>>
>>
> 
> 

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [classlib] build fails: build-java.xml:143: java.lang.reflect.InvocationTargetException

Posted by Andrew Zhang <zh...@gmail.com>.
On 10/18/06, Weldon Washburn <we...@gmail.com> wrote:
>
> Thanks!  I added ANT_OPTS = -Xms256M -Xmx512M.  It built sucessfully.  It
> gave a rather strange, misleading error message for a memory problem (?!?)


ya. :) I guess all the exception thrown by reflection is
InvocationTargetException. At least it should print something like caused by
or print the e.getTargetException().

On 10/17/06, Andrew Zhang <zh...@gmail.com> wrote:
> >
> > Please try to set ANT_OPTS = -Xms256M -Xmx512M
> >
> > I met the same problem 10 hours ago. :-)
> >
> >
> > On 10/18/06, Alexei Zakharov <al...@gmail.com> wrote:
> > >
> > > Hmm, I've got the same problem. Current workaround is to switch back
> > > to sun javac
> > > ant -Dhy.javac.compiler=modern -Dhy.javac.maxmem=512M
> > >
> > > I am still trying...
> > >
> > > Regards,
> > >
> > > 2006/10/17, Weldon Washburn <we...@gmail.com>:
> > > > I am at revision 464949.  Does anyone else see this problem?
> > > >
> > > >
> > > >
> > > > BUILD FAILED
> > > > C:\t_harmony\classlib\trunk\build.xml:108: The following error
> > occurred
> > > > while ex
> > > > ecuting this line:
> > > > C:\t_harmony\classlib\trunk\make\build-java.xml:143:
> > > > java.lang.reflect.Invocatio
> > > > nTargetException
> > > >
> > > > Total time: 22 seconds
> > >
> > >
> > > --
> > > Alexei Zakharov,
> > > Intel Enterprise Solutions Software Division, Russia
> > >
> > > ---------------------------------------------------------------------
> > > Terms of use : http://incubator.apache.org/harmony/mailing.html
> > > To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> > > For additional commands, e-mail: harmony-dev-help@incubator.apache.org
> > >
> > >
> >
> >
> > --
> > Best regards,
> > Andrew Zhang
> >
> >
>
>
> --
> Weldon Washburn
> Intel Middleware Products Division
>
>


-- 
Best regards,
Andrew Zhang

Re: [classlib] build fails: build-java.xml:143: java.lang.reflect.InvocationTargetException

Posted by Weldon Washburn <we...@gmail.com>.
Thanks!  I added ANT_OPTS = -Xms256M -Xmx512M.  It built sucessfully.  It
gave a rather strange, misleading error message for a memory problem (?!?)

On 10/17/06, Andrew Zhang <zh...@gmail.com> wrote:
>
> Please try to set ANT_OPTS = -Xms256M -Xmx512M
>
> I met the same problem 10 hours ago. :-)
>
>
> On 10/18/06, Alexei Zakharov <al...@gmail.com> wrote:
> >
> > Hmm, I've got the same problem. Current workaround is to switch back
> > to sun javac
> > ant -Dhy.javac.compiler=modern -Dhy.javac.maxmem=512M
> >
> > I am still trying...
> >
> > Regards,
> >
> > 2006/10/17, Weldon Washburn <we...@gmail.com>:
> > > I am at revision 464949.  Does anyone else see this problem?
> > >
> > >
> > >
> > > BUILD FAILED
> > > C:\t_harmony\classlib\trunk\build.xml:108: The following error
> occurred
> > > while ex
> > > ecuting this line:
> > > C:\t_harmony\classlib\trunk\make\build-java.xml:143:
> > > java.lang.reflect.Invocatio
> > > nTargetException
> > >
> > > Total time: 22 seconds
> >
> >
> > --
> > Alexei Zakharov,
> > Intel Enterprise Solutions Software Division, Russia
> >
> > ---------------------------------------------------------------------
> > Terms of use : http://incubator.apache.org/harmony/mailing.html
> > To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> > For additional commands, e-mail: harmony-dev-help@incubator.apache.org
> >
> >
>
>
> --
> Best regards,
> Andrew Zhang
>
>


-- 
Weldon Washburn
Intel Middleware Products Division

Re: [classlib] build fails: build-java.xml:143: java.lang.reflect.InvocationTargetException

Posted by Andrew Zhang <zh...@gmail.com>.
Please try to set ANT_OPTS = -Xms256M -Xmx512M

I met the same problem 10 hours ago. :-)


On 10/18/06, Alexei Zakharov <al...@gmail.com> wrote:
>
> Hmm, I've got the same problem. Current workaround is to switch back
> to sun javac
> ant -Dhy.javac.compiler=modern -Dhy.javac.maxmem=512M
>
> I am still trying...
>
> Regards,
>
> 2006/10/17, Weldon Washburn <we...@gmail.com>:
> > I am at revision 464949.  Does anyone else see this problem?
> >
> >
> >
> > BUILD FAILED
> > C:\t_harmony\classlib\trunk\build.xml:108: The following error occurred
> > while ex
> > ecuting this line:
> > C:\t_harmony\classlib\trunk\make\build-java.xml:143:
> > java.lang.reflect.Invocatio
> > nTargetException
> >
> > Total time: 22 seconds
>
>
> --
> Alexei Zakharov,
> Intel Enterprise Solutions Software Division, Russia
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>


-- 
Best regards,
Andrew Zhang

Re: [classlib] build fails: build-java.xml:143: java.lang.reflect.InvocationTargetException

Posted by Alexei Zakharov <al...@gmail.com>.
Hmm, I've got the same problem. Current workaround is to switch back
to sun javac
ant -Dhy.javac.compiler=modern -Dhy.javac.maxmem=512M

I am still trying...

Regards,

2006/10/17, Weldon Washburn <we...@gmail.com>:
> I am at revision 464949.  Does anyone else see this problem?
>
>
>
> BUILD FAILED
> C:\t_harmony\classlib\trunk\build.xml:108: The following error occurred
> while ex
> ecuting this line:
> C:\t_harmony\classlib\trunk\make\build-java.xml:143:
> java.lang.reflect.Invocatio
> nTargetException
>
> Total time: 22 seconds


-- 
Alexei Zakharov,
Intel Enterprise Solutions Software Division, Russia

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org