General (#1) - String index error (#34) - Message List

String index error
 unsolved

I am getting the following error "String index out of range:0" from

top relations
{
  checkonly domain source state : uml::Vertex {};
  enforce domain target stateCls : t1::StateCls {};
}

The error goes away when I change "Vertex" to "State". I can instantiate Vertex objects in other places, but when even when I isolate this code I get the following error.

What can be causing this?

Thanx Jay

  • Message #98

    Can you give a stack trace? (see the error log view)

    • Message #99

      eclipse.buildId=unknown
      java.version=1.6.0_05
      java.vendor=Sun Microsystems Inc.
      BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
      Command-line arguments:  -os win32 -ws win32 -arch x86

      Error
      Thu May 29 !12:14:10 CEST 2008
      Exception occured in transformation

      java.lang.StringIndexOutOfBoundsException: String index out of range: 0
      at java.lang.String.charAt(Unknown Source)
      at org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.getURIFragment(XMLHelperImpl.java:718)
      at org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.getHREF(XMLHelperImpl.java:813)
      at org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.getHREF(XMLHelperImpl.java:802)
      at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveHref(XMLSaveImpl.java:2198)
      at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveHRefSingle(XMLSaveImpl.java:2258)
      at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLSaveImpl.java:1478)
      at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XMLSaveImpl.java:2590)
      at org.eclipse.emf.ecore.xmi.impl.XMISaveImpl.writeTopObjects(XMISaveImpl.java:90)
      at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.traverse(XMLSaveImpl.java:585)
      at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl.java:253)
      at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doSave(XMLResourceImpl.java:205)
      at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(ResourceImpl.java:1253)
      at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(ResourceImpl.java:964)
      at de.ikv.emf.qvt.EMFQvtTraceAdapter.saveTraceResources(EMFQvtTraceAdapter.java:174)
      at de.ikv.emf.qvt.EMFQvtTraceAdapter.storeTraces(EMFQvtTraceAdapter.java:149)
      at de.ikv.medini.qvt.QvtProcessorImpl.evaluate(QvtProcessorImpl.java:582)
      at de.ikv.emf.qvt.EMFQvtProcessorImpl.evaluateInSuperclass(EMFQvtProcessorImpl.java:136)
      at de.ikv.emf.qvt.EMFQvtProcessorImpl$1.run(EMFQvtProcessorImpl.java:94)
      at de.ikv.emf.qvt.NestedRecordingCommand.doExecute(NestedRecordingCommand.java:68)
      at org.eclipse.emf.transaction.RecordingCommand.execute(RecordingCommand.java:130)
      at org.eclipse.emf.common.command.BasicCommandStack.execute(BasicCommandStack.java:92)
      at org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.basicExecute(AbstractTransactionalCommandStack.java:239)
      at org.eclipse.emf.transaction.impl.TransactionalCommandStackImpl.doExecute(TransactionalCommandStackImpl.java:61)
      at org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.execute(AbstractTransactionalCommandStack.java:164)
      at org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.execute(AbstractTransactionalCommandStack.java:217)
      at de.ikv.emf.qvt.NestedRecordingCommand.execute(NestedRecordingCommand.java:106)
      at de.ikv.emf.qvt.EMFQvtProcessorImpl.transactionalEvaluate(EMFQvtProcessorImpl.java:92)
      at de.ikv.emf.qvt.EMFQvtProcessorImpl.evaluate(EMFQvtProcessorImpl.java:116)
      at de.ikv.medini.qvt.QvtProcessorImpl.evaluateQVT(QvtProcessorImpl.java:506)
      at de.ikv.medini.qvt.debug.core.launcher.QVTProcess$1.run(QVTProcess.java:203)
      at java.lang.Thread.run(Unknown Source)

      • Message #100

        Thanks, I found the problem. The uml Tool that I am using does not create an ID for a Psuedostate element. Thus, creating an error during the retrieval.

Attachments

No attachments created.