» Home » Java » Page 1
java.security.AccessControlException: access denied (java.io.FilePermission <File> read) with java web start in signed applet
Category : Java

I have an applet which is launched by java web start launcher and it's signed too.
I need to do some file operation on the client machine with this applet and doing so an exception is throws. Below is the complete stacktrace


java.security.AccessControlException: access denied (java.io.FilePermission C:FMSELSVJOURNALARBRES554 read)
at java.security.AccessControlContext.c

View Replies


java.lang.ClassCastException happened when i run the java code which is about Java collections interface
Category : Java

When i compile the java code,it can not be compiled correctly .but when i run the program,
Exception in thread "main" java.lang.ClassCastException:java.lang.StringBuffer cannot be cast to java.lang.Comparable.


so i have two question :


Should the element which is added to the SortedSet or SortedMap must be sortable? Does this rule also works in any other interfaces in

View Replies


Java.lang.ClassCastException: java.util.Date cannot be cast to java.sql.Timestamp
Category : Java

I have a jrxml file. When I run that file in IReport Designer 4.8.0, Produces report without fail.
But when I deploy the same file in JasperServer 5.0.0, it throws exception.


The server has encountered an error. Please excuse the inconvenience.
Error Message
java.lang.ClassCastException: java.util.Date cannot be cast to java.s

View Replies


java outputstream java.lang.OutOfMemoryError: Java heap space
Category : Java

I am trying to publish a large video/image file from the local file system to an http path, but I run into an out of memory error after some time...


here is the code


public boolean publishFile(URI publishTo, String localPath) throws Exception {
InputStream istream = null;
OutputStream ostream = null;
boolean isPublishSuccess = false;

View Replies


How to repair Java in Ubuntu after trying to switch to Java 6 using update-java-alternatives
Category : Java

I tried to switch from Java 5 to Java 6 using the "update-java-alternatives" command like explained on this page: https://help.ubuntu.com/community/Java


But afterwards I get the following error when I tried to execute java:


root@webserver:~# java
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create t

View Replies


Java ME: Are there some good opensource APIs which make the limited Java ME more Java SE like?
Category : Java

Recently I started playing around with Java ME.
The standard API seems very limited to me, compared to recent Java SE.


Are there some good opensource APIs which would make Java ME more Java SE like?


View Replies


Design Patterns in Database Applications with Java (Java EE / Java SE)
Category : Java

I've been reading StackOverflow for quite a while now and I'm only now building the nerve to ask a question. I'm 20 years old and currently enrolled in college in IT here in my hometown (Cluj-Napoca, Romania). Enough for introductions :D.


Basically I have my little software firm that provides Book-keeping appz. They're (horrifyingly) written in Delphi and I want to start from scrat


View Replies


Gradle - Execution failed for task 'sonarAnalyze' - java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.String
Category : Java

I have this error when running sonar with my gradle build script.


gradle sonarAnalyze


15:41:02.931 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
15:41:02.931 [ERROR] [org.gradle.BuildExceptionReporter]
15:41:02.931 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
15:41:02.931 [ERROR] [org.gradle.Bu

View Replies


java.lang.IllegalMonitorStateException: unlock of unowned monitor at java.util.Random.nextGaussian(Random.java:187)
Category : Java

While calling inbuilt method nextGaussian throws an IllegalMonitorStateException: unlock of unowned monitor


double dispersion = RAND.nextGaussian() * 0.2;

which is inside


@Override
public void stroke(Canvas c, float x, float y) {
}

which is called here


case Mot

View Replies


Combining Java and C without gcj — move C to Java or Java to C?
Category : Java

First, I have no experience doing this. But like the beginning of any good program, I have problem that I need to fix, so I'm willing to learn.


So many of you are probably already familiar with pdftk, the handy utility for handling various pdf-related tasks. So far as I can tell, most of these features are available in much newer, lighter libraries/extensions, except the one I need


View Replies


Next
2012 / 2017 Copyrights BigHow , All Rights Reserved .