PEB | 1 Sep 02:26
Picon
Favicon

Re: would you please help

Hi Vojtech
I thank your answer and help but your message is absolutely out of place (desubicado) and not polite.
Why did you assume I did not try to google the problem or  other ways  to  learn about my questions?
In one hand "java logging" is not the obvious way to search a Netbeans feature , why not "java logger" that give no answers except the propertiers catalog I mentioned?
Moreover if you yourself say you think there is no answer for my first question, how would  I have googled it?
I thanked in advance and asked properly, where does your agression find a  basis?. You should better limit your messages to the  matters  posted  and   reserve  the  manner   analysis   for,  and about, yourself. I hope you are not one of those chauvinist that attacked me in the past for not using pure us-english.

By the way, as your e-mail says you are from SUN I shall use this opportunity to suggest to who corresponds in SUN through you to abandon such old-fashioned non international ways of doing things. The second majority in USA speaks my language so you can not ban spanish even from an USA point of view.

Getting to the matter:

If  you   are  running  from   the   IDE  the  system.out  messages may be enough  for  work or debug ,  but if you are out from it you must know it and post messages in a differing way. This is linked to the 2nd question   since I want to substitute the "logger - Netbeans - aggregate" in catch clauses for a unique function working differently out or in the IDE.
I do not know how  you do not notice  that sentence in catch clauses, Netbeans writes it whenever you admit it to write a try-catch clause;  always the same one whatever the kind of exception.
The article you referenced is better than Sun properties documentation (I did not refer to Javadocs) but it lacks the main ideas: "why" and "what for"  and unfortunately has no examples as far as I have read, so it remains in an abstract level.

I assume your good will and thank you for your help once more
Best regards
Pablo



Vojtech Sigler escribió:
Hi Pablo,

if you want your questions answered, you should learn how to ask and also some manners.
Here are some tips:
1) spend at least 5 minutes googling first ;)
2) describe the problem you're facing, maybe, there's an alternative solution you did not see at first, but someone else did
3) saying things like "javadoc is useless" (at least that's what I understood by "not that list of class properties that SUN is so fond of and gives nothing") will get you nowhere and you'll end up being ignored
4) try be polite ;)

Ok, to your questions:
1) I am not aware of any means of telling where is your app run from. As far as I know there is no difference in running the app from the IDE and from the command line. If you're having trouble that the 'dist' dir is erased, you can use a different workdir for your app. Just invoke project properties -> Run and set your desired path in "Working directory" text field.

2) Well if you consider javadoc useless, you could try googling for e.g. "java logging". You'll get a dozen articles about logging in java.

Anyway, the line you asked about is simple:

Logger.getLogger() - this static method will get you a logger instance for your class, usually you'll have just one logger for a class. As for the argument, you can call getLogger(mypackage.X.class.getName()) or getLogger(mypackage.X.class) or getLogger("mypackage.X"), the result is the same. The argument is just the name of the logger. You could even invoke getLogger("myCoolSuperLogger").

log(Level.SEVERE, null, ex) - this piece of code logs an exception that occured, with logging level SEVERE, which says your application is in serious trouble ;) you can have other levels such as WARNING or INFO. The null is for a String value, usually you want a message to go into the log like log(Level.SEVERE, "I'm done for, just use kill -9 already :(", ex) or log(Level.INFO, "All is OK", null). Ex is an exception you can attach to the log (it will get printed into the log output).

So, the line you asked about is just a default handling of an exception. Though I'm not sure where did you get it or where Netbeans generate such code.

Ask google for more info ;) The first result in google is this: http://java.sun.com/j2se/1.4.2/docs/guide/util/logging/overview.html which is rather old, but it will give you some idea.

I hope this was useful :)
Vojta

PEB wrote:
I posted the questions bellow 3 days ago. I did not get a single response, are them so difficult to answer?
thanks

Hi,
1)I want to know if there is a way by which an application can determine if it is running *from the IDE* or   *by its own *
2) Can you guide me to a good article (not that list of class properties that SUN is so fond of and gives nothing) where I can learn what are things like this                                                                           *Logger.getLogger(X.class.getName()).log(Level.SEVERE, null, ex)*
that Netbeans wrote whenever it draws a Try  in class X   for someexception ex,
intended for ?
Say, what juice can you take from it, why is it always Level.SEVERE etc...?

