facebook

UML: Exception when Reverse Engineering

  1. MyEclipse Archived
  2.  > 
  3. UML Development
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #245267 Reply

    rammerma
    Member

    I just installed MyEclipse 4.1 with Eclipse 3.1.1.

    When I try to Drag and Drop a Class into an Class Diagramm I get the following exception in the Eclipse-Error-Log:

    java.lang.NullPointerException
    at com.genuitec.eclipse.uml.dndreveng.DnDRevEngHelper.parseFile(DnDRevEngHelper.java:422)
    at com.genuitec.eclipse.uml.dndreveng.DnDRevEngHelper.doImport(DnDRevEngHelper.java:350)
    at com.genuitec.eclipse.uml.dndreveng.DnDRevEngHelper.access$1(DnDRevEngHelper.java:310)
    at com.genuitec.eclipse.uml.dndreveng.DnDRevEngHelper$4.run(DnDRevEngHelper.java:222)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

    What went wrong? Is it a problem of MyEclipse? Is my configuration wrong?

    #245334 Reply

    Riyad Kalla
    Member

    Are you trying to reverse engineer a Java5 file?

    #245365 Reply

    rammerma
    Member

    No, the code has been developed with Java 1.4.2. And it does’nt matter which source file I take. It’s allways the same behaviour.
    Eclipse itself is started with JDK 1.5.

    Perhaps a summary of my system configuration can help:

    *** Date: Thu Jan 26 10:31:34 CET 2006
    
    *** Platform Details:
    
    *** System properties:
    apple.laf.useScreenMenuBar=true
    awt.toolkit=sun.awt.windows.WToolkit
    com.apple.mrj.application.apple.menu.about.name=ArgoUML
    eclipse.application=org.eclipse.ui.ide.workbench
    eclipse.buildId=M20050929-0840
    eclipse.commands=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    E:\dev\eclipse311MyEclipse41\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    82c_60
    -vm
    C:\WINDOWS\system32\javaw.exe
    eclipse.product=org.eclipse.sdk.ide
    eclipse.startTime=1138267636240
    eclipse.vm=C:\WINDOWS\system32\javaw.exe
    eclipse.vmargs=-Xmx512M
    -jar
    E:\dev\eclipse311MyEclipse41\eclipse\startup.jar
    eof=eof
    file.encoding=Cp1252
    file.encoding.pkg=sun.io
    file.separator=\
    gef.imageLocation=/org/argouml/Images
    http.nonProxyHosts=localhost
    http.proxyHost=wwwproxy.adm.arcor.net
    http.proxyPort=8000
    http.proxySet=true
    java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
    java.awt.printerjob=sun.awt.windows.WPrinterJob
    java.class.path=E:\dev\eclipse311MyEclipse41\eclipse\startup.jar
    java.class.version=49.0
    java.endorsed.dirs=C:\Programme\Java\jre1.5.0_06\lib\endorsed
    java.ext.dirs=C:\Programme\Java\jre1.5.0_06\lib\ext
    java.home=C:\Programme\Java\jre1.5.0_06
    java.io.tmpdir=C:\DOKUME~1\AMMERM~1\LOKALE~1\Temp\
    java.library.path=C:\WINDOWS\system32;.;C:\WINDOWS\system32;C:\WINDOWS;C:\PROGRAMME\THINKPAD\UTILITIES;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programme\ATI Technologies\ATI Control Panel;C:\Programme\ATI Technologies\Fire GL 3D Studio Max;C:\IBMTOOLS\Python22;C:\Programme\Microsoft Office\OFFICE11\Business Contact Manager\IM;C:\Programme\Microsoft SQL Server\80\Tools\Binn\;C:\Programme\Microsoft Office\OFFICE11\Business Contact Manager\;E:\dev\apache-ant-1.6.2\bin;C:\Programme\jikes-1.22-1.windows\bin;C:\Programme\Rational\common;C:\Programme\QuickTime\QTSystem\
    java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
    java.runtime.version=1.5.0_06-b05
    java.specification.name=Java Platform API Specification
    java.specification.vendor=Sun Microsystems Inc.
    java.specification.version=1.5
    java.vendor=Sun Microsystems Inc.
    java.vendor.url=http://java.sun.com/
    java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
    java.version=1.5.0_06
    java.vm.info=mixed mode, sharing
    java.vm.name=Java HotSpot(TM) Client VM
    java.vm.specification.name=Java Virtual Machine Specification
    java.vm.specification.vendor=Sun Microsystems Inc.
    java.vm.specification.version=1.0
    java.vm.vendor=Sun Microsystems Inc.
    java.vm.version=1.5.0_06-b05
    line.separator=
    
    org.osgi.framework.bootdelegation=*
    org.osgi.framework.executionenvironment=J2SE-1.5
    org.osgi.framework.language=de
    org.osgi.framework.os.name=WindowsXP
    org.osgi.framework.os.version=5.1
    org.osgi.framework.processor=x86
    org.osgi.framework.system.packages=javax.accessibility,javax.activity,javax.crypto,javax.crypto.interfaces,javax.crypto.spec,javax.imageio,javax.imageio.event,javax.imageio.metadata,javax.imageio.plugins.bmp,javax.imageio.plugins.jpeg,javax.imageio.spi,javax.imageio.stream,javax.management,javax.management.loading,javax.management.modelmbean,javax.management.monitor,javax.management.openmbean,javax.management.relation,javax.management.remote,javax.management.remote.rmi,javax.management.timer,javax.naming,javax.naming.directory,javax.naming.event,javax.naming.ldap,javax.naming.spi,javax.net,javax.net.ssl,javax.print,javax.print.attribute,javax.print.attribute.standard,javax.print.event,javax.rmi,javax.rmi.CORBA,javax.rmi.ssl,javax.security.auth,javax.security.auth.callback,javax.security.auth.kerberos,javax.security.auth.login,javax.security.auth.spi,javax.security.auth.x500,javax.security.cert,javax.security.sasl,javax.sound.midi,javax.sound.midi.spi,javax.sound.sampled,javax.sound.sampled.spi,javax.sql,javax.sql.rowset,javax.sql.rowset.serial,javax.sql.rowset.spi,javax.swing,javax.swing.border,javax.swing.colorchooser,javax.swing.event,javax.swing.filechooser,javax.swing.plaf,javax.swing.plaf.basic,javax.swing.plaf.metal,javax.swing.plaf.multi,javax.swing.plaf.synth,javax.swing.table,javax.swing.text,javax.swing.text.html,javax.swing.text.html.parser,javax.swing.text.rtf,javax.swing.tree,javax.swing.undo,javax.transaction,javax.transaction.xa,javax.xml,javax.xml.datatype,javax.xml.namespace,javax.xml.parsers,javax.xml.transform,javax.xml.transform.dom,javax.xml.transform.sax,javax.xml.transform.stream,javax.xml.validation,javax.xml.xpath,org.ietf.jgss,org.omg.CORBA,org.omg.CORBA_2_3,org.omg.CORBA_2_3.portable,org.omg.CORBA.DynAnyPackage,org.omg.CORBA.ORBPackage,org.omg.CORBA.portable,org.omg.CORBA.TypeCodePackage,org.omg.CosNaming,org.omg.CosNaming.NamingContextExtPackage,org.omg.CosNaming.NamingContextPackage,org.omg.Dynamic,org.omg.DynamicAny,org.omg.DynamicAny.DynAnyFactoryPackage,org.omg.DynamicAny.DynAnyPackage,org.omg.IOP,org.omg.IOP.CodecFactoryPackage,org.omg.IOP.CodecPackage,org.omg.Messaging,org.omg.PortableInterceptor,org.omg.PortableInterceptor.ORBInitInfoPackage,org.omg.PortableServer,org.omg.PortableServer.CurrentPackage,org.omg.PortableServer.POAManagerPackage,org.omg.PortableServer.POAPackage,org.omg.PortableServer.portable,org.omg.PortableServer.ServantLocatorPackage,org.omg.SendingContext,org.omg.stub.java.rmi,org.w3c.dom,org.w3c.dom.bootstrap,org.w3c.dom.events,org.w3c.dom.ls,org.xml.sax,org.xml.sax.ext,org.xml.sax.helpers
    org.osgi.framework.vendor=Eclipse
    org.osgi.framework.version=1.3.0
    org.osgi.supports.framework.extension=true
    os.arch=x86
    os.name=Windows XP
    os.version=5.1
    osgi.arch=x86
    osgi.bundles=org.eclipse.core.runtime@2:start, org.eclipse.update.configurator@3:start
    osgi.bundlestore=e:\dev\eclipse311MyEclipse41\eclipse\configuration\org.eclipse.osgi\bundles
    osgi.configuration.area=file:/e:/dev/eclipse311MyEclipse41/eclipse/configuration/
    osgi.framework=file:/e:/dev/eclipse311MyEclipse41/eclipse/plugins/org.eclipse.osgi_3.1.1.jar
    osgi.framework.beginningstartlevel=1
    osgi.framework.shape=jar
    osgi.framework.version=3.1.1
    osgi.install.area=file:/e:/dev/eclipse311MyEclipse41/eclipse/
    osgi.instance.area=file:/E:/dev/workspace/
    osgi.instance.area.default=file:/C:/Dokumente und Einstellungen/Ammermann/workspace/
    osgi.logfile=E:\dev\workspace\.metadata\.log
    osgi.manifest.cache=e:\dev\eclipse311MyEclipse41\eclipse\configuration\org.eclipse.osgi\manifests
    osgi.nl=de_DE
    osgi.os=win32
    osgi.splashLocation=e:\dev\eclipse311MyEclipse41\eclipse\plugins\org.eclipse.platform_3.1.1\splash.bmp
    osgi.splashPath=platform:/base/plugins/org.eclipse.platform
    osgi.syspath=e:\dev\eclipse311MyEclipse41\eclipse\plugins
    osgi.ws=win32
    path.separator=;
    proxyHost=wwwproxy.adm.arcor.net
    proxyPort=8000
    proxySet=true
    sun.arch.data.model=32
    sun.awt.noerasebackground=true
    sun.boot.class.path=C:\Programme\Java\jre1.5.0_06\lib\rt.jar;C:\Programme\Java\jre1.5.0_06\lib\i18n.jar;C:\Programme\Java\jre1.5.0_06\lib\sunrsasign.jar;C:\Programme\Java\jre1.5.0_06\lib\jsse.jar;C:\Programme\Java\jre1.5.0_06\lib\jce.jar;C:\Programme\Java\jre1.5.0_06\lib\charsets.jar;C:\Programme\Java\jre1.5.0_06\classes
    sun.boot.library.path=C:\Programme\Java\jre1.5.0_06\bin
    sun.cpu.endian=little
    sun.cpu.isalist=pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
    sun.desktop=windows
    sun.io.unicode.encoding=UnicodeLittle
    sun.jnu.encoding=Cp1252
    sun.management.compiler=HotSpot Client Compiler
    sun.os.patch.level=Service Pack 2
    #245415 Reply

    Kapil Kapre
    Member

    If you updated recently could you try starting Eclipse with -clean and see if that clears thigs for you?
    Also Could you try using our Rev Eng Wizard and see if that helps any?
    Thanks,
    – Kapil

    #245498 Reply

    rammerma
    Member

    I tried both. No difference.

    Do you need anything else to analyse the problem in detail?

    Regards
    Rolf

    #245500 Reply

    Kapil Kapre
    Member

    A couple of Q’s: Is the java file in an eclipse “Source Folder” and Is Build Automatically turned on?

    #245505 Reply

    rammerma
    Member

    Build Automatically is turned on.

    The java file is in a folder which is declared as source folder in the eclipse-project settings (Properties->Java Build Path->Source)

    Regards
    Rolf

    #245516 Reply

    Kapil Kapre
    Member

    Rolf,
    Could you try this in a fresh workspace as a test? Additionally if its possible w/ a fresh eclipse installation as well to rule out any external factors.
    Thanks,
    Kapil

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: UML: Exception when Reverse Engineering

You must be logged in to post in the forum log in