This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 57959 - javax.jmi.reflect.InvalidObjectException: Object with MOFID
Summary: javax.jmi.reflect.InvalidObjectException: Object with MOFID
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: David Simonek
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2005-04-17 10:54 UTC by sigalduek
Modified: 2005-11-19 01:17 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
web project (139.14 KB, application/octet-stream)
2005-04-17 10:56 UTC, sigalduek
Details
messages.log (16.52 KB, text/plain)
2005-04-18 12:27 UTC, sigalduek
Details
Exceptions from web project. (982.46 KB, text/plain)
2005-08-15 18:52 UTC, ranbato
Details
javax.jmi.reflect.InvalidObjectException: Object with MOFID 0BA1ED4D-588B-11DA-9B61-F4BBB305AA77:000000000000036D no longer exists. (114.19 KB, text/html)
2005-11-19 01:17 UTC, kota_sri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sigalduek 2005-04-17 10:54:17 UTC
I've got the following exception for the first time (clean user directory) that
I do the following process:
Open the attached web project.
Create new mobile project.
new file ->MIDP -> wireless connection wizard.
Fill the following information: 
First panel: Web project: The attached project
             Servlet Class Name: use defaults
             Source Packages: use defaults
             Package:servlet

Second Panel:select WSClient box (all 3 methods should be selected)
Third Panel:ClientClassName:use default EndToEndClient
            Package:client

The wizard generates a MIDlet under the client package:EndToEndClientMVD
In the navigator window click on one of methods begin with: _formservice...
The next exception is thrown:
  
Annotation: Exception occurred in Request Processor
javax.jmi.reflect.InvalidObjectException: Object with MOFID
A316FBE6-AF29-11D9-A1ED-62562AC7AA77:0000000000000273 no longer exists.
	at
org.netbeans.mdr.handlers.BaseObjectHandler._getDelegate(BaseObjectHandler.java:353)
	at
org.netbeans.mdr.handlers.InstanceHandler.getInstanceDelegate(InstanceHandler.java:48)
	at
org.netbeans.mdr.handlers.InstanceHandler._immediateComposite(InstanceHandler.java:251)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement._immediateComposite(MetadataElement.java:1570)
	at
org.netbeans.mdr.handlers.InstanceHandler.refImmediateComposite(InstanceHandler.java:243)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.getResource(MetadataElement.java:523)
	at
org.netbeans.modules.javanavigation.actions.OpenAction.jumpToElement(OpenAction.java:203)
	at
org.netbeans.modules.javanavigation.actions.OpenAction.access$500(OpenAction.java:56)
	at
org.netbeans.modules.javanavigation.actions.OpenAction$4.run(OpenAction.java:171)
	at org.openide.util.Task.run(Task.java:189)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:721)

After first time  - I could not reproduce it and everything works well.
Comment 1 sigalduek 2005-04-17 10:56:48 UTC
Created attachment 21690 [details]
web project
Comment 2 Martin Matula 2005-04-17 20:45:53 UTC
P2->P3 - does not seem to be reliably reproducible, no data loss.
Could you please attach your messages.log? This could be a consequence of some
previous problem (logged to the log file). Also from the messages.log we will
find out what build you were using. The messages.log file is located under
$nbuser/var/log/.
Comment 3 Martin Matula 2005-04-17 21:17:01 UTC
Looks like a problem in navigator. Navigator can pass an element to the
jumpToElement method that becomes invalid before a transaction in this method is
started.
Comment 4 sigalduek 2005-04-18 12:25:07 UTC
I found the problem occurs whenever the project directory contains blanks (for
example: C:\Documents and Settings\sd126764).
messages.log is attached
Comment 5 sigalduek 2005-04-18 12:27:00 UTC
Created attachment 21697 [details]
messages.log
Comment 6 David Simonek 2005-04-18 16:36:15 UTC
This code in java navigation is copied from editor Alt+G implementation, so we
probably have this problem in Alt+G as well. What would you recommend? Checking
validity as first command under MDR transaction lock?
Comment 7 David Simonek 2005-04-20 14:35:24 UTC
Martin, Dusan? Please help me, thx.
Comment 8 Martin Matula 2005-04-20 20:28:18 UTC
Checking validity immediately after transaction start will fix the exception.
However, it will cause the source code will not be opened. I am not sure how
sever would this be. In case this could happen only if user really deletes a
method and then tries to doubleclick on it in navigator just before navigator
notices the method was deleted, then its fine. Worse would be if the method is
still there and the node in navigator becomes invalid. Anyway, I guess the
second case cannot occur. So, checking validity and ignoring the action if
invalid should be fine...
Comment 9 David Simonek 2005-04-21 09:59:49 UTC
Thank you!
Comment 10 ranbato 2005-08-15 18:51:21 UTC
I believe this is the same error That I am seeing on a web project when I use 
the wizard to create a new class. Attaching log.
Comment 11 ranbato 2005-08-15 18:52:10 UTC
Created attachment 23864 [details]
Exceptions from web project.
Comment 12 ranbato 2005-08-15 18:55:54 UTC
I should add that the file is created incomplete and the wizard locks up when 
Finish is clicked.
Comment 13 David Simonek 2005-09-22 15:29:46 UTC
*** Issue 64705 has been marked as a duplicate of this issue. ***
Comment 14 David Simonek 2005-10-11 17:16:38 UTC
fixed in main trunk:

Checking in OpenAction.java;
/cvs/java/navigation/src/org/netbeans/modules/java/navigation/actions/OpenAction.java,v
 <--  OpenAction.java
new revision: 1.3; previous revision: 1.2
Comment 15 kota_sri 2005-11-19 01:17:18 UTC
Created attachment 27061 [details]
javax.jmi.reflect.InvalidObjectException: Object with MOFID 0BA1ED4D-588B-11DA-9B61-F4BBB305AA77:000000000000036D no longer exists.