thank you for your help
Pablo




------------------------------------------------------------------------


No virus found in this outgoing message.
Checked by AVG - www.avg.com
Version: 8.5.409 / Virus Database: 270.13.72/2337 - Release Date: 08/31/09 05:50:00

 

No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.72/2337 - Release Date: 08/31/09 05:50:00


No virus found in this outgoing message.
Checked by AVG - www.avg.com 
Version: 8.5.409 / Virus Database: 270.13.72/2337 - Release Date: 08/31/09 05:50:00
Jim Newsham | 1 Sep 02:36

RE: would you please help

 

I think you’ll have a hard time getting answers to your question until you learn how to ask properly.  Vojtech was being helpful.

 

http://www.catb.org/~esr/faqs/smart-questions.html

 

Jim

 

From: PEB [mailto:balonga <at> ciudad.com.ar]
Sent: Monday, August 31, 2009 2:27 PM
To: Vojtech Sigler; nbusers <at> netbeans.org
Subject: Re: [nbusers] would you please help

 

Hi Vojtech
I thank your answer and help but your message is absolutely out of place (desubicado) and not polite.
Why did you assume I did not try to google the problem or  other ways  to  learn about my questions?
In one hand "java logging" is not the obvious way to search a Netbeans feature , why not "java logger" that give no answers except the propertiers catalog I mentioned?
Moreover if you yourself say you think there is no answer for my first question, how would  I have googled it?
I thanked in advance and asked properly, where does your agression find a  basis?. You should better limit your messages to the  matters  posted  and   reserve  the  manner   analysis   for,  and about, yourself. I hope you are not one of those chauvinist that attacked me in the past for not using pure us-english.

By the way, as your e-mail says you are from SUN I shall use this opportunity to suggest to who corresponds in SUN through you to abandon such old-fashioned non international ways of doing things. The second majority in USA speaks my language so you can not ban spanish even from an USA point of view.

Getting to the matter:

If  you   are  running  from   the   IDE  the  system.out  messages may be enough  for  work or debug ,  but if you are out from it you must know it and post messages in a differing way. This is linked to the 2nd question   since I want to substitute the "logger - Netbeans - aggregate" in catch clauses for a unique function working differently out or in the IDE.
I do not know how  you do not notice  that sentence in catch clauses, Netbeans writes it whenever you admit it to write a try-catch clause;  always the same one whatever the kind of exception.
The article you referenced is better than Sun properties documentation (I did not refer to Javadocs) but it lacks the main ideas: "why" and "what for"  and unfortunately has no examples as far as I have read, so it remains in an abstract level.

I assume your good will and thank you for your help once more
Best regards
Pablo



Vojtech Sigler escribió:

Hi Pablo,

if you want your questions answered, you should learn how to ask and also some manners.
Here are some tips:
1) spend at least 5 minutes googling first ;)
2) describe the problem you're facing, maybe, there's an alternative solution you did not see at first, but someone else did
3) saying things like "javadoc is useless" (at least that's what I understood by "not that list of class properties that SUN is so fond of and gives nothing") will get you nowhere and you'll end up being ignored
4) try be polite ;)

Ok, to your questions:
1) I am not aware of any means of telling where is your app run from. As far as I know there is no difference in running the app from the IDE and from the command line. If you're having trouble that the 'dist' dir is erased, you can use a different workdir for your app. Just invoke project properties -> Run and set your desired path in "Working directory" text field.

2) Well if you consider javadoc useless, you could try googling for e.g. "java logging". You'll get a dozen articles about logging in java.

Anyway, the line you asked about is simple:

Logger.getLogger() - this static method will get you a logger instance for your class, usually you'll have just one logger for a class. As for the argument, you can call getLogger(mypackage.X.class.getName()) or getLogger(mypackage.X.class) or getLogger("mypackage.X"), the result is the same. The argument is just the name of the logger. You could even invoke getLogger("myCoolSuperLogger").

