Exception due to unknown party when initiating flow [errorCode=1x4roxc] - corda

I am trying to initiateFlow but I am getting the error below.
java.lang.IllegalArgumentException: Don't know about O=ALICE, L=London, C=GB
at net.corda.node.services.statemachine.FlowMessagingImpl.sendSessionMessage(FlowMessaging.kt:55) ~[classes/:?]
at net.corda.node.services.statemachine.ActionExecutorImpl.executeSendInitial(ActionExecutorImpl.kt:171) ~[classes/:?]

Ah. I had accidentally deleted my "additional-nodes" folder after bootstrapping.
This meant that my node was unaware of all other participants.
Rebootstrapping fixed the issue.

Related

FindException: unable to derive module descriptor

Error occurred during initialization of boot layer
java.lang.module.FindException: Unable to derive module descriptor for C:\JavaFX\jlfgr-1_0.jar
Caused by: java.lang.IllegalArgumentException: jlfgr.1.0: Invalid module name: '1' is not a Java identifier
I am getting this error again and again. I had tried all the solutions which are available on this site but my bug was not fixed. May any one please help me?

Pipeline configuration in HERE OLP

I configured a new pipeline in HERE OLP. Having issues while running it. If anybody has past experience dealing with here olp pipeline, please advise.
2019-08-16 18:21:00.946 [SIGTERM handler] level=ERROR org.apache.spark.executor.CoarseGrainedExecutorBackend - RECEIVED SIGNAL TERM // PipeLineId=63e07977-ba0a-4997-a633-1b578ae86ce1 Realm=olp-ford DeploymentId=4832de82-afb9-4f03-b92a-a6ba12eb9116 VersionId=0bc6df20-8873-4195-bfdb-87271a95fdba
3-4195-bfdb-87271a95fdba
com.here.platform.data.processing.exception.ContextRuntimeException: // Task=seedmap cat=highways l=adas-attributes p=18939748
at com.here.platform.data.processing.exception.ContextRuntimeException$.apply(ContextRuntimeException.scala:46)
at com.here.platform.data.processing.exception.package$.wrapInTryWithContext(package.scala:109)
at com.here.platform.data.processing.driver.impl.executors.DirectCompileFnUtils$$anonfun$applyMappingFn$1$$anonfun$apply$5.apply(DirectCompileFnUtils.scala:83)
at com.here.platform.data.processing.driver.impl.executors.DirectCompileFnUtils$$anonfun$applyMappingFn$1$$anonfun$apply$5.apply(DirectCompileFnUtils.scala:82)
at com.here.platform.data.processing.logging.Implicits$LogContextKeyWrapper$.withChild$extension(Implicits.scala:46)
at com.here.platform.data.processing.driver.impl.executors.DirectCompileFnUtils$$anonfun$applyMappingFn$1.apply(DirectCompileFnUtils.scala:82)
at com.here.platform.data.processing.driver.impl.executors.DirectCompileFnUtils$$anonfun$applyMappingFn$1.apply(DirectCompileFnUtils.scala:81)
at scala.collection.Iterator$$anon$11.next(Iterator.scala:409)
at scala.collection.Iterator$$anon$11.next(Iterator.scala:409)
at scala.collection.Iterator$$anon$12.nextCur(Iterator.scala:434)
at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:440)
at org.apache.spark.shuffle.sort.BypassMergeSortShuffleWriter.write(BypassMergeSortShuffleWriter.java:126)
at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:96)
at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:53)
at org.apache.spark.scheduler.Task.run(Task.scala:99)
at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:322)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalArgumentException: requirement failed: Compile function returned partition key not compatible with the layer: Key('output,'seed-map,18939748)
at scala.Predef$.require(Predef.scala:224)
at com.here.platform.data.processing.driver.impl.executors.ExecutorUtils$.verifyPartitionKey(ExecutorUtils.scala:291)
at com.here.platform.data.processing.driver.impl.executors.DirectCompileFnUtils$$anonfun$applyMappingFn$1$$anonfun$apply$5$$anonfun$apply$6$$anonfun$apply$7.apply(DirectCompileFnUtils.scala:85)
at com.here.platform.data.processing.driver.impl.executors.DirectCompileFnUtils$$anonfun$applyMappingFn$1$$anonfun$apply$5$$anonfun$apply$6$$anonfun$apply$7.apply(DirectCompileFnUtils.scala:85)
at scala.collection.immutable.List.foreach(List.scala:381)
at com.here.platform.data.processing.driver.impl.executors.DirectCompileFnUtils$$anonfun$applyMappingFn$1$$anonfun$apply$5$$anonfun$apply$6.apply(DirectCompileFnUtils.scala:85)
at com.here.platform.data.processing.driver.impl.executors.DirectCompileFnUtils$$anonfun$applyMappingFn$1$$anonfun$apply$5$$anonfun$apply$6.apply(DirectCompileFnUtils.scala:83)
at scala.util.Try$.apply(Try.scala:192)
at com.here.platform.data.processing.exception.package$.wrapInTryWithContext(package.scala:100)
... 17 common frames omitted
The problem might be related to the partition type of layer. Make sure the returned key has the correct Partition.Name type. If your layer is generically partitioned you have to build the partition name with Generic(), and not HereTile().
Also check Partition Type and Zoom level of layer.

Client certificates for JxBrowser

