I have a trusted applet, and I'm getting the following behavior with OpenJDK and icedtea6-plugin:
Initializing JVM...
NOT IMPLEMENTED: virtual nsresult IcedTeaPluginInstance::Start()
Jar string: applets/MyApplet.jar
jars length: 1
JNLPRuntime already initialized
java.lang.NullPointerException
at net.sourceforge.jnlp.tools.JarSigner....
Why must local variables, including primitives, always be initialized in Java? Why is the same not applicable in the case of instance variables?
...
1.i published a content to a node then use "spark" try to retrieve the message. in spark, i suppose to add user "admin@userx" right? i cannot get any message.
below message showed, i sucessfully published the content to 'thenode'
<iq id="ySmn5-0" to="userx/3f3ae10c" type="result"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>a...
I am doing research on a SOA topic and i am trying to understand what gang of four say about aspect orientation. I also need to implement one of these pattern in AOP paradigm.
What would be best pattern to pick for this?
...
I have a query:
select p from Product p
Which gives me the results I expect, but one of the columns (let's call it massiveDescription) is big, and since I'm querying the full list of products I want to exclude it.
I added @Basic(fetch=FetchType.LAZY) to getMassiveDescription() but this made no difference (the generated sql still incl...
Is it possible to define a datasource connector in a Spring controller ?
I'm working on a tool : synchronize a source table to a target table.
I would define source and target in my controller (to synchronize different databases - in my view I can select different source and target databases).
Actually, I define my datasource in file c...
I am currently developing a little platform in Java and I wrote my own game engine for it called Bonsai. Now I'm asking myself the question "Did I overuse statics?".
On the one hand it's very convenient since I don't have to keep a reference to the game instance in each class like the map or the player. On the other hand... I have alrea...
From J2me doc we know that:
java.lang.InterruptedException Thrown when a thread is waiting, sleeping, or otherwise paused for a long time and another thread interrupts it.
The question is if it's posible to get such exception if from one thread i call Thread.Interupt() for other thread where Run() method of other thread waiting on Inp...
The title basically says it all: if I have a java method that is generic in T, can I find out anything about T? In particular, can I check whether T implements a certain interface or extends a certain class?
I would like to do something like
public <T> List<T> doSth(List<T> l) {
if(T extends Comparable) {
// do one thing
} el...
I'm using regular expressions to try to match section blocks in an INI file. I'm using the recipe given in the book Regular Expressions Cookbook, but it doesn't seem to be working for me.
Here is the code I'm using:
final BufferedReader in = new BufferedReader(
new FileReader(file));
String s;
String s2 = "";
while((s = in.readLin...
I am using hibernate 3.2.6, and spring 2.5.6
The database Im connecting to is: DB2 for Z OS 390 V8.1
When I run my testcase (below) I save the test file object. Hibernate DOES Save the object to the database, but my test blows out after the save, where it's trying to update the object with the correct id. I think that it's not getting...
Hi all
I need to print unicodes of A-Z in java.
How do i print the unicode of a character in java.
Abdul khaliq
...
Is there an advantages to putting all my small widget graphics in one single png-file, which is loaded once, and then creating ImageIcons for buttons and such from sections of this?
(Normally I would just use new ImageIcon(aClass.class.getResource("/path/with/image.png")).)
What would be a good way of doing this?
...
I'm getting "error getting classpath for JIRA" while compiling a JIRA plugin.. what does it mean? I'm attempting to compile a JIRA plugin using Galileo 3.3 + Maven2 + Atlassian Plugin SDK beta 6 on Ubutnu
...
I need to convert this code (in C++) into Java code :
short i;
short j;
short k;
short result;
unsigned short m_table[ 256 ]
for ( i = 0 ; i < 256 ; i++ )
{
k = i << 8;
result = 0;
for ( j = 0 ; j < 8 ; j++ )
{
if ( ( result^ k ) & 0x8000 )
res...
I need a class that implements Iterable, and does not need to be safe for concurrent usage. Of the various options, such as LinkedList, HashSet, ArrayList etc, which is the lightest-weight?
To clarify the use-case, I need to be able to add a number of objects to the Iterable (typically 3 or 4), and then something else needs to iterate ...
Is there a free library that has the same features of Java's Robot class for C++?
http://java.sun.com/javase/6/docs/api/java/awt/Robot.html
...
Hi All!
Long long time ago was a Delphi, and any developer can rapidly build win32 GUI application. Delphi was a king (long life to king...) but now delphi and win32 has gone away.
So question is - what a preferred platform to rapidly build cross-platform GUI applications at present days? I'm have a good knowledge of Java and C#, and i'...
I have a netbeans / Sun Application Server (Some EJB use) project which we've been building manually and now trying to move to an automated system.
Software Used:
Netbeans 5.1
Java 1.5
Sun Application Server 8.2
Netbeans used Ant so taking the actual build process out wasn't that complicated except for the EJB part.
The normal buil...
Hello, I am writing my first real applet and I need to store some data. I've never really messed with putting and maintaining code on the internet, so please bear with me if I'm a little slow to catch on.
I'm building a Calendar applet for work (just a student worker) and I'm not sure how to store necessary information such as the sche...