log(Level.SEVERE, null, ex) - this piece of code logs an exception that occured, with logging level SEVERE, which says your application is in serious trouble ;) you can have other levels such as WARNING or INFO. The null is for a String value, usually you want a message to go into the log like log(Level.SEVERE, "I'm done for, just use kill -9 already :(", ex) or log(Level.INFO, "All is OK", null). Ex is an exception you can attach to the log (it will get printed into the log output).

So, the line you asked about is just a default handling of an exception. Though I'm not sure where did you get it or where Netbeans generate such code.

Ask google for more info ;) The first result in google is this: http://java.sun.com/j2se/1.4.2/docs/guide/util/logging/overview.html which is rather old, but it will give you some idea.

I hope this was useful :)
Vojta

PEB wrote:

I posted the questions bellow 3 days ago. I did not get a single response, are them so difficult to answer?
thanks

Hi,
1)I want to know if there is a way by which an application can determine if it is running *from the IDE* or   *by its own *
2) Can you guide me to a good article (not that list of class properties that SUN is so fond of and gives nothing) where I can learn what are things like this                                                                           *Logger.getLogger(X.class.getName()).log(Level.SEVERE, null, ex)*
that Netbeans wrote whenever it draws a Try  in class X   for someexception ex,
intended for ?
Say, what juice can you take from it, why is it always Level.SEVERE etc...?

thank you for your help
Pablo




------------------------------------------------------------------------


No virus found in this outgoing message.
Checked by AVG - www.avg.com
Version: 8.5.409 / Virus Database: 270.13.72/2337 - Release Date: 08/31/09 05:50:00

 



 

 

 

No virus found in this incoming message.

Checked by AVG - www.avg.com

Version: 8.5.409 / Virus Database: 270.13.72/2337 - Release Date: 08/31/09 05:50:00

 

 

 

Steven Dahlin | 1 Sep 04:00
Picon

new enterprise application not showing glassfish v3 prelude

I am attempting to create a new enterprise application using netbeans 6.7.1 and the glassfish v3 prelude does not show up in the list.  I can go add it but when I return to this screen it is still not present.  I presume there is some configuration issue involved but I cannot seem to find the particulars.  Does anyone have any suggestions as to how I might configure it to show up the v3 server?

Thanks

Rodney.Nagel | 1 Sep 02:20
Picon

OS X Snow Leopard/NB6.1

After upgrading to Snow Leopard, when I debug, the Local Variables panel does not show the variable 'Value's

Constructive Help please!

PEB | 1 Sep 04:59
Picon
Favicon

Re: would you please help

Jim Newsham escribió:

 

I think you’ll have a hard time getting answers to your question until you learn how to ask properly.  Vojtech was being helpful.

Hi Jim
Either you have not read my question and my answer to Vojtech or you are unconditional friend of Vojtech , or both.
You put no arguments. You show no word I have said that might be considered wrong manners, neither did Vojtech (just the false assumption that I did not google first, assumption that was contradictory with his own statements as I have shown in my answer) . I thought Vojtech has good will (as I said) and he wanted to help, now I am not so sure.

I shall continue being confident that there is people that tries to help and will help me as I have helped others.

nothing written in this link has nothing to do with my posts. I know very well how to make and answer problems, just see my papers . I can be nothing but  sure that my posts were fine.

By the way I remind you this is a forum for helping people with Netbeans so any suggestion out of the field would better be made private and only if you think it is absolutely necessary.  The only  reason  I  make  this  statements public  is  because  of Vojtech's  and  yours   aggresive  messages  can not pass without a propper answer.  Really do not know what is the problem with you people, you'd better get a shrink.

If your intention was not to be aggresive I shall accept your apologies (disculpas).

Best regards
Pablo E. Balonga , PhD








 

Jim

 

From: PEB [mailto:balonga <at> ciudad.com.ar]
Sent: Monday, August 31, 2009 2:27 PM
To: Vojtech Sigler; nbusers <at> netbeans.org
Subject: Re: [nbusers] would you please help

 

Hi Vojtech
I thank your answer and help but your message is absolutely out of place (desubicado) and not polite.
Why did you assume I did not try to google the problem or  other ways  to  learn about my questions?
In one hand "java logging" is not the obvious way to search a Netbeans feature , why not "java logger" that give no answers except the propertiers catalog I mentioned?
Moreover if you yourself say you think there is no answer for my first question, how would  I have googled it?
I thanked in advance and asked properly, where does your agression find a  basis?. You should better limit your messages to the  matters  posted  and   reserve  the  manner   analysis   for,  and about, yourself. I hope you are not one of those chauvinist that attacked me in the past for not using pure us-english.

