Unable to Access Jar File When Running Akka - akka

I am using the tutorial provided at this link: https://developer.lightbend.com/guides/akka-quickstart-scala/index.html#running-the-example
It is a very basic tutorial on how to run a Hello World program using commands in Akka. I downloaded and extracted the zip file, navigated to the folder in the command prompt, and ran the sbt.bat command, but I get this dialogue as a result:
C:\akka-quickstart-scala>.\sbt-dist\bin\sbt.bat
Error: Unable to access jarfile C:\akka-quickstart-scala\sbt-dist\bin\java9-rt-export.jar
The filename, directory name, or volume label syntax is incorrect.
Error: Unable to access jarfile C:\akka-quickstart-scala\sbt-dist\bin\java9-rt-export.jar
Unrecognized VM option 'MaxPermSize=256m'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
I am a university student taking a distributed operating systems class for context. Everyone else in the class got it to work except me. The professor couldn't even figure out why it wasn't running on my machine. Any help would be greatly appreciated.

Seems the project is using jvm setting that was removed from java 9. So you could try downgrading java version on your machine to java 8
Unrecognized VM option 'MaxPermSize=512m' when running Zeppelin

Related

Remote gdb with Eclipse Oxygen 3a

I've read several guides/stackoverflows but not found a similar situation/solution.
I have my remote ssh working (can browse files).
I don't get why I need a local Windows application (although I have a compiled .exe it's not the version I want to debug which is only on the Linux server).
When I try and launch a remote debug session it immediately fails with
Exception occurred during launch
Reason:
Error during file upload.
and below in the details
Could not write file: <my windows exe path>
Permission denied
...
The aforementioned file is writable and in any event I also started eclipse as administrator just in case.
In any event the .exe is irrelevant. I just want to debug code remotely.
(I know all about gdbserver...happy to manually kick that off if need be....don't think I'm there yet though)
Below is the options page I'm presented with:
Had the same experience on TI Code Composer Studio Version: 9.3.0.00012.
This seems to happen while uploading the cross compiled binary from host to target. If you set the check box "Skip download to target path" the error should disappear.
I propose to workaround the upload.
Setup a web server on the host, the line python.exe -m http.server --directory \source\hello\Debug\ would be sufficient
Run wget on the target, see screenshot

Why unitest for sharpdx fails on Jenkins but not localy and how can i fix it?

I have a couple off UnitTest which are running fine localy, but fail on my Jenkins-Server. All unit-test a failing with an similiar reason: SharpDX is unable to aquire resources.
SetUp : SharpDX.SharpDXException : HRESULT: [0x887A0022], Module: [Unknown], ApiCode: [Unknown/Unknown], Message: A resource is not available at the time of the call. However, it may be available at a later date.
+++++++++++++++++++
STACK TRACE:
at SharpDX.Result.CheckError()
at SharpDX.Direct2D1.Factory.CreateHwndRenderTarget(RenderTargetProperties& renderTargetProperties, HwndRenderTargetProperties& hwndRenderTargetProperties, WindowRenderTarget hwndRenderTarget)
My Jenkins(ver. 2.190.1) is running under the local system account. The error seems to be realted to that (No screen session). I tried the solution from the answers of #maQ at Jenkins on Windows and GUI Tests without RDC and running jenkin as a local user but without success.
Have you tested running your code from command line or from IDE?
If you have not tested your code locally from command line, you can test it.
Is your build node and local machine same? If not please verify that the sharpdx is installed in your build node.
If it is already tested and working and your build node is also configured with the sharpdx, adding the environment variable point to sharpdx home directory in jenkins slave's configuration should work. All the best !

Hyperledger Composer "Error trying to instantiate composer runtime. Error: Error: Invalid results returned ::NOT_FOUND" on windows 10

I'm trying to run the following blockchain tutorial on Windows 10
https://hyperledger.github.io/composer/tutorials/developer-guide.html
Everything went fine (all npm installs, fabric tools, download fabric, start fabric, create the project archive, composer runtime install) untill I ran the following command:
composer network start --card PeerAdmin#hlfv1 --networkAdmin admin --networkAdminEnrollSecret adminpw --archiveFile tutorial-network#0.0.1.bna --file networkadmin.card
And
had this error:
Starting business network from archive: tutorial-network#0.0.1.bna
Business network definition:
Identifier: tutorial-network#0.0.1
Description: Tuto DevWorks
× Starting business network definition. This may take a minute...
Error: Error trying to instantiate composer runtime. Error: Error: Invalid results returned ::NOT_FOUND
Command failed
Previous successful command was:
composer runtime install --card PeerAdmin#hlfv1 --businessNetworkName
tutorial-network √ Installing runtime for business network
tutorial-network. This may take a minute... Command succeeded
My configuration is:
WIN 10
Node v8.9.1
npm 5.5.1
Docker version 17.09.0-ce, build afdb6d4
git version 2.14.1.windows.1
I also tried with another bna archive and had the same issue.
Thanks for your help!
If this message occurs on the stage of instantiating the composer chaincode, one must check that there's a fabric channel defined and peers have joined it.
we don't, at present, support Windows 10. We support the platforms shown here:
https://hyperledger.github.io/composer/unstable/installing/development-tools.html
I was facing the issue in MacOS environment. I found that I haven't created the channel and joined the peers. Once I did that, I could start business network and ping.

Loopback application complains of missing license file

I have installed strongloop in my machine and are trying to explore basic features of strongloop.
After creating a loop back application, when I try to access 'arc composer' using slc command "slc arc", I am getting the below error;
arc error
I am unable to find such 'licenses.json' file in my machine.
Kindly help me to resolve this issue.

Cannot install VisualSVN Server - error creating temporary file - Win 7

I'm on Windows 7 64 bit. Every time I try to install the latest version of VisualSVN Server (3.3.1) I get an error saying it could not create any temporary files.
I really can't figure out what's causing this error. I am installing as an administrator.
Here is a link to the installation logs.
Any help would be appreciated!
The full error is:
MSI (s) (F8!A8) [13:29:08:907]: Product: VisualSVN Server 3.3.1 -- Error 25000. Custom action InstallWMISchemaExecute failed: Error creating temporary file (0x8004402F)
The 0x8004402F is Windows Management Instrumentation (WMI) specific error code:
https://msdn.microsoft.com/en-us/library/aa394559
So you have some issues with WMI on your computer. Suggested actions to troubleshoot this issue:
run sfc /scannow command
remove all files in C:\Windows\Temp directory
remove all files in %TEMP% directory
check that LOCAL SYSTEM account has full access to 'C:\Windows\Temp\ directory