Win a copy of Mastering Corda: Blockchain for Java Developers this week in the Cloud/Virtualization forum!

kkalyan kkumar

Greenhorn
+ Follow
since Jul 23, 2008
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by kkalyan kkumar

Thanks for the help, I am trying with that....

But can anyone give me some more help please.

Thanks in advance.
12 years ago
this is line one:
kalyan Kumar1,kalyan1@yahoo.com,"this
is
test
message1"\r

this is line two:

kalyan kumar2,kalyan2@yahoo.com,this is test message2 \r

In java how to write a single regex that recognizes end of line for the above 2 lines.

Please note that
"this
is
test
message1"
is single field.


A simple \r will make the line1 as 4 lines
and line2 as single line

Thanks in advance.
12 years ago
the bulk insert goes in my application when user triggers it by clicking an uploading a file with bulk data.

You said,

........
you need to add that option to the line that calls "java" when you start up your application.
.........

Hey Mark Spritzler, out of interest i am asking,
what does the above line means.........sorry, i did not understand it exactly.

can you please give some more pointers that helps me to understand it.

Thanks in advance
Hey,

Thanks for really useful help
Ya, the if condition is executed and i am not getting the out of memory exception when i manually do bulk insert.

As posted in my first comment, the problem comes when i do bulk insert with
loadrunner........

anyway, now i am looking into loadrunner.

thanks a lot for the help
Hey thanks for the help.

I am using spring-hibernate-maven-jetty project environment.
so, to increase the jvm size i have set

MAVEN_OPTS to -Xmx1024m.

Hope i am in the correct path.
Thanks for your timely help.
thanks for your reply.

I agree that the problem is with memory
But i wanted to know what I need to do to solve this........

Any suggestions will be really useful to me.

Thanks a lot in advance.
Hi,
I am trying to insert bulk records into a table, the following is code in my dao. I am using spring and hibernate

for(int i=0;i<allImportClients.size();i++){

ImportClients importClient = (ImportClients)allImportClients.get(i);
getHibernateTemplate().saveOrUpdate(importClient);
if ( i % 10 == 0 ) {
getHibernateTemplate().flush();
getHibernateTemplate().clear();
}
}

and my cfg.xml file has

<property name="hibernate.jdbc.batch_size">10</property>
<property name="hibernate.cache.use_second_level_cache">false</property>

This works fine when i am uploading 1200 records manually.
But when i try with loadrunner by creating 4 vusers who cocurrently insert 1200 records each, then it is throwing exception as

java.lang.outofmemoryerror: java heap space

Please, help me.
Thanks in advance
Hi,

I did a functionality which allows the user to download an excel sheet which contains the records in the database. When I press DOWNLOAD button in mozilla firefox it works correctly by downloading the excel file (filename.xls).
I'm using the following code:

response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-disposition","attachment;filename=filename.xls");


But when i press DOWNLOAD button in Internet Explorer6.0 i am unable to download the excel file. It shows filename_html instead of filename.xls

help me please, Thanks in advance
12 years ago
Hi,

I did a functionality which allows the user to download an excel sheet which contains the records in the database. When I press DOWNLOAD button in mozilla firefox it works correctly by downloading the excel file (filename.xls).
I'm using the following code:

response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-disposition","attachment;filename=filename.xls");


But when i press DOWNLOAD button in Internet Explorer6.0 i am unable to download the excel file. It shows filename_html instead of filename.xls

help me please, Thanks in advance
12 years ago
thanks i'll check it out
12 years ago
can anyone please give some java code on how to set recursive permissions of particular existing folder in the linux system. Thanks in advance
12 years ago