Re: Error building 3.0?

From: Michael Gentry (mgentr..asslight.net)
Date: Fri Jan 08 2010 - 09:13:44 EST

  • Next message: Aristedes Maniatis: "Re: Error building 3.0?"

    I'm still having trouble doing a full build. I checked out all the
    code fresh from SVN then did a "mvn clean" followed by a "mvn
    -Dmaven.test.skip=true install". It looks like it built Cayenne +
    Modeler, but fails on the tutorial. Any suggestions? Just ignore?
    Error output follows...

    Thanks!

    mrg

    [INFO] Building Cayenne Tutorial
    [INFO] task-segment: [install]
    [INFO] ------------------------------------------------------------------------
    [INFO] [resources:resources]
    [INFO] Using default encoding to copy filtered resources.
    [INFO] [compiler:compile]
    [INFO] Compiling 9 source files to
    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/target/classes
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Compilation failure

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/persistent/auto/_Artist.java:[6,25]
    cannot find symbol
    symbol : class CayenneDataObject
    location: package org.apache.cayenne

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/persistent/auto/_Artist.java:[15,38]
    cannot find symbol
    symbol: class CayenneDataObject
    public abstract class _Artist extends CayenneDataObject {

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/persistent/auto/_Painting.java:[3,25]
    cannot find symbol
    symbol : class CayenneDataObject
    location: package org.apache.cayenne

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/persistent/auto/_Painting.java:[13,40]
    cannot find symbol
    symbol: class CayenneDataObject
    public abstract class _Painting extends CayenneDataObject {

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/persistent/auto/_Gallery.java:[5,25]
    cannot find symbol
    symbol : class CayenneDataObject
    location: package org.apache.cayenne

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/persistent/auto/_Gallery.java:[14,39]
    cannot find symbol
    symbol: class CayenneDataObject
    public abstract class _Gallery extends CayenneDataObject {

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[26,25]
    cannot find symbol
    symbol : class DataObjectUtils
    location: package org.apache.cayenne

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[27,25]
    cannot find symbol
    symbol : class ObjectContext
    location: package org.apache.cayenne

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[28,32]
    package org.apache.cayenne.access does not exist

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[29,29]
    package org.apache.cayenne.exp does not exist

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[30,29]
    package org.apache.cayenne.exp does not exist

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[31,31]
    package org.apache.cayenne.query does not exist

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[48,32]
    cannot find symbol
    symbol : class ObjectContext
    location: class org.apache.cayenne.tutorial.Main

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[76,28]
    cannot find symbol
    symbol : class ObjectContext
    location: class org.apache.cayenne.tutorial.Main

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[97,28]
    cannot find symbol
    symbol : class ObjectContext
    location: class org.apache.cayenne.tutorial.Main

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/persistent/auto/_Artist.java:[24,8]
    cannot find symbol
    symbol : method writeProperty(java.lang.String,java.util.Date)
    location: class org.apache.cayenne.tutorial.persistent.auto._Artist

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/persistent/auto/_Artist.java:[27,21]
    cannot find symbol
    symbol : method readProperty(java.lang.String)
    location: class org.apache.cayenne.tutorial.persistent.auto._Artist

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/persistent/auto/_Artist.java:[31,8]
    cannot find symbol
    symbol : method writeProperty(java.lang.String,java.lang.String)
    location: class org.apache.cayenne.tutorial.persistent.auto._Artist

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/persistent/auto/_Artist.java:[34,23]
    cannot find symbol
    symbol : method readProperty(java.lang.String)
    location: class org.apache.cayenne.tutorial.persistent.auto._Artist

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/persistent/auto/_Artist.java:[38,8]
    cannot find symbol
    symbol : method
    addToManyTarget(java.lang.String,org.apache.cayenne.tutorial.persistent.Painting,boolean)
    location: class org.apache.cayenne.tutorial.persistent.auto._Artist

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/persistent/auto/_Artist.java:[41,8]
    cannot find symbol
    symbol : method
    removeToManyTarget(java.lang.String,org.apache.cayenne.tutorial.persistent.Painting,boolean)
    location: class org.apache.cayenne.tutorial.persistent.auto._Artist

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/persistent/auto/_Artist.java:[44,16]
    type parameter org.apache.cayenne.tutorial.persistent.Painting is not
    within its bound

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/persistent/auto/_Artist.java:[45,31]
    cannot find symbol
    symbol : method readProperty(java.lang.String)
    location: class org.apache.cayenne.tutorial.persistent.auto._Artist

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/persistent/auto/_Painting.java:[22,8]
    cannot find symbol
    symbol : method writeProperty(java.lang.String,java.lang.String)
    location: class org.apache.cayenne.tutorial.persistent.auto._Painting

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/persistent/auto/_Painting.java:[25,23]
    cannot find symbol
    symbol : method readProperty(java.lang.String)
    location: class org.apache.cayenne.tutorial.persistent.auto._Painting

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/persistent/auto/_Painting.java:[29,8]
    cannot find symbol
    symbol : method
    setToOneTarget(java.lang.String,org.apache.cayenne.tutorial.persistent.Artist,boolean)
    location: class org.apache.cayenne.tutorial.persistent.auto._Painting

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/persistent/auto/_Painting.java:[33,23]
    cannot find symbol
    symbol : method readProperty(java.lang.String)
    location: class org.apache.cayenne.tutorial.persistent.auto._Painting

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/persistent/auto/_Painting.java:[38,8]
    cannot find symbol
    symbol : method
    setToOneTarget(java.lang.String,org.apache.cayenne.tutorial.persistent.Gallery,boolean)
    location: class org.apache.cayenne.tutorial.persistent.auto._Painting

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/persistent/auto/_Painting.java:[42,24]
    cannot find symbol
    symbol : method readProperty(java.lang.String)
    location: class org.apache.cayenne.tutorial.persistent.auto._Painting

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/persistent/auto/_Gallery.java:[22,8]
    cannot find symbol
    symbol : method writeProperty(java.lang.String,java.lang.String)
    location: class org.apache.cayenne.tutorial.persistent.auto._Gallery

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/persistent/auto/_Gallery.java:[25,23]
    cannot find symbol
    symbol : method readProperty(java.lang.String)
    location: class org.apache.cayenne.tutorial.persistent.auto._Gallery

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/persistent/auto/_Gallery.java:[29,8]
    cannot find symbol
    symbol : method
    addToManyTarget(java.lang.String,org.apache.cayenne.tutorial.persistent.Painting,boolean)
    location: class org.apache.cayenne.tutorial.persistent.auto._Gallery

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/persistent/auto/_Gallery.java:[32,8]
    cannot find symbol
    symbol : method
    removeToManyTarget(java.lang.String,org.apache.cayenne.tutorial.persistent.Painting,boolean)
    location: class org.apache.cayenne.tutorial.persistent.auto._Gallery

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/persistent/auto/_Gallery.java:[35,16]
    type parameter org.apache.cayenne.tutorial.persistent.Painting is not
    within its bound

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/persistent/auto/_Gallery.java:[36,31]
    cannot find symbol
    symbol : method readProperty(java.lang.String)
    location: class org.apache.cayenne.tutorial.persistent.auto._Gallery

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[41,2]
    cannot find symbol
    symbol : class ObjectContext
    location: class org.apache.cayenne.tutorial.Main

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[41,26]
    cannot find symbol
    symbol : variable DataContext
    location: class org.apache.cayenne.tutorial.Main

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[78,2]
    cannot find symbol
    symbol : class SelectQuery
    location: class org.apache.cayenne.tutorial.Main

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[78,28]
    cannot find symbol
    symbol : class SelectQuery
    location: class org.apache.cayenne.tutorial.Main

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[79,7]
    type parameter org.apache.cayenne.tutorial.persistent.Painting is not
    within its bound

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[81,2]
    cannot find symbol
    symbol : class Expression
    location: class org.apache.cayenne.tutorial.Main

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[81,26]
    cannot find symbol
    symbol : variable ExpressionFactory
    location: class org.apache.cayenne.tutorial.Main

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[83,2]
    cannot find symbol
    symbol : class SelectQuery
    location: class org.apache.cayenne.tutorial.Main

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[83,28]
    cannot find symbol
    symbol : class SelectQuery
    location: class org.apache.cayenne.tutorial.Main

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[84,7]
    type parameter org.apache.cayenne.tutorial.persistent.Painting is not
    within its bound

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[89,2]
    cannot find symbol
    symbol : class Expression
    location: class org.apache.cayenne.tutorial.Main

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[89,26]
    cannot find symbol
    symbol : variable Expression
    location: class org.apache.cayenne.tutorial.Main

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[93,2]
    cannot find symbol
    symbol : class SelectQuery
    location: class org.apache.cayenne.tutorial.Main

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[93,28]
    cannot find symbol
    symbol : class SelectQuery
    location: class org.apache.cayenne.tutorial.Main

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[94,7]
    type parameter org.apache.cayenne.tutorial.persistent.Painting is not
    within its bound

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[99,2]
    cannot find symbol
    symbol : class Expression
    location: class org.apache.cayenne.tutorial.Main

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[99,25]
    cannot find symbol
    symbol : variable ExpressionFactory
    location: class org.apache.cayenne.tutorial.Main

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[101,2]
    cannot find symbol
    symbol : class SelectQuery
    location: class org.apache.cayenne.tutorial.Main

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[101,35]
    cannot find symbol
    symbol : class SelectQuery
    location: class org.apache.cayenne.tutorial.Main

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[102,28]
    cannot find symbol
    symbol : variable DataObjectUtils
    location: class org.apache.cayenne.tutorial.Main

    /Users/mgentry/Projects/Eclipse/Cayenne30/tutorials/tutorial/src/main/java/org/apache/cayenne/tutorial/Main.java:[105,14]
    operator != cannot be applied to
    org.apache.cayenne.tutorial.persistent.Artist,<nulltype>

    On Tue, Dec 29, 2009 at 9:27 AM, Andrus Adamchik <andru..bjectstyle.org> wrote:
    > I suggest "mvn clean install" from the checkout root. This should reset any
    > stale installed modules.
    >
    > On Dec 29, 2009, at 4:21 PM, Michael Gentry wrote:
    >
    >> Made it further, but still failed for me.  Thanks for the Maven tip,
    >> though.  I guess something changed over the past week that pushed it
    >> just over the default settings.
    >>
    >> mrg
    >>
    >>
    >> On Tue, Dec 29, 2009 at 8:56 AM, Andrus Adamchik <andru..bjectstyle.org>
    >> wrote:
    >>>
    >>> You need to have enough memory for the build:
    >>>
    >>> $ cat ~/.mavenrc
    >>> MAVEN_OPTS="-Xmx512m
    >>>
    >>> Andrus
    >>>
    >>>
    >>> On Dec 29, 2009, at 3:49 PM, Michael Gentry wrote:
    >>>
    >>>> I did an update on the 3.0 branch followed by a "mvn clean; mvn"
    >>>> (which worked last week), but now it errors out for me:
    >>>>
    >>>> [INFO] [resources:resources]
    >>>> [INFO] Using default encoding to copy filtered resources.
    >>>> [INFO] [compiler:compile]
    >>>> [INFO] Compiling 987 source files to
    >>>>
    >>>>
    >>>> /Users/mgentry/Projects/Eclipse/Cayenne30/framework/cayenne-jdk1.5-unpublished/target/classes
    >>>> Exception in thread "Keep-Alive-Timer" java.lang.OutOfMemoryError:
    >>>> Java heap space
    >>>>       at java.util.ArrayList.<init>(ArrayList.java:113)
    >>>>       at java.util.ArrayList.<init>(ArrayList.java:120)
    >>>>       at sun.net.www.http.KeepAliveCache.run(KeepAliveCache.java:165)
    >>>>       at java.lang.Thread.run(Thread.java:613)
    >>>> [INFO]
    >>>> ------------------------------------------------------------------------
    >>>> [ERROR] BUILD FAILURE
    >>>> [INFO]
    >>>> ------------------------------------------------------------------------
    >>>> [INFO] Compilation failure
    >>>> Failure executing javac, but could not parse the error:
    >>>>
    >>>>
    >>>> The system is out of resources.
    >>>> Consult the following stack trace for details.
    >>>> java.lang.OutOfMemoryError: Java heap space
    >>>>       at
    >>>> com.sun.tools.javac.code.Scope$ImportScope.makeEntry(Scope.java:324)
    >>>>
    >>>>
    >>>> Is anyone else seeing this?  I haven't done anything to my environment
    >>>> except let the machine sleep over the Christmas break ...
    >>>>
    >>>> Thanks!
    >>>>
    >>>> mrg
    >>>>
    >>>
    >>>
    >>
    >
    >



    This archive was generated by hypermail 2.0.0 : Fri Jan 08 2010 - 09:14:38 EST