This week's giveaway is in the Spring forum.
We're giving away four copies of Microservices Testing (Live Project) and have Chris Love & Andres Sacco on-line!
See this thread for details.
Win a copy of Microservices Testing (Live Project) this week in the Spring forum!

Vivian Josh

Ranch Hand
+ Follow
since Oct 31, 2006
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vivian Josh

Thanks Shannon.

Yup, I got it later. Thanks for your reply.

Hi Koti,

How did you solve this problem? I am facing similar issue.
Please let me know if you got around this one.

Hi Ranchers.,

I am trying to copy one XML into other but I only want to copy entire block of elements if one particular child tag exist.

For example


So in above xml I want copy all <element> tags only if <c1> exist in that.

How do I achieve that?

Thanks in advance ,

Hi Ranchers,

I don't know what I am missing to understand in following code but I was trying to get date difference of following two dates and its giving me 0

Calendar cal = new GregorianCalendar(2008, 10, 31, 10, 00);
Long start = cal.getTimeInMillis();
Calendar cal2 = new GregorianCalendar(2008, 11, 1, 10, 00);
Long end = cal2.getTimeInMillis();

Output :

Start Date in ms = 1228154400000
End Date in ms = 1228154400000
Diff = 0

Start date - 31st oct 10 am
End date - Nov. 1 , 10 am

Shouldn't it give me 24 hrs?

13 years ago
Hi Ranchers,

I am bit confused about the meaning of "updatable" and "insertable" in @joinColumn annotation.

Suppose I have something like this in my entity called "Player" (player_table):

public class Player implements Serializable{

@JoinColumn(name = "user_id", referencedColumnName = "some_other_id", updatable = false, insertable= false)
private USER user;


So does this mean I can not update user_id from player table or I can not use user_id in "where clause" while updating record in player table ?

Thanks for you help.

Hi ranchers,

I got it solved.

I was not using referencedColumnName attribute for @JoinColumn.

You need to use it if the column you are referring to join the entity is not a primary key for that entity object.

Hope this helps some one facing similar problem.

Hi Ranchers,

I am beginner in JPA and facing this error.

I am trying to map 2 entity beans. When I am accessing child entity in my parent entity , it throws exception saying.... child class declares a column that is not compatible with the expected type "decimal".

If I remove mapping then it does not complain at all.

Can anyone help me understand what could be the issue? I need to map those two entities.

Hi ranchers,

I am working on one xsl file where I need to display registration block or login block depending upon the some condition. I am doing that with <xsl:choose> tag.

Now, my registration block is vertically long and login block is short. So when login block is being displayed it shows white page below that block. Looks like it is resizing that everything. something similar to cutting the page in half and displaying it.

I have very begginner skills in html and not able to figure out how should I debug it.
I am not setting any table with width/height. Its a sequential display and I want to display that page till end of the screen filled with background color .

I would really appreciate any help on this.

Thanks in advance.
No, I am not using any framework. It is basic web application which can not be entirely setup in eclipse. So have to add folders as simple java project.
I can not create web project directly for this one.
Hi Ranchers,

I know this is very common error of declaring source folder, but some how I am not able to solve my particular case.

I tried searching through other posts here but could not get to resolve my issue with any of those.

So here is my problem.

I have a project called "javasource" which is created with existing source option. I have 'javasource' folder on my C drive and it has other set of com.mystuff folders etc.

So now javasource/com/mycomp/myfolder/ has package declaration statement "package com.mycomp.myfolder;" which gives me error saying declared package does not meet expected package. Aslo, it does not recognize any other classes from that folder ie.. same package. However it recognizes files from other package.

It says expected package is "" so asks me to remove package statement.

My source folder : javasource
output folder : javasource/output

Can someone help me here? How do I get rid of all these errors? I dont want to change any package statements. I am missing something with eclipse build configuration.

Thanks in advance.

- vivian

Originally posted by lavanya Ananth:

I gave the debug parameters as optional VM arguments

-Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX ermSize=48m -XX:MaxPermSize=128m -Xverify:none -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n -Ddsco.datasource=exodys_oracle -Dweblogic.log.Log4jLoggingEnabled=true -da

Where are you giving these parameters? In weblogic script or eclipse ? Can you provide some more details?

Also, as Marcos said , try using netstat and see if it listening on specified port address.
14 years ago
Hi Ranchers,

can some one tell me what is exact difference between method and function? Like c function.

Aren't they same?

- Vivian
14 years ago
Hi Marcos,

I solved that issue.

I was making mistake of giving space before and after '=' sign. After removing that it started working smoothly !

Thanks for all your help. I really appreciate that.

- Vivian
14 years ago