Hannibal Ou

Greenhorn
+ Follow
since Feb 06, 2007
Merit badge: grant badges
For More
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 Hannibal Ou

I'm in deep trouble that
Although my netbean's JSP editor can work , it looks like not well.
I want to setting it, so choose tools->options->advance options and expand the Editor setting and then select the JSP editor change some value in right panel.
Well, when I out the setting panel and open a Jsp file .
Unfortunately ,my setting don't work.

It's anybody come across the same problem?
and there are some useful info as below:

java.lang.Exception: JSP syntax coloring cannot find any provider of context (this is expected to be provided by web module support)
at org.netbeans.modules.web.core.syntax.spi.JspContextInfo.getContextInfo(JspContextInfo.java:114)
at org.netbeans.modules.web.core.syntax.JspUtils.getCachedParseResult(JspUtils.java:117)
at org.netbeans.modules.web.core.syntax.JspUtils.getCachedParseResult(JspUtils.java:129)
at org.netbeans.modules.web.core.syntax.JspSyntaxSupport.getParseResult(JspSyntaxSupport.java:211)
at org.netbeans.modules.web.core.syntax.SimplifiedJSPServlet.processIncludes(SimplifiedJSPServlet.java:257)
at org.netbeans.modules.web.core.syntax.SimplifiedJSPServlet.process(SimplifiedJSPServlet.java:181)
at org.netbeans.modules.web.core.syntax.SimplifiedJSPServlet.process(SimplifiedJSPServlet.java:153)
at org.netbeans.modules.web.core.syntax.JavaSourceProviderImpl$FilterImpl.filterCharSequence(JavaSourceProviderImpl.java:129)
at org.netbeans.modules.java.source.parsing.SourceFileObject.getCharContentImpl(SourceFileObject.java:397)
at org.netbeans.modules.java.source.parsing.SourceFileObject. <init>(SourceFileObject.java:109)
at org.netbeans.modules.java.source.parsing.FileObjects.nbFileObject(FileObjects.java:227)
at org.netbeans.api.java.source.JavaSource$DefaultJavaFileObjectProvider.createJavaFileObject(JavaSource.java:2416)
at org.netbeans.api.java.source.CompilationInfoImpl. <init>(CompilationInfoImpl.java:92)
at org.netbeans.api.java.source.JavaSource.createCurrentInfo(JavaSource.java:2002)
at org.netbeans.api.java.source.JavaSource.access$3100(JavaSource.java:192)
at org.netbeans.api.java.source.JavaSource$CompilationJob.run(JavaSource.java:1620)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
[catch] at java.lang.Thread.run(Thread.java:619)
In my opinion,there is olny shortcut --- to make a note and review it!
15 years ago
Additionally,The exception arised especially after I had deleted some file form the project panel.
When I using NetBean6.1 the Exception messages alway arise as following :
Does anyone know why it happened?
and how can I do to fix it.

java.lang.IllegalStateException: The data object E:\our\work\Java\ThinkingInJava\src\testing\NumOfLinesException.java is invalid; you may not call getNodeDelegate on it any more; see #17020 and please fix your code
at org.openide.loaders.DataObject.getNodeDelegate(DataObject.java:267)
at org.netbeans.modules.timers.ObjectListRenderer.getListCellRendererComponent(ObjectListRenderer.java:80)
at javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1338)
at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1288)
at javax.swing.plaf.basic.BasicListUI$Handler.valueChanged(BasicListUI.java:2593)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:147)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:194)
at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:388)
at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:398)
at javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:442)
at javax.swing.JList.setSelectedIndex(JList.java:2179)
[catch] at org.netbeans.modules.timers.TimeComponentPanel$3.run(TimeComponentPanel.java:259)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Thanks for your code!
I also feel it is so hard that when you have a book which using Struts1.1 but you work environment is based on struts 1.2x.
Because my struts is version 1.2.15. So I reading the book with google!When the compiler throws a warning that I used a deprecated method I will search in google to check which method we should used to instead of the deprecated method.
So if any question you have maybe I also have,I hope can study this books together and can I have your MSN or Skype?
15 years ago
Vidya Moorthy:
Are you studing struts by the book "JakartaStrutsLive"?
I do it.But I also have many issues .Can you show me the code of class "JDBCTestUtils".
I really can't find the code in the book.

