Monday, December 8, 2014

New Build Tool Gradle challenging ANT & Maven!!

We are hearing about a new build tool Gradle more often than not in many places or forum.

We may have thought earlier we had ANT and then we heard about Maven. What is this Gradle?

Is this better than both of them of them ? Should i use this? How tough it is to learn?

There may be many more question in your mind!!!!


I encountered a very interesting write up . 

Java Gaming by Libgdx!!

After working for more than 8 years in IT field, i felt like adding Gaming to my arsenal list. I always use to wonder how the games are made. Leave the super awesome games of PS4 or XBox . Even simple phone games apps also amazes me.

So I decided to create an learn gaming for my own fun rather than making money or for any other reason.


I will continue my IT consulting job but will try to find time to make some small but interesting games!


I am choosing Libgdx  as 2D framework for making the game.


I am referring some tutorial:-

Hope this helps someone to start fresh!


to be continued!!!!

Thursday, November 13, 2014

Full Stack Developer Dilemma!

Most of the start up companies are asking for Full Stack Developer now a days. You end up finding many full stack developer jobs on job portals. I just went through a very interesting article on Full stack Developer. It talks about the challenges and dilemma of a developer to become full stack developer.


Click Here to Read More

Monday, October 20, 2014

Java SE 7 Programmer II 1Z0-804

After clearing the Oracle Certified Associate, Java SE 7 Programmer Certification, I am planning to take the next certification (Java SE 7 Programmer II  ).


I am working on it. Feel free to drop me message or email to get further details on the same.


Some pointers came across reading for exams:-


One of the driving forces behind JDBC was to provide a standard way to acess relation databases, but JDBC can also be used to access file system and object oriented data sources.

Friday, September 26, 2014

java.lang.outofmemoryerror java heap space JMeter




I am encountering OutOfMemoryError in JMeter after running for a period of time.


This can be fixed by changing the parameter in Jmeter.bat or jmeter.sh.








The heap value needs to be increased. I tried increasing it too 2GB but it started giving me another error.

Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
errorlevel=1
Press any key to continue . . .


So i kept it to 1 GB for smooth operation and even i removed unwanted listeners from it.
Listeners consumes lot of memory. So we need to be cognitive of them.






Tuesday, September 16, 2014

com.ibm.ws.exception.RuntimeError: org.omg.CORBA.INTERNAL: CREATE_LISTENER_FAILED_4 vmcid: 0x49421000



This is the exception i was receiving when me and my friend was trying to start two instance of Websphere . We made sure to create different profile for server1 and server2.

Both were running in different port. But still we were encountering this error.


After searching i figure out this link

A BindException occurs for WebSphere Process Server (WPS) after the node agent starts up due to a port conflict.
http://www-01.ibm.com/support/docview.wss?uid=swg21316345

Resolving the problem


You need to manually fix the problem because the deployment manager cannot synchronize corrected settings on the node if it is not started. To correct the problem, complete the following actions:

Open the node agent configuration file to edit the port settings:

<profileName>\config\cells\<cellName>\
 nodes\<nodeName>\serverindex.xml

Identify the conflicting port number and entry in the server configuration file and manually apply a new unique value for the port number:

<specialEndpoints endPointName="ORB_LISTENER_ADDRESS">
 <endPoint xmi:id="id" host="hostname" port="port"/>
</specialEndpoints>

Login to the administrative console of the deployment manager and set the new value on the master configuration for the node agent:
Click System administration > Node agents > node_agent_name .

On the Configuration tab, click Ports > Details > port_name > Port.

Restart the node agent and check the log file to verify that the problem is fixed:

<profileName>/bin/startNode.(bat|sh)

Wednesday, September 3, 2014

There are no resources that can be added or removed from the server


Problem Statement:-

Could not find a valid parent module to add to the server.

I have installed Websphere server and integrated it with Eclipse Juno.
I created the Websphere Application  Server Profile and add that in server tab of Eclipse.

When i right click and try to add my project in the server, so i can deploy it. I get the following exception
"There are no resources that can be added or removed from the server"


Solution:-

I have read the solution from the below Stackoverflow. It is a very helpful link.

http://stackoverflow.com/questions/13828005/what-needs-to-be-done-to-add-a-project-to-a-websphere-server-in-eclipse-juno

Wednesday, August 20, 2014

Oracle Certified Associate, Java SE 7 Programmer Certification




If someone is planning to give certification,

These are the few resources they should refer :-

1.  Oracle Certified Associate, Java SE 7 Programmer Study Guide

will add  more ...


Some important pointers for this exam

When using BigDecimal, it is important to note the following:
• Use the constructor with the String argument as it does a better job at
placing the decimal point
• BigDecimal is immutable
• The ROUND_HALF_EVEN rounding mode introduces the least bias



Objects of these wrapper classes are immutable. That is, their values cannot
be changed.

Tuesday, August 19, 2014

Signature of an Java Method

The signature is an important concept to remember and is used in overloading/
overriding methods and constructors , Inheritance and
Polymorphism. A constructor will also have a signature. Notice that the definition
of a signature does not include the return type.

Monday, August 18, 2014

Common Error while developing ADF application

