任务单 #647

スレッドツリーが不完全。
开放日期: 2002-10-06 01:25 最后更新: 2002-10-07 02:17

报告人:
属主:
(无)
类型:
状态:
开启
组件:
(无)
里程碑:
(无)
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
文件:

Details

2chビューで板を選択すると、NullPointerExceptionが
生じる。その後、スレッドビューでツリーを展開すると
1..50とか51...100のツリー開いても先頭の1とか51しか出ない。

*** Error Log:
!SESSION 10 06, 2002 01:21:36.08 ----------------------
-------------------------
java.version=1.4.0_02
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32,
NL=ja_JP
Command-line arguments: -dev bin -data C:\Program
Files\eclipse-SDK-2.0-win32\eclipse\runtime-workspace -
os win32 -ws win32 -arch x86
!ENTRY org.eclipse.core.resources 4 2 10 06, 2002
01:21:36.08
!MESSAGE Problems occurred when invoking code from
plug-in: "org.eclipse.core.resources".
!STACK 0
java.lang.NullPointerException
at
monalipse.server.giko.ThreadContentProvider.equals
(ThreadContentProvider.java:135)
at
org.eclipse.jface.viewers.AbstractTreeViewer.updatePlus
(AbstractTreeViewer.java:1273)
at
org.eclipse.jface.viewers.AbstractTreeViewer.createTree
Item(AbstractTreeViewer.java:259)
at
org.eclipse.jface.viewers.AbstractTreeViewer.createChil
dren(AbstractTreeViewer.java:243)
at
org.eclipse.jface.viewers.AbstractTreeViewer.internalSe
tExpanded(AbstractTreeViewer.java:904)
at
org.eclipse.jface.viewers.AbstractTreeViewer.setExpande
dElements(AbstractTreeViewer.java:1095)
at
monalipse.views.ThreadListView.expandFirstFragment
(ThreadListView.java:214)
at
monalipse.views.ThreadListView.resourceChanged
(ThreadListView.java:135)
at
org.eclipse.core.internal.events.NotificationManager$1.
run(NotificationManager.java:128)
at
org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:839)
at org.eclipse.core.runtime.Platform.run
(Platform.java:416)
at
org.eclipse.core.internal.events.NotificationManager.no
tify(NotificationManager.java:143)
at
org.eclipse.core.internal.events.NotificationManager.br
oadcastChanges(NotificationManager.java:67)
at
org.eclipse.core.internal.resources.Workspace.broadcast
Changes(Workspace.java:133)
at
org.eclipse.core.internal.resources.Workspace.endOperat
ion(Workspace.java:753)
at
org.eclipse.core.internal.resources.Workspace.run
(Workspace.java:1383)
at
org.eclipse.ui.actions.WorkspaceModifyOperation.run
(WorkspaceModifyOperation.java:78)
at
org.eclipse.jface.operation.ModalContext.runInCurrentTh
read(ModalContext.java:299)
at
org.eclipse.jface.operation.ModalContext.run
(ModalContext.java:249)
at
org.eclipse.jface.window.ApplicationWindow$1.run
(ApplicationWindow.java:394)
at
org.eclipse.swt.custom.BusyIndicator.showWhile
(BusyIndicator.java:66)
at
org.eclipse.jface.window.ApplicationWindow.run
(ApplicationWindow.java:391)
at
org.eclipse.ui.internal.WorkbenchWindow.run
(WorkbenchWindow.java:1126)
at monalipse.server.giko.GikoServer$1.run
(GikoServer.java:124)
at org.eclipse.swt.widgets.RunnableLock.run
(RunnableLock.java:31)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages
(Synchronizer.java:95)
at
org.eclipse.swt.widgets.Display.runAsyncMessages
(Display.java:1506)
at
org.eclipse.swt.widgets.Display.readAndDispatch
(Display.java:1294)
at
org.eclipse.ui.internal.Workbench.runEventLoop
(Workbench.java:1256)
at org.eclipse.ui.internal.Workbench.run
(Workbench.java:1239)
at
org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:775)
at org.eclipse.core.boot.BootLoader.run
(BootLoader.java:432)
at EclipseRuntimeLauncher.main
(EclipseRuntimeLauncher.java:24)

任务单历史 (3/3 Histories)

2002-10-06 14:24 Updated by: monalipse
评论
Logged In: YES
user_id=2538

いまいち追いきれない……
一部にdumpStack入れたものをcommitしたので,
NPEが出たらその手前にあるであろうdumpStackの結果を
貼り付けてもらえまつか.
2002-10-07 00:36 Updated by: mona301
评论
Logged In: YES
user_id=2606

いや、それだと試したけどdumpStackでない。
さらに試しに
Thread.dumpStack();
System.err.println("thread.logFolder : " +
thread.logFolder.getFullPath());
System.err.println("logFolder: " + logFolder.getFullPath());
System.err.println("thread.id : " + thread.id);
System.err.println("id : " + id);
return thread.logFolder.equals
(logFolder) && thread.id.equals(id);
ってやって最後の一行にブレークポイントあてて実行すると、
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(Thread.java:1071)
at
monalipse.server.giko.ThreadContentProvider.equals
(ThreadContentProvider.java:155)
at
org.eclipse.jface.viewers.AbstractTreeViewer.updatePlus
(AbstractTreeViewer.java:1273)
at
...(中略)...
thread.logFolder : /2ch.net/log716
logFolder: /2ch.net/log716
thread.id : 1031235104.dat
id : 1031235104.dat
まで出てブレークポイントで止まる。で、ステップインを一度
行うとそこで、NPE.
ところで明日から一週間出張で不在なのでこれ以上おえません。
2002-10-07 02:17 Updated by: monalipse
评论
Logged In: YES
user_id=2538

激しく不思議な挙動やね……
logFolderのequalsの中で飛んでるならわかるが.
大体こういう意味不明な場合は
typoで間違ったフィールド参照してたり
するもんだけど,そうでもないみたいだしw

return thread.logFolder.equals(logFolder) && thread.id.equals(id);

boolean logEq = thread.logFolder.equals(logFolder);
boolean idEq = thread.id.equals(id);
return logEq && idEq;
とかにして,どっちで飛んでるのか見てみてほしい.

あと,jreとeclipseとWindowsのバージョンも教えてくだちい.

Attachment File List

No attachments

编辑

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » 登录名