Please excuse me if I ask the question in an incorrect format, it is my first time posting here:
I am trying to run a model build a model primarily using the bartMachine package on r.
I was able to run the script successfully when I had access to a server, so I know the script is fully functional. Unfortunately, I no longer have access to that server, and the script crashes my machine. I decided to try and run the script on google colab using the R runtime (as opposed to using the R magic cells option). When I run the model I get the following error:
"Error in validObject(.Object) :
"invalid class “jobjRef” object: invalid object for slot "jobj" in class
"jobjRef": got class "NULL", should be or extend class "externalptr"
I know that the problem is related to java and I have tried countless fixes, none of which were successful.
Any ideas?
Sean
Related
I am currently working on a university project involving police patrol management. It is necessary to implement different security elements in order to keep the data protected. I have therefore designed a beginning of a Client Server application.
All works well when running on IntelliJ but things get complicated once in command line. The compilation works but the execution is impossible because of a java.lang.NoClassDefFoundError.
Here is my Project Structure :
enter image description here
Here is the error after trying to run only the Server side of the project :
enter image description here
Is this error due to the fact that I am using files with secret keys and a certificate ? Or is it just my structure that is causing the problem ?
Can you help me ?
I think every thing is ok except one thing..pay attention at ServerSide/Server
look at the second image you have sent ..
I had same problem . Look at this answer NoClassDefFoundError: wrong name
You need to run it from the package root on. Go one folder up so that you're in the folder which in turn contains the "ServerSide" folder representing the package and then execute " java ServerSide .Server"
I am rather new to programming and have never used a secondary source as I am using right now and need help. I am trying to use jaudiotagger (http://www.jthink.net/jaudiotagger/index.jsp) in a java program that I am writing but am not having any luck in accessing the classes that the service provides. I feel as though I am going about this entirely wrong; I've gone to https://bitbucket.org/ijabz/jaudiotagger/downloads/ and downloaded the "jaudiotagger-2.2.6-SNAPSHOT.jar" file, inserted this into the folder with my code and then tried importing as follows:
package jaudiotagger.src.org.jaudiotagger.audio;
import jaudiotagger.src.org.jaudiotagger.audio.AudioFile;
as an example for trying to import the AudioFile class, however that returns the error
audiotagger.java:7: error: cannot find symbol
import jaudihotagger.src.org.jaudiotagger.audio.AudioFile;
I have gone through the file directory on the link that I have provided and that is the location of the AudioFile script, however it still does not work.
I have never done anything like this before so I'm sorry if I'm missing some key conceptual stuff. I have also visited the previously asked question Add JAudiotagger Library to Java on Windows 7 however I don't know how to do the process that the user provided.
Before I get to the problem, here is what I am trying to do. So I have an assignment where you are supposed to take some sort of variable based code, interpret it, then spit out java code that connects to a database based on the latter. So basically it is java code that reads a file, and outputs a java file based on what is in the file. The output java code has to be output into a different directory (THIS IS THE PROBLEM). Also he gave us files that help us login and help with authentication. Here is the problem when I am in the directory with the output java code, and I run it, it connects to the database no problem, but when I am in any other directory, the code runs fine, but it doesn't want to connect to the database. Here are the arguments I use to run the code.
java -cp /usr/share/java/postgresql-jdbc4-
9.1.jar:/home/undergrad/3/USERNAME/testDoc/bin/a1
-Djava.security.krb5.conf=krb5.conf
-Djava.security.auth.login.config=jaas.conf a1
Since this is an assignment I can't put all my code on here, but here is the code to add something to a database. Keep in mind that this is generated code, and that that is why it looks so ugly, but the assignment is due tonight, so I can't really change that.
The stacktrace says that
the GSS authentication failed, it ended in a PSQLException. So there was an error while connecting. Yea it said it couldn't find the authentication files.
Background
When you publish an app, you can access the financial report via this website that can lead you to this website which leads to :
https://play.google.com/apps/publish/?dev_acc=SOME_NUMBERS#ReportsPlace
where "SOME_NUMBERS" is probably a unique ID for your account or something.
at the bottom, it says :
Financial reports are also available for programmatic access through
Google Cloud Storage and the gsutil tool. Your reports are stored in
this private bucket:
gs://pubsite_prod_rev_SOME_NUMBERS
(same note about SOME_NUMBERS as before)
The problem
After installing both Python requirements (from here) and the gsutil (from here) , I can't find out how to really use what they've written.
Not only that, but for any command I try to run there, I get:
SyntaxError: encoding problem: utf8
I've found some posts here on stackOverflow talking about this error, but since I don't know python, I find it hard to understand how to fix it.
The question
How do you really use the gsUtil?
Is it possible to fix this issue?
Is it possible to access the financial data in any other way? Is there maybe a Java alternative? Maybe even an SDK that has all of the available commands?
I am creating an application using the linkedin-j Java library and JavaLoader, and I am finding that whenever I drop it into a server running ColdFusion 9.0.1, I start getting the following error:
coldfusion.util.DumpHelper
(java.lang.ClassNotFoundException)
I am not doing anything crazy with the library. I have narrowed it down to being caused by the following code:
var l_user = api_client.getProfileForCurrentUser();
api_client is an instance of the client object in linkedin-j. I don't know a whole lot of Java, but I don't see anything in there that should break ColdFusion's utils.
Upon testing, this doesn't appear to happen when using Railo.
(From the comments ...)
You might try setting loadColdFusionClassPath=true when you instantiate the javaLoader.