 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Howard Brazee Guest
|
Posted: Wed Mar 01, 2006 7:03 pm Post subject: Tracing errors |
|
|
I have two identically created test cases. Before I added any code
to what JBuilder created, I ran one and got the following errors
C:\JBuilder\jdk1.4\bin\javaw -classpath
"C:\projects\jbuilder\pinsoap_hacking\classes;C:\projects\pinsoap_hacking\lib\activation.jar;C:\projects\pinsoap_hacking\lib\Blowfishj.jar;C:\projects\pinsoap_hacking\lib\commons-beanutils.jar;C:\projects\pinsoap_hacking\lib\commons-betwixt-1.0-alpha-1.jar;C:\projects\pinsoap_hacking\lib\commons-collections-3.0.jar;C:\projects\pinsoap_hacking\lib\commons-dbutils-1.0.jar;C:\projects\pinsoap_hacking\lib\commons-digester.jar;C:\projects\pinsoap_hacking\lib\commons-lang-1.0.1.jar;C:\projects\pinsoap_hacking\lib\commons-logging-1.0.2.jar;C:\projects\pinsoap_hacking\lib\commons-logging-api-1.0.2.jar;C:\projects\pinsoap_hacking\lib\commons-pool-1.1.jar;C:\projects\pinsoap_hacking\lib\consolepatch.jar;C:\projects\pinsoap_hacking\lib\framework-prod.jar;C:\projects\pinsoap_hacking\lib\freemarker.jar;C:\projects\pinsoap_hacking\lib\GLUE.jar;C:\projects\pinsoap_hacking\lib\GLUE-ALL.jar;C:\projects\pinsoap_hacking\lib\googleapi.jar;C:\projects\pinsoap_hacking\lib\imap.jar;C:\projects\pinsoap_hack
ing\lib\itext-1.02b.jar;C:\projects\pinsoap_hacking\lib\jakarta-oro-2.0.7.jar;C:\projects\pinsoap_hacking\lib\jasperreports-0.5.2.jar;C:\projects\pinsoap_hacking\lib\jaxen-core.jar;C:\projects\pinsoap_hacking\lib\jconfig.jar;C:\projects\pinsoap_hacking\lib\jdbm-0.12.jar;C:\projects\pinsoap_hacking\lib\jdom.jar;C:\projects\pinsoap_hacking\lib\junit.jar;C:\projects\pinsoap_hacking\lib\log4j-1.2.8.jar;C:\projects\pinsoap_hacking\lib\mail.jar;C:\projects\pinsoap_hacking\lib\mailapi.jar;C:\projects\pinsoap_hacking\lib\mysql-connector-java-3.0.11-stable-bin.jar;C:\projects\pinsoap_hacking\lib\ocrs12.jar;C:\projects\pinsoap_hacking\lib\ojdbc14.jar;C:\projects\pinsoap_hacking\lib\orai18n.jar;C:\projects\pinsoap_hacking\lib\pool.jar;C:\projects\pinsoap_hacking\lib\pop3.jar;C:\projects\pinsoap_hacking\lib\runtime.jar;C:\projects\pinsoap_hacking\lib\saxpath.jar;C:\projects\pinsoap_hacking\lib\smtp.jar;C:\projects\pinsoap_hacking\lib\spring-1.0.2.jar;C:\projects\pinsoap_hacking\lib\terminal-ui.j
ar;C:\projects\pinsoap_hacking\lib\xmlparserv2.jar;C:\projects\pinsoap_hacking\lib\xsu12.jar;C:\JBuilder\thirdparty\junit3.8\junit.jar;C:\JBuilder\lib\unittest.jar;C:\JBuilder\jdk1.4\demo\jfc\Java2D\Java2Demo.jar;C:\JBuilder\jdk1.4\demo\plugin\jfc\Java2D\Java2Demo.jar;C:\JBuilder\jdk1.4\jre\javaws\javaws.jar;C:\JBuilder\jdk1.4\jre\lib\charsets.jar;C:\JBuilder\jdk1.4\jre\lib\ext\dnsns.jar;C:\JBuilder\jdk1.4\jre\lib\ext\ldapsec.jar;C:\JBuilder\jdk1.4\jre\lib\ext\localedata.jar;C:\JBuilder\jdk1.4\jre\lib\ext\QTJava.zip;C:\JBuilder\jdk1.4\jre\lib\ext\sunjce_provider.jar;C:\JBuilder\jdk1.4\jre\lib\im\indicim.jar;C:\JBuilder\jdk1.4\jre\lib\im\thaiim.jar;C:\JBuilder\jdk1.4\jre\lib\jce.jar;C:\JBuilder\jdk1.4\jre\lib\jsse.jar;C:\JBuilder\jdk1.4\jre\lib\plugin.jar;C:\JBuilder\jdk1.4\jre\lib\rt.jar;C:\JBuilder\jdk1.4\jre\lib\sunrsasign.jar;C:\JBuilder\jdk1.4\lib\dt.jar;C:\JBuilder\jdk1.4\lib\htmlconverter.jar;C:\JBuilder\jdk1.4\lib\tools.jar"
edu.cusys.javareview.TestTimepiece
java.lang.NoSuchMethodError: main
Exception in thread "main"
I created another test case exactly the same way (except the other
case tests an extension of the first case), and it works fine. Since
the other is an extension, I can use it for all the testing, but I
would like to know how to debug the above error. Often I can get rid
of incomprehensible errors with a rebuild, or by leaving JBuilder and
returning, but not this time. |
|
| Back to top |
|
 |
