• support[@]kurinchilion.com
  • +1 (888) 666-4252

Tags

Java: Buffered Reader Vs. Scanner

Oct 07, 2012 - by kurinchilamp / Java / Post Comment
Buffered Reader - Buffered reader reads text from a character input stream and buffers those characters - Buffered reader has a buffer size of 8 KB - Buffered reader is synchronized and can be safely called from multiple threads - To parse for primitive data types additional functions needs to be called Scanner - Scanner breaks down input into tokens and translates individual tokens according to their data type - Scanner has a buffer size of 1KB - Scanner is not synchronized - Scanner can parse for primitive types and strings using regular expressions Source: http://docs.oracle.com/javase/6/docs/api/java/io/BufferedReader.html http://docs.oracle.com/javase/tutorial/essential/io/scanning.html
Continue Reading

JAVA: public class naming

May 20, 2011 - by kurinchilamp / Java / Post Comment
A JAVA program file can only contain one public java class and this should be named the same as the java file itself. There can be any number of classes with / without other modifiers. Classes without any modifiers will get compiled even if the name of the class does not match the name of the java program file. (more…)
Continue Reading

Netbeans: Authentication required dialog box requesting user name and password

Feb 15, 2011 - by kurinchilamp / Java / Post Comment
If a user role and his credentials are not set or is incorrect for Tomcat startup via NetBeans IDE you will get this dialog box opened i) First check the Netbeans configuration settings Open Tools > Server ii) Base path for Catalina will be set in the General tab andn it will be of the form \CATALINA_BASE\conf\tomcat-users.xml. Check if a user and his role is defined as stated in the below syntax. If not add these lines <role rolename="manager"/> <user username="tomcat" password="secured" roles="manager"/> iii) In Tools > Server > General tab enter the username and password stated in the tomcat-users.xml file and this will stop the Netbeans IDE from asking you the name and password
Continue Reading

To debug struts, add the below line in the struts.xml file

Feb 14, 2011 - by kurinchilamp / Java / Post Comment
//struts.xml <struts> <constant name="struts.devMode" value="true" /> ..... </struts>
Continue Reading

Netbeans: HTTP Status 404 – There is no Action mapped for namespace / and action name

Feb 13, 2011 - by kurinchilamp / Java / Post Comment
i) Check where struts.xml is defined - Path where the file exists. In netbeans, easy way to do this to add the struts.xml file to package folder. ii) Check if the correct namespace is added in the struts.xml iii) Check if the package name is given correctly for the class in execution.
Continue Reading

TECHNOLOGY DEV STACK

Following are some of the technologies that we use to build and maintain solutions for our clients.