[Dojo-interest] Re: build errors

James Burke jburke at dojotoolkit.org
Mon Nov 6 18:14:11 MST 2006


You might be able to just upgrade the 0.4 buildscripts directory (and
possible the tools directory), and still use the Dojo 0.3.1 source for
your application.

James

On 11/6/06, Aaron Evans <aaronmevans at gmail.com> wrote:
> Ok, I guess I will bite the bullet and invest the time to get upgraded to 0.4.
>
> I was hoping to put that off for a little while longer.  At some
> point, you guys are going to have to support older releases.  I
> suppose you can avoid having to do so until you release 1.0, but
> still.
>
> Speaking of that, IMHO, you guys have a large enough production
> install base that it is time for you to bite the bullet and call one
> of these releases 1.0.  :)
>
> On 11/6/06, Jesse Kuhnert <jkuhnert at gmail.com> wrote:
> > I mean it's working in svn trunk. I can't tell you what to do beyond that.
> > ;)
> >
> >
> > On 11/6/06, Aaron Evans <aaronmevans at gmail.com > wrote:
> > > What do you mean, like I have to upgrade? Or it should be working for 0.3?
> > >
> > > On 11/6/06, Jesse Kuhnert <jkuhnert at gmail.com> wrote:
> > > > Oh....All of those things are fixed now, so not sure what to say..
> > > >
> > > >
> > > > On 11/6/06, Aaron Evans < aaronmevans at gmail.com > wrote:
> > > > > No, this is a 0.3 build.
> > > > >
> > > > > On 11/6/06, Jesse Kuhnert < jkuhnert at gmail.com > wrote:
> > > > > > Are you using the latest build stuff from svn trunk?
> > > > > >
> > > > > >
> > > > > > On 11/6/06, Aaron Evans <aaronmevans at gmail.com > wrote:
> > > > > > >
> > > > > > > Ok, I logged a bug.
> > > > > > >
> > > > > > > Next problem (and this is big one):
> > > > > > >
> > > > > > >
> > > > > > > Although I fixed all the errors above, a java stack trace gets
> > written
> > > > > > > to the release/dojo/dojo.js file even though the build says it
> > > > > > > completed successfully.
> > > > > > >
> > > > > > > No errors in the build output but there is this little bit written
> > to
> > > > > > > standard error:
> > > > > > >
> > > > > > >      [java] Java Result: 1
> > > > > > >
> > > > > > > Clearly this is a return code of 1 indicating that the java task
> > > > > > > didn't workout, so the build should have failed.
> > > > > > >
> > > > > > > I'm using:
> > > > > > > OS: Fedora Core 2 (I think. Either that or 3)
> > > > > > > Java 1.5
> > > > > > > Ant 1.6.2
> > > > > > > Python 2.3.3
> > > > > > >
> > > > > > > Here is the generated dojo.js file.
> > > > > > >
> > > > > > > /*
> > > > > > >         Copyright (c) 2004-2006, The Dojo Foundation
> > > > > > >         All Rights Reserved.
> > > > > > >
> > > > > > >         Licensed under the Academic Free License version 2.1 or
> > above
> > > > OR
> > > > > > the
> > > > > > >         modified BSD license. For more information on Dojo
> > licensing,
> > > > see:
> > > > > > >
> > > > > > >
> > > > > > http://dojotoolkit.org/community/licensing.shtml
> > > > > > > */
> > > > > > >
> > > > > > > /*
> > > > > > >         This is a compiled version of Dojo, built for deployment
> > and
> > > > not
> > > > > > for
> > > > > > >         development. To get an editable version, please visit:
> > > > > > >
> > > > > > >                 http://dojotoolkit.org
> > > > > > >
> > > > > > >         for documentation and information on getting the source.
> > > > > > > */
> > > > > > >
> > > > > > > Exception in thread "main" java.lang.ClassFormatError: Invalid
> > method
> > > > > > > Code length 89027 in class file org/mozilla/javascript/gen/c1
> > > > > > >         at java.lang.ClassLoader.defineClass1
> > (Native
> > > > > > Method)
> > > > > > >         at
> > > > > >
> > java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> > > > > > >         at
> > > > > >
> > java.lang.ClassLoader.defineClass(ClassLoader.java:465)
> > > > > > >         at
> > > > > >
> > org.mozilla.javascript.DefiningClassLoader.defineClass
> > > > > > (DefiningClassLoader.java :57)
> > > > > > >         at
> > > > > >
> > > >
> > org.mozilla.javascript.optimizer.Codegen.defineClass(Codegen.java:122)
> > > > > > >         at
> > > > > >
> > > >
> > org.mozilla.javascript.optimizer.Codegen.createScriptObject
> > (Codegen.java:77)
> > > > > > >         at
> > org.mozilla.javascript.Context.compileImpl
> > > > > > (Context.java:2265)
> > > > > > >         at
> > > > > > org.mozilla.javascript.Context.compileString
> > > > (Context.java:1314)
> > > > > > >         at
> > > > > >
> > > >
> > org.mozilla.javascript.Context.compileString(Context.java:1303)
> > > > > > >         at
> > > > > >
> > > >
> > org.mozilla.javascript.tools.shell.Main.loadScriptFromSource
> > > > > > (Main.java :487)
> > > > > > >         at
> > > > > >
> > > >
> > org.mozilla.javascript.tools.shell.Main.processFileSecure(Main.java:403)
> > > > > > >         at
> > > > > >
> > > >
> > org.mozilla.javascript.tools.shell.Main.processFile(Main.java:369)
> > > > > > >         at
> > > > > >
> > org.mozilla.javascript.tools.shell.Main.processSource
> > > > > > (Main.java:360)
> > > > > > >         at
> > > > > >
> > > >
> > org.mozilla.javascript.tools.shell.Main.processFiles(Main.java:153)
> > > > > > >         at
> > > > > > org.mozilla.javascript.tools.shell.Main$IProxy.run
> > > > (Main.java:83)
> > > > > > >         at org.mozilla.javascript.Context.call
> > > > > > (Context.java:528)
> > > > > > >         at
> > > > > >
> > > >
> > org.mozilla.javascript.ContextFactory.call(ContextFactory.java
> > :447)
> > > > > > >         at
> > > > > >
> > > >
> > org.mozilla.javascript.tools.shell.Main.exec(Main.java:136)
> > > > > > >         at
> > > > org.mozilla.javascript.tools.shell.Main.main
> > > > > > ( Main.java:114)
> > > > > > >
> > > > > > >
> > > > > > > -aaron
> > > > > > >
> > > > > > > On 11/6/06, Jesse Kuhnert <jkuhnert at gmail.com > wrote:
> > > > > > > > Would it be possible for you to file a bug in trac with exact
> > steps
> > > > to
> > > > > > > > rep-produce? I don't like build processes lying about success
> > > > either.
> > > > > > > >
> > > > > > > > http://trac.dojotoolkit.org
> > > > > > > >
> > > > > > > >
> > > > > > > > On 11/6/06, Aaron Evans < aaronmevans at gmail.com> wrote:
> > > > > > > > >
> > > > > > > > > So to answer my own questions, see inline.
> > > > > > > > >
> > > > > > > > > On 11/6/06, Aaron Evans < aaronmevans at gmail.com > wrote:
> > > > > > > > > > I am getting this error when I try to do a build (on linux):
> > > > > > > > > >
> > > > > > > > > > [script] /bin/sh: line 1: rst2html.py: command not found
> > > > > > > > > >
> > > > > > > > > > So do I need to download and install docutils from
> > sourceforge
> > > > and
> > > > > > > > install?
> > > > > > > > >
> > > > > > > > > Yes.  Go to:
> > > > > > > > >
> > > > > > > > > http://docutils.sourceforge.net/
> > > > > > > > >
> > > > > > > > > Download and follow install instructions.
> > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Later in the build output I get:
> > > > > > > > > >
> > > > > > > > > > list-profile-deps:
> > > > > > > > > >      [echo] load exception for:
> > ../src/graphics/__package__.js,
> > > > > > > > > > exception: java.lang.NullPointerException
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > > This is because I blindly included "dojo.graphics.* " like in
> > the
> > > > > > > > > example online.  The example online is either too new for my
> > dojo
> > > > > > > > > version (I am on 0.3 right now) or it is out of date.
> > > > > > > > >
> > > > > > > > > > Hopefully that is the result of the first error and that
> > this
> > > > will
> > > > > > go
> > > > > > > > > > away when I fix that.
> > > > > > > > > >
> > > > > > > > > > Because this leads to:
> > > > > > > > > >
> > > > > > > > > > compress:
> > > > > > > > > >      [echo] profileFile: ./profiles/tpn.csa.profile.js
> > > > > > > > > >    [concat] File
> > > > > > > > /home/aaron/dojo-build/dojo/buildscripts/load
> > does
> > > > not
> > > > > > > > exist.
> > > > > > > > > >    [concat] File
> > > > > > > >
> > /home/aaron/dojo-build/dojo/buildscripts/exception
> > > > > > > > > > does not exist.
> > > > > > > > > >    [concat] File
> > > > > > > > /home/aaron/dojo-build/dojo/buildscripts/for:
> > does
> > > > not
> > > > > > > > exist.
> > > > > > > > > >    [concat] File
> > > > > > > >
> > /home/aaron/dojo-build/dojo/buildscripts/exception:
> > > > > > > > > > does not exist.
> > > > > > > > > >    [concat] File
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > /home/aaron/dojo-build/dojo/buildscripts/java.lang.NullPointerException
> > > > > > > > > > does not exist.
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > And the build claims success even though clearly, there were
> > > > issues.
> > > > > > > > >
> > > > > > > > > The dojo build will lie to you and say it completed
> > successfully
> > > > even
> > > > > > > > > if it doesn't.
> > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > -aaron
> > > > > > > > > >
> > > > > > > > >
> > _______________________________________________
> > > > > > > > > Dojo FAQ: http://dojo.jot.com/FAQ
> > > > > > > > > Dojo Book:
> > > > http://manual.dojotoolkit.org/DojoDotBook
> > > > > > > > > Dojo-interest at dojotoolkit.org
> > > > > > > > >
> > > > http://dojotoolkit.org/mailman/listinfo/dojo-interest
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > Jesse Kuhnert
> > > > > > > > Tapestry/Dojo/(and a dash of TestNG), team member/developer
> > > > > > > >
> > > > > > > > Open source based consulting work centered around
> > > > > > > > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> > > > > > > > _______________________________________________
> > > > > > > > Dojo FAQ: http://dojo.jot.com/FAQ
> > > > > > > > Dojo Book:
> > > > http://manual.dojotoolkit.org/DojoDotBook
> > > > > > > > Dojo-interest at dojotoolkit.org
> > > > > > > >
> > > > http://dojotoolkit.org/mailman/listinfo/dojo-interest
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > _______________________________________________
> > > > > > > Dojo FAQ: http://dojo.jot.com/FAQ
> > > > > > > Dojo Book:
> > http://manual.dojotoolkit.org/DojoDotBook
> > > > > > > Dojo-interest at dojotoolkit.org
> > > > > > >
> > http://dojotoolkit.org/mailman/listinfo/dojo-interest
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Jesse Kuhnert
> > > > > > Tapestry/Dojo/(and a dash of TestNG), team member/developer
> > > > > >
> > > > > > Open source based consulting work centered around
> > > > > > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> > > > > > _______________________________________________
> > > > > > Dojo FAQ: http://dojo.jot.com/FAQ
> > > > > > Dojo Book:
> > http://manual.dojotoolkit.org/DojoDotBook
> > > > > > Dojo-interest at dojotoolkit.org
> > > > > >
> > http://dojotoolkit.org/mailman/listinfo/dojo-interest
> > > > > >
> > > > > >
> > > > > >
> > > > > _______________________________________________
> > > > > Dojo FAQ: http://dojo.jot.com/FAQ
> > > > > Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> > > > > Dojo-interest at dojotoolkit.org
> > > > > http://dojotoolkit.org/mailman/listinfo/dojo-interest
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Jesse Kuhnert
> > > > Tapestry/Dojo/(and a dash of TestNG), team member/developer
> > > >
> > > > Open source based consulting work centered around
> > > > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> > > > _______________________________________________
> > > > Dojo FAQ: http://dojo.jot.com/FAQ
> > > > Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> > > > Dojo-interest at dojotoolkit.org
> > > > http://dojotoolkit.org/mailman/listinfo/dojo-interest
> > > >
> > > >
> > > >
> > > _______________________________________________
> > > Dojo FAQ: http://dojo.jot.com/FAQ
> > > Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> > > Dojo-interest at dojotoolkit.org
> > > http://dojotoolkit.org/mailman/listinfo/dojo-interest
> > >
> >
> >
> >
> > --
> > Jesse Kuhnert
> > Tapestry/Dojo/(and a dash of TestNG), team member/developer
> >
> > Open source based consulting work centered around
> > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> > _______________________________________________
> > Dojo FAQ: http://dojo.jot.com/FAQ
> > Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> > Dojo-interest at dojotoolkit.org
> > http://dojotoolkit.org/mailman/listinfo/dojo-interest
> >
> >
> >
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> Dojo-interest at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>


More information about the Dojo-interest mailing list