Total Pageviews

Thursday, November 25, 2010

Friday, November 19, 2010

UIWebView in Objective C

Always Use "http://" before using the URL="www.google.com".

but y? http://???

Tuesday, November 16, 2010

java.lang.IllegalStateException

Nov 16, 2010 12:48:24 PM org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already. Could not load com.sun.org.apache.xerces.internal.impl.dv.dtd.DTDDVFactoryImpl. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1531)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)
at com.sun.org.apache.xerces.internal.impl.dv.ObjectFactory.findProviderClass(ObjectFactory.java:395)
at com.sun.org.apache.xerces.internal.impl.dv.ObjectFactory.newInstance(ObjectFactory.java:350)
at com.sun.org.apache.xerces.internal.impl.dv.DTDDVFactory.getInstance(DTDDVFactory.java:59)
at com.sun.org.apache.xerces.internal.impl.dv.DTDDVFactory.getInstance(DTDDVFactory.java:44)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.(XML11Configuration.java:538)
at com.sun.org.apache.xerces.internal.parsers.XIncludeAwareParserConfiguration.(XIncludeAwareParserConfiguration.java:125)
at com.sun.org.apache.xerces.internal.parsers.XIncludeAwareParserConfiguration.(XIncludeAwareParserConfiguration.java:86)
at sun.reflect.GeneratedConstructorAccessor24.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at com.sun.org.apache.xerces.internal.parsers.ObjectFactory.newInstance(ObjectFactory.java:349)
at com.sun.org.apache.xerces.internal.parsers.ObjectFactory.createObject(ObjectFactory.java:154)
at com.sun.org.apache.xerces.internal.parsers.ObjectFactory.createObject(ObjectFactory.java:97)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.(DOMParser.java:133)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.(DOMParser.java:117)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.(DocumentBuilderImpl.java:115)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:72)
at com.tacpoint.datarobotics.admin.PodcastGenerator.getItem1(Unknown Source)
at com.tacpoint.datarobotics.admin.PodcastGenerator.create4(Unknown Source)
at com.tacpoint.datarobotics.admin.PodcastGenerator.run(Unknown Source)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)

Saturday, November 13, 2010

https://twitter.com/sessions

Twitter login Error:

403 Forbidden: The server understood the request, but is refusing to fulfill it.

Thursday, November 11, 2010

A simple Reminder program in JAVA with the help of TimerTask

import java.util.Timer;
import java.util.TimerTask;


public class reminder {
Timer tim;

public static void main(String[] args)
{
new reminder(1);
System.out.println("\n Timer");
}

public reminder(int i)
{
tim=new Timer();
tim.schedule(new time(), i*1000);
}

public class time extends TimerTask
{

@Override
public void run() {
System.out.println("run..");

}
}
}

Monday, November 8, 2010

Program received signal: “EXC_BAD_ACCESS”. at the time of Printing Boolean

BOOL theBool;

NSLog(@"The value of the bool is %@\n", theBool);

At the time of printing the BOOL value it throws an error.
NSLog(@"The value of the bool is %d\n", theBool);

Wednesday, November 3, 2010

Write a file in java using a BufferedWriter

File f = new File("output.txt");
FileWriter write = new FileWriter(f, false);
//True -- is to append the data
//False -- to write a file
BufferedWriter bw = new BufferedWriter(write);

bw.write("Hello World"); // Writing to file
bw.newLine(); //go to new line
bw.write("How are you");
bw.close(); // Closing the bufferedWriter

Monday, November 1, 2010

EOFException

Exception in thread "main" java.io.EOFException
at java.io.DataInputStream.readChar(DataInputStream.java:348)

IOException

Exception in thread "main" java.lang.Error: Unresolved compilation problems:
The local variable dpis may not have been initialized
Unhandled exception type IOException

Variable outside the try/catch folder

java.lang.Error

Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The method virtual(DataInputStream) is undefined for the type main

Error Occurence Due to calling the unknow method.