Corda 3.3 and Open JDK - corda

Corda 3.3 is not working with openjdk version "1.8.0_202"
I'm able to build the cordapp, start it and also list all the flows using flow list command. However, when I try to run any flow in the shell I'm getting following exceptions and stack trace
[ERROR] 12:02:15+0530 [pool-8-thread-2] command.CRaSHSession.execute - Error while evaluating request 'flow start WhoAmI' flow start WhoAmI: exception: UndeclaredThrowableException
...
java.lang.reflect.UndeclaredThrowableException: null
...
Caused by: java.util.concurrent.ExecutionException: java.lang.AssertionError: java.lang.NoSuchFieldException: target
...
Caused by: java.lang.AssertionError: java.lang.NoSuchFieldException: target
...
Caused by: java.lang.NoSuchFieldException: target

Starting Corda 4, the support for Open JDK has been added.
See here for more details: https://docs.corda.net/docs/corda-os/4.4/getting-set-up.html

Related

CorDapp with java.lang.ClassNotFoundException: sun.security.x509.X509CertImpl with IBM JDK 8

I got the following error message when I tried to build a CorDapp sample. If it is caused by certificate missing the header and footer lines, how can I get a correct certification?
Logs can be found in : /opt/corda/samples/cordapp-example/workflows-java/build/nodes/PartyA/logs
java.io.IOException: Sequence tag error
... ...
at net.corda.node.Corda.main(Corda.kt:13)
Exception in thread "main" java.lang.NoClassDefFoundError: sun.security.x509.X509CertImpl
at net.corda.serialization.internal.DefaultWhitelist.<clinit>(DefaultWhitelist.kt:65)
... ...
at net.corda.cliutils.CordaCliWrapperKt.start(CordaCliWrapper.kt:72)
at net.corda.node.Corda.main(Corda.kt:13)
Caused by: java.lang.ClassNotFoundException: sun.security.x509.X509CertImpl
Take a look at the Corda getting started guide here
Java 8 is required and the following JDK's have been tested
Oracle JDK
Amazon Corretto
Red Hat’s OpenJDK
Note: OpenJDK builds usually exclude JavaFX, which Corda's GUI tools require.

Updated from corda 3.1 -> 3.2, now can't start node

During node startup I get this exception:
[ERROR] 2018-11-01T13:11:38,159Z [main] internal.Node.run - Exception during node startup {} java.lang.NullPointerException: couldn't find factory for type=3
What does "couldn't find factory for type=3" mean?
I'm not sure what else to provide to make debugging easier, but let me know if there's anything missing!
This is known to have been fixed by deleting the node's artemis folder before restarting it.

JGIT api exeception

I am using JGIT API to clone and push code but facing below mentioned problem with the some git project
Exception in thread "main" org.eclipse.jgit.api.errors.JGitInternalException: Exception caught during execution of fetch command at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:138) at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:175) at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:121) at com.huawei.ccm.sync.service.GitSyncservice.cloneGit(GitSyncservice.java:139) at com.huawei.test.Test.doSync(Test.java:146) at com.huawei.test.Test.main(Test.java:132) Caused by: org.eclipse.jgit.errors.TransportException: Packfile is truncated. at org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(BasePackFetchConnection.java:291) at org.eclipse.jgit.transport.BasePackFetchConnection.fetch(BasePackFetchConnection.java:229) at org.eclipse.jgit.transport.FetchProcess.fetchObjects(FetchProcess.java:225) at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:151) at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:113) at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1062) at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:129) ... 5 more Caused by: java.io.EOFException: Packfile is truncated. at org.eclipse.jgit.transport.PackParser.fill(PackParser.java:1129) at org.eclipse.jgit.transport.PackParser.access$000(PackParser.java:97) at org.eclipse.jgit.transport.PackParser$InflaterStream.read(PackParser.java:1647) at java.io.InputStream.read(InputStream.java:101) at org.eclipse.jgit.transport.PackParser.whole(PackParser.java:974) at org.eclipse.jgit.transport.PackParser.indexOneObject(PackParser.java:908) at org.eclipse.jgit.transport.PackParser.parse(PackParser.java:486) at org.eclipse.jgit.storage.file.ObjectDirectoryPackParser.parse(ObjectDirectoryPackParser.java:179) at org.eclipse.jgit.transport.PackParser.parse(PackParser.java:448) at org.eclipse.jgit.transport.BasePackFetchConnection.receivePack(BasePackFetchConnection.java:676) at org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(BasePackFetchConnection.java:284) ... 11 more

Cloudify:: uninstallation-application fails

To uninstall an application I called uninstall-application app-name from the cloudify prompt in a local cloud environment. However the uninstall is unsuccessful. The log file shows following exception.
2013-10-14 13:06:50,537 rest [1] INFO [org.cloudifysource.rest.controllers.ServiceController] - Removing all application scope attributes for application
2013-10-14 13:06:50,542 rest [1] WARNING [org.openspaces.admin.internal.admin.DefaultAdmin] - Failed to execute: org.openspaces.admin.internal.gsm.DefaultGridServiceManager$3#70b1ec8b - org.openspaces.admin.AdminException: Failed to undeploy processing unit [app-name]; Caused by: org.openspaces.admin.AdminException: Failed to undeploy processing unit [app-name]
at org.openspaces.admin.internal.gsm.DefaultGridServiceManager.undeployProcessingUnit(DefaultGridServiceManager.java:279)
at org.openspaces.admin.internal.gsm.DefaultGridServiceManager$3.run(DefaultGridServiceManager.java:799)
at org.openspaces.admin.internal.admin.DefaultAdmin$LoggerRunnable.run(DefaultAdmin.java:2077)
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:724)
Caused by: org.jini.rio.core.OperationalStringException: GSM not found
at org.jini.rio.monitor.ProvisionMonitorImpl.undeploy(ProvisionMonitorImpl.java:601)
at org.jini.rio.monitor.ProvisionMonitorAdminImpl.undeploy(ProvisionMonitorAdminImpl.java:126)
at org.jini.rio.monitor.DeployAdminGigaspacesMethodinternalInvoke7.internalInvoke(Unknown Source)
at com.gigaspaces.internal.reflection.fast.AbstractMethod.invoke(AbstractMethod.java:41)
at com.gigaspaces.lrmi.LRMIRuntime.invoked(LRMIRuntime.java:450)
at com.gigaspaces.lrmi.nio.Pivot.consumeAndHandleRequest(Pivot.java:557)
at com.gigaspaces.lrmi.nio.Pivot.handleRequest(Pivot.java:658)
at com.gigaspaces.lrmi.nio.Pivot$ChannelEntryTask.run(Pivot.java:196)
... 3 more
2013-10-14 13:06:51,544 rest [1] INFO [org.cloudifysource.rest.util.RestPollingRunnable] - undeployAndWait for processing unit has not finished yet
#
Eventually the operation times out. Post that I can not even teardown the local cloud. The only way to come out of this is the reboot the system. Appreciate some help on this one.
The following error:
Caused by: org.jini.rio.core.OperationalStringException: GSM not found at org.jini.rio.monitor.ProvisionMonitorImpl.undeploy
indicates that one of the Cloudify management components was missing. It may have crashed earlier, or perhaps the local machine was running at 100% CPU, causing local components to not respond to each other.
In an actual cloud deployment, this would cause the Cloudify agent to restart the failed component, but in the local-cloud environment the agent and the other management components run in the same process to conserve memory and speed up start-up time.

spring MVC, Jboss 7

I am trying to build a sample spring MVC app using Maven and getting deployed in JBoss 7 application server.
While trying to build using maven, it builds fine without error. However while trying to deploy using JBoss 7, I am getting this following error.
Kindly help to give ideas what might be the cause of this error.
13:48:36,408 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.unit."firstSpring-1.0-SNAPSHOT.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."firstSpring-1.0-SNAPSHOT.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "firstSpring-1.0-SNAPSHOT.war"
Caused by: java.lang.RuntimeException: Error getting reflective information for class org.springframework.web.servlet.tags.EvalTag with ClassLoader ModuleClassLoader for Module "deployment.firstSpring-1.0-SNAPSHOT.war:main" from Service Module Loader
Caused by: java.lang.NoClassDefFoundError: org/springframework/expression/PropertyAccessor
Caused by: java.lang.ClassNotFoundException: org.springframework.expression.PropertyAccessor from [Module "deployment.firstSpring-1.0-SNAPSHOT.war:main" from Service Module Loader]

Resources