geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ying Liao <yli...@ncsu.edu>
Subject Re: [geronimo-projects] Java Mail Portlet
Date Mon, 03 Dec 2007 05:04:28 GMT

Hi,

We found a way to prevent the error we posted earlier, but new "FATAL ERROR"
is thrown out. 
It seems the permgen space is "out of memory". But we did set
MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=128m" as indicated in ~/.bashrc. The
error message is listed below, thanks for any help.

Ying Liao





[INFO] PermGen space
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.OutOfMemoryError: PermGen space
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
        at java.lang.Class.getConstructor0(Class.java:2671)
        at java.lang.Class.newInstance0(Class.java:321)
        at java.lang.Class.newInstance(Class.java:303)
        at
sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:381)
        at java.security.AccessController.doPrivileged(Native Method)
        at
sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:377)
        at
sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(MethodAccessorGenerator.java:95)
        at
sun.reflect.ReflectionFactory.newConstructorForSerialization(ReflectionFactory.java:313)
        at
java.io.ObjectStreamClass.getSerializableConstructor(ObjectStreamClass.java:1299)
        at java.io.ObjectStreamClass.access$1500(ObjectStreamClass.java:52)
        at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:420)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:400)
        at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:297)
        at
java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:531)
        at
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
        at
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
        at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
        at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
        at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
        at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
        at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
        at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
        at
org.apache.geronimo.gbean.GBeanData$V0Externalizable.readExternal(GBeanData.java:277)
        at
org.apache.geronimo.gbean.GBeanData.readExternal(GBeanData.java:247)
        at
org.apache.geronimo.kernel.config.SerializedGBeanState.loadGBeans(SerializedGBeanState.java:111)
        at
org.apache.geronimo.kernel.config.SerializedGBeanState.getGBeans(SerializedGBeanState.java:65)
        at
org.apache.geronimo.kernel.config.ConfigurationData.getGBeans(ConfigurationData.java:171)
        at
org.apache.geronimo.kernel.config.Configuration.<init>(Configuration.java:278)
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 6 minutes 19 seconds
[INFO] Finished at: Sun Dec 02 23:46:31 GMT-05:00 2007
[INFO] Final Memory: 139M/278M
[INFO]
------------------------------------------------------------------------


Ying Liao wrote:
> 
> Hi,
> 
> We are working on Java Mail Portlet and now we are stacked in building
> Geronimo from source.
> We tried to build Geronimo v2.0.2 from source in both Linux and Windows.
> When building Geronimo in Linux, the first error was:
> Downloading:
> http://repo1.maven.org/maven2/org/apache/xbean/xbean-naming/3.2-r579367/xbean-naming-3.2-r579367.jar
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> 
> Missing:
> ----------
> 1) org.apache.xbean:xbean-naming:jar:3.2-r579367
> 
>   Try downloading the file manually from the project website.
> 
>   Then, install it using the command:
>       mvn install:install-file -DgroupId=org.apache.xbean
> -DartifactId=xbean-naming \
>           -Dversion=3.2-r579367 -Dpackaging=jar -Dfile=/path/to/file
> Alternatively, if you host your own repository you can deploy
> the file
> there:       mvn deploy:deploy-file -DgroupId=org.apache.xbean
> -DartifactId=xbean-naming \
>           -Dversion=3.2-r579367 -Dpackaging=jar -Dfile=/path/to/file \
>            -Durl=[url] -DrepositoryId=[id]
> 
>   Path to dependency:
>         1) org.apache.geronimo.configs:client-corba-yoko:car:2.0.2
>         2) org.apache.geronimo.configs:openejb-corba-deployer:car:2.0.2
>         3) org.apache.geronimo.configs:j2ee-deployer:car:2.0.2
>         4) org.apache.geronimo.modules:geronimo-client:jar:2.0.2
>         5) org.apache.geronimo.modules:geronimo-naming:jar:2.0.2
>         6) org.apache.xbean:xbean-naming:jar:3.2-r579367
> 
> ----------
> 1 required artifact is missing.
> 
> for artifact:
>   org.apache.geronimo.configs:client-corba-yoko:car:2.0.2
> 
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   java.net (http://download.java.net/maven/1/),
>   apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
>   apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository),
>   codehaus-snapshots (http://snapshots.repository.codehaus.org),
>   apache-incubator
> (http://people.apache.org/repo/m2-incubating-repository/)
> Then we searched on the link given and found that the existing version of
> the file is 3.2 but not 3.2-r579367, which was then downloaded manually.
> After we resumed installation, another error was thrown out,
> [INFO] Searching repository for plugin with prefix: 'install'.
> Downloading:
> http://repo1.maven.org/maven2/org/apache/geronimo/plugins/car-maven-plugin/3.2-r579367/car-maven-plugin-3.2-r579367.pom
> Downloading:
> http://download.java.net/maven/1//org.apache.geronimo.plugins/poms/car-maven-plugin-3.2-r579367.pom
> Downloading:
> http://people.apache.org/repo/m2-incubating-repository//org/apache/geronimo/plugins/car-maven-plugin/3.2-r579367/car-maven-plugin-3.2-r579367.pom
> Downloading:
> http://repo1.maven.org/maven2/org/apache/geronimo/plugins/car-maven-plugin/3.2-r579367/car-maven-plugin-3.2-r579367.pom
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO]   Geronimo Assemblies :: Minimal + Tomcat
> [INFO] Failed to resolve artifact.
> 
> GroupId: org.apache.geronimo.plugins
> ArtifactId: car-maven-plugin
> Version: 3.2-r579367
> 
> Reason: Unable to download the artifact from any repository
> 
>   org.apache.geronimo.plugins:car-maven-plugin:pom:3.2-r579367
> 
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   java.net (http://download.java.net/maven/1/),
>   apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
>   apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository),
>   codehaus-snapshots (http://snapshots.repository.codehaus.org),
>   apache-incubator
> (http://people.apache.org/repo/m2-incubating-repository/)
> This time, there is no similar file existing on the links given.
> 
> Very similar but different errors were thrown out when we tried to build
> Geronimo from source in Windows. Sometimes there were test failures and
> sometimes there were dependency missing. So could you please tell us how
> to build the project from source files? Thank you very much!
> 
> Yours Sincerely
> Ying, Thomas and Moussa
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-geronimo-projects--Java-Mail-Portlet-tf4934057s134.html#a14123964
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message