Hi guys,
I am having a serious issue with the course import and export feature in Win and Linux. I've built the whole system in a Win and created many courses in it.
After that, I just exported app to war, openolat db to sql and zipped olatdata folder. I copied everything to a linux, changed path in olat.local.properties and imported the sql data into mysql. After a few minor issues I managed to run it on Linux.
Unfortunately there was some problem with my courses. They were visible in the Courses section, but after clicking them I got an internal error no. 1 (see below). Assuming that it might be some encoding issue related to the fact that I had just copied olatdata from Win do Linux, a deleted courses and tried to export-import from Win to Linux. Export was fine. I got zip file. I checked it- I could open it. But when I tried to import into Linux I got an internal error no. 2. I tried to debug it by trying to use a simple course (title, description, logo image plus one single page of dummy content) both in Win and Linux. In Win it was fine - both creation and export. In Linux I had a problem with export - an error no 3 (as browser error code).
I'd attribute the whole issue to the Win/Linux migration as I lost all the config from Win when I first started Linux verion. But the fact that I cannot export course created in Linux indicate that something else must be wrong.
p.s. attempt to import course in Win that I have just exported in Win also gives an error no. 2.
Thanks in advance for any help.
Max
System Win8.1 and Ubuntu 14
Openolat 10.3.2
Tomcat 8.0.33
Java 8
Error no. 1
The learning resource is corrupted and can not be displayed. Contact your support staff or use the delete link to remove this resource from the system.
Error no. 2:
Oops, something went wrong!
Error code: N1-E5
<dispatchinfo>
<componentinfo>
<compname>ffo_main_null</compname>
<compclass>org.olat.core.gui.components.form.flexible.impl.FormWrapperContainer</compclass>
<extendedinfo>n/a</extendedinfo>
<event>
<class>org.olat.core.gui.control.Event</class>
<command>validation ok</command>
<tostring>com:validation ok,org.olat.core.gui.control.Event@d62b3f02</tostring>
</event>
</componentinfo>
<controllerinfo>
<controllername>org.olat.repository.ui.author.ImportRepositoryEntryController</controllername>
<controllername>org.olat.repository.ui.author.AuthorListController</controllername>
<controllername>org.olat.repository.ui.author.OverviewAuthoringController</controllername>
<controllername>org.olat.core.commons.fullWebApp.BaseFullWebappController</controllername>
</controllerinfo>
</dispatchinfo>
Throwable: java.lang.ClassCastException
message:org.olat.core.util.vfs.LocalFolderImpl cannot be cast to org.olat.core.commons.modules.bc.vfs.OlatRootFolderImpl,java.lang.ClassCastException
at org.olat.course.PersistingCourseImpl.getCourseExportDataDir(PersistingCourseImpl.java:160)
at org.olat.repository.handlers.CourseHandler.importReferences(CourseHandler.java:383)
at org.olat.repository.handlers.CourseHandler.importResource(CourseHandler.java:262)
at org.olat.repository.ui.author.ImportRepositoryEntryController.doImport(ImportRepositoryEntryController.java:228)
at org.olat.repository.ui.author.ImportRepositoryEntryController.formOK(ImportRepositoryEntryController.java:154)
at org.olat.core.gui.components.form.flexible.impl.FormBasicController.event(FormBasicController.java:367)
at org.olat.core.gui.control.DefaultController.dispatchEvent(DefaultController.java:202)
at org.olat.core.gui.components.AbstractComponent$1.run(AbstractComponent.java:240)
at org.olat.core.logging.activity.ThreadLocalUserActivityLoggerInstaller.runWithUserActivityLogger(ThreadLocalUserActivityLoggerInstaller.java:108)
at org.olat.core.gui.components.AbstractComponent.fireEvent(AbstractComponent.java:238)
HTTP Status 500 - mr already served, relPath =/,
type Exception report
message mr already served, relPath =/,
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.olat.core.logging.AssertException: mr already served, relPath =/,
org.olat.core.gui.control.winmgr.MediaResourceMapper.handle(MediaResourceMapper.java:50)
org.olat.core.dispatcher.mapper.MapperDispatcher.execute(MapperDispatcher.java:116)
org.olat.core.servlets.OpenOLATServlet.executeUserRequest(OpenOLATServlet.java:280)
org.olat.core.servlets.OpenOLATServlet.doGet(OpenOLATServlet.java:209)
javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
org.olat.core.servlets.OpenOLATServlet.service(OpenOLATServlet.java:166)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
root cause
java.lang.Exception: assertionstackgenerator
org.olat.core.logging.AssertException.<init>(AssertException.java:53)
org.olat.core.gui.control.winmgr.MediaResourceMapper.handle(MediaResourceMapper.java:50)
org.olat.core.dispatcher.mapper.MapperDispatcher.execute(MapperDispatcher.java:116)
org.olat.core.servlets.OpenOLATServlet.executeUserRequest(OpenOLATServlet.java:280)
org.olat.core.servlets.OpenOLATServlet.doGet(OpenOLATServlet.java:209)
javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
org.olat.core.servlets.OpenOLATServlet.service(OpenOLATServlet.java:166)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
note The full stack trace of the root cause is available in the Apache Tomcat/8.0.33 logs.