Mulesoft 3.8 | Error running the application | An internal error occurred during: "<projectname>" | org.eclipse.core.jobs - anypoint-studio

I am getting below error while running the Mule 3.8 project:
java.lang.NullPointerException
at org.mule.tooling.maven.ui.launch.MavenDeploymentStrategy.findFile(MavenDeploymentStrategy.java:123)
at org.mule.tooling.maven.ui.launch.MavenDeploymentStrategy.getResultingZipFile(MavenDeploymentStrategy.java:116)
at org.mule.tooling.maven.ui.launch.MavenDeploymentStrategy.packageZipFile(MavenDeploymentStrategy.java:104)
at org.mule.tooling.maven.ui.launch.MavenDeploymentStrategy.deployToEmbeddedInstance(MavenDeploymentStrategy.java:68)
at org.mule.tooling.runtime.launch.MuleRuntimeLaunchDelegate.deployProjects(MuleRuntimeLaunchDelegate.java:608)
at org.mule.tooling.runtime.launch.MuleRuntimeLaunchDelegate.performLegacyDeployment(MuleRuntimeLaunchDelegate.java:435)
at org.mule.tooling.runtime.launch.MuleRuntimeLaunchDelegate.launch(MuleRuntimeLaunchDelegate.java:327)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
and this is from Plug-in org.eclipse.core.jobs

Related

How to fix ClassNotFoundException: kotlinx.coroutines.debug.AgentPremain in debug?

I am running several projects as spring boot applications, one of them specifically cannot start and is throwing:
java.lang.ClassNotFoundException: kotlinx.coroutines.debug.AgentPremain
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:304)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401)
Exception in thread "main" FATAL ERROR in native method: processing of -javaagent failed
Disconnected from the target VM, address: '127.0.0.1:64279', transport: 'socket'
Process finished with exit code 1
The command line has the option:
-javaagent:[...].m2/repository/org/jetbrains/kotlinx/kotlinx-coroutines-core/1.5.0/kotlinx-coroutines-core-1.5.0.jar
And this jar exists.
this happened after updating my Intellij'Idea to 2021.2
This issue happens only in debug mode.
Any idea how to solve this?
It is a known problem in the Kotlin plugin. As a workaround disable the coroutine agent option under Settings/Preferences | Build, Execution, Deployment | Debugger | Data Views | Kotlin | enable "Disable coroutine agent".
Please follow https://youtrack.jetbrains.com/issue/KTIJ-19345 , for updates.

Hyperledger besu with permissioning enabled error

I am using the quickstart network provided by Hyperledger besu, and I want to test and see how permissioning works with the permissioning management dapp. I use this repo: https://github.com/bretthenderson/besu-quickstart
So when I run the run-permissioning.sh script to build the dapp and run the test network everything works fine and the network starts succesfully then when I run the run-permissioning-dapp.sh script it works fine and it compiles and deploys the permissioning smart contracts then restarts the network with permissioning enabled but after that the bootnode container crashes with these logs :
2021-04-02 10:25:11.294+00:00 | main | INFO | KeyPairUtil | Loaded public key 0xc1979a8a48693db804316b5acebe35e11731e1fb1c9c21ff7268ab25db6f6e03390a429b83cf0ec0865a7205f2669ec1ace652a3def11e2e01571c74939cbe22 from /opt/besu/keys/key
Setting logging level to INFO
2021-04-02 10:25:42.930+00:00 | main | INFO | AbstractAltBnPrecompiledContract | Using LibEthPairings native alt bn128
2021-04-02 10:25:55.841+00:00 | main | INFO | SECP256K1 | Using native secp256k1
2021-04-02 10:25:55.933+00:00 | main | INFO | Besu | Starting Besu version: besu/v21.1.3/linux-x86_64/oracle_openjdk-java-11
2021-04-02 10:25:59.261+00:00 | main | WARN | Besu | --min-gas-price has been ignored because --miner-enabled was not defined on the command line.
2021-04-02 10:26:00.299+00:00 | main | INFO | Besu | Static Nodes file = /opt/besu/data/static-nodes.json
2021-04-02 10:26:00.322+00:00 | main | INFO | StaticNodesParser | StaticNodes file /opt/besu/data/static-nodes.json does not exist, no static connections will be created.
2021-04-02 10:26:00.351+00:00 | main | INFO | Besu | Connecting to 0 static nodes.
2021-04-02 10:26:00.368+00:00 | main | INFO | Besu | Security Module: localfile
2021-04-02 10:26:00.661+00:00 | main | INFO | DatabaseMetadata | Lookup database metadata file in data directory: /opt/besu/data
2021-04-02 10:26:01.646+00:00 | main | INFO | RocksDBKeyValueStorageFactory | Existing database detected at /opt/besu/data. Version 1
2021-04-02 10:26:03.790+00:00 | main | INFO | KeyPairUtil | Loaded public key 0xc1979a8a48693db804316b5acebe35e11731e1fb1c9c21ff7268ab25db6f6e03390a429b83cf0ec0865a7205f2669ec1ace652a3def11e2e01571c74939cbe22 from /opt/besu/keys/key
2021-04-02 10:26:04.310+00:00 | main | INFO | ProtocolScheduleBuilder | Protocol schedule created with milestones: [Petersburg: 0]
ANTLR Tool version 4.7.1 used for code generation does not match the current runtime version 4.8ANTLR Runtime version 4.7.1 used for parser compilation does not match the current runtime version 4.8ANTLR Tool version 4.7.1 used for code generation does not match the current runtime version 4.8ANTLR Runtime version 4.7.1 used for parser compilation does not match the current runtime version 4.8ANTLR Tool version 4.7.1 used for code generation does not match the current runtime version 4.8ANTLR Runtime version 4.7.1 used for parser compilation does not match the current runtime version 4.8ANTLR Tool version 4.7.1 used for code generation does not match the current runtime version 4.8ANTLR Runtime version 4.7.1 used for parser compilation does not match the current runtime version 4.8
Error: node permissioning contract at address 0x0000000000000000000000000000000000009999 does not match the expected interface version 1
I can't find anything about this error anywhere as hyperledger besu have a very small community...
The fix is to the issue is to add --permissions-nodes-contract-version=2 to your besu command line.
This is because in v 2.0.0 of permissioning smart contracts repo we changed the interface as per the changelog https://github.com/ConsenSys/permissioning-smart-contracts/releases/tag/v2.0.0
It is in the besu docs here https://besu.hyperledger.org/en/stable/HowTo/Limit-Access/Specify-Perm-Version/ but I have already reported this issue and it has been fixed on the documentation of on-chain permissioning tutorial.
you can find more details here
Github issue
Besu Docs
i'm facing the same issue even with --permissions-nodes-contract-version=2 is added, check my post here : https://ethereum.stackexchange.com/questions/132573/hyperledger-besu-onchain-permissioning-error

