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 34459 - MDR Explorer InvalidCallException
Summary: MDR Explorer InvalidCallException
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: Other Windows XP
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-18 16:08 UTC by woodymeister
Modified: 2004-08-13 12:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
a java model (3.38 KB, text/plain)
2003-06-18 16:15 UTC, woodymeister
Details
java metamodel (32.19 KB, text/plain)
2003-06-19 09:35 UTC, woodymeister
Details

Note You need to log in before you can comment on or make changes to this bug.
Description woodymeister 2003-06-18 16:08:19 UTC
bug scenario:

0) open clean MDR-Explorer
1) mof import uml 1.4 metamodel
2) instantiate uml metamodel
3) import XMI uml model
4) import java 1.0 metamodel
5) instantiate java metamodel
6) try import XMI java model 
   -> 
javax.jmi.reflect.InvalidCallException
    at org.netbeans.mdr.handlers.PackageProxyHandler.
refClass(PackageProxyHandler.java:252)
    at org.netbeans.lib.jmi.xmi.XmiContext.
resolveElementName(XmiContext.java:557)
  ...

note: insert in JAVA 1.0 metamodel xmi namespace tag
Comment 1 woodymeister 2003-06-18 16:15:54 UTC
Created attachment 10726 [details]
a java model
Comment 2 Martin Matula 2003-06-18 18:21:49 UTC
What is Java 1.0 metamodel? Where did you get the XMI for it? How was
the java_model produced?
Comment 3 woodymeister 2003-06-19 09:35:55 UTC
Created attachment 10732 [details]
java metamodel
Comment 4 woodymeister 2003-06-19 09:41:11 UTC
What is Java 1.0 metamodel? 
  sorry, see new attachment.

Where did you get the XMI for it? 
  patched netbeans test java metamodel 
  (xmi import + export rational rose, unisys plugin)

How was the java_model produced?
  my tool
Comment 5 Martin Matula 2003-07-22 09:44:20 UTC
The metamodel and model work for me. Although I didn't load UML
metamodel before I was trying it out. Does the exception occur only
when you load and instantiate UML metamodel before that? I guess so.
It seems that the problem is that you don't specify a package prefix
for Core package. Now, it depends on how you load the UML metamodel.
Do you load it together with the diff files provided at
http://mdr.netbeans.org/metamodels.html, or you load it as is? I think
that the problem occurs because of the name clash of some interfaces
automatically generated for UML with interfaces generated for your
metamodel of Java - there is a lot of elements with the same name
(Core package, etc.) and if you do not specify a package prefix, they
reside in the same java package - i.e. they are in conflict.
Comment 6 Martin Matula 2004-06-20 11:53:25 UTC
Does not seem to be a bug in MDR (see the comments above).