» Home » java » Page 1
java.security.AccessControlException: access denied (java.io.FilePermission <File> read) with java web start in signed applet
by Ben in 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

Java.lang.ClassCastException: java.util.Date cannot be cast to java.sql.Timestamp
by monkee in 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

java.lang.ClassCastException happened when i run the java code which is about Java collections interface
by Dmitry in 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

java outputstream java.lang.OutOfMemoryError: Java heap space
by Justin Bowers in 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;

How to repair Java in Ubuntu after trying to switch to Java 6 using update-java-alternatives
by xetrill in 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

Java ME: Are there some good opensource APIs which make the limited Java ME more Java SE like?
by mysql in 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?


Design Patterns in Database Applications with Java (Java EE / Java SE)
by Pedro Varela in 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


Gradle - Execution failed for task 'sonarAnalyze' - java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.String
by beginner99 in 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

java.lang.IllegalMonitorStateException: unlock of unowned monitor at java.util.Random.nextGaussian(Random.java:187)
by walkur in 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

java.sql.Connection compatibility issue between java 1.5 and java 1.6
by Russia in Java

java.sql.Connection is implemented into a verbose connection to get more information for unit tests.


Using java 1.6 compiler results in following compilation errors:


The type VerboseConnection must implement the inherited abstract method Connection.createArrayOf(String, Object[])
The type VerboseConnection must implement the inherited abstract method Connect

Next
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .