This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Asynchronous Request Processing weird output  RSS feed

 
Mahtab Alam
Ranch Hand
Posts: 391
1
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


When I run this servlet this generates thousand of lines of output.
Whats the problem
 
J. Kevin Robbins
Bartender
Posts: 1801
28
Chrome Eclipse IDE Firefox Browser jQuery Linux MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't get your code to run at all, but I see at least two problems that you need to fix before you'll get anywhere. First, name your class something besides Null. That's a reserved word. Second, look carefully at line 28 and you'll find something wrong.
 
Mahtab Alam
Ranch Hand
Posts: 391
1
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One error missed ; at the end of line 28.

And I think Java is case sensitive so null and Null are different.
And I checked it it is working
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java is case-sensitive, true. But the underlying OS may not be, and that has resulted in problems on more than one occasion.

Actually, I had a package named "com.mycompany.financials.servapp.core.floomod" or something like that and ran into issues because "core" is the default name for a core dump file and at the time in question, the OS mis-interpreted the "core" directory name to think it was working with a core dump.

So you cannot just just any old name with impunity.

Besides, while the compiler knows that "Null", "NULL" and "null" are different things, when you discuss them with colleages, the relative capitalizations are not going to be as apparent, which can result in a whole lot of confusion.
 
Mahtab Alam
Ranch Hand
Posts: 391
1
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh I am sorry Tim
I am just a kid.
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, people have been trying to get me to grow up for years.
 
Mahtab Alam
Ranch Hand
Posts: 391
1
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what about the problem
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What have you done about it? Please post your code updated with the suggestions that have been made.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!