New OpenRefine install produces almost blank landing page (no menus) - openrefine

OS: Windows 10 Pro 64 bit 19042.985
JDK: OpenJDK 16.0.1+9-24
OpenRefine: openrefine-3.4.1
Browser: Firefox 88.0.1
Just installed OpenRefine for the first time, on top of a fresh install of OpenJDK 16
The server runs and opens the URL (localhost:3333) in the browser, but the page that comes up is almost blank. There is the OpenRefine logo in the top left corner, but the rest of the page is empty. There is no UI (menus).
--UPDATE--
Looking at the page html in more detail it's not strictly true that there is no content in the menus. There are a small number of links in [li] tags, but these are being rendered as 0-width elements by the browser (in either Firefox or Edge) so they are no visible on the page.
By the looks of it the page is failing to load several external references including the stylesheets, and I suspect that's linked to the bad rendering of the page.
--END UPDATE--
The OpenRefine log output is-
12:39:39.088 [ refine_server] Starting Server bound to '127.0.0.1:3333' (0ms)
12:39:39.088 [ refine_server] Initializing context: '/' from 'C:\OpenRefine\openrefine-3.4.1\webapp' (0ms)
12:39:39.458 [ refine_server] Failed to use jdatapath to detect user data path: resorting to environment variables (370ms)
12:39:39.458 [ refine_server] Failed to use jdatapath to detect user data path: resorting to environment variables (0ms)
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/OpenRefine/openrefine-3.4.1/server/target/lib/slf4j-log4j12-1.7.18.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/OpenRefine/openrefine-3.4.1/webapp/WEB-INF/lib/slf4j-log4j12-1.7.18.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
12:39:39.573 [ refine] Starting OpenRefine 3.4.1 [437dc4d]... (115ms)
12:39:39.573 [ refine] initializing FileProjectManager with dir (0ms)
12:39:39.573 [ refine] C:\Users\coev\AppData\Roaming\OpenRefine (0ms)
12:39:39.573 [ FileProjectManager] Failed to load workspace from any attempted alternatives. (0ms)
12:39:43.367 [ org.mortbay.log] /images/favicon.png (3794ms)
java.lang.IllegalStateException: Committed
at org.mortbay.jetty.Response.resetBuffer(Response.java:1024)
at javax.servlet.ServletResponseWrapper.resetBuffer(ServletResponseWrapper.java:202)
at org.mortbay.servlet.GzipFilter$GZIPResponseWrapper.resetBuffer(GzipFilter.java:310)
at org.mortbay.servlet.GzipFilter$GZIPResponseWrapper.sendError(GzipFilter.java:319)
at edu.mit.simile.butterfly.Butterfly.error(Butterfly.java:1020)
at edu.mit.simile.butterfly.Butterfly.service(Butterfly.java:528)
at com.google.refine.RefineServlet.service(RefineServlet.java:210)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
at org.mortbay.servlet.UserAgentFilter.doFilter(UserAgentFilter.java:81)
at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter.java:132)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at java.base/java.lang.Thread.run(Thread.java:831)
I originally installed OpenRefine in C:\Program Files\OpenRefine\openrefine-3.4.1 but thinking this might one of those Unix-native apps that can't handle pathnames with spaces this log is from a second install in C:\OpenRefine\openrefine-3.4.1.
When OpenRefine runs, with the first install (in Program Files) just a blank workspace was created in C:\Users\coev\AppData\Roaming\OpenRefine. With the second install directly in C: it gets as far as creating a workspace.json file in that folder, so that's one difference.
Looking at the html page source generated by OpenRefine the html looks valid, but the blocks for the left and right menu panels are empty.
I have searched but haven't found this specific issue decribed elsewhere. Any ideas?

Related

Netbeans 8.2 : GlassFish 5 Server, deploy, null false - The module has not been deployed

I'm a new Java WebEnt student, and I'm having issues deploying some basic Entity Classes and JSF Pages.
I loaded up some things without any edit to the files, and when trying to deploy. I get the "\nbproject\build-imp.xml:1045 The module has not been deployed" message. I checked the GlassFish server and here is the beginning log:
java.io.IOException: org.xml.sax.SAXParseException; lineNumber: 10;
columnNumber: 18; Deployment descriptor file META-INF/persistence.xml in
archive [classes]. cvc-complex-type.2.4.d: Invalid content was found
starting with element 'properties'. No child element is expected at this point.
The rest of the log is pasted below
https://pastebin.com/7rXsyRit
EDIT
Pastebin to include the XML files in WEB-INF and persistence.xml
https://pastebin.com/6kRJyA54
Thanks for the help/advice
Yes the issue was <properties/> after I had removed that and tried to deploy, I had gotten that error which following the instructions in this link had resolved.

