Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » errors while exporting to Repository
errors while exporting to Repository [message #782343] Mon, 23 January 2012 10:16 Go to previous message
Mauro Condarelli is currently offline Mauro Condarelli
Messages: 365
Registered: September 2009
Senior Member
I have a DSL working ok when I test with
I want to incorporate int main eclipse.
I go into "Deployable plug-ins and fragments", select all plug-ins (rpc, rpc.tests & rpc.ui) and then "Install into host,
Repository."

Operation fails:

=========================================
Problem during export
Errors occurred during the export operation. The ant tasks generated log files
which can e found at /srv/devel/install/logs.zip
=========================================

I do attach the complete zip file, but errors are all the same:
=========================================
1. ERROR in /srv/devel/parser.WS/com.softin.rpc/src/com/softin/rpc/MyIntegerConverterImplementation.java (at line 10)
public Integer toValue(String string, INode node)
throws ValueConverterException {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method toValue(String, INode) of type MyIntegerConverterImplementation must override a superclass method
=========================================

Which is strange.
MyIntegerConverterImplementation.java is trivial:

=========================================
package com.softin.rpc;

import org.eclipse.xtext.conversion.IValueConverter;
import org.eclipse.xtext.conversion.ValueConverterException;
import org.eclipse.xtext.nodemodel.INode;

public class MyIntegerConverterImplementation implements IValueConverter<Integer> {

@Override
public Integer toValue(String string, INode node)
throws ValueConverterException {
return Integer.decode(string);
}

@Override
public String toString(Integer value) throws ValueConverterException {
return value.toString();
}

}
=========================================

I also tried commenting out the offending "@Override" and the export seems to succeed, but the same errors pops up again when the editor is actually instantiated.

What am I doing wrong?

TiA
Mauro
  • Attachment: logs.zip
    (Size: 1.44KB, Downloaded 42 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:xtext-dsl -> enrich-model -> xtend2-template?
Next Topic:Error when reloading resource from a context menu button before xtend 2 generation
Goto Forum:
  


Current Time: Tue May 21 17:55:29 EDT 2013

Powered by FUDForum. Page generated in 0.09729 seconds