This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Servlets and the fly likes .csv files comparison Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark ".csv files comparison " Watch ".csv files comparison " New topic
Author

.csv files comparison

Amit Ranjan kumar
Greenhorn

Joined: Jul 10, 2013
Posts: 9

please help me this program is not working properly

Stuart A. Burkett
Ranch Hand

Joined: May 30, 2012
Posts: 679
TellTheDetails. Nobody here knows what your program is supposed to do, so there's no way we can tell you why it isn't working properly.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42055
    
  64
Two points: don't override service, override either doGet or doPost. GET and POST are not to be interchangeably.

This is bad:

catch(Exception e)
{
}

How will you know which problems there are? At the least, write the stack trace to where you will see it.


Ping & DNS - my free Android networking tools app
Amit Ranjan kumar
Greenhorn

Joined: Jul 10, 2013
Posts: 9
basically this program is comparison many .csv file and give the minimum value of data of csv file.
it is nice working with oracle but occur the problem with mysql
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

Amit Ranjan kumar wrote:it is nice working with oracle but occur the problem with mysql


Okay, that's one detail. Now if you explained what that problem was, it would help. You've already been given a link to our TellTheDetails FAQ entry. Please read it and then post accordingly.
Amit Ranjan kumar
Greenhorn

Joined: Jul 10, 2013
Posts: 9
Paul Clapham thank you for gave the information about it .

actually line no 38 and 57 is not working.

i want to do comparison many .csv file each other after that get the min value from these file
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14195
    
  20

Amit Ranjan kumar wrote: actually line no 38 and 57 is not working.

Come on. People have asked you two times already to TellTheDetails. Please also read our FAQ page: ItDoesntWorkIsUseless

What does "is not working" mean? Do you get an error? If yes, then what is the error?


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Amit Ranjan kumar
Greenhorn

Joined: Jul 10, 2013
Posts: 9
hey Jesper de Jong

i am not getting any error but these line not running...........................so i am asking why these query is not working.................
i want say one thing...........if this threw error then i solved by self............if you know servelt then reply ...............otherwise stop suggestion about your forum rule
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10426
    
    8

Amit Ranjan kumar wrote:
i want say one thing...........if this threw error then i solved by self............if you know servelt then reply ...............otherwise stop suggestion about your forum rule

There is only one rule around here, and that's "Be nice" which you are on the verge of violating.
The links which Jesper posted are guidelines to help us help you solve your problem. I would suggest you take a deep breath, relax, read the guidelines to understand them, and come back here to share the details.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Amit Ranjan kumar
Greenhorn

Joined: Jul 10, 2013
Posts: 9
Amit Ranjan kumar wrote:
please help me this program is not working properly

Amit Ranjan kumar
Greenhorn

Joined: Jul 10, 2013
Posts: 9
i want to output form this program like this:

m_paatern Rare
58623 0.20
91111 0.80
59623 1.02

problem:

line no 38: when i use only execute() instead of executeQuery() then program go to next line.

line no 55 this line display only one row of table. i want "this line display all table data which i want

lin no 60 this line is not executing. i not getting any error about this line
Prajakta Acharya
Ranch Hand

Joined: Nov 08, 2012
Posts: 138

Hi,

Have you tried printing the exception stack trace?
Its possible that there is some exception at those lines but since it is simply caught and not printed, there is no way to understand what went wrong.

E.g on line 55 there might be ArrayIndexOutOfBoundsException (just an example) but you wont know.

Does your table have only two columns?


Regards,
Prajakta
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14195
    
  20

Change lines 86-88 of your program so that it prints out the stack trace when an exception occurs:

Then compile and run the program again and copy & paste the stack trace here.
Anil Kumar Goud
Greenhorn

Joined: Jul 11, 2013
Posts: 12

Hey,

If you have using any IDE like eclipse to run this, do debug so that you get exact problem what you are facing, and also you are able to post more clear description for the same.
Amit Ranjan kumar
Greenhorn

Joined: Jul 10, 2013
Posts: 9
i am getting error java.lang.ArrayIndexOutOfBoundsException: 3 in server tomcat

i made table column 3

m_pattern range bigInt(11)
region range varchar(255)
rate float


pleas help how to solve this problem
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42055
    
  64
i am getting error java.lang.ArrayIndexOutOfBoundsException: 3 in server tomcat

i made table column 3

You didn't say in which line of code this exception happens, so I'm assuming it's in line 55, where the code assumes that the data array will at least have 6 elements. Apparently, it doesn't even have 4. (Remember that the element at index 3 is the 4th element.) You should check the length of the array before blindly assuming that it has a particular length.
Amit Ranjan kumar
Greenhorn

Joined: Jul 10, 2013
Posts: 9
due my mistake i am getting error. actually i was loaded wrong file.

now it is working fine

Thanks to this forum and all of you
 
GeeCON Prague 2014
 
subject: .csv files comparison