File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes java.lang.IllegalArgumentException: input == null! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "java.lang.IllegalArgumentException: input == null!" Watch "java.lang.IllegalArgumentException: input == null!" New topic

java.lang.IllegalArgumentException: input == null!

N ssss

Joined: Nov 22, 2010
Posts: 1

We use Eclipse for development of a swing application. While development we run the application from Eclipse itself but when on production, the user gets a URL to access the same application. We use java Web-Start to load the swing application to the user's end.

Now I am facing a very awkward error. When I am running the application in Eclipse as an application it works fine but when I deploy the application on to the Tomcat web server it gives me a java.lang.IllegalArgumentException: input == null! while opening a form.

The war is generated using the ant build tool.

I placed log messages to the code to debug so that i could make out where this exception is coming from. I could find the place where the code, when deployed on the server throws the exception. The code looks good to me. Are there any other reasons to this exception? How can i fix this issue?

The exception occurs when a Model is set to the JTable, some thing like this:
JTable table=new JTable();
TreeViewModel treeViewModel = new TreeViewModel();

this same code works fine at other place.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15093

"N ssss", welcome to JavaRanch. Please read your private messages for an administrative message from JavaRanch.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
I agree. Here's the link:
subject: java.lang.IllegalArgumentException: input == null!
jQuery in Action, 3rd edition