By the way, as your e-mail says you are from SUN I shall use this opportunity to suggest to who corresponds in SUN through you to abandon such old-fashioned non international ways of doing things. The second majority in USA speaks my language so you can not ban spanish even from an USA point of view.

Getting to the matter:

If  you   are  running  from   the   IDE  the  system.out  messages may be enough  for  work or debug ,  but if you are out from it you must know it and post messages in a differing way. This is linked to the 2nd question   since I want to substitute the "logger - Netbeans - aggregate" in catch clauses for a unique function working differently out or in the IDE.
I do not know how  you do not notice  that sentence in catch clauses, Netbeans writes it whenever you admit it to write a try-catch clause;  always the same one whatever the kind of exception.
The article you referenced is better than Sun properties documentation (I did not refer to Javadocs) but it lacks the main ideas: "why" and "what for"  and unfortunately has no examples as far as I have read, so it remains in an abstract level.

I assume your good will and thank you for your help once more
Best regards
Pablo



Vojtech Sigler escribió:

Hi Pablo,

if you want your questions answered, you should learn how to ask and also some manners.
Here are some tips:
1) spend at least 5 minutes googling first ;)
2) describe the problem you're facing, maybe, there's an alternative solution you did not see at first, but someone else did
3) saying things like "javadoc is useless" (at least that's what I understood by "not that list of class properties that SUN is so fond of and gives nothing") will get you nowhere and you'll end up being ignored
4) try be polite ;)

Ok, to your questions:
1) I am not aware of any means of telling where is your app run from. As far as I know there is no difference in running the app from the IDE and from the command line. If you're having trouble that the 'dist' dir is erased, you can use a different workdir for your app. Just invoke project properties -> Run and set your desired path in "Working directory" text field.

2) Well if you consider javadoc useless, you could try googling for e.g. "java logging". You'll get a dozen articles about logging in java.

Anyway, the line you asked about is simple:

Logger.getLogger() - this static method will get you a logger instance for your class, usually you'll have just one logger for a class. As for the argument, you can call getLogger(mypackage.X.class.getName()) or getLogger(mypackage.X.class) or getLogger("mypackage.X"), the result is the same. The argument is just the name of the logger. You could even invoke getLogger("myCoolSuperLogger").

log(Level.SEVERE, null, ex) - this piece of code logs an exception that occured, with logging level SEVERE, which says your application is in serious trouble ;) you can have other levels such as WARNING or INFO. The null is for a String value, usually you want a message to go into the log like log(Level.SEVERE, "I'm done for, just use kill -9 already :(", ex) or log(Level.INFO, "All is OK", null). Ex is an exception you can attach to the log (it will get printed into the log output).

So, the line you asked about is just a default handling of an exception. Though I'm not sure where did you get it or where Netbeans generate such code.

Ask google for more info ;) The first result in google is this: http://java.sun.com/j2se/1.4.2/docs/guide/util/logging/overview.html which is rather old, but it will give you some idea.

I hope this was useful :)
Vojta

PEB wrote:

I posted the questions bellow 3 days ago. I did not get a single response, are them so difficult to answer?
thanks

Hi,
1)I want to know if there is a way by which an application can determine if it is running *from the IDE* or   *by its own *
2) Can you guide me to a good article (not that list of class properties that SUN is so fond of and gives nothing) where I can learn what are things like this                                                                           *Logger.getLogger(X.class.getName()).log(Level.SEVERE, null, ex)*
that Netbeans wrote whenever it draws a Try  in class X   for someexception ex,
intended for ?
Say, what juice can you take from it, why is it always Level.SEVERE etc...?

thank you for your help
Pablo




------------------------------------------------------------------------


No virus found in this outgoing message.
Checked by AVG - www.avg.com
Version: 8.5.409 / Virus Database: 270.13.72/2337 - Release Date: 08/31/09 05:50:00

 



 

 

 

No virus found in this incoming message.

Checked by AVG - www.avg.com

