Getting error migrating a project from Neoload 5.1 to Neoload 6.4 - neoload

The project (scripts) was created in Neoload 5.1
Now when we are trying to open the same project with Neoload 6.4, it is asking to migrate the project to Neoload 6.4. After clicking on Yes it is giving Migration error. Below are the error details:
com.neotys.nl.controller.config.migration.MigrationException: Cannot migrate D:\FromWebLoad\NeoloadNBUScripts\Foresters_Final.nlp: D:\FromWebLoad\NeoloadNBUScripts\config.zip
at com.neotys.nl.controller.config.migration.steps.AbstractMigrationStep.migrate(AbstractMigrationStep.java:93)
at com.neotys.nl.controller.config.migration.steps.DesignMigrationStep.apply(DesignMigrationStep.java:43)
at com.neotys.nl.controller.config.migration.steps.MigrationSteps.apply(MigrationSteps.java:38)
at com.neotys.nl.controller.config.ConfigurationManager.performOpenImpl(ConfigurationManager.java:991)
at com.neotys.nl.controller.config.ConfigurationManager.openProject(ConfigurationManager.java:834)
at com.neotys.nl.controller.config.ConfigurationManager.openProject(ConfigurationManager.java:801)
at com.neotys.nl.gui.b1.a(b1.java:1505)
at com.neotys.nl.gui.b1.a(b1.java:1422)
at com.neotys.nl.gui.a.q.run(q.java:33)
Caused by: com.neotys.nl.controller.data.NeoLoadConfigurationException: java.io.FileNotFoundException: D:\FromWebLoad\NeoloadNBUScripts\Foresters_Final.nlp (Access is denied)
at com.neotys.nl.controller.config.ConfigurationManager.saveProject(ConfigurationManager.java:2204)
at com.neotys.nl.controller.config.ConfigurationManager.saveProject(ConfigurationManager.java:1899)
at com.neotys.nl.controller.config.migration.MigrationConfiguration$1.saveProject(MigrationConfiguration.java:31)
at com.neotys.nl.controller.config.migration.steps.AbstractMigrationStep.migrate(AbstractMigrationStep.java:86)
... 8 more

From error message:
NeoLoadConfigurationException: java.io.FileNotFoundException: D:\FromWebLoad\NeoloadNBUScripts\Foresters_Final.nlp (Access is denied)
at com.neotys.nl.controller.config.ConfigurationManager.saveProject(ConfigurationManager.java:2204)
at
I think either the referenced file is not readable by your user or is missing.

Related

Error Launching CloudDataFlow Java App using Cloud Composer

Am a GCP Newbie and facing an error when trying to run a cloud data flow app for the BeamTutorial using GCP Cloud Composers DataflowJavaOperator. Airflow picks up the pipeline but fails with the below error.
gcp_dataflow_hook.py:115} INFO - Running command: java -cp /tmp/dataflow13ec2a50-BeamTutorial-0.0.1-SNAPSHOT.jar org.apache.beam.examples.tutorial.game.solution.Exercise2 --runner=DataflowRunner --project=..... --region=us-central1 --labels={"airflow-version":"v1-9-0-composer"} --jobName=run-beam-data-flow-java-1449a1da --outputPrefix=gs://..../ex2-spark/out
gcp_dataflow_hook.py:127} WARNING - Error: A JNI error has occurred, please check your installation and try again
[2018-10-18 09:35:00,316] {base_task_runner.py:98} INFO - Subtask: Exception in thread "main" java.lang.NoClassDefFoundError:org/apache/beam/sdk/options/PipelineOptions
This BeamTutorial-0.0.1-SNAPSHOT.jar is not a fat jar and runs the job successfully in Dataflow when submitted manually from gcp cloud shell manually as below
mvn compile exec:java -Dexec.mainClass="org.apache.beam.examples.tutorial.game.solution.Exercise2" -Dexec.args="--runner=dataflow --project=<project-name> --outputPrefix=gs://..../beam-tutorial/ex2-spark/out" -Pdataflow-runner
Appreciate any help in fixing this error. thank you.
When using the DataFlowJavaOperator you need to follow instructions here on how to create your ".jar" file:
Add the dependency and plugin from link
Run mvn package to create your ".jar" file
Once you do that I'd advise to make sure that the ".jar" file is actually running correctly before trying to run it inside Composer. So in this case following the tutorial, running:
java -jar target/BeamTutorial-0.0.1-SNAPSHOT.jar --runner=DataflowRunner --p
roject=<my-project> --tempLocation=<my-bucket>
I also get:
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/beam/sdk/options/PipelineOptions
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: org.apache.beam.sdk.options.PipelineOptions
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 7 more
So the issue looks more Java-related and how the pom is configured that is not creating a valid .jar file, or it is expecting some additional parameters. In any case you should troubleshoot the ".jar"/pom before going further.
For some other pipelines I have I ran them successfully using the DataflowJavaOperator and a valid ".jar" file.

