Login | Register
My pages Projects Community openCollabNet

Discussions > users > [argouml-users] Code Generation Issue and Version 0.11.2 problem

argouml
Discussion topic

Back to topic list

[argouml-users] Code Generation Issue and Version 0.11.2 problem

Author "Dhar, Pranab " <Pranab dot Dhar at DFA dot STATE dot NY dot US>
Full name "Dhar, Pranab " <Pranab dot Dhar at DFA dot STATE dot NY dot US>
Date 2002-08-21 13:17:46 PDT
Message Hi,
   I am a new user of ArgoUML 0.10 . I worked on a class diagram and
generated the code which
looks like :-
--------------------​--------------------​--------------------​--------------
package com.ids.conf;
import java.util.*;

/**Contains the list of all instance configurations
 */
class CAllConfigurations implements Enumeration, IConfiguration {
  /* {author=Pranab Dhar, version=1.0}*/

   @element-type CIDSInstanceConfiguration
   */
  Vector instances;
  /**constructor
   */
  public CAllConfigurations() {
  }
  public IConfiguration load() {
  return null;
  }
  public void save(IConfiguration config) {
  }
  public Object nextElement() {
  return null;
  }
  public boolean hasMoreElements() {
  return false;
  }
}
--------------------​--------------------​--------------------​--------------
Everything looks fine until I decided to compile it.I found that a comment
problem
with the generated java code near the line containing "@element-type
CIDSInstanceConfiguration".
The start comment /** is missing. Has anyone seen this problem before ?

I then tried upgrading to version 0.11.2
Now the argouml will not load the Zargo File created in version 0.10 anymore
and give NullpointerException

====================​===================
== READING PROJECT file:/opt/conn/users​/dharp/idsconf.zargo​
done preloading Property Panels
Elapsed time: 323 ms
Loading Model from file:/opt/conn/users​/dharp/idsconf.zargo​
spawned critiquing thread
preloading...
 done preloading
Now going to load idsconf_classdiagram.pgml from ZipInputStream
====================​===================
== READING DIAGRAM
could not set owner
could not set owner
could not set owner
could not set owner
could not set owner
could not set owner
could not set owner
could not set owner
Finished loading idsconf_classdiagram.pgml
Now going to load idsconf__use_case_diagram.pgml from ZipInputStream
====================​===================
== READING DIAGRAM
Exception in readDiagram
java.lang.ClassCastException:
org.argouml.uml.diag​ram.static_structure​.ui.FigInterface
        at org.argouml.xml.pgml​.PGMLParser.startEle​ment(PGMLParser.java​:204)
        at
org.apache.xerces.pa​rsers.SAXParser.star​tElement(SAXParser.j​ava:1335)
        at
org.apache.xerces.va​lidators.common.XMLV​alidator.callStartEl​ement(XMLValidat
or.java:828)
        at
org.apache.xerces.fr​amework.XMLDocumentS​canner.scanElement(X​MLDocumentScanne
r.java:1852)
        at
org.apache.xerces.fr​amework.XMLDocumentS​canner$ContentDispa​tcher.dispatch(XM
LDocumentScanner.java:1233)
        at
org.apache.xerces.fr​amework.XMLDocumentS​canner.parseSome(XML​DocumentScanner.
java:380)
        at org.apache.xerces.fr​amework.XMLParser.pa​rse(XMLParser.java:9​08)
        at javax.xml.parsers.SA​XParser.parse(SAXPar​ser.java:345)
        at
org.tigris.gef.xml.p​gml.PGMLParser.readD​iagram(PGMLParser.ja​va:95)
        at
org.argouml.kernel.P​roject.loadZippedPro​jectMembers(Project.​java:373)
        at org.argouml.kernel.P​roject.loadProject(P​roject.java:253)
        at
org.argouml.uml.ui.A​ctionOpenProject.act​ionPerformed(ActionO​penProject.java:
155)
        at
javax.swing.Abstract​Button.fireActionPer​formed(AbstractButto​n.java:1450)
        at
javax.swing.Abstract​Button$ForwardActio​nEvents.actionPerfor​med(AbstractButto
n.java:1504)
        at
javax.swing.DefaultB​uttonModel.fireActio​nPerformed(DefaultBu​ttonModel.java:3
78)
        at
javax.swing.DefaultB​uttonModel.setPresse​d(DefaultButtonModel​.java:250)
        at javax.swing.Abstract​Button.doClick(Abstr​actButton.java:279)
        at
javax.swing.plaf.bas​ic.BasicMenuItemUI$​MouseInputHandler.mo​useReleased(Basic
MenuItemUI.java:886)
        at java.awt.Component.p​rocessMouseEvent(Com​ponent.java:3774)
        at java.awt.Component.p​rocessEvent(Componen​t.java:3603)
        at java.awt.Container.p​rocessEvent(Containe​r.java:1165)
        at java.awt.Component.d​ispatchEventImpl(Com​ponent.java:2652)
        at java.awt.Container.d​ispatchEventImpl(Con​tainer.java:1214)
        at java.awt.Component.d​ispatchEvent(Compone​nt.java:2556)
        at
java.awt.Lightweight​Dispatcher.retargetM​ouseEvent(Container.​java:2452)
        at
java.awt.Lightweight​Dispatcher.processMo​useEvent(Container.j​ava:2217)
        at java.awt.Lightweight​Dispatcher.dispatchE​vent(Container.java:​2126)
        at java.awt.Container.d​ispatchEventImpl(Con​tainer.java:1201)
        at java.awt.Window.disp​atchEventImpl(Window​.java:917)
        at java.awt.Component.d​ispatchEvent(Compone​nt.java:2556)
        at java.awt.EventQueue.​dispatchEvent(EventQ​ueue.java:333)
        at
java.awt.EventDispat​chThread.pumpOneEven​tForHierarchy(EventD​ispatchThread.ja
va:134)
        at
java.awt.EventDispat​chThread.pumpEventsF​orHierarchy(EventDis​patchThread.java
:101)
        at
java.awt.EventDispat​chThread.pumpEvents(​EventDispatchThread.​java:96)
        at java.awt.EventDispat​chThread.run(EventDi​spatchThread.java:88​)


Pranab

--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: users-unsubscribe@ar​gouml.tigris.org
For additional commands, e-mail: users-help at argouml dot tigris dot org

« Previous message in topic | 1 of 2 | Next message in topic »

Messages

Show all messages in topic

[argouml-users] Code Generation Issue and Version 0.11.2 problem "Dhar, Pranab " <Pranab dot Dhar at DFA dot STATE dot NY dot US> "Dhar, Pranab " <Pranab dot Dhar at DFA dot STATE dot NY dot US> 2002-08-21 13:17:46 PDT
     Re: [argouml-users] Code Generation Issue and Version 0.11.2 problem kataka Jaap Branderhorst 2002-08-21 13:52:07 PDT
Messages per page: