opensourceBIM / bimvie.ws

Javascript client for Building Information Modelling, using open standards like IFC, BCF and BIMSie. Using Bootstrap, BIM Surfer, etc..
GNU Affero General Public License v3.0
172 stars 87 forks source link

Broken UI after having installed Bimviews #29

Closed cedricbonhomme closed 10 years ago

cedricbonhomme commented 10 years ago

Hello,

I've just installed BIMServer (1.3.0-FINAL-2014-04-25) without any problems. The admin interface works quite well with Firefox (not with Chrome).

After having downloaded the jar file of bimviews (1.3.4-FINAL-2014-07-03) in the plugins folder, then enabled bimviews as the default web module through the admin panel and finally having restarted BIMServer, the UI seems to be also broken with Firefox.

bimviews-problem-1

As you can see there is a JS "TypeError" error.

Any idea of the problem? Thanks!

cedricbonhomme commented 10 years ago

Just to add more information about the context.

Server side

Client side

cedricbonhomme commented 10 years ago
$ tail -f /var/lib/tomcat7/webapps/bimserver-1.3.0-FINAL-2014-04-25/WEB-INF/logs/bimserver.log
18-07-2014 11:47:30 INFO  Stopping BIMserver                                                               (org.bimserver.BimServer.java:865) 
18-07-2014 11:47:30 INFO  BIMserver stopped                                                                (org.bimserver.BimServer.java:888) 
18-07-2014 11:47:42 INFO  Starting BIMserver                                                               (org.bimserver.BimServer.java:217) 
18-07-2014 11:47:42 INFO  Using "/var/lib/tomcat7/webapps/bimserver-1.3.0-FINAL-2014-04-25/WEB-INF" as homedir (org.bimserver.BimServer.java:219) 
18-07-2014 11:47:50 INFO  Version: 1.3.0 - Fri Apr 25 00:00:00 CEST 2014                                   (org.bimserver.BimServer.java:287) 
18-07-2014 11:47:50 INFO  Using exe/64/linux/IfcGeomServer                                                 (org.ifcopenshell.IfcOpenShellEnginePlugin.java:118) 
18-07-2014 11:47:59 INFO  IFC-Schema successfully loaded from /var/lib/tomcat7/webapps/bimserver-1.3.0-FINAL-2014-04-25/WEB-INF/tmp/IFC2X3_TC1.exp (nl.tue.buildingsmart.emf.BuildingSmartLibrarySchemaPlugin.java:93) 
18-07-2014 11:48:03 INFO  Using "var/lib/tomcat7/webapps/bimserver-1.3.0-FINAL-2014-04-25/WEB-INF/templates/" as template dir (org.bimserver.templating.TemplateEngine.java:64) 
18-07-2014 11:48:03 INFO  Non-empty database directory found "/var/lib/tomcat7/webapps/bimserver-1.3.0-FINAL-2014-04-25/WEB-INF/database" (org.bimserver.database.berkeley.BerkeleyKeyValueStore.java:70) 
18-07-2014 11:48:06 INFO  Changing server state to RUNNING                                                 (org.bimserver.ServerInfoManager.java:108) 

And nothing valuable (I think) in catalina logs:

Jul 18, 2014 11:51:34 AM org.apache.catalina.core.StandardContext reload
INFO: Reloading Context with name [/bimserver-1.3.0-FINAL-2014-04-25] has started
Jul 18, 2014 11:51:35 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/bimserver-1.3.0-FINAL-2014-04-25] appears to have started a thread named [EMF Reference Cleaner] but has failed to stop it. This is very likely to create a memory leak.
Jul 18, 2014 11:51:35 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/bimserver-1.3.0-FINAL-2014-04-25] appears to have started a thread named [UniqueName0.09170422971032266_Worker-1] but has failed to stop it. This is very likely to create a memory leak.
Jul 18, 2014 11:51:35 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/bimserver-1.3.0-FINAL-2014-04-25] appears to have started a thread named [default-workqueue-1] but has failed to stop it. This is very likely to create a memory leak.
Jul 18, 2014 11:51:35 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/bimserver-1.3.0-FINAL-2014-04-25] appears to have started a thread named [default-workqueue-2] but has failed to stop it. This is very likely to create a memory leak.
Jul 18, 2014 11:51:35 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/bimserver-1.3.0-FINAL-2014-04-25] appears to have started a thread named [default-workqueue-3] but has failed to stop it. This is very likely to create a memory leak.
Jul 18, 2014 11:51:35 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/bimserver-1.3.0-FINAL-2014-04-25] appears to have started a thread named [default-workqueue-4] but has failed to stop it. This is very likely to create a memory leak.
Jul 18, 2014 11:51:35 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/bimserver-1.3.0-FINAL-2014-04-25] appears to have started a thread named [default-workqueue-5] but has failed to stop it. This is very likely to create a memory leak.
Jul 18, 2014 11:51:35 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/bimserver-1.3.0-FINAL-2014-04-25] created a ThreadLocal with key of type [com.sun.xml.bind.v2.ClassFactory$1] (value [com.sun.xml.bind.v2.ClassFactory$1@51895b43]) and a value of type [java.util.WeakHashMap] (value [{class org.apache.cxf.ws.addressing.AttributedURIType=java.lang.ref.WeakReference@10c6b587}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
Jul 18, 2014 11:51:35 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/bimserver-1.3.0-FINAL-2014-04-25] created a ThreadLocal with key of type [com.sun.xml.bind.v2.ClassFactory$1] (value [com.sun.xml.bind.v2.ClassFactory$1@51895b43]) and a value of type [java.util.WeakHashMap] (value [{class java.util.ArrayList=java.lang.ref.WeakReference@65b7baab, class org.apache.cxf.ws.discovery.wsdl.ScopesType=java.lang.ref.WeakReference@14064b9, class javax.xml.ws.wsaddressing.W3CEndpointReference=java.lang.ref.WeakReference@2a94ae53, class javax.xml.ws.wsaddressing.W3CEndpointReference$Elements=java.lang.ref.WeakReference@740e0fc, class javax.xml.ws.wsaddressing.W3CEndpointReference$Address=java.lang.ref.WeakReference@3472c41c, class org.apache.cxf.ws.discovery.wsdl.HelloType=java.lang.ref.WeakReference@5aa9252a}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
Jul 18, 2014 11:51:35 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/bimserver-1.3.0-FINAL-2014-04-25] created a ThreadLocal with key of type [com.sun.xml.bind.v2.ClassFactory$1] (value [com.sun.xml.bind.v2.ClassFactory$1@51895b43]) and a value of type [java.util.WeakHashMap] (value [{class java.util.ArrayList=java.lang.ref.WeakReference@16c716e6, class org.apache.cxf.ws.discovery.wsdl.ScopesType=java.lang.ref.WeakReference@68b061b8, class javax.xml.ws.wsaddressing.W3CEndpointReference=java.lang.ref.WeakReference@13dfacba, class javax.xml.ws.wsaddressing.W3CEndpointReference$Elements=java.lang.ref.WeakReference@41c4f187, class javax.xml.ws.wsaddressing.W3CEndpointReference$Address=java.lang.ref.WeakReference@68ccf7cc, class org.apache.cxf.ws.discovery.wsdl.HelloType=java.lang.ref.WeakReference@68a0a7d4, class org.apache.cxf.ws.addressing.AttributedURIType=java.lang.ref.WeakReference@b6a84f6}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
Jul 18, 2014 11:51:35 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/bimserver-1.3.0-FINAL-2014-04-25] created a ThreadLocal with key of type [com.sun.xml.bind.v2.ClassFactory$1] (value [com.sun.xml.bind.v2.ClassFactory$1@51895b43]) and a value of type [java.util.WeakHashMap] (value [{class java.util.ArrayList=java.lang.ref.WeakReference@7e3f3854, class org.apache.cxf.ws.discovery.wsdl.ScopesType=java.lang.ref.WeakReference@688b538c, class javax.xml.ws.wsaddressing.W3CEndpointReference=java.lang.ref.WeakReference@131a41f3, class javax.xml.ws.wsaddressing.W3CEndpointReference$Elements=java.lang.ref.WeakReference@20dfc251, class javax.xml.ws.wsaddressing.W3CEndpointReference$Address=java.lang.ref.WeakReference@424e64b3, class org.apache.cxf.ws.discovery.wsdl.HelloType=java.lang.ref.WeakReference@28b545c7, class org.apache.cxf.ws.addressing.AttributedURIType=java.lang.ref.WeakReference@14f820b2}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.

Logging to: /var/lib/tomcat7/webapps/bimserver-1.3.0-FINAL-2014-04-25/WEB-INF/logs/bimserver.log
Jul 18, 2014 11:55:15 AM org.apache.catalina.loader.WebappClassLoader findResourceInternal
INFO: Illegal access: this web application instance has been stopped already.  Could not load org/apache/cxf/ws/addressing/v200408/jaxb.properties.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
Jul 18, 2014 11:55:15 AM org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already.  Could not load org.apache.cxf.logging.FaultListener.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1610)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:312)
        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
        at org.apache.cxf.transport.udp.UDPDestination$MCastListener$2.run(UDPDestination.java:106)
        at org.apache.cxf.workqueue.AutomaticWorkQueueImpl$3.run(AutomaticWorkQueueImpl.java:426)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at org.apache.cxf.workqueue.AutomaticWorkQueueImpl$AWQThreadFactory$1.run(AutomaticWorkQueueImpl.java:351)
        at java.lang.Thread.run(Thread.java:744)
rubendel commented 10 years ago

Hi There, the latest version of BIMvie.ws does not work with the 1.3.0 release of BIMserver. I just created a 1.3.1 version of BIMserver, it should work with 1.3.5 of BIMvie.ws.

cedricbonhomme commented 10 years ago

Thank you, it's now working. And BIMvie.ws is enabled by default once installed.