Greetings uPortal devs: I've been testing uPortal4.0-RC2 on linux with mysql5.5 and ran into this issue while trying to import the database from our productiton 3.2-patches instance
I saw in an earlier post that Eric is working on the fragment layout section of the import/export process and am not sure if this is the same issue. So I'm passing this on in hopes for more information. Buildfile: /home/billbrown/uportal-4.0.0-RC2/build.xml prodPrompt: data-import: [echo] Creating Data Import Script up-shell: install-parent-pom: [artifact:install] [INFO] Installing /home/billbrown/uportal-4.0.0-RC2/pom.xml to /home/billbrown/.m2/repository/org/jasig/portal/uportal-parent/4.0.0-RC2/uportal-parent-4.0.0-RC2.pom [touch] Creating /tmp/jasig/uportal-parent.pom-6446691-marker [echo] Artifact '/home/billbrown/uportal-4.0.0-RC2/uportal-search-api/target/uportal-search-api-4.0.0-RC2.jar' is up-to-date [artifact:install] [INFO] Installing /home/billbrown/uportal-4.0.0-RC2/uportal-search-api/target/uportal-search-api-4.0.0-RC2.jar to /home/billbrown/.m2/repository/org/jasig/portal/uportal-search-api/4.0.0-RC2/uportal-search-api-4.0.0-RC2.jar [echo] Artifact '/home/billbrown/uportal-4.0.0-RC2/uportal-war/target/uPortal.war' is up-to-date [artifact:install] [INFO] Installing /home/billbrown/uportal-4.0.0-RC2/uportal-war/target/uPortal.war to /home/billbrown/.m2/repository/org/jasig/portal/uportal-war/4.0.0-RC2/uportal-war-4.0.0-RC2.war [java] INFO Creating new lazily initialized GenericApplicationContext for the portal [java] INFO Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect [java] INFO Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect [java] ERROR Unable to locate static metamodel field : org.jasig.portal.layout.dao.jpa.AbstractStylesheetDataImpl_#entityVersion [java] ERROR Unable to locate static metamodel field : org.jasig.portal.layout.dao.jpa.AbstractStylesheetDataImpl_#entityVersion [java] INFO Created new lazily initialized GenericApplicationContext for the portal in 11974ms [java] INFO [java] INFO [java] INFO Importing Data from: /home/billbrown/uPortal-3-2-patches/build/export-2011-07-29/ [java] INFO Initializing ExecutorService 'importExportThreadPool' [java] INFO Adding destruction callback singleton for bean 'scopedTarget.sessionAttributesOverridesMap' [java] INFO Scanning for files to Import from: /home/billbrown/uPortal-3-2-patches/build/export-2011-07-29 [java] INFO Importing 7 files of type <entity-type script="classpath://org/jasig/portal/io/import-entity-type_v3-2.crn"> [java] ERROR Exception while importing file [/home/billbrown/uPortal-3-2-patches/build/export-2011-07-29/entity-type/org.jasig.portal.channel.IChannelDefinition.entity-type] [java] java.util.concurrent.ExecutionException: org.danann.cernunnos.ManagedException: The Cernunnos Runtime encountered an error: [java] Origin Document: jar:file:/home/billbrown/.m2/repository/org/jasig/portal/uportal-war/4.0.0-RC2/uportal-war-4.0.0-RC2-classes.jar!/org/jasig/portal/io/import-entity-type_v3-2.crn [java] Source: /groovy [java] Entity Name: <groovy> [java] at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222) [java] at java.util.concurrent.FutureTask.get(FutureTask.java:83) [java] at org.jasig.portal.io.xml.JaxbPortalDataHandlerService.waitForFutures(JaxbPortalDataHandlerService.java:734) [java] at org.jasig.portal.io.xml.JaxbPortalDataHandlerService.importData(JaxbPortalDataHandlerService.java:374) [java] at org.jasig.portal.io.xml.IPortalDataHandlerService$importData.call(Unknown Source) [java] at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) [java] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) [java] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124) [java] at upshell_356151983.run(upshell_356151983.groovy:19) [java] at groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:266) [java] at groovy.lang.GroovyShell.run(GroovyShell.java:229) [java] at org.jasig.portal.shell.PortalShell.main(PortalShell.java:84) [java] Caused by: org.danann.cernunnos.ManagedException: The Cernunnos Runtime encountered an error: [java] Origin Document: jar:file:/home/billbrown/.m2/repository/org/jasig/portal/uportal-war/4.0.0-RC2/uportal-war-4.0.0-RC2-classes.jar!/org/jasig/portal/io/import-entity-type_v3-2.crn [java] Source: /groovy [java] Entity Name: <grException in thread "main" java.lang.RuntimeException: data-import for /home/billbrown/uPortal-3-2-patches/build/export-2011-07-29/ and null failed [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [java] at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [java] at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77) [java] at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102) [java] at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:54) [java] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182) [java] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:194) [java] at upshell_356151983.run(upshell_356151983.groovy:22) [java] at groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:266) [java] at groovy.lang.GroovyShell.run(GroovyShell.java:229) [java] at org.jasig.portal.shell.PortalShell.main(PortalShell.java:84) [java] Caused by: java.lang.RuntimeException: Halted due to 1 failures, see previous exceptions for causes. [java] file [/home/billbrown/uPortal-3-2-patches/build/export-2011-07-29/entity-type/org.jasig.portal.channel.IChannelDefinition.entity-type] [java] [java] at org.jasig.portal.io.xml.JaxbPortalDataHandlerService.waitForFutures(JaxbPortalDataHandlerService.java:781) [java] at org.jasig.portal.io.xml.JaxbPortalDataHandlerService.importData(JaxbPortalDataHandlerService.java:374) [java] at org.jasig.portal.io.xml.IPortalDataHandlerService$importData.call(Unknown Source) [java] at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) [java] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) [java] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124) [java] at upshell_356151983.run(upshell_356151983.groovy:19) [java] ... 3 more [java] oovy> [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:93) [java] at org.danann.cernunnos.runtime.ScriptRunner$TaskDecorator.perform(ScriptRunner.java:435) [java] at org.danann.cernunnos.runtime.ScriptRunner.run(ScriptRunner.java:287) [java] at org.danann.cernunnos.runtime.PojoTask.perform(PojoTask.java:202) [java] at org.jasig.portal.io.xml.crn.CernunnosDataImporter.importData(CernunnosDataImporter.java:106) [java] at org.jasig.portal.io.xml.crn.CernunnosDataImporter.importData(CernunnosDataImporter.java:60) [java] at org.jasig.portal.io.xml.JaxbPortalDataHandlerService.importOrUpgradeData(JaxbPortalDataHandlerService.java:475) [java] at org.jasig.portal.io.xml.JaxbPortalDataHandlerService.importData(JaxbPortalDataHandlerService.java:451) [java] at org.jasig.portal.io.xml.JaxbPortalDataHandlerService.importData(JaxbPortalDataHandlerService.java:420) [java] at org.jasig.portal.io.xml.JaxbPortalDataHandlerService$1.call(JaxbPortalDataHandlerService.java:346) [java] at org.jasig.portal.io.xml.JaxbPortalDataHandlerService$ErrorReportingCallable.call(JaxbPortalDataHandlerService.java:807) [java] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [java] at java.util.concurrent.FutureTask.run(FutureTask.java:138) [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [java] at java.lang.Thread.run(Thread.java:662) [java] Caused by: java.lang.RuntimeException: Error while executing the specified script. [java] ENGINE_NAME: Groovy Scripting Engine [java] SCRIPT (follows): [java] entityTypesSingleton.addEntityTypeIfNecessary(org.jasig.portal.channel.IChannelDefinition.class, 'Channel') [java] [java] at org.danann.cernunnos.script.ScriptTask.perform(ScriptTask.java:100) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:77) [java] ... 15 more [java] Caused by: javax.script.ScriptException: java.lang.reflect.InvocationTargetException [java] at org.danann.cernunnos.script.ScriptEvaluator.eval(ScriptEvaluator.java:160) [java] at org.danann.cernunnos.script.ScriptTask.perform(ScriptTask.java:97) [java] ... 16 more [java] Caused by: java.lang.reflect.InvocationTargetException [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.danann.cernunnos.script.ScriptEvaluator.eval(ScriptEvaluator.java:153) [java] ... 17 more [java] Caused by: javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: org for class: Script1 [java] at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:318) [java] at org.codehaus.groovy.jsr223.GroovyCompiledScript.eval(GroovyCompiledScript.java:41) [java] ... 22 more [java] Caused by: groovy.lang.MissingPropertyException: No such property: org for class: Script1 [java] at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50) [java] at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49) [java] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231) [java] at Script1.run(Script1.groovy:1) [java] at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:315) [java] ... 23 more [java] INFO Imported : file [/home/billbrown/uPortal-3-2-patches/build/export-2011-07-29/entity-type/org.jasig.portal.groups.IEntity.entity-type] [java] INFO Imported : file [/home/billbrown/uPortal-3-2-patches/build/export-2011-07-29/entity-type/org.jasig.portal.groups.IEntityGroup.entity-type] [java] INFO Imported : file [/home/billbrown/uPortal-3-2-patches/build/export-2011-07-29/entity-type/org.jasig.portal.security.IPerson.entity-type] [java] INFO Imported : file [/home/billbrown/uPortal-3-2-patches/build/export-2011-07-29/entity-type/java.lang.Object.entity-type] [java] INFO Imported : file [/home/billbrown/uPortal-3-2-patches/build/export-2011-07-29/entity-type/org.jasig.portal.services.entityproperties.EntityProperties.entity-type] [java] INFO Imported : file [/home/billbrown/uPortal-3-2-patches/build/export-2011-07-29/entity-type/org.jasig.portal.security.IPermissionSet.entity-type] [java] INFO Shutting down ExecutorService 'importExportThreadPool' BUILD FAILED /home/billbrown/uportal-4.0.0-RC2/build.xml:466: The following error occurred while executing this line: /home/billbrown/uportal-4.0.0-RC2/build.xml:297: The following error occurred while executing this line: /home/billbrown/uportal-4.0.0-RC2/build.xml:1195: The following error occurred while executing this line: /home/billbrown/uportal-4.0.0-RC2/build.xml:1168: The following error occurred while executing this line: /home/billbrown/uportal-4.0.0-RC2/build.xml:1171: The following error occurred while executing this line: /home/billbrown/uportal-4.0.0-RC2/build.xml:1198: The following error occurred while executing this line: /home/billbrown/uportal-4.0.0-RC2/build.xml:312: Java returned: 1 Total time: 55 seconds Thanks. Bill Brown Web Application Developer, Web Services IT Services, The University of Chicago -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/uportal-dev