Error in installation of Hive 2.1.0 on Hadoop 2.7.2 - Pseudo distributed mode

I followed Apache Hadoop installation links and could install the same along with PIG. They all are working fine.
Following is the configuration:
Hadoop: 2.7.2
Hive: 2.1.0
Machine: Ubuntu 14.04 LTS 64-bit
Java: Version 9
Now I tried to install Apache Hive 2.1.0 according to this link [https://cwiki.apache.org/confluence/display/Hive/AdminManual+Installation#AdminManualInstallation-InstallingfromaTarball].
... and started test execution of Hive CLI but everytime it throws following error and exits.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hive/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
Exception in thread "main" java.lang.ClassCastException: jdk.internal.loader.ClassLoaders$AppClassLoader (in module: java.base) cannot be cast to java.net.URLClassLoader (in module: java.base)
at org.apache.hadoop.hive.ql.session.SessionState.<init> (SessionState.java:374)
at org.apache.hadoop.hive.ql.session.SessionState.<init>(SessionState.java:350)
at org.apache.hadoop.hive.cli.CliSessionState.<init>(CliSessionState.java:60)
at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:663)
at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:641)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base#9-ea/Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base#9-ea/NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base#9-ea/DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(java.base#9-ea/Method.java:533)
at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
..But there is a catch. If I invoke Beeline CLI then it works fine.
Could you please help :
a. Are the Beeline CLI and Hive CLI same or any specific difference?
b. Help to install/configure Hive on my machine
A : Beeline CLI VS Hive CLI https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.2/bk_dataintegration/content/beeline-vs-hive-cli.html
B : According to :
http://openjdk.java.net/projects/jigsaw/talks/prepare-for-jdk9-j1-2015.pdf
Java 9 Uses no longer uses java.net.URLClassLoader.
However, I was able to solve the issue by pointing Hive to JDK8.
** I have only begun using HIVE/HADOOP... Perhaps someone could proved a better explanation or a workaround so that we are able to use JDK9...

Issue when building moqui from source