Howard Brazee Guest
|
Posted: Wed Mar 01, 2006 9:03 pm Post subject: Re: Tracing errors |
|
|
On Wed, 01 Mar 2006 15:19:18 -0500, "Paul Furbacher [TeamB]"
<pfurbacher (AT) mac (DOT) com> wrote:
| Quote: | What I see in the above command-line is that after classpath
the part which says what to launch is missing. Is that because
you didn't clip the entire command line?
Here's how it should end split over three lines just for readability:
com.borland.jbuilder.unittest.JBTestRunner
-socket iMac.local:50055
org.pf.spring_hibernate.util.TestHibernateSupportDaoWriter
|
I just cut and pasted what looked like 6 lines, but I suspect was 4
lines from the messages box.
| Quote: | Exception in thread "main"
"main" is in JBTestRunner for unit tests.
|
I figured it had to be there.
| Quote: | My guess is that you need to create a runtime config for this
test. You can do this while using the Test Case Wizard: there's
a checkbox on page 4/4 of the wizard. Otherwise, do the standard,
Run > Configurations ... > New. For "type", choose "Test", and
identify your test case class (compiled before doing this, of course).
|
So I need to run Wizard again, overwriting the currently produced
TestTimepiece? I created a TestTimepiece1 using that, and it works.
This is implying that I probably won't discover what happened, just
hope that it won't happen again. |
|
| Back to top |
|
 |
Paul Furbacher [TeamB] Guest
|
Posted: Wed Mar 01, 2006 9:03 pm Post subject: Re: Tracing errors |
|
|
Howard Brazee wrote:
| Quote: | I have two identically created test cases. Before I added any code
to what JBuilder created, I ran one and got the following errors
C:\JBuilder\jdk1.4\bin\javaw -classpath [...]
|
What I see in the above command-line is that after classpath
the part which says what to launch is missing. Is that because
you didn't clip the entire command line?
Here's how it should end split over three lines just for readability:
com.borland.jbuilder.unittest.JBTestRunner
-socket iMac.local:50055
org.pf.spring_hibernate.util.TestHibernateSupportDaoWriter
| Quote: | edu.cusys.javareview.TestTimepiece
java.lang.NoSuchMethodError: main
Exception in thread "main"
|
"main" is in JBTestRunner for unit tests.
My guess is that you need to create a runtime config for this
test. You can do this while using the Test Case Wizard: there's
a checkbox on page 4/4 of the wizard. Otherwise, do the standard,
Run > Configurations ... > New. For "type", choose "Test", and
identify your test case class (compiled before doing this, of course).
--
Paul Furbacher (TeamB)
Save time, search the archives:
http://info.borland.com/newsgroups/ngsearch.html
Is it in Joi Ellis's Faq-O-Matic?
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Finally, please send responses to the newsgroup only.
That means, do not send email directly to me.
Thank you. |
|
| Back to top |
|
 |