How to Setup Sonarcube scanner for Xcode/Objective-C iOS Project

I am new to SonarQube. I find the documents given in the portal has very less information about setting it up in Xcode/Objective-C. Can anyone help in instructions for Setting/Installing sonarQube scanner.
I use this below steps for Android project. I need the steps for iOS which I am not able to find
1. Copy sonar cube from LS Path : \\ipaddress\Mobility\LS\Tools\Sonar
2. Paste it in C:\Program Files (x86)\
3. Run sonar-runner
4. Set Environment variable path: C:\Program Files (x86)\sonar-runner-2.4\bin
5. Configure Project : Example :
sonar.projectName=
sonar.projectKey=
sonar.host.url=
sonar.sources=app/src/main/java/
sonar.login=
sonar.password=
sonar.projectVersion=
in sonar-project file.
6. Paste that file inside our project folder
7. Open command prompt and go to projectso path.
7. copy paste the following in command prompt:
sonar-scanner -Dsonar.sources=app/src -Dsonar.java.binaries=app/build/outputs/apk -Dsonar.java.libraries=app/libs/*.jar
I am getting the below error
ERROR: Error during SonarQube Scanner execution
org.sonarsource.scanner.api.internal.ScannerException: Unable to
execute SonarQube at
org.sonarsource.scanner.api.internal.IsolatedLauncherFactory$1.run(IsolatedLauncherFactory.java:84)
at
org.sonarsource.scanner.api.internal.IsolatedLauncherFactory$1.run(IsolatedLauncherFactory.java:71)
at java.base/java.security.AccessController.doPrivileged(Native
Method) at
org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:71)
at
org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:67)
at
org.sonarsource.scanner.api.EmbeddedScanner.doStart(EmbeddedScanner.java:218)
at
org.sonarsource.scanner.api.EmbeddedScanner.start(EmbeddedScanner.java:156)
at org.sonarsource.scanner.cli.Main.execute(Main.java:74) at
org.sonarsource.scanner.cli.Main.main(Main.java:61) Caused by:
java.lang.IllegalStateException: Fail to get bootstrap index from
server at
org.sonarsource.scanner.api.internal.Jars.getBootstrapIndex(Jars.java:100)
at
org.sonarsource.scanner.api.internal.Jars.getScannerEngineFiles(Jars.java:76)
at org.sonarsource.scanner.api.internal.Jars.download(Jars.java:70)
at
org.sonarsource.scanner.api.internal.JarDownloader.download(JarDownloader.java:39)
at
org.sonarsource.scanner.api.internal.IsolatedLauncherFactory$1.run(IsolatedLauncherFactory.java:75)
... 8 more Caused by: java.lang.IllegalStateException: Status
returned by url [http://ipaddress/batch/index] is not valid:
[407] at
org.sonarsource.scanner.api.internal.ServerConnection.callUrl(ServerConnection.java:115)
at
org.sonarsource.scanner.api.internal.ServerConnection.downloadString(ServerConnection.java:98)
at
org.sonarsource.scanner.api.internal.Jars.getBootstrapIndex(Jars.java:96)
... 12 more ERROR:

Can't upgrade Neo4j 2.2.4 to 2.3.0

Neo4j is failing to upgrade from 2.2.4 to 2.3.0. I've tried both through the GUI and through Java. I specified allow_store_upgrade=true in both environments. Java provides a better error message. In the stack trace below it says but file is version ''.], but this isn't what the actual error message says on my screen, however the characters would not paste into SO; it looks like this:
Exception in thread "main" java.lang.RuntimeException: Error starting org.neo4j.kernel.impl.factory.CommunityFacadeFactory, C:\Users\pwicks\Documents\Neo4j\tc5
at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:143)
at org.neo4j.kernel.impl.factory.CommunityFacadeFactory.newFacade(CommunityFacadeFactory.java:43)
at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:108)
at org.neo4j.graphdb.factory.GraphDatabaseFactory.newDatabase(GraphDatabaseFactory.java:129)
at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:117)
at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:185)
at com.micron.tc.App.main(App.java:53)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.NeoStoreDataSource#640455b7' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:538)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:109)
at org.neo4j.kernel.impl.transaction.state.DataSourceManager.start(DataSourceManager.java:112)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:528)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:109)
at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:139)
... 6 more
Suppressed: org.neo4j.kernel.impl.storemigration.StoreUpgrader$UnexpectedUpgradingStoreVersionException: 'C:\Users\pwicks\Documents\Neo4j\tc5\neostore.nodestore.db' has a store version number that we cannot upgrade from. Expected 'v0.A.3' but file is version ''.
at org.neo4j.kernel.impl.storemigration.UpgradableDatabase.checkUpgradeable(UpgradableDatabase.java:96)
at org.neo4j.kernel.impl.storemigration.StoreUpgrader.migrateIfNeeded(StoreUpgrader.java:149)
at org.neo4j.kernel.NeoStoreDataSource.upgradeStore(NeoStoreDataSource.java:637)
at org.neo4j.kernel.NeoStoreDataSource.start(NeoStoreDataSource.java:528)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:528)
... 11 more
[CIRCULAR REFERENCE:org.neo4j.kernel.impl.storemigration.StoreUpgrader$UnexpectedUpgradingStoreVersionException: 'C:\Users\pwicks\Documents\Neo4j\tc5\neostore.nodestore.db' has a store version number that we cannot upgrade from. Expected 'v0.A.3' but file is version ''.]
[CIRCULAR REFERENCE:org.neo4j.kernel.impl.storemigration.StoreUpgrader$UnexpectedUpgradingStoreVersionException: 'C:\Users\pwicks\Documents\Neo4j\tc5\neostore.nodestore.db' has a store version number that we cannot upgrade from. Expected 'v0.A.3' but file is version ''.]
Through the GUI I just get this error:
Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase#21e4e4a9' was successfully initialized, but failed to start. Please see attached cause exception.
Your setup of the configuration parameters is absolutely correct.
I suggest you verify if your data can be read by the previous version. When this succeeds or after you repaired the database (possibly by restoring a backup) try to update again.

Configure OpenCV2.3.0 on CentOS and run jar file

I am getting the exception while running a jar file from CentOS 5.7 x86_64 command prompt. Where as it is working on CentOS 6.2 x86_64. The jar file is loading an xml file of openCV and it is producing the error like I have copied here.
Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/libjniopencv_core3672406464017531068.so: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /opt/lampp/htdocs/k_project_1/innefu/OpenCV-2.3.0/build/lib/libopencv_core.so.2.3)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1646)
at java.lang.Runtime.load0(Runtime.java:787)
at java.lang.System.load(System.java:1022)
at com.googlecode.javacpp.Loader.load(Loader.java:352)
at com.googlecode.javacpp.Loader.load(Loader.java:285)
at com.googlecode.javacv.cpp.opencv_core.<clinit>(opencv_core.java:129)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at com.googlecode.javacpp.Loader.load(Loader.java:305)
at com.googlecode.javacv.cpp.opencv_imgproc.<clinit>(opencv_imgproc.java:96)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at com.googlecode.javacpp.Loader.load(Loader.java:305)
at com.googlecode.javacv.cpp.opencv_highgui.<clinit>(opencv_highgui.java:91)
at com.innefu.faceDetect.ImgFaceDetectNew.main(ImgFaceDetectNew.java:68)
While I have configured Opencv-2.0.0 on CentOS 5.7 machine but it is producing the same error. I have also export the path of lib and bin folder of OpenCV.
OpenCv 2.3.0 is producing error while trying to configure. So, I have copied the configured OpenCV-2.3.0 from CentOS 6.2 to the CentOS 5.7. But in both the situation error is same. Please provide suggestions.
Thanks

how can i solve this error while running application in blackberry simulator?

hi i am getting this error in console while running application and it is not build my app package.Following is my error.
C:\Eclipse\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.25\components\bin\rapc.exe
-convertpng -quiet codename=deliverables\Standard\5.0.0\Weed deliverables\Standard\5.0.0\Weed.rapc
-sourceroot=D:\Hasmukh\Blackberry\BlackBerryWorkspace\Weed\src;D:\Hasmukh\Blackberry\BlackBerryWorkspace\Weed\res
-import=C:\Eclipse\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.25\components\lib\net_rim_api.jar D:\Hasmukh\Blackberry\BlackBerryWorkspace\Weed\bin D:\Hasmukh\Blackberry\BlackBerryWorkspace\Weed\src\com\weedclass\CommonFunction.java:102: Warning!: method 'com.weedclass.CommonFunction.ReadFile()' not invoked. I/O Error: Cannot run program "jar": CreateProcess error=2, The system cannot find the file specified Packaging project Weed failed (took 4.162 seconds)
Thanx in advance.
The solution can be found here: http://supportforums.blackberry.com/t5/Java-Development/I-O-Error-CreateProcess/ta-p/445949

Resources