Issue when building moqui from source - moqui

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.

Related

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

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?

Sentry Docker Error opening GeoIP database

I added GeoLite2-Country.mmdb and GeoIP.dat to sentry project root, but it keep showing this error message
08:41:04 [WARNING] sentry.utils.geo: Error opening GeoIP database: ../GeoLite2-Country.mmdb
08:41:04 [WARNING] sentry.utils.geo: Error opening GeoIP database in Rust: ../GeoLite2-Country.mmdb
I also added mmdb path to sentry.conf.py
GEOIP_PATH_MMDB = '../GeoLite2-Country.mmdb'

Internal server error when trying to build and deploy to AEM

My local AEM instance suddenly stopped working when I switched branches in git and installed the package with
mvn clean install -PautoInstallPackage.
The build failed with [ERROR] Request to http://localhost:4502/crx/packmgr/service.jsp failed, response=Internal Server Error
My error log shows the following errors:
25.10.2018 11:52:33.607 *ERROR* [127.0.0.1 [1540504353564] POST /crx/packmgr/service.jsp HTTP/1.1] org.apache.jackrabbit.oak.spi.security.authentication.external.impl.ExternalLoginModule No IDP found with name 0654f74c177ec80b60f7922a9a6195cf. Will not be used for login.
25.10.2018 11:52:33.607 *ERROR* [127.0.0.1 [1540504353564] POST /crx/packmgr/service.jsp HTTP/1.1] org.apache.jackrabbit.oak.spi.security.authentication.external.impl.ExternalLoginModule No IDP found with name a9dea3b044e912071cbffd4839016d2e. Will not be used for login.
25.10.2018 12:00:30.005 *INFO* [sling-default-2-Registered Service.1079] com.adobe.granite.taskmanagement.impl.jcr.TaskArchiveService archiving tasks at: 'Thu Oct 25 12:00:30 HST 2018'
25.10.2018 12:00:58.610 *ERROR* [127.0.0.1 [1540504858546] POST /crx/packmgr/service.jsp HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException
java.io.IOException: Unable to get component of class 'interface org.apache.sling.rewriter.Generator' with type 'htmlparser'.
I've tried adding <useProxy>false</useProxy> to my parent POM file as suggested on a similar thread posted here but that also did not work. I've tried recloning the repo and starting over but since it's a server error that did nothing.
Additional Info:
Running on Windows 10
AEM 6.4
Any assistance will be greatly appreciated.
Thanks!
Thanks for your help. The issue actually happened when I switched branches and installed and deployed the package over the existing package in AEM. By removing the quickstart folder and restarting the JAR file, thus creating a new AEM directory, I was able to install and deploy the correct branch without error.

Error running akka-http-microservice Activator template

Error running akka-http-microservice Activator template
Unable to run example template: akka-http-microservice from the Activator
Project builds, but on running, unable to access URL,
http://localhost:9000/ip/8.8.8.8
getting
'Internal Server Error'
Error on running service: [ERROR] [04/21/2016 12:06:35.506]
[default-akka.actor.default-dispatcher-10]
[akka://default/user/StreamSupervisor-0/flow-2-0-unknown-operation]
Error in stage [One2OneBidi]: Inner stream finished before inputs
completed. Outputs might have been truncated.
(akka.http.impl.util.One2OneBidiFlow$OutputTruncationException$)
This is just with code taken directly from downloaded template *.zip file.
Running on Mac OSx, El Capitan. Running Scala v2.10.3.
Activator v1.3.9
============
(update) still a problem after attempted fix from tutorials support team:
[DEBUG] [04/22/2016 11:58:47.749] [default-akka.actor.default-dispatcher-2] [akka://default/system/IO-TCP/selectors/$a/2] Connection established to [freegeoip.net/104.131.63.168:80]
[ERROR] [04/22/2016 11:58:47.832] [default-akka.actor.default-dispatcher-2] [akka://default/user/StreamSupervisor-0/flow-2-0-unknown-operation] Error in stage [One2OneBidi]: Inner stream finished before inputs completed. Outputs might have been truncated. (akka.http.impl.util.One2OneBidiFlow$OutputTruncationException$)
[ERROR] [04/22/2016 11:58:47.851] [default-akka.actor.default-dispatcher-3] [akka.actor.ActorSystemImpl(default)] Error during processing of request HttpRequest(HttpMethod(GET),http://localhost:9000/ip/8.8.8.8,List(Host: localhost:9000, C
Most responsive help forums related to this issue are:
1) Activator templates
https://github.com/theiterators/akka-http-microservice/issues
2) Akka Mailing List
https://groups.google.com/forum/#!forum/akka-user
I got a response from the company supporting the Activator template tutorials here; and they have fixed the transient issue: https://github.com/theiterators/akka-http-microservice/issues/21
HOWEVER -- I tried running the Service again, and it looks like there's still a problem:
[DEBUG] [04/22/2016 11:58:47.749] [default-akka.actor.default-dispatcher-2] [akka://default/system/IO-TCP/selectors/$a/2] Connection established to [freegeoip.net/104.131.63.168:80]
[ERROR] [04/22/2016 11:58:47.832] [default-akka.actor.default-dispatcher-2] [akka://default/user/StreamSupervisor-0/flow-2-0-unknown-operation] Error in stage [One2OneBidi]: Inner stream finished before inputs completed. Outputs might have been truncated. (akka.http.impl.util.One2OneBidiFlow$OutputTruncationException$)
[ERROR] [04/22/2016 11:58:47.851] [default-akka.actor.default-dispatcher-3] [akka.actor.ActorSystemImpl(default)] Error during processing of request HttpRequest(HttpMethod(GET),http://localhost:9000/ip/8.8.8.8,List(Host: localhost:9000, C
Tried instead to download LATEST tutorial template; and overwrite the one I'd downloaded yesterday. Then rebuilt, rerun that.
NOW the microservice comes up; and it appears to be working! Problem resolved!

Can't use SpeechKit Titanium module from iOS in my app

I want want to use Speechkit SDK in my app, since I found it recognize words better than the native tool did.
I found a Titanium module on GitHub but it is designed to work with Titanium SDK 3.1.3.GA . I am currently working with SDK 5.0.0.GA.
What am I supposed to do to import this module in my mobile app ? I updated the titanium.xcconfig file to reflect the version of my SDK. I also put my credentials into it and build the project. Then I compressed it and installed it via Help Menu > Install Mobile Module. I finally added it to the tiapp.xml file.
When I try to run the project, this is what I get :
[ERROR] : ** BUILD FAILED **
[ERROR] : The following build commands failed:
[ERROR] : Ld Build/Intermediates/Hello5.build/Debug-iphoneos/Hello5.build/Objects-normal/arm64/Hello5 normal arm64
[ERROR] : Ld Build/Intermediates/Hello5.build/Debug-iphoneos/Hello5.build/Objects-normal/armv7/Hello5 normal armv7
[ERROR] : (2 failures)
TRACE | titanium exited with exit code 1
ERROR | Error: ti run exited with error code 1
at ChildProcess.<anonymous> (/Users/feeder/.appcelerator/install/5.0.1/package/node_modules/appc-cli-titanium/plugins/run.js:89:66)
at ChildProcess.emit (events.js:117:20)
at Process.ChildProcess._handle.onexit (child_process.js:820:12)
I tried to create a new module by hand and drag-and-drop files into it, and also tried to install globally vs project-specific, I can't come with an idea for making it work. Thank you in advance if you could share an idea ;)
I have the same error and looking the console using Trace appears "framework SpeechKit not found".
I've successfully resolved this error by packaging the module to your project directly selecting "Mobile App Project" given that Module.xcconfig sets "FRAMEWORK_SEARCH_PATHS" to find SpeechKit framework on "assets" folder from the project directly.