Handle corrupt install4j installer - java

I have created an installer using install4j and uploaded. But sometimes if the download is not proper we get a corrupt installer (got to know by checking the file size) and it shows following error with error code 34.
Also found thee error to be:
[0:27] verifying integrity length 304907802
[2:157] ERROR: check ReadFile failed 0 0 187816324
I found that this is related to file size. But my question is how can we handle this in installer? As till this point we dont get control (ie.installer actions). I want to show custom error message on this issue.
Thanks in advance.

Related

Mojo Scoring Java Error using h2o.mojo_predict_df

I have used H2O for about a year now to build and score models but have never used MOJO to do this. This is something I am currently wanting to do and I came across the function h2o.mojo_predict_df to score out my models which will drastically increase runtime as well as allowing me to update my h2o without the worry of my models not scoring in a later version of h2o.
So I have downloaded my .zip from MOJO and corresponding .jar file, let's say they sit in the folder
C:\Folder\Test\Model.zip
C:\Folder\Test\h2o-genmodel.jar
Now am I trying to run it through, lets say my R data frame is called Data then I am using:
h2o.mojo_predict_df(frame = Data,
mojo_zip_path = "C:/Folder/Test/Model.zip",
genmodel_jar_path = "C:/Folder/Test/h2o-genmodel.jar")
However, this produces the error:
Error in safeSystem(cmd_str): SYSTEM COMMAND FAILED (exit status 127).
I am not quite sure what this is. My experience is java is limited. I tried on a different machine and got a completely different error:
"Error: Could not create a Java Virtual Machine".
Error: A fatal exception has occurred. The program will exit.
Unrecognised option : - 1.
Error in safeSystem(cmd_str) : SYSTEM COMMAND FAILED (exit status 1).
I'm not sure why they got different errors. The code ran was exactly the same.
Any help would be appreciated!
As nathan mentioned in the comments the error is due to a bug in Stacked Ensemble Mojo which can be tracked here: 0xdata.atlassian.net/browse/PUBDEV-6026

Error Code 20 for Install4j

I have downloaded an application for installing. However, it reported Error Code 20 during the install4j Wizard.
Then I investigated on the log and found the following lines:
...
extracting bin\unpack200.exe (size 159296)
...
untaring JRE was successful
JRE is packed
checking jre\lib\charsets.jar
Unpacking JRE
jre\bin\unpack200.exe -r "jre\lib\charsets.jar.pack"
"jre\lib\charsets.jar"**
could not create unpack process
--End of the Log--
The unpack200.exe is extracted from the installer. I checked its size and it looks valid by comparing it with another successful log.
Does anyone know what does the Error Code 20 mean in install4j?
Thank you.

SimGrid-3.13 Can't load classes

There are steps for building .jar file of SimGrid.
I downloaded archive from here.
Then I made following
cmake -DCMAKE_INSTALL_PREFIX=/home/Documents/simgrid -Denable_maintainer_mode=off -Denable_compile_optimizations=off -Denable_java=on -Denable_model-checking=off
make
make check
100% tests passed, 0 tests failed out of 586
ctest
100% tests passed, 0 tests failed out of 586
make install
There is simgrid.jar in SimGrid-3.13 folder.
But when I write code I can't load classes from this .jar file.
How can I fix it?
UPDATED
If I download ready simgrid.jar from thence, error occurs
Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/simgrid-java2166199247712718748/libsimgrid.so: libcgraph.so.6: cannot open shared object file: No such file or directory
Where I have to add libsimgrid-java.so, libsimgrid.so?
UPDATED2
After installing graphviz graphviz-dev. New error occurs
Invalid XML (XML input line 2, state 2): Bad declaration <!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid.dtd">.
If your are using a XML v3 file (check the version attribute in <platform>), please update it with tools/simgrid_update_xml.pl
[0.000000] /builds/workspace/SimGrid-Multi/build_mode/Debug/node/simgrid-ubuntu-trusty-64/build/SimGrid-3.13/src/surf/xml/surfxml_sax_cb.cpp:55: [surf_parse/ERROR] Parse error at (null):2: Parse error in /home/ken/IdeaProjects/Sim2Sim/src/main/java/LHCb/platform.xml
[0.000000] /builds/workspace/SimGrid-Multi/build_mode/Debug/node/simgrid-ubuntu-trusty-64/build/SimGrid-3.13/src/surf/xml/surfxml_sax_cb.cpp:57: [xbt/CRITICAL] Exiting now
As for the second update, you should read the error message that you copy-pasted:
If your are using a XML v3 file (check the version attribute in <platform>), please update it with tools/simgrid_update_xml.pl
Can you confirm that:
(1) the version attribute in the <platform> is 3
(2) running the tools/simgrid_update_xml.pl script on the platform fixes the problem?
I just checked the Debian package search page, in the second search box. I looked for /usr/lib/libcgraph.so.6 and it says that this library is in the package libcgraph6. So you have to apt-get install libcgraph6 to get it.