Howard Brazee Guest
|
Posted: Wed Mar 01, 2006 9:03 pm Post subject: Re: Tracing errors |
|
|
On 1 Mar 2006 12:12:53 -0700, "Kevin Dean [TeamB]"
<NkOdSePaAnM (AT) datadevelopment (DOT) com> wrote:
| Quote: | edu.cusys.javareview.TestTimepiece
java.lang.NoSuchMethodError: main
Check that the class TestTimePiece has a "static void main(String[] args)"
method.
|
It doesn't. But neither do tests that work. (all created with the
wizard). I'm not finding anything different in the code, and expect
my solution will be to delete the first testcase and start over. I
just created a TestTimePiece1 exactly the same way as I created
TestTimePiece and it works.
My guess is that something didn't get cleaned up properly and
something got confused. I'm moving over from the mainframe world
and find the plethora of duplicate and almost duplicate files to be
scary. (how do I safely clean up garbage - there's no way keeping
garbage around is safe). |
|
| Back to top |
|
 |
Kevin Dean [TeamB] Guest
|
|
| Back to top |
|
 |
Paul Furbacher [TeamB] Guest
|
Posted: Wed Mar 01, 2006 10:03 pm Post subject: Re: Tracing errors |
|
|
Howard Brazee wrote:
| Quote: | My guess is that you need to create a runtime config for this
test. You can do this while using the Test Case Wizard: there's
a checkbox on page 4/4 of the wizard. Otherwise, do the standard,
Run > Configurations ... > New. For "type", choose "Test", and
identify your test case class (compiled before doing this, of course).
So I need to run Wizard again, overwriting the currently produced
TestTimepiece?
|
No, you can take the second approach that I mentioned in my
first message: that is, go to Run > Configurations... > New ....
--
Paul Furbacher (TeamB)
Save time, search the archives:
http://info.borland.com/newsgroups/ngsearch.html
Is it in Joi Ellis's Faq-O-Matic?
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Finally, please send responses to the newsgroup only.
That means, do not send email directly to me.
Thank you. |
|
| Back to top |
|
 |
Howard Brazee Guest
|
Posted: Wed Mar 01, 2006 11:03 pm Post subject: Re: Tracing errors |
|
|
On Wed, 01 Mar 2006 16:35:23 -0500, "Paul Furbacher [TeamB]"
<pfurbacher (AT) mac (DOT) com> wrote:
| Quote: | No, you can take the second approach that I mentioned in my
first message: that is, go to Run > Configurations... > New ....
|
Do I remove the old configuration first?
I haven't made new configurations, I've always copied a current one so
far. |
|
| Back to top |
|
 |
Paul Furbacher [TeamB] Guest
|
Posted: Thu Mar 02, 2006 2:03 am Post subject: Re: Tracing errors |
|
|
Howard Brazee wrote:
| Quote: | On Wed, 01 Mar 2006 16:35:23 -0500, "Paul Furbacher [TeamB]"
pfurbacher (AT) mac (DOT) com> wrote:
No, you can take the second approach that I mentioned in my
first message: that is, go to Run > Configurations... > New ....
Do I remove the old configuration first?
|
Probably because I don't think there is a way to change
the type once it is configured.
| Quote: | I haven't made new configurations, I've always copied a current one so
far.
|
It's pretty easy to make a new one.
--
Paul Furbacher (TeamB)
Save time, search the archives:
http://info.borland.com/newsgroups/ngsearch.html
Is it in Joi Ellis's Faq-O-Matic?
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Finally, please send responses to the newsgroup only.
That means, do not send email directly to me.
Thank you. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|