java

Java, Code Igniter, RoR, DJango web Application Challenge

Hi, This is a framework/programming language challenge. I'm looking for programming language that would be best approach for the next project. I want to get some score (out of 10) of their Time to Develop, Scalability, and Security. Form Builder that will read and write to Database(MYSQL) User Authentication and User Management Easy f...

Can any one know what is this...?

run: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at coop.AgencyDetails.AddToDatebase(AgencyDetails.java:442) at coop.AgencyDetails.addData(AgencyDetails.java:394) at coop.AgencyDetails.submitbtnActionPerformed(AgencyDetails.java:342) at coop.AgencyDetails.access$200(AgencyDetails...

Representing a 100K X 100K matrix in Java

How can I store a 100K X 100K matrix in Java? I can't do that with a normal array declaration as it is throwing a java.lang.OutofMemoryError. ...

GlassFish v3 and glassfish-maven-plugin (Mac)

I'm trying to use the glassfish-maven-plugin (https://maven-glassfish-plugin.dev.java.net/) with GlassFish v3 (I'm on a Mac and using Eclipse) and I can't seem to get my web app to deploy. I keep running into: The Master Password is required to start the domain. No console, no prompting possible. You should either create the domain...

Correct usage of Stateful Beans with Servlets

We currently have a Stateful bean that is injected into a Servlet. The problem is that sometimes we get a Caused by: javax.ejb.ConcurrentAccessException: SessionBean is executing another request. [session-key: 7d90c02200a81f-752fe1cd-1] when executing a method on the stateful bean. public class NewServlet extends HttpServlet { @EJ...

Adding Class files to Google App Engine Wave Bot in Java using Eclipse

Hello, Yeah quite a specific question. I'm making a bot for Google Wave and I'm a bit confused. I have some Java class files of a separate package I want to implement. I put them in the lib directory but they're not found by Wave when its uploaded. Eclipse compiles them fine, as it has the directory, but I guess it doesn't upload it t...

Problem with authentication on java ws

Hi, I have application in C# that consume Java WS. Everything worked fine until WS was configured to use authentication. Now I should user login i password to execute methods from WS but I'm not sure how to do it. I've try var client = new MyBeanClient(); client.ClientCredentials.UserName.UserName = "admin"; ...

Do java's Inner classes pose a security risk?

Recently the security team on my project released a secure code guidelines document, designed to be used as part of our code reviews. The first thing that struck me was an item that said "Do not use Inner classes". I thought this seemed like a very heavy handed and sweeping statement. Inner classes are good if used correctly right?, but ...

Difference between SomeClass<T extends OtherClass> and SomeClass<T super OtherClass>

The title says it all really. What's the difference between: SomeClass<T extends OtherClass> and SomeClass<T super OtherClass> Thanks ...

JFrame in java desktop application

I am developing a desktop java application with GUI implemented through swings. I have made a JFrame and have added three buttons on it - Add, Edit, Delete. Now I want that whenever a user clicks on any of the button, the content specific to that button appears besides those three buttons. So how to implement this. Should I need to add...

Java implicit conversion of int to byte

I am about to start working on something the requires reading bytes and creating strings. The bytes being read represent UTF-16 strings. So just to test things out I wanted to convert a simple byte array in UTF-16 encoding to a string. The first 2 bytes in the array must represent the endianness and so must be either 0xff 0xfe or 0xfe...

3-dimensions different types Map or List: List(ID=integer) of List(ID=integer) of int[]

I'm going to build a hotel table. But I'm having problems when trying to implement this in Java. My hotel has Level(int id) x Room(int id) x Field(String status, int counter) The same in php would look like: $level=1; $room=2; if(isset($hotel[$level][$room])) { print("Room: ".$level*100+$room); print(", Status: ".$hotel[$level...

Questions regarding Extending JFrame in a class?

Okay, I'm NOT a Java noob, it just so happens that I've forgotten a tad bit about core Java while I was learning more fun stuff like MySQL, Servlets, Java EE, JDBC etc etc; so don't frame your answers as if I were a beginner. Now the question..... I'm writing a class (lets say ThisIsAJFrameExtendingClass) which extends JFrame, and to mi...

Trying to run ant - getting error

Hi All I have just installed ant and JDK 6 and am trying to run an ant task. I get the following: C:\Users\Giles Roadnight\workspace\Parsley\build>ant compile_spicelib_complete_flex Buildfile: build.xml compile_spicelib_complete_flex: [exec] Error loading: C:\Program Files\Java\jdk1.6.0_17\jre\bin\server\jvm.dll [exec] Result: 6 BUILD...

what Applications can you make with the programming language Ruby?

What applications can you make with the programming language Ruby? Can you name a few commercial/famous ones written only in Ruby? What I'd really like to know is can you just learn Ruby instead of C/C++ to make commercial software e.g web server, photoshop, desktop applications, even an operating system etc. Except Ruby on Rails whic...

TOPMOST window in full-screen

Hi, I'm playing with a JFrame in Java. I want it to be the topmost window i.e. always on top. The setAlwaysOnTop() works fine, but as soon as I start a movie or a game-window in a full-screen mode then it fails to stay on top. I played around with JNI and handles. My C code for JNI is using SetWindowPos() and this seems to be working ...

twitter streaming api - set filter in http post request (apache httpcomponents)

Hi, I'm trying out the twitter streaming api. I could succesfully filter tweets by using curl, as stated here: curl -d @tracking http://stream.twitter.com/1/statuses/filter.json -u <user>:<pass> where tracking is a plain file with the content: track=Berlin Now I tried to do the same thing in JavaSE, using Apache's HTTPComponents: ...

related to abstract class reference holding object of its derived class

class A is abstract and class B extends class A now class A reference can hold object of class B,that is A aObj = new B(); and assume class B has some extra methods.... like class A { public show(); } class B extends A { public show(){} public method1(){} private method2(){} } now tell me what things variable aObj can access from c...

How to make the command option/switch of javadoc persistent under Windows?

Because I am not using the English edition of Windows XP,I'll need to type: javadoc -locale en_US -version -author xxx.java to produce what I want.The question is how to avoid typing these switch the next time I run javadoc? thanks. ...

Java: ArrayList: Determine if entry exists by its index.

Hello. How can I check if value exist in ArrayList by its index? Java offers contains(Object) method, but no contains(Integer index) method Thank you ...