An internal error occurred during: "Syncing to CLI...". java.lang.NullPointerException

When i configure the geymotion with appcelerator studio and click acept show that error An internal error occurred during: "Syncing to CLI...". java.lang.NullPointerException. I can't play the device of genymotion. I have a win 8 x64 and amd procesor

Error deploying Mule application in mule standalone 3.5.0

I run my application with the embedded server (mule server 3.5.0 CE) in anypoint studio and its deployed well but when i try to deploy it in mule standalone 3.5.0 i get this error:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ New app 'pushV1' +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
INFO 2015-04-08 17:14:17,009 [WrapperListener_start_runner] org.mule.module.launcher.MuleApplicationClassLoader: [pushV1] Loading the following jars:
=============================
file:/root/Desktop/mule-standalone-3.5.0/apps/pushV1/lib/mysql-connector-java-5.1.32.jar
file:/root/Desktop/mule-standalone-3.5.0/apps/pushV1/lib/json-simple-1.1.jar
=============================
INFO 2015-04-08 17:14:17,009 [WrapperListener_start_runner] org.mule.module.launcher.log4j.ArtifactAwareRepositorySelector: Found logging config for application 'pushV1' at 'file:/root/Desktop/mule-standalone-3.5.0/conf/log4j.properties'
ERROR 2015-04-08 17:14:17,648 [WrapperListener_start_runner] org.mule.module.launcher.DefaultArchiveDeployer:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Failed to deploy artifact 'pushV1', see below +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
org.mule.module.launcher.DeploymentInitException: PropertyBatchUpdateException: Failed properties: Property 'objectClassName' threw exception; nested exception is java.lang.UnsupportedClassVersionError: ws1/Transformer : Unsupported major.minor version 52.0
at org.mule.module.launcher.application.DefaultMuleApplication.init(DefaultMuleApplication.java:181)
at org.mule.module.launcher.artifact.ArtifactWrapper$2.execute(ArtifactWrapper.java:62)
at ...
http://pastebin.com/xvmNrxx9
Check the version which you are compiling the source code in the IDE... looks like you are using java 8.
After that, check which version is using your mule-standalone-server.
You can check the java version in Anypoint Studio like below
Go to--> Window-->Click on Preferences-->double click on java--> click on installed JREs
Then you can update java 7 or 8 if it is there in your system

Error starting Sonar

I'm using SONAR for my project.
While using "StartSonar.bat" for launch of Sonar, it is throwing the following exception.
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | Error occurred during initialization of VM
jvm 1 | java/lang/NoClassDefFoundError: java/lang/Object
wrapper | JVM exited while loading the application.
wrapper | Launching a JVM...
jvm 2 | Error occurred during initialization of VM
jvm 2 | java/lang/NoClassDefFoundError: java/lang/Object
wrapper | JVM exited while loading the application.
wrapper | Launching a JVM...
jvm 3 | Error occurred during initialization of VM
jvm 3 | java/lang/NoClassDefFoundError: java/lang/Object
wrapper | JVM exited while loading the application.
wrapper | Launching a JVM...
jvm 4 | Error occurred during initialization of VM
jvm 4 | java/lang/NoClassDefFoundError: java/lang/Object
wrapper | JVM exited while loading the application.
wrapper | Launching a JVM...
jvm 5 | Error occurred during initialization of VM
jvm 5 | java/lang/NoClassDefFoundError: java/lang/Object
wrapper | JVM exited while loading the application.
wrapper | There were 5 failed launches in a row, each lasting less than 300 seconds.
Giving up.
wrapper | There may be a configuration problem: please check the logs.
wrapper | <-- Wrapper Stopped
Press any key to continue . . .
Using Java 1.7.0._09. Please help me in getting out of this.
Also, I tried configuring Sonar in IntelliJ IDEA 11 Community Edition. It fails in the startup of IDE. Are any plugins available for Community Edition to run Sonar.
what value do you have for the 'wrapper.java.command' in the wrapper.conf file? Seems like the is no JVM available
Are you sure you have installed a JDK, and not just the JRE?
Also Check JAVA_HOME is configured correctly. Make sure to set the JAVA_HOME environment variable to point to the JDK root folder.
Do one thing, go to <sonarDirectory>\conf and edit the wrapper.conf file and set these 2 lines:
wrapper.java.command=C:\Program Files\Java\jdk1.8.0_20\bin\java
#wrapper.java.command=java