Apr 22nd, 2008 | J2EE | No Comments
java.net.BindException: Address already in use: JVM Bind is one of the most popular error among java developers and guys who do socket
programming in some other language too. But with respect to java this error is much familiar with socket programming and during web development. This error happens for ports 80 (HTTP) , 1098 (RMI) when it is used by other applications that is running on the same PC or server. So I am going to explain how to debug and solve this problem.
→ continue reading
Apr 1st, 2008 | J2EE | No Comments
Coding Standards play a vital role in the development of any software applications and development irrespective of the language that is used to develop the same. Every language whether it can be C, C++ or Java following the coding standards is must for any applications mainly to address bugs, memory leaks, performance issues and scalability. Since the style of coding may vary from language to language or developer to developer always there is always a degree of error in any software development. Most of the time the code gets crappy when multiple developers started working on the same piece of class or code and results in maintainability issues. There is always a possbility of crap code present in any software application but the degree varies. How crappy is your code ? Can somebody tell the degree of crappiness ? The answer is Yes. Alberto Savoia and Bob Evans of Agitar Labs which is a research division of Agitar Software came up with a solution called Crap4J framework for Java.
→ continue reading
Mar 30th, 2008 | J2EE | No Comments
The concept reverse engineering led to the invention of decompilers in the world of softwares and programming. Decompilers in java is mainly used to covert the compiled object code back to source. Decompilers often help programmers by helping them to recover the lost code from the compiled binaries. Decompilation of java code or any code from some other languages need to undergo some steps like disassembly, program analysis, code analysis, structure rebuilding and code generation depending on the language or type of the code. But nowadays, decompilers are mainly used for software piracy and is used to steal copyrighted code rather than for legitimate use. We will discuss some of the best known decompilers for Java in this post.
→ continue reading
Mar 28th, 2008 | J2EE | No Comments
EJB’s popularly known as Enterprise Java Beans are one of the state-of-the-art feature of J2EE. EJB’s are mainly used for handling transactions, security, providing remote services etc. Even though lot of Object Relational Mapping Frameworks like Hibernate has replaced EJB’s which is considered to be so heavy in any Enterprise Application. Invoking an EJB inside the Application Server Container is quite simple and process is not as tedious when you try to do the same from outside the Application Server. Today I am going to explain how to invoke an EJB service which is deployed in a remote machine using a plain java client.
→ continue reading
Mar 20th, 2008 | J2EE | No Comments
Err is human thats what we say. Unit Testing, Code Review are considered as some of the bugging terms in the current software industry. It is because until now no software neither framework has been guranteed to be fool-proof or bug free. Testing of any software or an application can be done at two levels. One at usability and functionality level ie. nothing but black box testing. The second one is nothing but White box or glass box testing the internal structure of the application or software. In terms of Electrical Engineering this kind of testing is called ICT (In Circuit Testing). The success of a software or application is much dependent on White box testing for a long run in terms of scalability, maintenance, load-factor etc. You can find lot of opensource and licensed frameworks available in the market to test the internal structure of the design, framework, code etc. For Java development open-source tools like Junit, PMD, Hamurapi are the prominent frameworks that has been used wide across the industry. Now a new open-source framework called Enerjy joins the party.
→ continue reading