Java Core APIs

  • " ? extends Classifier " not assignable to Classifier
  • Sat, 22 Sep 2007 22:54:00 GMT
  • I am just trying to understand this My method is like thispublic List<? extends Classifier> getClassifiers(){ ..........................}Now if I use the loop like this I get the error "Type mismatch: cannot convert from element type ? extends Classifier to Classifier"for( Classifier c : ...
  • " Interesting " question....
  • Wed, 16 Jul 2008 20:56:00 GMT
  • Hi guys, Just wondering,How can I associate an Icon with my web page so that it will appear in the FAVORITES menu of internet explorer ?(e.g. IF you add java.sun.com to your bookmarks, the java mascot will show up in the "Favorites" menu).Any guess ?Thanks...
  • " RMI WITH APPLET " Urgent Help Please
  • Thu, 20 Sep 2007 23:35:00 GMT
  • Hello All,When i run my rmi client applet with appletviewer then its workes finebut when i run my applet in browser then i got that exceptionException: java.security.AccessControlException: access denied (java.net.SocketPermission 202.141.238.69:1099 connect,resolve)i run rmirgistry at server ...
  • ".java" file from a ".class" file
  • Wed, 19 Sep 2007 01:55:00 GMT
  • How do I extract ".java" file from a ".class" file? Is there any utility availabel? ...
  • "Access is denied" when trying to read a file on remote windows box from a servlet
  • Sun, 13 Jul 2008 21:51:00 GMT
  • Hi,I'm trying to figure out how to view a "shared" remote file via my serlvet.I was able to log on to the box manually and open the log file by giving username and password.But how do I provide username and password from my servlet when opening the remote file:\\aRemoteWindowsBox\d$\aDir\aFi...
  • "After" filter?
  • Wed, 16 Jul 2008 20:21:00 GMT
  • Hello!I have a servlet which gets request, processes and gives some specific output as response. I had to pre-parse request information for this servlet, so I've created filter (doFilter(...)). The problem now is that I need I need to be able to modify servlet's output too, but I cannot...
  • "Apache VS javawebserver" Starting Server
  • Wed, 16 Jul 2008 20:20:00 GMT
  • haii am new to apachewebserver and i had never seen it before.i know that to start the server in Javawebserver..we have to run the httpd.exe file in bin directory of javawebserver2.0but..i want to know In ApacheWebserver?1. how to start server2. where to place servlets (in javawebsever we keep i...
  • "application/x-www-form-urlencoded"
  • Wed, 16 Jul 2008 20:27:00 GMT
  • Hi, what kind of MIME type is "application/x-www-form-urlencoded"? Can someone give an example?Thanks....
  • "arrays of generic types are not allowed" - why?
  • Fri, 21 Sep 2007 12:04:00 GMT
  • Can't find any threads dealing with this. ea2.2 won't allow e.g. List<Object>[]. Why not? Is this a casualty of removing variant arrays?...
  • "AWT-EventQueue-0" java.lang.NullPointerException
  • Thu, 15 Nov 2007 01:51:00 GMT
  • hi alli'm experiencing a problem of NullPointerException in the following part of my code:public void getFile(String ipAddy, String fileGet, String size, String type) {MyClass p = new MyClass();>>>>>>p.textFieldFileName.setText("hello");}Line having >>>>> is ...
  • "Bad Magic Number Error"
  • Wed, 16 Jul 2008 20:48:00 GMT
  • Hi!I am getting this error.I am using JRun."java.lang.ClassFormatError: jrun__login2ejspa (Bad magic number)"Could anybody help me out.....Regards..Preethi....
  • "Bad Magic Number" (again)
  • Tue, 18 Sep 2007 12:09:00 GMT
  • Hi , I wrote a signed applet for a client, the applet simply contains few scripts to call a local exe file, that's all. The problem as I've seen many in the forum is, and error message with the text from the Java Plugin:"General Exception.java.lang.ClassFormatError: RunProgramBeanInfo(Bad ...
  • "Blocking" inherited methods
  • Thu, 20 Sep 2007 19:02:00 GMT
  • I have a class, Inventory which I want to extend HashMap. However, I only want objects of certain types added to it, and in a certain way.To do this, I envisaged having public methods like :public Object put(MyType1 key, MyType2 value)...but then I want to prevent the use of the standard put ...
  • "Cannot find any information on property" error
  • Wed, 16 Jul 2008 20:46:00 GMT
  • Hi,I'm getting following error message in my application. Really appreciate any suggestions/corrections. Thanks[8/27/04 15:25:58:781 EDT] 34132ccb WebGroup E SRVE0026E: [Servlet Error]-[Cannot find any information on property 'UserID' in a bean of type 'SQLBean']: org.apache....
  • "case insensitive" url
  • Wed, 16 Jul 2008 20:16:00 GMT
  • How can i make my URL to be case insensitive?. I.E my application is testapplication. If anybody types TEStAPPlicatiN in the url, the application(testapplication) should get invoked. I am using JBoss as app server. Please help me.Pradeep...
  • "Casting at run-time?"
  • Tue, 18 Sep 2007 16:58:00 GMT
  • Hi,I have written a small piece of code that invokes methods at runtime.In some cases this causes "java.lang.IllegalArgumentException: argument type mismatch" since it needs casting.So I want to cast it at runtime. How can I do it?Here is the code I am trying (which generates the above ...
  • "CLASS NOT FOUND" error when running RMIC
  • Tue, 25 Sep 2007 05:16:00 GMT
  • Hi.I have copied the code from internet to study RMI.I compiled the codes and tried to rmic it.However, when I try to rmic, it gives me class not found error.For example, I have files call "TestingInterface.java" - interface"Testing.java" - serverI 'javac'ed on both filesandrmic Testingit ...
  • "ClassCastException" for items in List after serialization
  • Thu, 15 Nov 2007 05:04:00 GMT
  • consider this code:public class MyClass implements Serializable { public double price = -1; public double volume = -1;}List list = new ArrayList<MyClass>();while(!endOfData) { MyClass mc = new MyClass(); ... mc.price = x; mc.volume = y; list.add(mc);}ObjectOutputStream oos = new ...
  • "Command" or "Observer" design pattern one which is good
  • Fri, 21 Sep 2007 11:02:00 GMT
  • dear all, about "Command" or "Observer" design pattern kindly let me know if one of these is the best or none of these you want to adopt some other design pattern.thanksimran ...
  • "Concurrent Modification Exception "
  • Wed, 16 Jul 2008 20:48:00 GMT
  • Hi, I am getting the "ConcurrentModificationException" in call center while callestablished...exception shown as below.============================================================2005-03-18 04:21:25,203 -0600 ERROR [ApplicationServiceManager$ServerMessageHandler] - handle(CallEstablishedEvent) E...
  • "contype" userAgent in Httprequest
  • Wed, 16 Jul 2008 20:16:00 GMT
  • I'm using servlets to generate PDF's at runtime and flush them. Bur from Browser(IE 5.5 sp2) the request goes twice to the servlet. As per the linkhttp://support.microsoft.com/default.aspx? scid=kb;en-us;Q293792the soln. lies in finding the "contype" userAgent in request. But how to find...
  • "ctx = new InitialDirContext(Hashtable)" throws class cast exception
  • Wed, 19 Sep 2007 23:42:00 GMT
  • Please can someone tell me why I get the error:java.lang.ClassCastException: java.lang.Stringjava.lang.ClassCastException: java.lang.Stringat com.sun.naming.internal.ResourceManager.getInitialEnvironment(ResourceManager.java:129)at javax.naming.InitialContext.init(InitialContext.java:215)at ...
  • "DEADLOCK" when showing dialog from RMI-callback.
  • Sun, 23 Sep 2007 17:54:00 GMT
  • Hi!Today is the 10th day (full time) that I've been searching for a solution in Java Forums and Internet, but I couldn't find anything that helps me. Help is extremely appreciated, otherwise I'll go crazy! :-)The problem is that RMI-callback thread "somehow blocks" the Event Dispatch ...
  • "Email Login" App: POST Forms, & Client Cookies for (Hotmail/Yahoo mail etc)
  • Sun, 13 Jul 2008 21:14:00 GMT
  • HelloI've been working on the above to automate "Email Login" for both a Javaapplication and Applet.If anyone is working on this too and interested in collaborating or hasfinal code they are willing to share this would be most helpful.Just to explain the background. POST form info is sent to...
  • "Error in ant build.xml file"
  • Wed, 16 Jul 2008 20:34:00 GMT
  • Hey Guys, i am currently involving in a servelet project (RendreX). i want to install apachi ant as a prerequirement. i am using windows 2003 server. I already downloded latest ant version and apache tomcat4.0. Also i have set all the class path,ANT-HOME(C:\ANT) and other relevent paths. But whe...
  • "Error unmarshaling return header", but return type is void
  • Wed, 19 Sep 2007 16:06:00 GMT
  • I don't understand this. My remote call works, but the calling code gets an exception. The remote method has this signature:public void mymethod(Object value) throws RemoteException;- The code/process that implements mymethod has logging statements that appear in the log, so I know that it is ...
  • "ErrorAddress already in use ...JVM_BIND" needs help its urgent ...
  • Wed, 19 Sep 2007 04:56:00 GMT
  • hi all, its very urgent....I have written a server for chating and it is creating a socket on localhost at port no 6668.. but whenever i run my server it show an error...Erroraddress already in use..JVM_BIND...Even I am starting it at the first time after restarting still it is giving ...
  • "Exception in thread "main" java.lang.OutOfMemoryError"
  • Thu, 17 Jul 2008 18:21:00 GMT
  • Hi there !!!I am using this program - I found it on the net - and what it basically does is to convert comma separeted files into xml files. Everything workes fine until I start using files with loads of data. For instance I have a 2,350 KB of data that gives me the following error: "Exception i...
  • "Exception occurred trying to invoke the getter"
  • Thu, 15 Nov 2007 11:51:00 GMT
  • I'm getting a RuntimeOperationsException when I perform a certain query on the latest Glassfish server.The following:conn.queryMBeans(new ObjectName("com.sun.appserv:host=*,path=/*,type=Manager"), null);Gives me:javax.management.RuntimeOperationsException: Exception occurred trying to invoke the ...
  • "for each" loop - under the hood question
  • Mon, 24 Sep 2007 13:44:00 GMT
  • Question about the for each loop. Is it optomized? I think this is a poor use of memory management - for (int i = 0; i < stop; i++) {Object obj = new Object();doSomething(obj);}And this is the ideal, using the same object -Object obj = new Object();for (int i = 0; i < stop; i++) ...
  • Java Technology Blogs
  • "Java Core APIs" Related Questions
  • " Interesting " question....
  • Hi guys, Just wondering,How can I associate an Icon with my web page so that it will appear in the FAVORITES menu of internet explorer ?(e.g. IF you add java.sun.com to your bookmarks, the java mascot will show up in the "Favorites" menu).Any guess ?Thanks...
  • "application/x-www-form-urlencoded"
  • Hi, what kind of MIME type is "application/x-www-form-urlencoded"? Can someone give an example?Thanks....
  • "Bad Magic Number" (again)
  • Hi , I wrote a signed applet for a client, the applet simply contains few scripts to call a local exe file, that's all. The problem as I've seen many in the forum is, and error message with the text from the Java Plugin:"General Exception.java.lang.ClassFormatError: RunProgramBeanInfo(Bad ...
  • "contype" userAgent in Httprequest
  • I'm using servlets to generate PDF's at runtime and flush them. Bur from Browser(IE 5.5 sp2) the request goes twice to the servlet. As per the linkhttp://support.microsoft.com/default.aspx? scid=kb;en-us;Q293792the soln. lies in finding the "contype" userAgent in request. But how to find...
  • "After" filter?
  • Hello!I have a servlet which gets request, processes and gives some specific output as response. I had to pre-parse request information for this servlet, so I've created filter (doFilter(...)). The problem now is that I need I need to be able to modify servlet's output too, but I cannot...
  • "Exception in thread "main" java.lang.OutOfMemoryError"
  • Hi there !!!I am using this program - I found it on the net - and what it basically does is to convert comma separeted files into xml files. Everything workes fine until I start using files with loads of data. For instance I have a 2,350 KB of data that gives me the following error: "Exception i...
  • "Error unmarshaling return header", but return type is void
  • I don't understand this. My remote call works, but the calling code gets an exception. The remote method has this signature:public void mymethod(Object value) throws RemoteException;- The code/process that implements mymethod has logging statements that appear in the log, so I know that it is ...
  • "Email Login" App: POST Forms, & Client Cookies for (Hotmail/Yahoo mail etc)
  • HelloI've been working on the above to automate "Email Login" for both a Javaapplication and Applet.If anyone is working on this too and interested in collaborating or hasfinal code they are willing to share this would be most helpful.Just to explain the background. POST form info is sent to...