Version: 8.5.409 / Virus Database: 270.13.72/2337 - Release Date: 08/31/09 05:50:00

 

 

 

No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.72/2337 - Release Date: 08/31/09 05:50:00


No virus found in this outgoing message.
Checked by AVG - www.avg.com 
Version: 8.5.409 / Virus Database: 270.13.72/2337 - Release Date: 08/31/09 05:50:00
udayKIRAN | 1 Sep 07:10
Picon
Favicon

how to create multiple tables dynamically in netbeans


i want to create number of tables based on number requested by user.if user
wants 3 tables ..i have to create 3 tables and so on..and all of them should
be similar and side by side...can u give me an idea about how to proceed..
thanks in advance
--

-- 
View this message in context: http://www.nabble.com/how-to-create-multiple-tables-dynamically-in-netbeans-tp25234393p25234393.html
Sent from the Netbeans IDE Users mailing list archive at Nabble.com.

Matthias Scholz | 1 Sep 08:05
Picon

Re: NB 6.7.1 no "Empty File" possible

Hello Pavel Pribyl,

thank you for the hint. I've cleared the userdir and everything works fine.

Matthias
> Hello Matthias.
>
> It works for me correctly, I just tried it in J2SE and PHP projects -
> both were OK. Have you tried running the IDE with clear userdir [1]? 
> Please try that and let us know whether it works.
> And please specify also your system platform and JDK version.
>
> Thank you
>
> Pavel Pribyl
>
> [1] http://wiki.netbeans.org/FaqWhatIsUserdir
>
> Matthias Scholz wrote:
>> Hi,
>>
>> with my NetBeans 6.7.1 (Build 200907230233) i can't create an empty
>> file :-( In NB 6.5 it was possible with New File->Other->Empty File.
>> And Second some of my plain text files in older projects i can't see
>> under "Files" tab which was possible in NB 6.5. The files are exists.
>> Are there any reasons for this behaviour?
>>
>> Matthias
>

-- 

---------------------------------------------------------
 Stadt Mansfeld

 Lutherstraße 9
 06343 Mansfeld

 Öffnungszeiten:
 Dienstag	9 - 12 Uhr	13 - 18 Uhr
 Donnerstag	9 - 12 Uhr	13 - 15 Uhr
 Freitag	9 - 12 Uhr	

 Telefon:	+49 34782 8710
 Fax: 		+49 34782 87122
 E-Mail:	m.scholz <at> mansfeld.eu
 WorldWideWeb:	www.mansfeld.eu
---------------------------------------------------------

janisis | 1 Sep 10:10
Favicon

Php debuger pass through the breakpoints

Hi!
 
I am using Neatbeans 6.7.1 PHP for Windows and testing 6.8.1 + XAMPP 1.7.2 with XDEBUG. In both versions debugger works, but totally pass by all breakpoints and cursor. F7-F8 works normally. What it can be?
 
Thanks
Muhammad Tasleem | 1 Sep 10:00
Picon

Problem in Conencting MS Access Database

I have created System DSN for MS Access Database and when I am trying to connect I am getting following error message,

Unable to obtain schema

There is insufficient information to establish a connection to obtain list of schemas. Check database
URL, user and password.

Driver Message: [Microsoft][ODBC Microsoft Access Driver]Optional features not implemented.

Kindly help me resolve the problem

ivanbell | 1 Sep 08:40
Picon

UML Class Diagram: Filtering attributes by visibility

I have NetBeans 6.7.1 with the UML plug-in installed.

I can generate class diagrams for my code base via reverse engineering, no problem.

However, I wish to show only public/protected members in the diagram.  Is there a way to generate without the
private members?  E.g., I want to include these diagrams in my JavaDoc API specification; but do not want to
expose any implementation details, such as private members.  I know that I can delete the attributes
manually; but there are > 200 classes in my codebase and it would take me nearly as long to remove these
manually as it did to write/generate the code.

I have looked (NetBeans help, Google searches, forum searches, et. al.), but I do not see any feature which
allows this.  I know that a lot of commercial UML modelers allow such functionality.  I am wondering if it is
possible with the UML plug-in for NetBeans.

I would also like to eliminate other design aspects; but will settle for this, for now.

Thank you in advance for your help with this.


Gmane