Forum LAMS Lounge Forum: Import problem in LAMS 2


 
You may request notification for Import problem in LAMS 2.
Search: 

1: Import problem in LAMS 2
01/03/08 11:27 PM
[ Reply | Forward ]
I downloaded some sequences to tryout in my new installation, but when I try to import them I get an error. This is what I found in my log:

23:05:47,401 [http-0.0.0.0-8180-5:] ERROR org.lamsfoundation.lams.authoring.web.ImportToolContentAction - Error occured during import
org.lamsfoundation.lams.learningdesign.service.ImportToolContentException: java.io.FileNotFoundException: /tmp/lamszip_1199423147392_lams_ldcontent_8a8a8c181072e80401107c9f24ca00c0/learning_design.xml (No such file or directory)
    at org.lamsfoundation.lams.learningdesign.service.ExportToolContentService.importLearningDesign(ExportToolContentService.java:986)
    at org.lamsfoundation.lams.learningdesign.service.ExportToolContentService$$FastClassByCGLIB$$d05ed216.invoke(<generated>)
    at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
    at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:685)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
    at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:623)
    at org.lamsfoundation.lams.learningdesign.service.ExportToolContentService$$EnhancerByCGLIB$$5909b733_2.importLearningDesign(<generated>)
    at org.lamsfoundation.lams.authoring.web.ImportToolContentAction.importLD(ImportToolContentAction.java:171)
    at org.lamsfoundation.lams.authoring.web.ImportToolContentAction.execute(ImportToolContentAction.java:97)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.lamsfoundation.lams.web.filter.LocaleFilter.doFilterInternal(LocaleFilter.java:151)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.lamsfoundation.lams.web.session.SystemSessionFilter.doFilter(SystemSessionFilter.java:71)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.lamsfoundation.lams.integration.security.SingleSignOn.invoke(SingleSignOn.java:121)
    at org.lamsfoundation.lams.integration.security.LoginRequestValve.invoke(LoginRequestValve.java:67)
    at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:481)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
    at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.FileNotFoundException: /tmp/lamszip_1199423147392_lams_ldcontent_8a8a8c181072e80401107c9f24ca00c0/learning_design.xml (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at org.lamsfoundation.lams.learningdesign.service.ExportToolContentService.importLearningDesign(ExportToolContentService.java:893)

Posted by Rod Spears

2: Re: Import problem in LAMS 2
In response to 1 01/03/08 11:45 PM
[ Reply | Forward ]
Rod,

I'm not sure why its looking for that file in that directory - it shouldn't be. I assume the sequences you are trying come from the LAMS Community - which one gave this error? I'm going to try it myself to see if I can work out what is happening.

Fiona

Posted by Fiona Malikoff

3: Re: Import problem in LAMS 2
In response to 1 01/03/08 11:58 PM
[ Reply | Forward ]
Rod,

Having a bit of a play, I can generate an error a little like this.

When you downloaded the sequence, did you unzip it and try to upload the lams_ldcontent_8a8a8c181072e80401107c9f24ca00c0.zip file?

If yes, then don't unzip the file you download - just import the zip file as it is.

Fiona

Posted by Fiona Malikoff

4: Re: Re: Import problem in LAMS 2
In response to 3 01/04/08 01:31 PM
[ Reply | Forward ]
Yes, I downloaded several sequences to try out.
NO, I did not unzip them intentionally, but YES I did try to upload the lams_ldcontent ....zip file that you mentioned. My browser must have unzipped the file for me and the reason that I uploaded that file was because it was the only zip file that showed up.

I will start over and watch to see that they are not unzipped.

Posted by Rod Spears

5: Re: Re: Import problem in LAMS 2
In response to 3 01/04/08 01:48 PM
[ Reply | Forward ]
Fiona,

Thanks for your help.

Yes, that was the problem. This time I downloaded the files and made certain they were not unzipped.

Everything worked!

Thanks again!

Rod

Posted by Rod Spears

Reply to first post on this page
Back to LAMS Lounge Forum