[10:32:07 PM] Copying security related files to the ADF Mobile Framework application...
[10:32:07 PM] Creating Android preferences XML files...
[10:32:08 PM] Creating AndroidManifest.xml file...
[10:32:08 PM] Creating Google Cloud Messaging intent service file GCMIntentService.java...
[10:32:08 PM] Creating unsigned Android application file...
[10:32:08 PM] Command-line executed:  "C:\Programs\adt-bundle-windows-x86-20140702\adt-bundle-windows-x86-20140702\sdk\platform-tools\aapt" p --debug-mode -f -m -J "C:\JDeveloper\mywork\ MobileApp\deploy\Android4\src" -M "C:\JDeveloper\mywork\ MobileApp\deploy\Android4\AndroidManifest.xml" --min-sdk-version 19 --target-sdk-version 19 --version-name 1.0 --version-code 1 --extra-packages oracle.idm.mobile -F "C:\JDeveloper\mywork\ MobileApp\deploy\Android4\MobileApp.apk" -I "C:\Programs\adt-bundle-windows-x86-20140702\adt-bundle-windows-x86-20140702\sdk\platforms\android-20\android.jar" -S "C:\JDeveloper\mywork\ MobileApp\deploy\Android4\res" "C:\JDeveloper\mywork\ MobileApp\deploy\Android4\java_res"
[10:32:08 PM] Deployment cancelled.
[10:32:08 PM] ----  Deployment incomplete  ----.
[10:32:08 PM] Cannot run program ""C:\Programs\adt-bundle-windows-x86-20140702\adt-bundle-windows-x86-20140702\sdk\platform-tools\aapt"": CreateProcess error=2, The system cannot find the file specified
[10:32:08 PM] CreateProcess error=2, The system cannot find the file specified



Solution:-


Change the file of appt


https://blogs.oracle.com/onesizedoesntfitall/entry/adf_mobile_deploying_to_android

http://stackoverflow.com/questions/9093709/installation-error-install-failed-older-sdk

https://rmirchan.wordpress.com/author/rmirchan/



Tuesday, August 12, 2014

Heroku issues



Error:-  I installed the Heroku plugin in eclipse. When i was trying to update the code from Heroku account i got this error.

java lang reflect invocationtargetexception heroku

Solution:-
I was getting the error because I had exceeded  the limit free user project. Eclipse was creating project even when it was throwing the error. So i went ahead and deleted those project and it worked fine.




This could be due to the Eclipse SSH key is not matching the SSH key(s) that is associated with your Heroku account.




http://stackoverflow.com/questions/18550610/heroku-ssh-error


The problem is caused because Heroku plugin does not add a known hosts entry for heroku.com and git clone fails.
To solve this issue go to File -> Import... -> Projects from Git. Then select URI, click next and put you project URI in the URI field (i.e. git@heroku.com:fierce-atoll-8131.git) and click next. Then you will be asked to add heroku.com fingerprint to the known hosts list and create the known hosts file if it doesn't exist. After you accept this, you can cancel the Git import and proceed with Heroku plugin import.

Starting with Heroku and PostgreSQL


Wednesday, August 6, 2014

Upcoming Trainings


Webservice Training (Date to be announced soon!)

1. REST Training

  • Overview of Web Services
  • The XML Technology
  •  Understand the concepts of REST.
  •  Explore the conventions and design principals associated with REST services.
  • Creation of REST application
  •  Learn the JAX-RS API for building services from annotated plain old Java objects (POJOs).
  •  See how to produce and consume multiple data formats to include XML and JSON.
  •  Security of Java REST services.
  •  See how to build Java REST client applications.
  • Testing REST using REST application tester


2. SOAP Training
  • Overview of Web Services
  • The XML Technology
  •  Explore the conventions and design principals associated with SOAP services.
  • Web Services Description Language
  • Creation of SOAP application
  • Testing of SOAP application using
  • See how to build Java SOAP client applications.

Reach out to me for further details on my email id 
Send Mail






Wednesday, July 16, 2014

Failed to load the JNI shared library jvm.dll



This error is coming while starting the eclipse.


This error happens when there is a mismatch between Eclipse and JDK  bit architecture (32 bit or 64 bit).

I had a 64 bit eclipse but my JDK was 32 bit so it was displaying this error message.

I downloaded the 32 bit Eclipse. It solved the issue.


Hope this helps.









SOAP tutorial with Project code


It is a SOAP application. It has implemented the addition method. It is a very small SOAP application but gives an example to start with. It is tested in Weblogic 11R1 (10.3.5).

https://drive.google.com/file/d/0B252XG4kXh6ub2hkT0k5U2xSZ0k/edit?usp=sharing



Wednesday, June 4, 2014

How to connect as Sys user using SQL Plus

conn <username>/<password>@<sid> as sysdba

For example

conn sys/welcome1@xe as sysdba

Tuesday, April 29, 2014

Escaping Issue


We all have encountered escaping issues while working on Web development. It can happen with HTML, Javascript, XML etc.

Every time we end up handling it by one by one basis. So application can break if a particular scenario is being not covered.


http://www.unbescape.org/usingunbescape.html

Monday, April 28, 2014

Run Java code without IDE for quick testing



I figured out a cool site to execute Java files online. It can be used incase you don't have a IDE and want to test something quick :)

http://www.compileonline.com/compile_java_online.php

Friday, April 25, 2014

Profession Help!



We are providing help in different Web technologies.

1. Java
2. J2EE
3. Spring
4. Hibernate
5. JQuery
6. Struts
7. Ant
8. Weblogic Server Basics
9. Oracle Webcenter Portal
10. Oracle Application Development Framework.
11. SalesForce Cloud


and Many more. Feel free to send  email @ techylearnings@gmail.com

Interview Questions for Java and Spring

1. What is the difference between ApplicationContext and BeanFactory.
2. What are the different kinds of scope in Spring bean.
3. How do you listen to JMS queues.
4. What is the difference between Sleep and wait method.
5. Why and how to synchronize in threading?
6. What is Auto wiring in Spring.
7.  How to monitor memory leak in Java.
8. What tools can be used to detect the memory leak in Java
9. What is the difference between Memory allocation of C++ and Java.
10. How does Garbage collection works?
11. How to do memory profiling in Java.
12. Explain a multithreading project implementation.