Jitterbit upserting large csv tab-delimited file

I have a problem with upserting csv file data using jitterbit, into a salesforce instance. I am going to provide as much information as I can here, but if there is anything else the experts would like to know, please ask me to provide.
I am not sure what to do to resolve this. I would appreciate some suggestions. Thank you very much.
The error in jitterbit, when uploading csv, is:
Failure to deploy - "The file "tran9015s.jtr" does not exist. Looked for it here: "1503/1495/jtr/tran9015s.jtr". [GENERIC_EXCEPTION_OTHER]"`
This is quite a large file (>400 MB), which is in csv format, tab
delimited. I am using jitterbit 6.0.4.3. Operating system: Mac OS X
Maverick (with all relevant updates up-to-date) java : version 7
update 45
I had installed the jitterbit cloud data loader client, just today.
I am trying upload the contents of the csv file into my company's salesforce instance.
I had logged into jitterbit, chose new upsert, and then selected the appropriate salesforce object.
I then selected an external ID field.
Then I selected the file to upsert.
In the preview pane which followed, I had made sure that is the right file I would like to upload.
Then I chose file type delimited file, with header. It is a tab delimited file, so I added \t as delimiter.
I skipped the scheduling options, maintaining it as "none", and chose "Map and Finish"
After linking all the approipriate fields, I then clicked on "Finish" and then "Run Upsert"
Then as it is "deploying project data", error occurs.
I have checked my java version, to make sure it is up to date.
I have uninstalled and reinstalled Java, and uninstalled and reinstalled jitterbit - still not fixed.
restarting PC did not fix the problem.
I have a Microsoft 7 machine at work, and it also gives me the same error.
Googling has not been helpful, as no results could be found.
From the entire error message below, it might be that there is something wrong with Java, but I am not sure, and would appreciate some opinion and suggestion.
Thank you very much.
The entire error message is below:
java.lang.Exception: The file "tran9015s.jtr" does not exist. Looked for it here: "1503/1495/jtr/tran9015s.jtr". [GENERIC_EXCEPTION_OTHER]
Client version: 6.0.4.3
Client platform: Mac OS X - Java 1.7.0_25
org.jitterbit.integration.client.server.IntegrationServerException: java.lang.Exception: The file "tran9015s.jtr" does not exist. Looked for it here: "1503/1495/jtr/tran9015s.jtr". [GENERIC_EXCEPTION_OTHER]
at org.jitterbit.integration.client.server.webservice.RestServiceConfiguration.convertErrorResponseToException(RestServiceConfiguration.java:183)
at org.jitterbit.integration.client.server.webservice.RestServiceConfiguration.rethrowFailure(RestServiceConfiguration.java:176)
at com.jitterbit.integration.server.api.ws.agent.SyncAgentRestApi$Worker.callServer(SyncAgentRestApi.java:71)
at com.jitterbit.integration.server.api.ws.agent.SyncAgentRestApi$Worker.syncAgent(SyncAgentRestApi.java:55)
at com.jitterbit.integration.server.api.ws.agent.SyncAgentRestApi.syncAgent(SyncAgentRestApi.java:37)
at com.jitterbit.integration.server.api.ws.deploy.DeployWorker.syncAgent(DeployWorker.java:264)
at com.jitterbit.integration.server.api.ws.deploy.DeployWorker.sendToServer(DeployWorker.java:149)
at com.jitterbit.integration.server.api.ws.deploy.DeployWorker.run(DeployWorker.java:98)
at com.jitterbit.integration.server.api.ws.deploy.ProjectDeployerWsImpl.deployProject(ProjectDeployerWsImpl.java:51)
at org.jitterbit.integration.client.project.deploy.DeployManager.sendDataToServer(DeployManager.java:134)
at org.jitterbit.integration.client.project.deploy.DeployManager.deploy(DeployManager.java:87)
at org.jitterbit.integration.client.ui.deploy.DeployJob.runImpl(DeployJob.java:40)
at org.jitterbit.application.ui.job.UiJob.callRunImpl(UiJob.java:521)
at org.jitterbit.application.ui.job.UiJob.run(UiJob.java:478)
at org.jitterbit.application.ui.job.DefaultJobManager$UiJobWrapper.run(DefaultJobManager.java:205)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
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)

Service will not start: error 1067: the process terminated unexpectedly

We have a custom service that we install with our application. The only problem is that after it is installed, it will not start, generating the error above. I have tried to diagnose what the problem is, but can't seem to find any useful information as to why it is quitting. I have tried the same service on a non "R2" 2008 server, and manual it worked fine.
service simple java file running using batch file. Deamon service.
Has anyone had any experience troubleshooting this type of problem, where there are so few clues?
Goto:
Registry-> HKEY_LOCAL‌​_MACHINE-> System-> Cur‌​rentControlSet-> Servi‌​ces.
Find the concerned service & delete it. Close regedit. Reboot the PC & Re-install the concerned service. Now the error should be gone.
This is a problem related permission.
Make sure that the current user has access to the folder which contains installation files.
I resolved the problem.This is for EAServer Windows Service
Resolution is -->
Open Regedit in Run prompt
Under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\EAServer
In parameters, give SERVERNAME entry as EAServer.
[It is sometime overwritten with Envirnoment variable : Path value]
This error message appears if the Windows service launcher has quit immediately after being started.
This problem usually happens because the license key has not been correctly deployed(license.txt file in the license folder).
If service is not strtign with correct key, just put incorrect key and try to start. Once started, place the correct key, it will work.
I had this error, I looked into a log file C:\...\mysql\data\VM-IIS-Server.err and found this
2016-06-07 17:56:07 160c InnoDB: Error: unable to create temporary file; errno: 2
2016-06-07 17:56:07 3392 [ERROR] Plugin 'InnoDB' init function returned error.
2016-06-07 17:56:07 3392 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2016-06-07 17:56:07 3392 [ERROR] Unknown/unsupported storage engine: InnoDB
2016-06-07 17:56:07 3392 [ERROR] Aborting
The first line says "unable to create temporary file", it sounds like "insufficient privileges", first I tried to give access to mysql folder for my current user - no effect, then after some wandering around I came up to control panel->Administration->Services->Right Clicked MysqlService->Properties->Log On, switched to "This account", entered my username/password, clicked OK, and it woked!
In my case the error 1067 was caused with a specific version of Tomcat 7.0.96 32-bit in combination with AdoptOpenJDK. Spent two hours on it, un-installing, re-installing and trying different Java settings but Tomcat would not start. See...
ASF Bugzilla – Bug 63625
seems to point at the issue though they refer to seeing a different error.
I tried 7.0.99 32-bit and it started straight away with the same AdoptOpenJDK 32-bit binary install.
I solved this issue using Monitor Tomcat application. I ran it and after a few seconds its icon appeared in my system tray. I right clicked on the icon and clicked the start button and after a few seconds Apache Tomcat started.

Categories