I updated nativeScript, #angular/cli and #nativescript/schematics to their latest stable version. Generated a new project as:
ng new port --collection=#nativescript/schematics --shared --style=scss --prefix=port
followed by
tns run ios --bundle
Error:
***** Fatal JavaScript exception - application has been terminated. *****
Native stack trace:
1 0x10da0702e NativeScript::reportFatalErrorBeforeShutdown(JSC::ExecState*, JSC::Exception*, bool)
2 0x10da58f94 -[TNSRuntime executeModule:referredBy:]
3 0x10d2f50b3 main
4 0x7fff51a231fd start
5 0x1
JavaScript stack trace:
file: node_modules/#nativescript/angular/__ivy_ngcc__/zone-js/dist/zone-nativescript.js:32:0
at file: node_modules/#nativescript/angular/__ivy_ngcc__/zone-js/dist/zone-nativescript.js:645:1
at file: node_modules/#nativescript/angular/__ivy_ngcc__/zone-js/dist/zone-nativescript.js:9:61
at file: node_modules/#nativescript/angular/__ivy_ngcc__/zone-js/dist/zone-nativescript.js:12:1
at ../node_modules/#nativescript/angular/__ivy_ngcc__/zone-js/dist/zone-nativescript.js(file:///app/vendor.js:103073:34)
at __webpack_require__(file: src/webpack/bootstrap:752:0)
at fn(file: src/webpack/bootstrap:120:0)
at file: node_modules/#nativescript/angular/__ivy_ngcc__/platform-common.js:6:8
at ../node_modules/#nativescript/angular/__ivy_ngcc__/platform-common.js(file:///app/vendor.js:97913:34)
at __webpack_require__(file: src/webpack/bootstrap:752:0)
at fn(file: src/webpack/bootstrap:120:0)
at ../node_modules/#nativescript/angular/__ivy_ngcc__/index.js(file: node_modules/#nativescript/angular/__ivy_ngcc__/index.js:6:17)
at __webpack_require__(file: src/webpack/bootstrap:752:0)
at fn(file: src/webpack/bootstrap:120:0)
at ./app/app.module.tns.ts(file: src/app/app.module.tns.ts:1:0)
at __webpack_require__(file: src/webpack/bootstrap:752:0)
at fn(file: src/webpack/bootstrap:120:0)
at file:///app/bundle.js:240:96
at ./main.tns.ts(file:///app/bundle.js:298:34)
at __webpack_require__(fi<…>
JavaScript error:
file: node_modules/#nativescript/angular/__ivy_ngcc__/zone-js/dist/zone-nativescript.js:32:0: JS ERROR Error: Zone already loaded.
(CoreFoundation) *** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: Error: Zone already loaded
the many issue with nativescript angular9 and ivy.
but to fix this error just use zone.js 0.9.1
I am currently running Amazon Corretto Java 11.0.
I have downloaded the apache-jena-fuseki-3.15.0.zip. The archive has been extracted. From a cygwin bash shell, I ran:
fuseki-server --update --mem /ds
The server is accessible from a browser at localhost:3030. However, the startup dumped a lot of errors.
Documentation for installing and running on Windows is sparse. I am trying to get to a point where I can upload my ontology and execute SPARQL queries. I can do neither at this point. Any ideas of what might be wrong? Any pointers to online installation guides or videos?
Here are the errors:
2020-06-21 22:55:45,545 main ERROR Unrecognized format specifier [d]
2020-06-21 22:55:45,558 main ERROR Unrecognized conversion specifier [d] starting at position 16 in conversion pattern.
2020-06-21 22:55:45,559 main ERROR Unrecognized format specifier [thread]
2020-06-21 22:55:45,559 main ERROR Unrecognized conversion specifier [thread] starting at position 25 in conversion pattern.
2020-06-21 22:55:45,559 main ERROR Unrecognized format specifier [level]
2020-06-21 22:55:45,560 main ERROR Unrecognized conversion specifier [level] starting at position 35 in conversion pattern.
2020-06-21 22:55:45,560 main ERROR Unrecognized format specifier [logger]
2020-06-21 22:55:45,560 main ERROR Unrecognized conversion specifier [logger] starting at position 47 in conversion pattern.
2020-06-21 22:55:45,561 main ERROR Unrecognized format specifier [msg]
2020-06-21 22:55:45,561 main ERROR Unrecognized conversion specifier [msg] starting at position 54 in conversion pattern.
2020-06-21 22:55:45,561 main ERROR Unrecognized format specifier [n]
2020-06-21 22:55:45,562 main ERROR Unrecognized conversion specifier [n] starting at position 56 in conversion pattern.
2020-06-21 22:55:45,572 main ERROR Unrecognized format specifier [d]
2020-06-21 22:55:45,573 main ERROR Unrecognized conversion specifier [d] starting at position 16 in conversion pattern.
2020-06-21 22:55:45,573 main ERROR Unrecognized format specifier [thread]
2020-06-21 22:55:45,573 main ERROR Unrecognized conversion specifier [thread] starting at position 25 in conversion pattern.
2020-06-21 22:55:45,574 main ERROR Unrecognized format specifier [level]
2020-06-21 22:55:45,574 main ERROR Unrecognized conversion specifier [level] starting at position 35 in conversion pattern.
2020-06-21 22:55:45,574 main ERROR Unrecognized format specifier [logger]
2020-06-21 22:55:45,575 main ERROR Unrecognized conversion specifier [logger] starting at position 47 in conversion pattern.
2020-06-21 22:55:45,575 main ERROR Unrecognized format specifier [msg]
2020-06-21 22:55:45,575 main ERROR Unrecognized conversion specifier [msg] starting at position 54 in conversion pattern.
2020-06-21 22:55:45,575 main ERROR Unrecognized format specifier [n]
2020-06-21 22:55:45,575 main ERROR Unrecognized conversion specifier [n] starting at position 56 in conversion pattern.
2020-06-21 22:55:45,630 main ERROR Unable to locate plugin type for Loggers
2020-06-21 22:55:45,630 main ERROR Unable to locate plugin type for Appenders
2020-06-21 22:55:45,631 main ERROR Unable to locate plugin type for ThresholdFilter
2020-06-21 22:55:45,633 main ERROR Unable to locate plugin for Logger
2020-06-21 22:55:45,633 main ERROR Unable to locate plugin for Logger
2020-06-21 22:55:45,634 main ERROR Unable to locate plugin for Logger
2020-06-21 22:55:45,634 main ERROR Unable to locate plugin for Logger
2020-06-21 22:55:45,635 main ERROR Unable to locate plugin for Logger
2020-06-21 22:55:45,635 main ERROR Unable to locate plugin for Logger
2020-06-21 22:55:45,635 main ERROR Unable to locate plugin for Logger
2020-06-21 22:55:45,636 main ERROR Unable to locate plugin for Logger
2020-06-21 22:55:45,636 main ERROR Unable to locate plugin for Logger
2020-06-21 22:55:45,636 main ERROR Unable to locate plugin for Logger
2020-06-21 22:55:45,637 main ERROR Unable to locate plugin for Logger
2020-06-21 22:55:45,637 main ERROR Unable to locate plugin for AppenderRef
2020-06-21 22:55:45,637 main ERROR Unable to locate plugin for Logger
2020-06-21 22:55:45,637 main ERROR Unable to locate plugin for Logger
2020-06-21 22:55:45,638 main ERROR Unable to locate plugin for Logger
2020-06-21 22:55:45,638 main ERROR Unable to locate plugin for AppenderRef
2020-06-21 22:55:45,639 main ERROR Unable to locate plugin for Root
2020-06-21 22:55:45,639 main ERROR Unable to locate plugin for Loggers
2020-06-21 22:55:45,640 main ERROR Unable to locate plugin for PatternLayout
2020-06-21 22:55:45,640 main ERROR Unable to locate plugin for Console
2020-06-21 22:55:45,640 main ERROR Unable to locate plugin for PatternLayout
2020-06-21 22:55:45,640 main ERROR Unable to locate plugin for Console
2020-06-21 22:55:45,641 main ERROR Unable to locate plugin for Appenders
2020-06-21 22:55:45,641 main ERROR Unable to locate plugin for ThresholdFilter
2020-06-21 22:55:45,642 main ERROR Unrecognized format specifier [d]
2020-06-21 22:55:45,642 main ERROR Unrecognized conversion specifier [d] starting at position 16 in conversion pattern.
2020-06-21 22:55:45,643 main ERROR Unrecognized format specifier [thread]
2020-06-21 22:55:45,643 main ERROR Unrecognized conversion specifier [thread] starting at position 25 in conversion pattern.
2020-06-21 22:55:45,644 main ERROR Unrecognized format specifier [level]
2020-06-21 22:55:45,644 main ERROR Unrecognized conversion specifier [level] starting at position 35 in conversion pattern.
2020-06-21 22:55:45,645 main ERROR Unrecognized format specifier [logger]
2020-06-21 22:55:45,645 main ERROR Unrecognized conversion specifier [logger] starting at position 47 in conversion pattern.
2020-06-21 22:55:45,645 main ERROR Unrecognized format specifier [msg]
2020-06-21 22:55:45,646 main ERROR Unrecognized conversion specifier [msg] starting at position 54 in conversion pattern.
2020-06-21 22:55:45,646 main ERROR Unrecognized format specifier [n]
2020-06-21 22:55:45,647 main ERROR Unrecognized conversion specifier [n] starting at position 56 in conversion pattern.
There is a problem with the Apache Jena Fuseki v3.15.0 combined jar (fuseki-server.jar, not the war file packaging, nor the non-UI jena-fuseki-server form). It is a bug in v 3.15.0 only, not in 3.14.0.
https://issues.apache.org/jira/browse/JENA-1900
An in-place fix:
https://gist.github.com/afs/a862c0e71b37ce617cd0a592b60609f1
This bash script downloads jena-fuseki-server-3.15.0.jar which does not have the same problem, extracts the "Log4j2Plugins.dat", then replaces the file in fuseki-server.jar.
An alternative to consider is using jena-fuseki-server as a service. It does not have a UI nor maintain a "run/" area - instead it uses a command line arguments, including a configuration file argument, each time it is started.
When I try to run Elasticsearch on Windows 10 as main language is English, everything works fine. But if I change the main language as Turkish, I get error messages as:
2018-07-26 14:42:39,485 main ERROR Unable to locate plugin type for IfFileName
2018-07-26 14:42:39,633 main ERROR Unable to locate plugin for IfAccumulatedFileSize
2018-07-26 14:42:39,634 main ERROR Unable to locate plugin for IfFileName
2018-07-26 14:42:39,637 main ERROR Unable to invoke factory method in class org.apache.logging.log4j.core.appender.rolling.action.DeleteAction for element Delete: java.lang.NullPointerException java.lang.NullPointerException
at org.apache.logging.log4j.core.config.plugins.visitors.PluginElementVisitor.findNamedNode(PluginElementVisitor.java:103)
at org.apache.logging.log4j.core.config.plugins.visitors.PluginElementVisitor.visit(PluginElementVisitor.java:87)
at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.generateParameters(PluginBuilder.java:248)
at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:135)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:958)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:898)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:890)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:890)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:890)
at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:513)
at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:237)
at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:249)
at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:545)
at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:261)
at org.elasticsearch.common.logging.LogConfigurator.configure(LogConfigurator.java:163)
at org.elasticsearch.common.logging.LogConfigurator.configure(LogConfigurator.java:119)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:291)
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121)
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112)
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
at org.elasticsearch.cli.Command.main(Command.java:90)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:85)
2018-07-26 14:42:39,645 main ERROR Null object returned for Delete in DefaultRolloverStrategy.
So it seem like a charset problem. The file is encoded as UTF-8, I check it with Notepad++. Elasticsearch has JVM option -Dfile.encoding=UTF-8. I double checked the log4j2.properties file and IfFileName has no space after it.
And if I change IfFileName as ıfFileName (which ı is a Turkish character - lower I) error becomes:
2018-07-26 14:54:25,819 main ERROR Unable to locate plugin type for ıfFileName
Does anyone have an idea about how to fix that?
Adding -Duser.language=en JVM parameter fixed the problem.
I had the same problem but didn't know where to add the -Duser.language=en. However, I found it out it is under the sonar.properties, the line where sonar.search.javaAdditionalOpts= is located remove the # at the begining and write as sonar.search.javaAdditionalOpts=-Duser.language=en and save the file.
This is a bug in Log4j2, which uses String#toLowerCase() without a locale parameter: in the Turkish locale IfFileName is lowercased as ıffilename (with a dotless i). I have reported this as GH issue #1281.
Until this is fixed you can write plugin types in all lowercase (English) letters: e.g. iffilename instead of IfFileName.
We are trying to deploy an .ear in WAS8.5 Application Server. During the application startup an error is thrown of incompatible ResourceAdapter. The complete stack trace is here.
What could be the possible cause of this? Any pointer would be of great help. Thanks in Advance.
J2CA0043E: An Exception occurred while trying to instantiate a ResourceAdapterJavaBean instance for the installed ResourceAdapter defined by key cells/ux9039Cell01/applications/globalmc-mq-ear.ear/deployments/globalmc-mq-ear/deployment.xml#J2CResourceAdapter_1423058973553.
The exception is: java.lang.ClassCastException: com.gdc.ps.frd.globalmc.ra.NextRecordResourceAdapterImpl incompatible with javax.resource.spi.ResourceAdapter**
at com.ibm.ejs.j2c.RAWrapperImpl.createAndConfigureRA(RAWrapperImpl.java:2236)
at com.ibm.ejs.j2c.RAWrapperImpl.startRA(RAWrapperImpl.java:712)
at com.ibm.ejs.j2c.RALifeCycleManagerImpl.startRA(RALifeCycleManagerImpl.java:1170)
...
FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDCIncident emitted on /apps/WAS8.5/IBM/WebSphere/AppServer/profiles/FFMNode/logs/ffdc/FFMUxSrvr_87506fa8_15.02.05_04.29.59.6196455942349878479476.txt com.ibm.ejs.j2c.RALifeCycleManagerImpl.startRA 1324
[2/5/15 4:29:59:700 CST] 0000007e RALifeCycleMa E J2CA0128E: An Exception occurred while trying to start ResourceAdapter cells/ux9039Cell01/applications/globalmc-mq-ear.ear/deployments/globalmc-mq-ear/deployment.xml#J2CResourceAdapter_1423058973553. T**he exception is: java.lang.ClassCastException:** com.gdc.ps.frd.globalmc.ra.NextRecordResourceAdapterImpl incompatible with javax.resource.spi.ResourceAdapter
at com.ibm.ejs.j2c.RAWrapperImpl.createAndConfigureRA(RAWrapperImpl.java:2236)
at com.ibm.ejs.j2c.RAWrapperImpl.startRA(RAWrapperImpl.java:712)
at com.ibm.ejs.j2c.RALifeCycleManagerImpl.startRA(RALifeCycleManagerImpl.java:1170)
at com.ibm.ejs.j2c.RALifeCycleManagerImpl.resourceProviderEvent(RALifeCycleManagerImpl.java:884)
The error indicates that com.gdc.ps.frd.globalmc.ra.NextRecordResourceAdapterImpl is not a javax.resource.spi.ResourceAdapter.
Has something in your configuration asserted that this class represents a JCA Resource Adapter? It would appear that it isn't.
I think you have multiple copies of class javax.resource.spi.ResourceAdapter. Basically, multiple jars has the same class which is causing the issue.
How do you make sense of exceptions like this? It doesn't add up because the CatalogFacade does compile fine, and By the way, I do implement the classes they ask for. "Any of" seems like it's not needed to have all of them.
Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: java.lang.IllegalArgumentException:
Which is Inside this surrounding error message, that seems a bit vague:
[exec] remote failure: Error occurred during deployment: Exception while lo
ading the app : java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: java
.lang.IllegalArgumentException: PWC1430: Unable to add listener of type: com.sun
.javaee.blueprints.petstore.model.CatalogFacade, because it does not implement a
ny of the required ServletContextListener, ServletContextAttributeListener, Serv
letRequestListener, ServletRequestAttributeListener, HttpSessionListener, or Htt
pSessionAttributeListener interfaces. Please see server.log for more details.
[exec] Command deploy failed.
BUILD FAILED
C:\LatestPS\trunk\ws\bp-project\app-server-ant.xml:379: exec returned: 1
I've been trying things all night . It's not clear.
By the way, to the best of my knowledge..there's nothing significant at app-server-ant.xml:379..
Here's the Full log(I know it's quite big):
Some more of files are here : http://www.adelazzam.com/so.html
The problem is there in the error-message. The <listener> you specify in your web.xml, CatalogFacade does not implement the required Listener interface, specified by the servlet specification.
Check the implementation of your CatalogFacade. Depending on what type of listener it should be (that is, what lifecycle events should it be notified of) it must implement one of ServletContextListener, ServletContextAttributeListener, ServletRequestListener, ServletRequestAttributeListener, HttpSessionListener, or HttpSessionAttributeListener.