I am getting following exception with JxBrowser. Obviously I checked that KeyChain (I am on osx) contains correct certificates. Both Chrome and Electron are able to find it. Any advice?
12:58:30 SEVERE: The DialogHandler.onSelectCertificate() method has
thrown exception: java.lang.IllegalArgumentException: The
certificateStr cannot be null or empty. at
com.teamdev.jxbrowser.chromium.internal.CertificateFactory.certificatesFromString(SourceFile:27)
at com.teamdev.jxbrowser.chromium.internal.g.run(SourceFile:134) at
com.teamdev.jxbrowser.chromium.internal.q.run(SourceFile:51) at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
It is an issue in JxBrowser. This issue will be resolved in the next version 6.13 that we plan to release this month.
Network network = engine.network();
network.set(VerifyCertificateCallback.class, (params) ->
VerifyCertificateCallback.Response.valid());
Refer link to check more about this api jxbrowser

Severe error in re-deploying servlet - silly error

I was trying to redeploy a servlet I had recently undeployed but kept getting a org.apache.catalina.LifecycleException. Tomcat wasn't able to load the context properly.
This is what triggered the search:
FAIL - Unable to delete [/var/lib/tomcat7/conf/Catalina/localhost/app.xml].
The continued presence of this file may cause problems.
Here are the errors from the log catalina.out, rearranged to fit the column:
WARNING: Calling stop() on failed component [{0}] to trigger clean-up
did not complete.
org.apache.catalina.LifecycleException:
An invalid Lifecycle transition was attempted ([after_stop]) for
component [org.apache.catalina.startup.FailedContext#13150fc] in state
[FAILED]
WARNING: Error while removing context [/app]
java.lang.ClassCastException:
org.apache.catalina.startup.FailedContext cannot be cast to
org.apache.catalina.core.StandardContext
Scrolling back up, I noticed a whole list of SEVERE errors, beginning with:
SEVERE: Parse error in context.xml for /app
org.xml.sax.SAXParseException;
systemId: file:/etc/tomcat7/Catalina/localhost/app.xml/;
lineNumber: 1;
columnNumber: 1;
Content is not allowed in prolog.
This is not related to Cannot Undeploy a web-app completely in Tomcat 7 or Installing JSTL results in org.xml.sax.SAXParseException: Content is not allowed in prolog, though I wasted quite some time looking through these. Everything seemed to be as it should be, so I was stumped. Eventually, I solved it myself. My answer is below.
It turns out that I had deployed
/path/to/servlet/web/
as the XML Configuration file instead of
/path/to/servlet/website.xml
as Tomcat had been expecting.
A quick check in the saved form content of my other browser revealed this kickself error, so I am posting a Q and A here in the hope that this could save someone some time.
Please be careful when deploying manually, people.

NPE in drools rules resulting into CYCLIC_DEPENDENCY and OOM

We have set up a basic Drools framework with Guvnor UI. Rules are written by semi-technical guys and have scope of errors (scope is always there irrespective of who writes it :))
Yesterday, someone wrote a rule which started throwing NullPoiterException but Drool appears to wrap this exception into CYCLIC_DEPENDENCY_ERROR and showing the same.
Also, we ended up with OOM java.lang.OutOfMemoryError: Java heap space immediately(3-4 minutes) after this issue.
Stacktrace for details:
Feb 2013 08:06:55,447 [ERROR] (SWF Activity DroolsActivityTaskList-2.2 229) com.amazon.mobius.csi.workers.droolsengine.DroolsEngineActivitiesImpl:runRules:220 [CYCLIC_DEPENDENCY_ERROR]: Error
while executing Rules, Please validate all rules against any cyclic dependency
Exception executing consequence for rule "final NON EC" in com.amazon.mobius.csi.workers.droolsengine: java.lang.NullPointerException
at org.drools.runtime.rule.impl.DefaultConsequenceExceptionHandler.handleException(DefaultConsequenceExceptionHandler.java:39)
at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1101)
at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:1029)
at org.drools.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1251)
at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:708)
at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:672)
at org.drools.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:218)
at org.drools.impl.StatelessKnowledgeSessionImpl.execute(StatelessKnowledgeSessionImpl.java:295)
at com.amazon.mobius.csi.workers.droolsengine.DroolsEngineActivitiesImpl.runRules(DroolsEngineActivitiesImpl.java:216)
at com.amazon.mobius.csi.workers.droolsengine.DroolsEngineActivitiesImpl.executeRules(DroolsEngineActivitiesImpl.java:145)
at sun.reflect.GeneratedMethodAccessor173.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.amazonaws.services.simpleworkflow.flow.pojo.POJOActivityImplementation.execute(POJOActivityImplementation.java:63)
at com.amazonaws.services.simpleworkflow.flow.generic.ActivityImplementationBase.execute(ActivityImplementationBase.java:46)
at com.amazonaws.services.simpleworkflow.flow.worker.SynchronousActivityTaskPoller.execute(SynchronousActivityTaskPoller.java:214)
at com.amazonaws.services.simpleworkflow.flow.worker.ActivityTaskPoller$2.run(ActivityTaskPoller.java:95)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
at com.amazon.mobius.csi.workers.droolsengine.Rule_final_NON_EC.defaultConsequence(Unknown Source)
at com.amazon.mobius.csi.workers.droolsengine.Rule_final_NON_ECDefaultConsequenceInvoker.evaluate(Unknown Source)
at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1091)
... 18 more
Why does Drools treat it as CYCLIC_DEPENDENCY and result into OOM? Could we have some other issue? Any help would be appreciated.
Thanks,
I believe this to be a cyclic dependency between rules. The RHS of one rule is causing another to activate, which in turn has a RHS which causes the first rule to activate. Therefore there is an infinite loop of rule activations.
Without seeing the rules themselves, I would recommend setting up an agenda event listener to log which rules are firing. That way you should be able to see which 2 rules are activating in this manner. An example such logging listener is here:
https://github.com/gratiartis/scattercode-drools-scenarios/blob/master/src/main/java/uk/co/scattercode/drools/util/TrackingAgendaEventListener.java

Resources