I have forked moqui, mantle & PopCommerce on github & followed the command line steps to clone & build as below.
git clone git#github.com:moqui/moqui.git moqui
cd moqui/runtime/
git clone git#github.com:moqui/mantle.git mantle
cd component/
git clone git#github.com:moqui/PopCommerce.git PopCommerce
cd ../.. (to the moqui directory)
gradle load
gradle run
I have replaced my repository name in above commands.
Accessing the framework/tools using http://localhost:8080 it displays login page (without css applied) and when clicking on Login (John Doe) button below error is displayed.
Status Code: 403
Exception: User [john.doe] is not authorized for View on Screen [component://webroot/screen/webroot/apps/AppList.xml]
Stacktrace:
and accessing PopCommerce (http://localhost:8080/popc) displays below error.
Status Code: 404
Exception: Could not find subscreen or transition or file/content [popc] under screen [component://webroot/screen/webroot.xml] while finding url for path [popc] under from screen [component://webroot/screen/webroot.xml]
Stacktrace:
I tried running the framework/tools & Popcommerce using binary distribution and it worked fine.
Is there any other steps I need to follow while build from source ?
Update: Error during gradle load
75816 [ main] INFO pl.entity.EntityDataLoaderImpl - Loaded 29 records from [file:/C:/projects/moqui_ws/moqui/runtime/base-component/example/data/ExampleZzzDemoData.xml] in 6.432 seconds
75940 [ main] INFO pl.entity.EntityDataLoaderImpl - Loading entity data from [file:/C:/projects/moqui_ws/moqui/runtime/base-component/example/data/ZzaExampleRecords.csv]
75992 [ main] WARN .context.TransactionFacadeImpl - Transaction rollback. The rollback was originally caused by: Error loading entity data
org.moqui.entity.EntityException: The name [exampleEmail] is not a valid field name for entity [Example]
at org.moqui.impl.entity.EntityDefinition.convertFieldString(EntityDefinition.groovy:1048)
at org.moqui.impl.entity.EntityValueBase.setString(EntityValueBase.groovy:274)
at org.moqui.impl.entity.EntityDataLoaderImpl$EntityCsvHandler.loadFile(EntityDataLoaderImpl.groovy:698)
at org.moqui.impl.entity.EntityDataLoaderImpl.loadSingleFile(EntityDataLoaderImpl.groovy:283)
at org.moqui.impl.entity.EntityDataLoaderImpl.internalRun(EntityDataLoaderImpl.groovy:249)
at org.moqui.impl.entity.EntityDataLoaderImpl.load(EntityDataLoaderImpl.groovy:125)
at org.moqui.Moqui.loadData(Moqui.java:97)
at MoquiStart.main(MoquiStart.java:105)
75997 [ main] WARN .context.TransactionFacadeImpl - Transaction rollback for [Error loading entity data]. Here is the current location:
org.moqui.BaseException: Rollback location
at org.moqui.impl.context.TransactionFacadeImpl.rollback(TransactionFacadeImpl.groovy:405)
at org.moqui.impl.context.TransactionFacadeImpl.rollback(TransactionFacadeImpl.groovy:389)
at org.moqui.impl.entity.EntityDataLoaderImpl.loadSingleFile(EntityDataLoaderImpl.groovy:298)
at org.moqui.impl.entity.EntityDataLoaderImpl.internalRun(EntityDataLoaderImpl.groovy:249)
at org.moqui.impl.entity.EntityDataLoaderImpl.load(EntityDataLoaderImpl.groovy:125)
at org.moqui.Moqui.loadData(Moqui.java:97)
at MoquiStart.main(MoquiStart.java:105)
76372 [ main] INFO moqui.impl.entity.EntityDbMeta - Created table [ARTIFACT_HIT_BIN] for entity [moqui.server.ArtifactHitBin]
Those look like symptoms of seed/setup data not getting loaded. Your steps look fine, they should work. Look for errors in the "gradle load" step.

Java Servlet - Null Pointer Exception & .jar not loaded

So my situation is a bit odd because I am looking at a server with no access to the source code. Everything regarding the servlets has worked fine up until now, but there is this sudden, spontaneous error that has come up regarding one of the Java servlets having a null pointer exception.
Here is the error log:
INFO: Added header: Cache-Control: no transform
8-Apr-2014 10:57:16 AM org.apache.catalina.core.ApplicationContext log
INFO: Added header: Cache-Control: no cache
8-Apr-2014 10:57:16 AM org.apache.catalina.core.ApplicationContext log
INFO: Attempted context: null
8-Apr-2014 10:57:16 AM org.apache.catalina.core.ApplicationContext log
INFO: Request URI: /public_stage//def.jsp
8-Apr-2014 10:57:16 AM org.apache.catalina.core.ApplicationContext log
INFO: Real path: /opt/apps/tomjet/webapps/public_stage/def.jsp
8-Apr-2014 10:57:16 AM org.apache.catalina.core.ApplicationContext log
INFO: servlet context: null
8-Apr-2014 1:35:02 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet PushServletMAG threw exception
java.lang.NullPointerException
at com.openwave.wappush.Pusher.netSendRequest(Pusher.java:312)
at com.openwave.wappush.Pusher.send(Pusher.java:230)
at ca.test.servlet.ExtendedPush.pushServiceIndication(ExtendedPush.java:105)
at ca.test.servlet.CDMAPushServlet.doPost(CDMAPushServlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
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.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:419)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:619)
However going over to the catalina file I notice that it states that in a few locations, it is trying to validate .jar files, and that there are servlet.jar files not being loaded in the WEB-INF/lib directory.
Here is an example of a line with a certain location:
8-Apr-2014 2:02:00 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/opt/apps/tomjet/webapps/wapMIG/WEB-INF/lib/servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Overall I am quite baffled by this problem as in terms of user interaction with the source code there was absolutely none as no one has access to it. It was just so sudden and spontaneous.
Any ideas/sources that could possibly help me with this problem? Much appreciated.
The error is the jar servlet-api.jar in your WEB-INF/folder, the container provide the servlet-api.jar and it cause the problem in deployment, you need to remove this jar from your lib folder.
You could need this jar to compile your project, so you must configure the project to use this jar in your IDE, in eclipse you can add it in the Java Build Path as an external jar, but I recommend you to enable the Web Dynamic Project Facet and configuring tomcat as your runtime enviroment. (Project -> Properties -> Project Facets)

native library in an application Client

I'm using jogl in an application that is deploeyd from a glassfish server .
I have tested the part using jogl in a jse and it works fine.
When i paste the code and add the libraries and run the programm via netbeans it didn't work.
I get this exception:
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no jogl in java.library.path
What can i do to fix this problems ?
Thanks
In NetBeans under File / Project Properties, select "Run" from the "Categories" tree. In the "VM Options" box, add -Djava.library.path="<full path to your library>" with the quotation marks.