Win a copy of Machine Learning with R: Expert techniques for predictive modeling this week in the Artificial Intelligence and Machine Learning forum!

Gourav Bansal

Ranch Hand
+ Follow
since Jun 27, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Gourav Bansal

Hi

Currently, We are using org.quartz-scheduler.quartz-2.1.7 version and with that our application is working fine. Now I am upgrading it to 2.3.0 version and Job stopped triggering.
We used Custom ConnectionProvider implementation and with the new version, I need to implement one more abstract method initialize. I kept this implementation as empty as the data source is injected by Constructor itself.

I am not getting any error no exception

Any suggestion/ideas how i can troubleshoot this and move ahead.

Thanks,
Gourav Bansal
3 weeks ago
Serialization is to Store the Object state or Object Variable Data to Stream or File and Deserialize later on.

I can achieve this by writing the Object variable Data to File and send it someone else and the other Application read the file and do processing. It might be tedious to write and read the file as compared to Serialization but still I can do that.

Is there any specific purpose we should choose Serialization ?? Please correct me if I misunderstood something.
3 years ago
its resolved!!

I explode the war and copy the classes in target/classes folder in validate phases.
3 years ago
Hi

I have one war module and I want to use the classes(want to use the methods of that class) of that module in currently working module.
I tried to use maven-war-plugin to explode the war and copy the classes in my target/classes folder. But not able to import the classes. Also tried to create the jar and copy it in my currently web-inf lib folder but still not able tot import the class

Any solution or link to solve this problem.

3 years ago
Hi All,

I am creating a application where I am integrated the spring and hibernate. So it's the User Registration Page basically. On this page I have password and confirm password property. I have created a entity class which is also act a model of spring. Now when I fetched the properties values and populate the Entity object and when I tring to save it it says "no confirm password column in user table".

Is their any way I can skip this property.

Thanks,
Gourav
Yes that is same part of same transaction.

I din't set any isolation level. I believe by default its Read_Commit
Thanks Jeanne for reply.

I modified the entity and give the back traverse using mappedBy attribute and get the Object A
Hi

I am new to JPA and stuck with fetching the records from DB. What I am doing is

Transaction Begin
Go to Class A-> Create Object A using EntityManager persist method.
Go to Class B-> Create Object B using EntityManager persist method.
Go to Class C-> try to fetch the Object A using EntityManager createQuery method and here I am passing some parameters(Don't have the Primary key so using this).
then query.getResultList() this give me the empty result list.

Transaction commit

But when I check the DB after committing I got the expected result. I believe I got the empty list because I persist the record "A" but not committed into DB. If this is the case please help me in fetching that record.

Thanks

Hi,

In java we have decimal format by which we can represent any number. The format is like that '###.###' but in oracle the format is represented like '999.999'. Is there any java API which will convert the java format to Oracle format.

Another option that I have to replace the # with the 9 and return that. Please suggest if we have any API for that conversion.

Gourav
5 years ago
Hi

I am new to web service. I am going through the different web tutorial or example over the internet. Some of the tutorial that I read are using listener entry in web.xml and sun-jaxws.xml for endpoint information. eg
http://java.dzone.com/articles/jax-ws-deployment-five-minute

While when I going to other tutorials they are using nothing listener and sun-jaxws.xml file eg.

http://javabrains.koushik.org/p/java-ee.html
http://docs.oracle.com/javaee/7/tutorial/doc/jaxws001.htm#BNAYN

I am confused here are they both different type of WS or different way to implement the same type of WS. Which I should follow ?
5 years ago
Thanks Nilesh/Vivek..

Its working now with the latest version of JDK 7. Initially I update the JDK to latest version but that was not working. Later on I installed the fresh copy J7u45 and its working.
6 years ago
HI

I am using Java 7. I have created a web project using maven from command prompt. Later on using mvn eclipse.... command I am converting this to eclipse project. I have done successful and import that project in eclipse.

Now when I run the project on server I got the below error.


Error occurred during initialization of VM
java/lang/VirtualMachineError: missing I or J signature (for vmentry) in java.lang.invoke.MethodHandle



I have created previously many project and they are working successfull with this jre. Could someone please help me to come out of this
6 years ago
Thanks Bear, Ulf and Maxim for your suggestion, help and support.

I have completed my small program which is actually based using Spring Wizard Controller. In the Wizard flow My controller create a tem file and store it and while displaying information i used the Img tag which call the another servlet and read that Image and Display :rolling:

Thanks again for you help :beerchug:
6 years ago
JSP
Hi Bear,

I want to upload the file which is at my machine to the remote server. I search over the google and found that there are apache library to upload the files. I am just thinking how I can do that without using third party library. Do I need to set the all the file into request and for that should I write the java code in jsp or is there is any another way.
6 years ago
JSP
Thanks Maxim :)

I am able to load the Image now :)

I am one more doubt in this. As of now I am working with single machine(Server and Client). In the Request I just pass the Image Name and in servlet I am pointing my desktop file. If the same thing I perform using 2 different machine(one is client and one is server) I believe it will create problem.

what if I want to upload the file and display it on another page. In that case How I upload the image. My servlet code will run at server side and from there I don't think we can point my client machine image.

Please correct me if I am going on wrong track. Help me to understand how we can do that ??
6 years ago
JSP