Thanks
15 years ago
Some one had said the problems maybe related to JDK version.

They said the tomcat 5.x should run in JDK 1.5

But I remembered I have started tomcat successfully with JDK1.6 in other

computer. I also checked the PATH,CLASSPTH, TOMCAT_HOME too.

JDK working well,but tomcat not.

THANKS FOR ANY HELP.
16 years ago
Well, my name have no problems now then We can discuss the error of my

tomcat.

I have checked my logs and the content is:


stderr_20070309.log:

java.lang.NoClassDefFoundError: start
Exception in thread "main"


jakarta_service_20070309.log:

[2007-03-09 11:22:04] [info] Service Tomcat5 name Apache Tomcat
[2007-03-09 11:22:05] [info] Service Tomcat5 installed
[2007-03-09 11:22:05] [info] Procrun finished.
[2007-03-09 11:22:05] [info] Updating service...
[2007-03-09 11:22:05] [info] Service Tomcat5 updated
[2007-03-09 11:22:05] [info] Update service finished.
[2007-03-09 11:22:05] [info] Procrun finished.
[2007-03-09 11:22:18] [info] Updating service...
[2007-03-09 11:22:18] [info] Service Tomcat5 updated
[2007-03-09 11:22:19] [info] Update service finished.
[2007-03-09 11:22:19] [info] Procrun finished.
[2007-03-09 11:22:19] [info] Updating service...
[2007-03-09 11:22:19] [info] Service Tomcat5 updated
[2007-03-09 11:22:19] [info] Update service finished.
[2007-03-09 11:22:19] [info] Procrun finished.
[2007-03-09 11:22:23] [info] Running Service...
[2007-03-09 11:22:23] [info] Starting service...
[2007-03-09 11:22:23] [173 javajni.c] [error] 找不到指定的模組。
[2007-03-09 11:22:23] [924 prunsrv.c] [error] Failed creating java D:\Java\jre1.6\bin\client\jvm.dll
[2007-03-09 11:22:23] [1179 prunsrv.c] [error] ServiceStart returned 1
[2007-03-09 11:22:23] [info] Run service finished.
[2007-03-09 11:22:23] [info] Procrun finished.
[2007-03-09 11:22:37] [info] Running Service...
[2007-03-09 11:22:37] [info] Starting service...
[2007-03-09 11:22:37] [173 javajni.c] [error] 找不到指定的模組。
[2007-03-09 11:22:37] [924 prunsrv.c] [error] Failed creating java D:\Java\jre1.6\bin\client\jvm.dll
[2007-03-09 11:22:37] [1179 prunsrv.c] [error] ServiceStart returned 1
[2007-03-09 11:22:37] [info] Run service finished.
[2007-03-09 11:22:37] [info] Procrun finished.
[2007-03-09 12:14:09] [info] Running Service...
[2007-03-09 12:14:09] [info] Starting service...
[2007-03-09 12:14:10] [173 javajni.c] [error] 找不到指定的模組。
[2007-03-09 12:14:10] [924 prunsrv.c] [error] Failed creating java D:\Java\jre1.6\bin\client\jvm.dll
[2007-03-09 12:14:10] [1179 prunsrv.c] [error] ServiceStart returned 1
[2007-03-09 12:14:13] [info] Run service finished.
[2007-03-09 12:14:13] [info] Procrun finished.
[2007-03-09 12:48:53] [info] Running Service...
[2007-03-09 12:48:53] [info] Starting service...
[2007-03-09 12:48:53] [173 javajni.c] [error] 找不到指定的模組。
[2007-03-09 12:48:53] [924 prunsrv.c] [error] Failed creating java D:\Java\jre1.6\bin\client\jvm.dll
[2007-03-09 12:48:53] [1179 prunsrv.c] [error] ServiceStart returned 1
[2007-03-09 12:48:53] [info] Run service finished.
[2007-03-09 12:48:53] [info] Procrun finished.
[2007-03-09 14:03:02] [info] Running Service...
[2007-03-09 14:03:02] [info] Starting service...
[2007-03-09 14:03:02] [173 javajni.c] [error] 找不到指定的模組。
[2007-03-09 14:03:02] [924 prunsrv.c] [error] Failed creating java D:\Java\jre1.6\bin\client\jvm.dll
[2007-03-09 14:03:02] [1179 prunsrv.c] [error] ServiceStart returned 1
[2007-03-09 14:03:02] [info] Run service finished.
[2007-03-09 14:03:02] [info] Procrun finished.
[2007-03-09 14:06:20] [173 javajni.c] [error] 找不到指定的模組。
[2007-03-09 14:06:20] [924 prunsrv.c] [error] Failed creating java D:\Java\jre1.6\bin\client\jvm.dll
[2007-03-09 14:06:20] [1179 prunsrv.c] [error] ServiceStart returned 1
[2007-03-09 14:07:59] [173 javajni.c] [error] 找不到指定的模組。
[2007-03-09 14:07:59] [924 prunsrv.c] [error] Failed creating java D:\Java\jre1.6\bin\client\jvm.dll
[2007-03-09 14:07:59] [1179 prunsrv.c] [error] ServiceStart returned 1
[2007-03-09 14:11:51] [173 javajni.c] [error] 找不到指定的模組。
[2007-03-09 14:11:51] [924 prunsrv.c] [error] Failed creating java D:\Java\jre1.6\bin\client\jvm.dll
[2007-03-09 14:11:51] [1179 prunsrv.c] [error] ServiceStart returned 1
[2007-03-09 14:12:48] [173 javajni.c] [error] 找不到指定的模組。
[2007-03-09 14:12:48] [924 prunsrv.c] [error] Failed creating java D:\Java\jre1.6\bin\client\jvm.dll
[2007-03-09 14:12:48] [1179 prunsrv.c] [error] ServiceStart returned 1
[2007-03-09 14:12:53] [173 javajni.c] [error] 找不到指定的模組。
[2007-03-09 14:12:53] [924 prunsrv.c] [error] Failed creating java D:\Java\jre1.6\bin\client\jvm.dll
[2007-03-09 14:12:53] [1179 prunsrv.c] [error] ServiceStart returned 1
[2007-03-09 14:21:59] [173 javajni.c] [error] 找不到指定的模組。
[2007-03-09 14:21:59] [924 prunsrv.c] [error] Failed creating java D:\Java\jre1.6\bin\client\jvm.dll
[2007-03-09 14:21:59] [1179 prunsrv.c] [error] ServiceStart returned 1
[2007-03-09 14:31:57] [173 javajni.c] [error] 找不到指定的模組。
[2007-03-09 14:31:57] [924 prunsrv.c] [error] Failed creating java D:\Java\jre1.6\bin\client\jvm.dll
[2007-03-09 14:31:57] [1179 prunsrv.c] [error] ServiceStart returned 1
16 years ago
I'm sorry for this.
But my real name is Ou Rong,as you thinking that I'm Chinese.
I don't think the name "Ou Rong" have any significant,so I get a english name is "Flourish Ou".
Apologize for my mistakes as well as my bad english.
16 years ago
I installed Apache Tomcat 5.5.20 using the windows service installer.
Afer installing, when i tried to start the tomcat form "Configure Tomcat"
it can not started.but when i clicked the "tomcat5.exe" whice is contained in TOMCAT_HOME/BIN tomcat started successfully(start in the CMD just like the verson 4.x).
16 years ago