Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » VE out of Eclipse Europa ?
VE out of Eclipse Europa ? [message #138284] Thu, 28 June 2007 07:12 Go to next message
Eclipse User
Originally posted by: mik.c-l-a-s-s-x.it

Looks like Europa will ship without a gui editor.
VE is not there and it seems there's no alternative.

http://www.eclipse.org/europa/projects.php

Mik
--
Re: VE out of Eclipse Europa ? [message #138289 is a reply to message #138284] Thu, 28 June 2007 10:11 Go to previous messageGo to next message
Wojciech Halicki-Piszko is currently offline Wojciech Halicki-Piszko
Messages: 13
Registered: July 2009
Junior Member
No free alternative as there is commercial WindowBuilder - http://www.instantiations.com/press/release/070627.html.
And it is provided free for open source projects - http://www.instantiations.com/company/opensource.html
VE will surely work with Europa - there is some work done already. There
is conversation on this news list about it.

> Looks like Europa will ship without a gui editor.
> VE is not there and it seems there's no alternative.
> http://www.eclipse.org/europa/projects.php
>
> Mik
> --
Re: VE out of Eclipse Europa ? [message #138299 is a reply to message #138289] Sat, 30 June 2007 20:15 Go to previous messageGo to next message
Erik Hecht is currently offline Erik Hecht
Messages: 61
Registered: July 2009
Member
Wojciech Halicki - Piszko schrieb:
> No free alternative as there is commercial WindowBuilder -
> http://www.instantiations.com/press/release/070627.html. And it is
> provided free for open source projects -
> http://www.instantiations.com/company/opensource.html VE will surely
> work with Europa - there is some work done already. There is
> conversation on this news list about it.
>
>> Looks like Europa will ship without a gui editor.
>> VE is not there and it seems there's no alternative.
>> http://www.eclipse.org/europa/projects.php
>>
>> Mik
>> --
>
>

Hello,

If anybody is intrested in, i can build a zip file for MAC OSX and
Windows this weekend. This version works for me.

I will post a download location when i finished.

Best regards.
Erik

@Steve Robenalt, are there some news of progress?
Re: VE out of Eclipse Europa ? [message #138305 is a reply to message #138299] Sun, 01 July 2007 06:25 Go to previous messageGo to next message
Marco Maniscalco is currently offline Marco Maniscalco
Messages: 30
Registered: July 2009
Member
Hello Erik,

I would really appreciate that! I also tried to fix something but did not
succeed...

Thanks in advance
Marco Maniscalco


"Erik Hecht" <erik@ehecht.com> schrieb im Newsbeitrag
news:f66dkn$eo2$1@build.eclipse.org...
> Wojciech Halicki - Piszko schrieb:
>> No free alternative as there is commercial WindowBuilder -
>> http://www.instantiations.com/press/release/070627.html. And it is
>> provided free for open source projects -
>> http://www.instantiations.com/company/opensource.html VE will surely work
>> with Europa - there is some work done already. There is conversation on
>> this news list about it.
>>
>>> Looks like Europa will ship without a gui editor.
>>> VE is not there and it seems there's no alternative.
>>> http://www.eclipse.org/europa/projects.php
>>>
>>> Mik
>>> --
>>
>>
>
> Hello,
>
> If anybody is intrested in, i can build a zip file for MAC OSX and Windows
> this weekend. This version works for me.
>
> I will post a download location when i finished.
>
> Best regards.
> Erik
>
> @Steve Robenalt, are there some news of progress?
Re: VE out of Eclipse Europa ? [message #138311 is a reply to message #138305] Sun, 01 July 2007 20:53 Go to previous messageGo to next message
Erik Hecht is currently offline Erik Hecht
Messages: 61
Registered: July 2009
Member
Hello all,

here is the link where you can find my (non-official) version.

http://www.ehecht.com/eclipse_ve/ve.html

best regards

Erik

Marco Maniscalco schrieb:
> Hello Erik,
>
> I would really appreciate that! I also tried to fix something but did
> not succeed...
>
> Thanks in advance
> Marco Maniscalco
>
>
> "Erik Hecht" <erik@ehecht.com> schrieb im Newsbeitrag
> news:f66dkn$eo2$1@build.eclipse.org...
>> Wojciech Halicki - Piszko schrieb:
>>> No free alternative as there is commercial WindowBuilder -
>>> http://www.instantiations.com/press/release/070627.html. And it is
>>> provided free for open source projects -
>>> http://www.instantiations.com/company/opensource.html VE will surely
>>> work with Europa - there is some work done already. There is
>>> conversation on this news list about it.
>>>
>>>> Looks like Europa will ship without a gui editor.
>>>> VE is not there and it seems there's no alternative.
>>>> http://www.eclipse.org/europa/projects.php
>>>>
>>>> Mik
>>>> --
>>>
>>>
>>
>> Hello,
>>
>> If anybody is intrested in, i can build a zip file for MAC OSX and
>> Windows this weekend. This version works for me.
>>
>> I will post a download location when i finished.
>>
>> Best regards.
>> Erik
>>
>> @Steve Robenalt, are there some news of progress?
>
Re: VE out of Eclipse Europa ? [message #138317 is a reply to message #138311] Sun, 01 July 2007 21:36 Go to previous messageGo to next message
Marco Maniscalco is currently offline Marco Maniscalco
Messages: 30
Registered: July 2009
Member
Hello Erik,

first of all, tank you for the great work!

Did you use eclipse-rcp-europa-win32, eclipse-SDK-3.3-win32 or
eclipse-java-europa-win32 to use VE?
Are there any other prerequisites?

best regards,
Marco Maniscalco


"Erik Hecht" <erik@ehecht.com> schrieb im Newsbeitrag
news:f69496$pvn$1@build.eclipse.org...
> Hello all,
>
> here is the link where you can find my (non-official) version.
>
> http://www.ehecht.com/eclipse_ve/ve.html
>
> best regards
>
> Erik
>
> Marco Maniscalco schrieb:
>> Hello Erik,
>>
>> I would really appreciate that! I also tried to fix something but did not
>> succeed...
>>
>> Thanks in advance
>> Marco Maniscalco
>>
>>
>> "Erik Hecht" <erik@ehecht.com> schrieb im Newsbeitrag
>> news:f66dkn$eo2$1@build.eclipse.org...
>>> Wojciech Halicki - Piszko schrieb:
>>>> No free alternative as there is commercial WindowBuilder -
>>>> http://www.instantiations.com/press/release/070627.html. And it is
>>>> provided free for open source projects -
>>>> http://www.instantiations.com/company/opensource.html VE will surely
>>>> work with Europa - there is some work done already. There is
>>>> conversation on this news list about it.
>>>>
>>>>> Looks like Europa will ship without a gui editor.
>>>>> VE is not there and it seems there's no alternative.
>>>>> http://www.eclipse.org/europa/projects.php
>>>>>
>>>>> Mik
>>>>> --
>>>>
>>>>
>>>
>>> Hello,
>>>
>>> If anybody is intrested in, i can build a zip file for MAC OSX and
>>> Windows this weekend. This version works for me.
>>>
>>> I will post a download location when i finished.
>>>
>>> Best regards.
>>> Erik
>>>
>>> @Steve Robenalt, are there some news of progress?
>>
Re: VE out of Eclipse Europa ? [message #138323 is a reply to message #138311] Mon, 02 July 2007 01:12 Go to previous messageGo to next message
Eclipse User
Originally posted by: erickj.isetec.com.mx

Do you have build for linux?

Erik Hecht wrote:

> Hello all,
>
> here is the link where you can find my (non-official) version.
>
> http://www.ehecht.com/eclipse_ve/ve.html
>
> best regards
>
> Erik
>
> Marco Maniscalco schrieb:
>> Hello Erik,
>>
>> I would really appreciate that! I also tried to fix something but did
>> not succeed...
>>
>> Thanks in advance
>> Marco Maniscalco
>>
>>
>> "Erik Hecht" <erik@ehecht.com> schrieb im Newsbeitrag
>> news:f66dkn$eo2$1@build.eclipse.org...
>>> Wojciech Halicki - Piszko schrieb:
>>>> No free alternative as there is commercial WindowBuilder -
>>>> http://www.instantiations.com/press/release/070627.html. And it is
>>>> provided free for open source projects -
>>>> http://www.instantiations.com/company/opensource.html VE will surely
>>>> work with Europa - there is some work done already. There is
>>>> conversation on this news list about it.
>>>>
>>>>> Looks like Europa will ship without a gui editor.
>>>>> VE is not there and it seems there's no alternative.
>>>>> http://www.eclipse.org/europa/projects.php
>>>>>
>>>>> Mik
>>>>> --
>>>>
>>>>
>>>
>>> Hello,
>>>
>>> If anybody is intrested in, i can build a zip file for MAC OSX and
>>> Windows this weekend. This version works for me.
>>>
>>> I will post a download location when i finished.
>>>
>>> Best regards.
>>> Erik
>>>
>>> @Steve Robenalt, are there some news of progress?
>>
Re: VE out of Eclipse Europa ? [message #138329 is a reply to message #138317] Mon, 02 July 2007 03:52 Go to previous messageGo to next message
Erik Hecht is currently offline Erik Hecht
Messages: 61
Registered: July 2009
Member
Hello Marco,

you should have installed the runtime binaries. With the wtp sdk, i used
that one from online update.

best regards
Erik

Marco Maniscalco schrieb:
> Hello Erik,
>
> first of all, tank you for the great work!
>
> Did you use eclipse-rcp-europa-win32, eclipse-SDK-3.3-win32 or
> eclipse-java-europa-win32 to use VE?
> Are there any other prerequisites?
>
> best regards,
> Marco Maniscalco
>
>
> "Erik Hecht" <erik@ehecht.com> schrieb im Newsbeitrag
> news:f69496$pvn$1@build.eclipse.org...
>> Hello all,
>>
>> here is the link where you can find my (non-official) version.
>>
>> http://www.ehecht.com/eclipse_ve/ve.html
>>
>> best regards
>>
>> Erik
>>
>> Marco Maniscalco schrieb:
>>> Hello Erik,
>>>
>>> I would really appreciate that! I also tried to fix something but did
>>> not succeed...
>>>
>>> Thanks in advance
>>> Marco Maniscalco
>>>
>>>
>>> "Erik Hecht" <erik@ehecht.com> schrieb im Newsbeitrag
>>> news:f66dkn$eo2$1@build.eclipse.org...
>>>> Wojciech Halicki - Piszko schrieb:
>>>>> No free alternative as there is commercial WindowBuilder -
>>>>> http://www.instantiations.com/press/release/070627.html. And it is
>>>>> provided free for open source projects -
>>>>> http://www.instantiations.com/company/opensource.html VE will
>>>>> surely work with Europa - there is some work done already. There is
>>>>> conversation on this news list about it.
>>>>>
>>>>>> Looks like Europa will ship without a gui editor.
>>>>>> VE is not there and it seems there's no alternative.
>>>>>> http://www.eclipse.org/europa/projects.php
>>>>>>
>>>>>> Mik
>>>>>> --
>>>>>
>>>>>
>>>>
>>>> Hello,
>>>>
>>>> If anybody is intrested in, i can build a zip file for MAC OSX and
>>>> Windows this weekend. This version works for me.
>>>>
>>>> I will post a download location when i finished.
>>>>
>>>> Best regards.
>>>> Erik
>>>>
>>>> @Steve Robenalt, are there some news of progress?
>>>
>
Re: VE out of Eclipse Europa ? [message #138335 is a reply to message #138323] Mon, 02 July 2007 03:52 Go to previous messageGo to next message
Erik Hecht is currently offline Erik Hecht
Messages: 61
Registered: July 2009
Member
Sorry, i dont built for linux, yet.

I can doit, asap.


Erick I. Jiménez Alvarado schrieb:
> Do you have build for linux?
>
> Erik Hecht wrote:
>
>> Hello all,
>>
>> here is the link where you can find my (non-official) version.
>>
>> http://www.ehecht.com/eclipse_ve/ve.html
>>
>> best regards
>>
>> Erik
>>
>> Marco Maniscalco schrieb:
>>> Hello Erik,
>>>
>>> I would really appreciate that! I also tried to fix something but did
>>> not succeed...
>>>
>>> Thanks in advance
>>> Marco Maniscalco
>>>
>>>
>>> "Erik Hecht" <erik@ehecht.com> schrieb im Newsbeitrag
>>> news:f66dkn$eo2$1@build.eclipse.org...
>>>> Wojciech Halicki - Piszko schrieb:
>>>>> No free alternative as there is commercial WindowBuilder -
>>>>> http://www.instantiations.com/press/release/070627.html. And it is
>>>>> provided free for open source projects -
>>>>> http://www.instantiations.com/company/opensource.html VE will surely
>>>>> work with Europa - there is some work done already. There is
>>>>> conversation on this news list about it.
>>>>>
>>>>>> Looks like Europa will ship without a gui editor.
>>>>>> VE is not there and it seems there's no alternative.
>>>>>> http://www.eclipse.org/europa/projects.php
>>>>>>
>>>>>> Mik
>>>>>> --
>>>>>
>>>> Hello,
>>>>
>>>> If anybody is intrested in, i can build a zip file for MAC OSX and
>>>> Windows this weekend. This version works for me.
>>>>
>>>> I will post a download location when i finished.
>>>>
>>>> Best regards.
>>>> Erik
>>>>
>>>> @Steve Robenalt, are there some news of progress?
>
Re: VE out of Eclipse Europa ? [message #138358 is a reply to message #138329] Mon, 02 July 2007 14:19 Go to previous messageGo to next message
Eclipse User
Originally posted by: adam.giemza.gmx.de

Hey Erik,

well done. I have just tested it and it seems to work (so far). I hope
that the development will continue because I do not see any chance for
me to use a commercial gui builder.

Greetings,
Adam
Re: VE out of Eclipse Europa ? [message #138368 is a reply to message #138358] Mon, 02 July 2007 22:59 Go to previous messageGo to next message
Eclipse User
Originally posted by: wolfgang_baltes.hotmail.com

Hi Adam and Erik,

I am a newbie in Java and Eclipse matters.

Could you please describe your installation of Europa and VE? For example,
which are the downloads and possibly plug-ins/upgrades/updates you
installed?

Under Eclipse 3.2 with the VE SDK (VE-SDK-1.2.3_jem.zip) added, I get the
possibility to create a "Visual Class" when I select New.... Should I see
this possibility once your plug-in is installed?

Thanks for your help,
Wolfgang.
Re: VE out of Eclipse Europa ? [message #138380 is a reply to message #138368] Tue, 03 July 2007 10:00 Go to previous messageGo to next message
Eclipse User
Originally posted by: adam.giemza.gmx.de

Hi Wolfgang,

I have downloaded the plugin build by Erik ->

http://www.ehecht.com/eclipse_ve/ve.html

and copied it to my eclipse dir. I have downloaded the biggest package
of Eclipse (Eclipse for RCP/Plug-in Developers). As I have understood
the requirements, you need to install the WTP, because of JEM. Is it
correct?

At least it works for me very well.

Adam
Re: VE out of Eclipse Europa ? [message #138392 is a reply to message #138380] Tue, 03 July 2007 15:23 Go to previous messageGo to next message
Marco Maniscalco is currently offline Marco Maniscalco
Messages: 30
Registered: July 2009
Member
Yeah this also works great for me ... thanks to Erik ;-)

But there is one issue and I don't have a clue why. If I create a SWT
Composite and place some controls on it, I am not able to modify it's
layout. "Menu / Customize Layout" just says: no layout options to customize
on current selection. Does anyone also face this problem?

Greetings
Marco Maniscalco

"Adam Giemza" <adam.giemza@gmx.de> schrieb im Newsbeitrag
news:f6d6oq$mqk$1@build.eclipse.org...
> Hi Wolfgang,
>
> I have downloaded the plugin build by Erik ->
>
> http://www.ehecht.com/eclipse_ve/ve.html
>
> and copied it to my eclipse dir. I have downloaded the biggest package of
> Eclipse (Eclipse for RCP/Plug-in Developers). As I have understood the
> requirements, you need to install the WTP, because of JEM. Is it correct?
>
> At least it works for me very well.
>
> Adam
Re: VE out of Eclipse Europa ? [message #138404 is a reply to message #138392] Tue, 03 July 2007 17:44 Go to previous messageGo to next message
Erik Hecht is currently offline Erik Hecht
Messages: 61
Registered: July 2009
Member
Hello Marco,

I think I know where the problem is. If I look in the error log of
eclipse there are sometimes exception, when i use ve (for me with jfc)
.. It seem that one class is not avaiable in the remote vm. I have no
idea, yet.

Im looking forward to an new release.

best regards.
Erik

Marco Maniscalco schrieb:
> Yeah this also works great for me ... thanks to Erik ;-)
>
> But there is one issue and I don't have a clue why. If I create a SWT
> Composite and place some controls on it, I am not able to modify it's
> layout. "Menu / Customize Layout" just says: no layout options to
> customize on current selection. Does anyone also face this problem?
>
> Greetings
> Marco Maniscalco
>
> "Adam Giemza" <adam.giemza@gmx.de> schrieb im Newsbeitrag
> news:f6d6oq$mqk$1@build.eclipse.org...
>> Hi Wolfgang,
>>
>> I have downloaded the plugin build by Erik ->
>>
>> http://www.ehecht.com/eclipse_ve/ve.html
>>
>> and copied it to my eclipse dir. I have downloaded the biggest package
>> of Eclipse (Eclipse for RCP/Plug-in Developers). As I have understood
>> the requirements, you need to install the WTP, because of JEM. Is it
>> correct?
>>
>> At least it works for me very well.
>>
>> Adam
>
Re: VE out of Eclipse Europa ? [message #138414 is a reply to message #138404] Tue, 03 July 2007 18:29 Go to previous messageGo to next message
Eclipse User
Originally posted by: wolfgang_baltes.hotmail.com

Hi,

Thanks, Marco, for your recommendations.

I tried out several combinations of packages, and can't get the system to
work properly.

Here are a few details of what I observe, and to be frank, I am not sure
everything is due to the Europa code, or whether MS Vista has a part in
this.

- OS used: MS Vista Premium in admin mode (user access control turned off)

- SW combination used:
Unzip eclipse-rcp-europa-win32.zip, then add the "features" and
"plugins" folders from all these packages:
emf-sdo-xsd-SDK-2.3.0.zip
dtp-sdk_1.5.zip
GEF-SDK-3.3.zip
wtp-sdk-R-2.0-200706260303.zip
Start eclipse, and check in Error Log that everything is fine.
Select a new Workspace. Check connectivity to Internet using
"Software updates" and choosing one of the add new features sites. Abort
process once connectivity to Internet is shown to work.
Close eclipse.
Add "features" and "plugins" folders from Eriks
ve_eclipse_33_win32.zip
package.
Upon starting eclipse, no errors in log.
When verifying Internet access, errors. (This may be due to Vista,
but I report it anyway.) Need to reboot the OS (thanks Bill) to recover
from this.
Restart OS and then start eclipse. Clear Error Log.

- Observations:
Build an app with a visual class (enable the SWT library). This is
what I get:
The palette is filled with widgets, etc.
I can create a shell and add widgets. The properties window does not
describe visual objects.
The Customized Layout dialog box opens, but is empty (both tabs).
I get a lot of errors of essentially two types:
- Warning: IWAV0155E Introspection failed on class
"org.eclipse.swt.widgets.XXX." msg="." <<== XXX = widget types
- Error: Unhandled event loop exception

I hope this helps Erik to fix things.

Wolfgang.
Re: VE out of Eclipse Europa ? [message #138425 is a reply to message #138404] Tue, 03 July 2007 20:51 Go to previous messageGo to next message
Marco Maniscalco is currently offline Marco Maniscalco
Messages: 30
Registered: July 2009
Member
Hello Erik

indeed, its strange that org/eclipse/ve/internal/java/common/BaseBeanInfo
can not be found by the remote VM classloader. (But BaseBeanInfo is
contained in org.eclipse.ve.java.core jar)

Greets Marco

"Erik Hecht" <erik@ehecht.com> schrieb im Newsbeitrag
news:f6e1s5$lhm$1@build.eclipse.org...
> Hello Marco,
>
> I think I know where the problem is. If I look in the error log of eclipse
> there are sometimes exception, when i use ve (for me with jfc) . It seem
> that one class is not avaiable in the remote vm. I have no idea, yet.
>
> Im looking forward to an new release.
>
> best regards.
> Erik
>
> Marco Maniscalco schrieb:
>> Yeah this also works great for me ... thanks to Erik ;-)
>>
>> But there is one issue and I don't have a clue why. If I create a SWT
>> Composite and place some controls on it, I am not able to modify it's
>> layout. "Menu / Customize Layout" just says: no layout options to
>> customize on current selection. Does anyone also face this problem?
>>
>> Greetings
>> Marco Maniscalco
>>
>> "Adam Giemza" <adam.giemza@gmx.de> schrieb im Newsbeitrag
>> news:f6d6oq$mqk$1@build.eclipse.org...
>>> Hi Wolfgang,
>>>
>>> I have downloaded the plugin build by Erik ->
>>>
>>> http://www.ehecht.com/eclipse_ve/ve.html
>>>
>>> and copied it to my eclipse dir. I have downloaded the biggest package
>>> of Eclipse (Eclipse for RCP/Plug-in Developers). As I have understood
>>> the requirements, you need to install the WTP, because of JEM. Is it
>>> correct?
>>>
>>> At least it works for me very well.
>>>
>>> Adam
>>
Re: VE out of Eclipse Europa ? [message #138437 is a reply to message #138404] Tue, 03 July 2007 21:14 Go to previous messageGo to next message
Marco Maniscalco is currently offline Marco Maniscalco
Messages: 30
Registered: July 2009
Member
Hello all,

I found a way to walk around this problem. Just do the following, and
(maybe) everything works good.

On the Project Properties in "Java Build Path" go to the Libraries and "Add
external Jars". Then choose "org.eclipse.ve.java.core" jar file. Then the
remote VM restarts because the classpath has changed. On my (Vista Business)
Machine all SWT stuff works great. I also opened some more compex SWT
Composites and it seems that everything works like with 3.2. Also the Layout
stuff is now working. I also did not notice any exceptions anymore :-)

I guess its not intended this way, but how could you adjust the classpath of
the remote VM to inject "org.eclipse.ve.java.core"?

Greets, Marco

"Erik Hecht" <erik@ehecht.com> schrieb im Newsbeitrag
news:f6e1s5$lhm$1@build.eclipse.org...
> Hello Marco,
>
> I think I know where the problem is. If I look in the error log of eclipse
> there are sometimes exception, when i use ve (for me with jfc) . It seem
> that one class is not avaiable in the remote vm. I have no idea, yet.
>
> Im looking forward to an new release.
>
> best regards.
> Erik
>
> Marco Maniscalco schrieb:
>> Yeah this also works great for me ... thanks to Erik ;-)
>>
>> But there is one issue and I don't have a clue why. If I create a SWT
>> Composite and place some controls on it, I am not able to modify it's
>> layout. "Menu / Customize Layout" just says: no layout options to
>> customize on current selection. Does anyone also face this problem?
>>
>> Greetings
>> Marco Maniscalco
>>
>> "Adam Giemza" <adam.giemza@gmx.de> schrieb im Newsbeitrag
>> news:f6d6oq$mqk$1@build.eclipse.org...
>>> Hi Wolfgang,
>>>
>>> I have downloaded the plugin build by Erik ->
>>>
>>> http://www.ehecht.com/eclipse_ve/ve.html
>>>
>>> and copied it to my eclipse dir. I have downloaded the biggest package
>>> of Eclipse (Eclipse for RCP/Plug-in Developers). As I have understood
>>> the requirements, you need to install the WTP, because of JEM. Is it
>>> correct?
>>>
>>> At least it works for me very well.
>>>
>>> Adam
>>
Re: VE out of Eclipse Europa ? [message #138449 is a reply to message #138437] Tue, 03 July 2007 21:35 Go to previous messageGo to next message
Eclipse User
Originally posted by: wolfgang_baltes.hotmail.com

Hi Marco,

I just tried this and it works!!! Both the properties window and the
Customize Layout dialogs work. I can compile and run my shell with quite a
number of widgets.

However, there are still error logs of thrown exceptions from
org.eclipse.ve.java.core.

I compared this against the eclipse 3.2 configuration and could not find
this setting anywhere.

Thanks,
Wolfgang.
Re: VE out of Eclipse Europa ? [message #138460 is a reply to message #138437] Tue, 03 July 2007 21:42 Go to previous messageGo to next message
Erik Hecht is currently offline Erik Hecht
Messages: 61
Registered: July 2009
Member
Hello all,

thanks for your feedback. I will try to fix this in my version.

last but not least:

I uploaded a Linux version of visual editor (ve) on the same location.
Please check it.
I couldn't verify if it works. I had only an old Laptop with Knoppix
here ;-).

Best regards
Erik


Marco Maniscalco schrieb:
> Hello all,
>
> I found a way to walk around this problem. Just do the following, and
> (maybe) everything works good.
>
> On the Project Properties in "Java Build Path" go to the Libraries and
> "Add external Jars". Then choose "org.eclipse.ve.java.core" jar file.
> Then the remote VM restarts because the classpath has changed. On my
> (Vista Business) Machine all SWT stuff works great. I also opened some
> more compex SWT Composites and it seems that everything works like with
> 3.2. Also the Layout stuff is now working. I also did not notice any
> exceptions anymore :-)
>
> I guess its not intended this way, but how could you adjust the
> classpath of the remote VM to inject "org.eclipse.ve.java.core"?
>
> Greets, Marco
>
> "Erik Hecht" <erik@ehecht.com> schrieb im Newsbeitrag
> news:f6e1s5$lhm$1@build.eclipse.org...
>> Hello Marco,
>>
>> I think I know where the problem is. If I look in the error log of
>> eclipse there are sometimes exception, when i use ve (for me with jfc)
>> . It seem that one class is not avaiable in the remote vm. I have no
>> idea, yet.
>>
>> Im looking forward to an new release.
>>
>> best regards.
>> Erik
>>
>> Marco Maniscalco schrieb:
>>> Yeah this also works great for me ... thanks to Erik ;-)
>>>
>>> But there is one issue and I don't have a clue why. If I create a SWT
>>> Composite and place some controls on it, I am not able to modify it's
>>> layout. "Menu / Customize Layout" just says: no layout options to
>>> customize on current selection. Does anyone also face this problem?
>>>
>>> Greetings
>>> Marco Maniscalco
>>>
>>> "Adam Giemza" <adam.giemza@gmx.de> schrieb im Newsbeitrag
>>> news:f6d6oq$mqk$1@build.eclipse.org...
>>>> Hi Wolfgang,
>>>>
>>>> I have downloaded the plugin build by Erik ->
>>>>
>>>> http://www.ehecht.com/eclipse_ve/ve.html
>>>>
>>>> and copied it to my eclipse dir. I have downloaded the biggest
>>>> package of Eclipse (Eclipse for RCP/Plug-in Developers). As I have
>>>> understood the requirements, you need to install the WTP, because of
>>>> JEM. Is it correct?
>>>>
>>>> At least it works for me very well.
>>>>
>>>> Adam
>>>
>
Re: VE out of Eclipse Europa ? [message #138472 is a reply to message #138460] Tue, 03 July 2007 22:50 Go to previous messageGo to next message
Eclipse User
Originally posted by: erickj.isetec.com.mx

I have errors on Linux (OpenSuse 10.2):

eclipse.buildId=I20070625-1500
java.version=1.5.0_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86

Eclipse Sample: org.eclipse.swt.examples
File: org.eclipse.swt.examples.texteditor, TextEditor.java

Error messages:

IWAV0155E Introspection failed on class "org.eclipse.swt.widgets.Shell."
msg="."
IWAV0073I *** RemoteVM Exception - Trace from Remote VM:
java.lang.NoClassDefFoundError:
org/eclipse/ve/internal/java/common/BaseBeanInfo
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268 )
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268 )
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.eclipse.jem.internal.beaninfo.vm.ModelingBeanInfo.classE xists(ModelingBeanInfo.java:206)
at
org.eclipse.jem.internal.beaninfo.vm.ModelingBeanInfo.intros pect(ModelingBeanInfo.java:175)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.eclipse.jem.internal.proxy.vm.remote.ConnectionHandler.r un(ConnectionHandler.java:317)
at
org.eclipse.jem.internal.proxy.vm.remote.ConnectionThread.ru n(ConnectionThread.java:47)
IWAV0074I *** Local StackTrace:
org.eclipse.jem.internal.proxy.remote.REMThrowableBeanProxyP roxy:
java.lang.NoClassDefFoundError:
org/eclipse/ve/internal/java/common/BaseBeanInfo
at
org.eclipse.jem.internal.proxy.remote.REMThrowableBeanTypePr oxy.createThrowableBeanProxy(REMThrowableBeanTypeProxy.java: 34)
at
org.eclipse.jem.internal.proxy.remote.REMThrowableBeanTypePr oxy.newBeanProxy(REMThrowableBeanTypeProxy.java:65)
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanProxyFa ctory.getBeanProxy(REMStandardBeanProxyFactory.java:459)
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanProxyFa ctory.processErrorReturn(REMStandardBeanProxyFactory.java:51 0)
at
org.eclipse.jem.internal.proxy.remote.REMMethodProxy.invoke( REMMethodProxy.java:221)
at
org.eclipse.jem.internal.proxy.remote.REMMethodProxy.invokeW ithParms(REMMethodProxy.java:178)
at
org.eclipse.jem.internal.proxy.remote.REMMethodProxy.invoke( REMMethodProxy.java:102)
at
org.eclipse.jem.internal.beaninfo.adapters.BeaninfoClassAdap ter.introspect(BeaninfoClassAdapter.java:732)
at
org.eclipse.jem.internal.beaninfo.adapters.BeaninfoClassAdap ter.introspectIfNecessary(BeaninfoClassAdapter.java:428)
at
org.eclipse.jem.internal.beaninfo.adapters.BeaninfoClassAdap ter.introspectIfNecessary(BeaninfoClassAdapter.java:415)
at
org.eclipse.jem.internal.beaninfo.adapters.BeaninfoClassAdap ter.getEvents(BeaninfoClassAdapter.java:1272)
at
org.eclipse.jem.java.internal.impl.JavaClassImpl.getEvents(J avaClassImpl.java:1522)
at
org.eclipse.jem.internal.beaninfo.adapters.BeaninfoClassAdap ter.allEvents(BeaninfoClassAdapter.java:2311)
at
org.eclipse.jem.internal.beaninfo.adapters.BeaninfoClassAdap ter.getAllEvents(BeaninfoClassAdapter.java:1280)
at
org.eclipse.jem.java.internal.impl.JavaClassImpl.getAllEvent s(JavaClassImpl.java:1544)
at
org.eclipse.ve.internal.java.codegen.java.EventsParser.getAd dSignitures(EventsParser.java:66)
at
org.eclipse.ve.internal.java.codegen.java.EventsParser.analy ze(EventsParser.java:99)
at
org.eclipse.ve.internal.java.codegen.java.EventsParser.addEv ents(EventsParser.java:170)
at
org.eclipse.ve.internal.java.codegen.java.JavaBeanModelBuild er.analyzeEvents(JavaBeanModelBuilder.java:372)
at
org.eclipse.ve.internal.java.codegen.java.JavaBeanModelBuild er.build(JavaBeanModelBuilder.java:463)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.reverseParse(JavaSourceTranslator.java:865)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeDocument(JavaSourceTranslator.java:947)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.loadModel(JavaSourceTranslator.java:597)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup.run(JavaVisualEditorPart.java:1978)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Other Error:

+++ Warning +++: Tue Jul 03 17:44:42 CDT 2007
Feature "org.eclipse.swt.layout.GridLayout->numColumns" did not have a type
set. Typically due to override file creating feature but property not found
on introspection/reflection.

Erik Hecht wrote:

> Hello all,
>
> thanks for your feedback. I will try to fix this in my version.
>
> last but not least:
>
> I uploaded a Linux version of visual editor (ve) on the same location.
> Please check it.
> I couldn't verify if it works. I had only an old Laptop with Knoppix
> here ;-).
>
> Best regards
> Erik
>
>
> Marco Maniscalco schrieb:
>> Hello all,
>>
>> I found a way to walk around this problem. Just do the following, and
>> (maybe) everything works good.
>>
>> On the Project Properties in "Java Build Path" go to the Libraries and
>> "Add external Jars". Then choose "org.eclipse.ve.java.core" jar file.
>> Then the remote VM restarts because the classpath has changed. On my
>> (Vista Business) Machine all SWT stuff works great. I also opened some
>> more compex SWT Composites and it seems that everything works like with
>> 3.2. Also the Layout stuff is now working. I also did not notice any
>> exceptions anymore :-)
>>
>> I guess its not intended this way, but how could you adjust the
>> classpath of the remote VM to inject "org.eclipse.ve.java.core"?
>>
>> Greets, Marco
>>
>> "Erik Hecht" <erik@ehecht.com> schrieb im Newsbeitrag
>> news:f6e1s5$lhm$1@build.eclipse.org...
>>> Hello Marco,
>>>
>>> I think I know where the problem is. If I look in the error log of
>>> eclipse there are sometimes exception, when i use ve (for me with jfc)
>>> . It seem that one class is not avaiable in the remote vm. I have no
>>> idea, yet.
>>>
>>> Im looking forward to an new release.
>>>
>>> best regards.
>>> Erik
>>>
>>> Marco Maniscalco schrieb:
>>>> Yeah this also works great for me ... thanks to Erik ;-)
>>>>
>>>> But there is one issue and I don't have a clue why. If I create a SWT
>>>> Composite and place some controls on it, I am not able to modify it's
>>>> layout. "Menu / Customize Layout" just says: no layout options to
>>>> customize on current selection. Does anyone also face this problem?
>>>>
>>>> Greetings
>>>> Marco Maniscalco
>>>>
>>>> "Adam Giemza" <adam.giemza@gmx.de> schrieb im Newsbeitrag
>>>> news:f6d6oq$mqk$1@build.eclipse.org...
>>>>> Hi Wolfgang,
>>>>>
>>>>> I have downloaded the plugin build by Erik ->
>>>>>
>>>>> http://www.ehecht.com/eclipse_ve/ve.html
>>>>>
>>>>> and copied it to my eclipse dir. I have downloaded the biggest
>>>>> package of Eclipse (Eclipse for RCP/Plug-in Developers). As I have
>>>>> understood the requirements, you need to install the WTP, because of
>>>>> JEM. Is it correct?
>>>>>
>>>>> At least it works for me very well.
>>>>>
>>>>> Adam
>>>>
>>
Re: VE out of Eclipse Europa ? [message #138497 is a reply to message #138460] Wed, 04 July 2007 08:44 Go to previous messageGo to next message
Defert Philippe is currently offline Defert Philippe
Messages: 62
Registered: July 2009
Member
Hello All,

Thanks to Erik for the port to europa.
Thanks Marco to the work around.

I use a composite with nebula component.

Now, I have much less exception. there remains to me this one

Message: Exception thrown.
Severity: Error
Plugin ID: org.eclipse.ve.java.core
Stack Trace:
java.lang.RuntimeException: java.io.NotSerializableException:
org.eclipse.ve.internal.cdm.model.Rectangle
at
org.eclipse.emf.ecore.impl.EFactoryImpl.convertToString(EFac toryImpl.java:650)
at
org.eclipse.ve.internal.cdm.impl.CDMFactoryImpl.convertViewR ectangleToString(CDMFactoryImpl.java:377)
at
org.eclipse.ve.internal.cdm.impl.CDMFactoryImpl.convertToStr ing(CDMFactoryImpl.java:136)
at
org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.convertToString (XMLHelperImpl.java:1570)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.getDatatypeValue( XMLSaveImpl.java:2887)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveDataTypeSingl e(XMLSaveImpl.java:1609)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1196)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
at
org.eclipse.emf.ecore.xmi.impl.XMISaveImpl.writeTopObjects(X MISaveImpl.java:90)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.traverse(XMLSaveI mpl.java:585)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl. java:253)
at
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doSave(XMLRes ourceImpl.java:205)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:1253)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:964)
at
org.eclipse.ve.internal.java.codegen.util.VEModelCacheUtilit y.doSaveCache(VEModelCacheUtility.java:158)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.primDoSave(JavaSourceTranslator.java:1397)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.doSave(JavaSourceTranslator.java:1411)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or$3.doRun(JavaSourceTranslator.java:956)
at
org.eclipse.ve.internal.java.codegen.util.ReverseParserJob.r un(ReverseParserJob.java:56)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.io.NotSerializableException:
org.eclipse.ve.internal.cdm.model.Rectangle
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at
org.eclipse.emf.ecore.impl.EFactoryImpl.convertToString(EFac toryImpl.java:645)
... 34 more


Philippe
Re: VE out of Eclipse Europa ? [message #138508 is a reply to message #138311] Thu, 05 July 2007 09:49 Go to previous messageGo to next message
Eclipse User
Originally posted by: dirk.volkmar.web.de

Hi, Erik!

Thanks for your version ;-)

I tried it and discovered the following Problem: When opening a visual swt
class (swt shell), the editor opens but remains blank. In the log I see
the following dump:
!ENTRY org.eclipse.jem.beaninfo 2 0 2007-07-05 11:30:53.849
!MESSAGE IWAV0155E Introspection failed on class "HelloWorld." msg="."
!STACK 0
IWAV0073I *** RemoteVM Exception - Trace from Remote VM:
java.lang.NoClassDefFoundError: java/lang/StringBuilder
at
org.eclipse.jem.internal.beaninfo.vm.ModelingBeanInfo.intros pect(ModelingBeanInfo.java:167)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.eclipse.jem.internal.proxy.vm.remote.ConnectionHandler.r un(ConnectionHandler.java:317)
at
org.eclipse.jem.internal.proxy.vm.remote.ConnectionThread.ru n(ConnectionThread.java:47)
IWAV0074I *** Local StackTrace:
org.eclipse.jem.internal.proxy.remote.REMThrowableBeanProxyP roxy:
java.lang.NoClassDefFoundError: java/lang/StringBuilder
at
org.eclipse.jem.internal.proxy.remote.REMThrowableBeanTypePr oxy.createThrowableBeanProxy(REMThrowableBeanTypeProxy.java: 34)


It is very strange, string builder should be part of the jre 1.5 I'm
using. Could it be that for some reasons the 1.4 jre that is also there is
taken for the remote VM? Could it be configured anywhere ? I told the
eclipse to use the 1.5 Engine as default jre.

I'll be happy for any clues.

Bye, Dirk

Erik Hecht wrote:

> Hello all,

> here is the link where you can find my (non-official) version.

> http://www.ehecht.com/eclipse_ve/ve.html

> best regards

> Erik
Re: VE out of Eclipse Europa ? [message #138520 is a reply to message #138460] Thu, 05 July 2007 13:21 Go to previous messageGo to next message
Marco Maniscalco is currently offline Marco Maniscalco
Messages: 30
Registered: July 2009
Member
Hello all,

I noticed a failure regarding the <ctrl,space> autocomplete feature while
using ve without exceptions in the eclipse log. Does anybody else have this
defect?

greets
Marco


"Erik Hecht" <erik@ehecht.com> schrieb im Newsbeitrag
news:f6efst$o5n$1@build.eclipse.org...
> Hello all,
>
> thanks for your feedback. I will try to fix this in my version.
>
> last but not least:
>
> I uploaded a Linux version of visual editor (ve) on the same location.
> Please check it.
> I couldn't verify if it works. I had only an old Laptop with Knoppix here
> ;-).
>
> Best regards
> Erik
>
>
> Marco Maniscalco schrieb:
>> Hello all,
>>
>> I found a way to walk around this problem. Just do the following, and
>> (maybe) everything works good.
>>
>> On the Project Properties in "Java Build Path" go to the Libraries and
>> "Add external Jars". Then choose "org.eclipse.ve.java.core" jar file.
>> Then the remote VM restarts because the classpath has changed. On my
>> (Vista Business) Machine all SWT stuff works great. I also opened some
>> more compex SWT Composites and it seems that everything works like with
>> 3.2. Also the Layout stuff is now working. I also did not notice any
>> exceptions anymore :-)
>>
>> I guess its not intended this way, but how could you adjust the classpath
>> of the remote VM to inject "org.eclipse.ve.java.core"?
>>
>> Greets, Marco
>>
>> "Erik Hecht" <erik@ehecht.com> schrieb im Newsbeitrag
>> news:f6e1s5$lhm$1@build.eclipse.org...
>>> Hello Marco,
>>>
>>> I think I know where the problem is. If I look in the error log of
>>> eclipse there are sometimes exception, when i use ve (for me with jfc) .
>>> It seem that one class is not avaiable in the remote vm. I have no idea,
>>> yet.
>>>
>>> Im looking forward to an new release.
>>>
>>> best regards.
>>> Erik
>>>
>>> Marco Maniscalco schrieb:
>>>> Yeah this also works great for me ... thanks to Erik ;-)
>>>>
>>>> But there is one issue and I don't have a clue why. If I create a SWT
>>>> Composite and place some controls on it, I am not able to modify it's
>>>> layout. "Menu / Customize Layout" just says: no layout options to
>>>> customize on current selection. Does anyone also face this problem?
>>>>
>>>> Greetings
>>>> Marco Maniscalco
>>>>
>>>> "Adam Giemza" <adam.giemza@gmx.de> schrieb im Newsbeitrag
>>>> news:f6d6oq$mqk$1@build.eclipse.org...
>>>>> Hi Wolfgang,
>>>>>
>>>>> I have downloaded the plugin build by Erik ->
>>>>>
>>>>> http://www.ehecht.com/eclipse_ve/ve.html
>>>>>
>>>>> and copied it to my eclipse dir. I have downloaded the biggest package
>>>>> of Eclipse (Eclipse for RCP/Plug-in Developers). As I have understood
>>>>> the requirements, you need to install the WTP, because of JEM. Is it
>>>>> correct?
>>>>>
>>>>> At least it works for me very well.
>>>>>
>>>>> Adam
>>>>
>>
Re: VE out of Eclipse Europa ? [message #138546 is a reply to message #138497] Thu, 05 July 2007 20:19 Go to previous messageGo to next message
Erik Hecht is currently offline Erik Hecht
Messages: 61
Registered: July 2009
Member
Hello all,

there is a simple solution for this exception.
Add only a "implements Serializable" to this class, I don't know why
this was missing.

I will post when I have built a newer version.

best regards.

Erik

DEFERT Philippe schrieb:
> Hello All,
>
> Thanks to Erik for the port to europa.
> Thanks Marco to the work around.
>
> I use a composite with nebula component.
>
> Now, I have much less exception. there remains to me this one
>
> Message: Exception thrown.
> Severity: Error
> Plugin ID: org.eclipse.ve.java.core
> Stack Trace:
> java.lang.RuntimeException: java.io.NotSerializableException:
> org.eclipse.ve.internal.cdm.model.Rectangle
> at
> org.eclipse.emf.ecore.impl.EFactoryImpl.convertToString(EFac toryImpl.java:650)
>
> at
> org.eclipse.ve.internal.cdm.impl.CDMFactoryImpl.convertViewR ectangleToString(CDMFactoryImpl.java:377)
>
> at
> org.eclipse.ve.internal.cdm.impl.CDMFactoryImpl.convertToStr ing(CDMFactoryImpl.java:136)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.convertToString (XMLHelperImpl.java:1570)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.getDatatypeValue( XMLSaveImpl.java:2887)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveDataTypeSingl e(XMLSaveImpl.java:1609)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1196)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMISaveImpl.writeTopObjects(X MISaveImpl.java:90)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.traverse(XMLSaveI mpl.java:585)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl. java:253)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doSave(XMLRes ourceImpl.java:205)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:1253)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:964)
>
> at
> org.eclipse.ve.internal.java.codegen.util.VEModelCacheUtilit y.doSaveCache(VEModelCacheUtility.java:158)
>
> at
> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.primDoSave(JavaSourceTranslator.java:1397)
>
> at
> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.doSave(JavaSourceTranslator.java:1411)
>
> at
> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or$3.doRun(JavaSourceTranslator.java:956)
>
> at
> org.eclipse.ve.internal.java.codegen.util.ReverseParserJob.r un(ReverseParserJob.java:56)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Caused by: java.io.NotSerializableException:
> org.eclipse.ve.internal.cdm.model.Rectangle
> at java.io.ObjectOutputStream.writeObject0(Unknown Source)
> at java.io.ObjectOutputStream.writeObject(Unknown Source)
> at
> org.eclipse.emf.ecore.impl.EFactoryImpl.convertToString(EFac toryImpl.java:645)
>
> ... 34 more
>
>
> Philippe
Re: VE out of Eclipse Europa ? [message #138557 is a reply to message #138472] Thu, 05 July 2007 21:40 Go to previous messageGo to next message
Erik Hecht is currently offline Erik Hecht
Messages: 61
Registered: July 2009
Member
Hello all,

ok, I got this exception fixed, with modifiying the binary build
configuration of remotevm.jar.

I will post when I updated my zip files.

best regards.
Erik

Erick I. Jiménez Alvarado schrieb:
> I have errors on Linux (OpenSuse 10.2):
>
> eclipse.buildId=I20070625-1500
> java.version=1.5.0_11
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
> Command-line arguments: -os linux -ws gtk -arch x86
>
> Eclipse Sample: org.eclipse.swt.examples
> File: org.eclipse.swt.examples.texteditor, TextEditor.java
>
> Error messages:
>
> IWAV0155E Introspection failed on class "org.eclipse.swt.widgets.Shell."
> msg="."
> IWAV0073I *** RemoteVM Exception - Trace from Remote VM:
> java.lang.NoClassDefFoundError:
> org/eclipse/ve/internal/java/common/BaseBeanInfo
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> at java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:124)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268 )
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> at java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:124)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268 )
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at
> org.eclipse.jem.internal.beaninfo.vm.ModelingBeanInfo.classE xists(ModelingBeanInfo.java:206)
> at
> org.eclipse.jem.internal.beaninfo.vm.ModelingBeanInfo.intros pect(ModelingBeanInfo.java:175)
> at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.eclipse.jem.internal.proxy.vm.remote.ConnectionHandler.r un(ConnectionHandler.java:317)
> at
> org.eclipse.jem.internal.proxy.vm.remote.ConnectionThread.ru n(ConnectionThread.java:47)
> IWAV0074I *** Local StackTrace:
> org.eclipse.jem.internal.proxy.remote.REMThrowableBeanProxyP roxy:
> java.lang.NoClassDefFoundError:
> org/eclipse/ve/internal/java/common/BaseBeanInfo
> at
> org.eclipse.jem.internal.proxy.remote.REMThrowableBeanTypePr oxy.createThrowableBeanProxy(REMThrowableBeanTypeProxy.java: 34)
> at
> org.eclipse.jem.internal.proxy.remote.REMThrowableBeanTypePr oxy.newBeanProxy(REMThrowableBeanTypeProxy.java:65)
> at
> org.eclipse.jem.internal.proxy.remote.REMStandardBeanProxyFa ctory.getBeanProxy(REMStandardBeanProxyFactory.java:459)
> at
> org.eclipse.jem.internal.proxy.remote.REMStandardBeanProxyFa ctory.processErrorReturn(REMStandardBeanProxyFactory.java:51 0)
> at
> org.eclipse.jem.internal.proxy.remote.REMMethodProxy.invoke( REMMethodProxy.java:221)
> at
> org.eclipse.jem.internal.proxy.remote.REMMethodProxy.invokeW ithParms(REMMethodProxy.java:178)
> at
> org.eclipse.jem.internal.proxy.remote.REMMethodProxy.invoke( REMMethodProxy.java:102)
> at
> org.eclipse.jem.internal.beaninfo.adapters.BeaninfoClassAdap ter.introspect(BeaninfoClassAdapter.java:732)
> at
> org.eclipse.jem.internal.beaninfo.adapters.BeaninfoClassAdap ter.introspectIfNecessary(BeaninfoClassAdapter.java:428)
> at
> org.eclipse.jem.internal.beaninfo.adapters.BeaninfoClassAdap ter.introspectIfNecessary(BeaninfoClassAdapter.java:415)
> at
> org.eclipse.jem.internal.beaninfo.adapters.BeaninfoClassAdap ter.getEvents(BeaninfoClassAdapter.java:1272)
> at
> org.eclipse.jem.java.internal.impl.JavaClassImpl.getEvents(J avaClassImpl.java:1522)
> at
> org.eclipse.jem.internal.beaninfo.adapters.BeaninfoClassAdap ter.allEvents(BeaninfoClassAdapter.java:2311)
> at
> org.eclipse.jem.internal.beaninfo.adapters.BeaninfoClassAdap ter.getAllEvents(BeaninfoClassAdapter.java:1280)
> at
> org.eclipse.jem.java.internal.impl.JavaClassImpl.getAllEvent s(JavaClassImpl.java:1544)
> at
> org.eclipse.ve.internal.java.codegen.java.EventsParser.getAd dSignitures(EventsParser.java:66)
> at
> org.eclipse.ve.internal.java.codegen.java.EventsParser.analy ze(EventsParser.java:99)
> at
> org.eclipse.ve.internal.java.codegen.java.EventsParser.addEv ents(EventsParser.java:170)
> at
> org.eclipse.ve.internal.java.codegen.java.JavaBeanModelBuild er.analyzeEvents(JavaBeanModelBuilder.java:372)
> at
> org.eclipse.ve.internal.java.codegen.java.JavaBeanModelBuild er.build(JavaBeanModelBuilder.java:463)
> at
> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.reverseParse(JavaSourceTranslator.java:865)
> at
> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeDocument(JavaSourceTranslator.java:947)
> at
> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.loadModel(JavaSourceTranslator.java:597)
> at
> org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup.run(JavaVisualEditorPart.java:1978)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
> Other Error:
>
> +++ Warning +++: Tue Jul 03 17:44:42 CDT 2007
> Feature "org.eclipse.swt.layout.GridLayout->numColumns" did not have a type
> set. Typically due to override file creating feature but property not found
> on introspection/reflection.
>
> Erik Hecht wrote:
>
>> Hello all,
>>
>> thanks for your feedback. I will try to fix this in my version.
>>
>> last but not least:
>>
>> I uploaded a Linux version of visual editor (ve) on the same location.
>> Please check it.
>> I couldn't verify if it works. I had only an old Laptop with Knoppix
>> here ;-).
>>
>> Best regards
>> Erik
>>
>>
>> Marco Maniscalco schrieb:
>>> Hello all,
>>>
>>> I found a way to walk around this problem. Just do the following, and
>>> (maybe) everything works good.
>>>
>>> On the Project Properties in "Java Build Path" go to the Libraries and
>>> "Add external Jars". Then choose "org.eclipse.ve.java.core" jar file.
>>> Then the remote VM restarts because the classpath has changed. On my
>>> (Vista Business) Machine all SWT stuff works great. I also opened some
>>> more compex SWT Composites and it seems that everything works like with
>>> 3.2. Also the Layout stuff is now working. I also did not notice any
>>> exceptions anymore :-)
>>>
>>> I guess its not intended this way, but how could you adjust the
>>> classpath of the remote VM to inject "org.eclipse.ve.java.core"?
>>>
>>> Greets, Marco
>>>
>>> "Erik Hecht" <erik@ehecht.com> schrieb im Newsbeitrag
>>> news:f6e1s5$lhm$1@build.eclipse.org...
>>>> Hello Marco,
>>>>
>>>> I think I know where the problem is. If I look in the error log of
>>>> eclipse there are sometimes exception, when i use ve (for me with jfc)
>>>> . It seem that one class is not avaiable in the remote vm. I have no
>>>> idea, yet.
>>>>
>>>> Im looking forward to an new release.
>>>>
>>>> best regards.
>>>> Erik
>>>>
>>>> Marco Maniscalco schrieb:
>>>>> Yeah this also works great for me ... thanks to Erik ;-)
>>>>>
>>>>> But there is one issue and I don't have a clue why. If I create a SWT
>>>>> Composite and place some controls on it, I am not able to modify it's
>>>>> layout. "Menu / Customize Layout" just says: no layout options to
>>>>> customize on current selection. Does anyone also face this problem?
>>>>>
>>>>> Greetings
>>>>> Marco Maniscalco
>>>>>
>>>>> "Adam Giemza" <adam.giemza@gmx.de> schrieb im Newsbeitrag
>>>>> news:f6d6oq$mqk$1@build.eclipse.org...
>>>>>> Hi Wolfgang,
>>>>>>
>>>>>> I have downloaded the plugin build by Erik ->
>>>>>>
>>>>>> http://www.ehecht.com/eclipse_ve/ve.html
>>>>>>
>>>>>> and copied it to my eclipse dir. I have downloaded the biggest
>>>>>> package of Eclipse (Eclipse for RCP/Plug-in Developers). As I have
>>>>>> understood the requirements, you need to install the WTP, because of
>>>>>> JEM. Is it correct?
>>>>>>
>>>>>> At least it works for me very well.
>>>>>>
>>>>>> Adam
>
Re: VE out of Eclipse Europa ? [message #138570 is a reply to message #138546] Thu, 05 July 2007 22:13 Go to previous messageGo to next message
Eclipse User
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Serializable should NOT be needed. EFactoryImpl.convertToString() used
to do toString() on the object. It didn't try to do a serialize.

The override methods in CDMFactoryImpl for creating a CDM rectangle from
string expects it to be a string that came from the toString() call, NOT
the string that results for serializing!

Point and Dimension do the same thing.

I don't know what changed between EMF 2.1 and EMF 2.3 but this needs to
be tracked down.

Erik Hecht wrote:
> Hello all,
>
> there is a simple solution for this exception.
> Add only a "implements Serializable" to this class, I don't know why
> this was missing.
>
> I will post when I have built a newer version.
>
> best regards.
>
> Erik
>
> DEFERT Philippe schrieb:
>> Hello All,
>>
>> Thanks to Erik for the port to europa.
>> Thanks Marco to the work around.
>>
>> I use a composite with nebula component.
>>
>> Now, I have much less exception. there remains to me this one
>>
>> Message: Exception thrown.
>> Severity: Error
>> Plugin ID: org.eclipse.ve.java.core
>> Stack Trace:
>> java.lang.RuntimeException: java.io.NotSerializableException:
>> org.eclipse.ve.internal.cdm.model.Rectangle
>> at
>> org.eclipse.emf.ecore.impl.EFactoryImpl.convertToString(EFac toryImpl.java:650)
>>
>> at
>> org.eclipse.ve.internal.cdm.impl.CDMFactoryImpl.convertViewR ectangleToString(CDMFactoryImpl.java:377)
>>
>> at
>> org.eclipse.ve.internal.cdm.impl.CDMFactoryImpl.convertToStr ing(CDMFactoryImpl.java:136)
>>
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.convertToString (XMLHelperImpl.java:1570)
>>
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.getDatatypeValue( XMLSaveImpl.java:2887)
>>
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveDataTypeSingl e(XMLSaveImpl.java:1609)
>>
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1196)
>>
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMISaveImpl.writeTopObjects(X MISaveImpl.java:90)
>>
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.traverse(XMLSaveI mpl.java:585)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl. java:253)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doSave(XMLRes ourceImpl.java:205)
>>
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:1253)
>>
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:964)
>>
>> at
>> org.eclipse.ve.internal.java.codegen.util.VEModelCacheUtilit y.doSaveCache(VEModelCacheUtility.java:158)
>>
>> at
>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.primDoSave(JavaSourceTranslator.java:1397)
>>
>> at
>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.doSave(JavaSourceTranslator.java:1411)
>>
>> at
>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or$3.doRun(JavaSourceTranslator.java:956)
>>
>> at
>> org.eclipse.ve.internal.java.codegen.util.ReverseParserJob.r un(ReverseParserJob.java:56)
>>
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>> Caused by: java.io.NotSerializableException:
>> org.eclipse.ve.internal.cdm.model.Rectangle
>> at java.io.ObjectOutputStream.writeObject0(Unknown Source)
>> at java.io.ObjectOutputStream.writeObject(Unknown Source)
>> at
>> org.eclipse.emf.ecore.impl.EFactoryImpl.convertToString(EFac toryImpl.java:645)
>>
>> ... 34 more
>>
>>
>> Philippe
Re: VE out of Eclipse Europa ? [message #138582 is a reply to message #138570] Thu, 05 July 2007 22:21 Go to previous messageGo to next message
Eclipse User
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Ah, I see the difference now. EFactoryImpl.convertToString(object) used
to do just toString(). It doesn't do that now.

CDMFactoryImpl should be changed to instead of
super.convertToString(value) it should be

if (value != null)
return value.toString();
else
return null;

for convert rectangle, point, and dimension.

Besides these are more efficient than straight serialization anyway.


Rich Kulp wrote:
> Serializable should NOT be needed. EFactoryImpl.convertToString() used
> to do toString() on the object. It didn't try to do a serialize.
>
> The override methods in CDMFactoryImpl for creating a CDM rectangle from
> string expects it to be a string that came from the toString() call, NOT
> the string that results for serializing!
>
> Point and Dimension do the same thing.
>
> I don't know what changed between EMF 2.1 and EMF 2.3 but this needs to
> be tracked down.
>
> Erik Hecht wrote:
>> Hello all,
>>
>> there is a simple solution for this exception.
>> Add only a "implements Serializable" to this class, I don't know why
>> this was missing.
>>
>> I will post when I have built a newer version.
>>
>> best regards.
>>
>> Erik
>>
>> DEFERT Philippe schrieb:
>>> Hello All,
>>>
>>> Thanks to Erik for the port to europa.
>>> Thanks Marco to the work around.
>>>
>>> I use a composite with nebula component.
>>>
>>> Now, I have much less exception. there remains to me this one
>>>
>>> Message: Exception thrown.
>>> Severity: Error
>>> Plugin ID: org.eclipse.ve.java.core
>>> Stack Trace:
>>> java.lang.RuntimeException: java.io.NotSerializableException:
>>> org.eclipse.ve.internal.cdm.model.Rectangle
>>> at
>>> org.eclipse.emf.ecore.impl.EFactoryImpl.convertToString(EFac toryImpl.java:650)
>>>
>>> at
>>> org.eclipse.ve.internal.cdm.impl.CDMFactoryImpl.convertViewR ectangleToString(CDMFactoryImpl.java:377)
>>>
>>> at
>>> org.eclipse.ve.internal.cdm.impl.CDMFactoryImpl.convertToStr ing(CDMFactoryImpl.java:136)
>>>
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.convertToString (XMLHelperImpl.java:1570)
>>>
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.getDatatypeValue( XMLSaveImpl.java:2887)
>>>
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveDataTypeSingl e(XMLSaveImpl.java:1609)
>>>
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1196)
>>>
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMISaveImpl.writeTopObjects(X MISaveImpl.java:90)
>>>
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.traverse(XMLSaveI mpl.java:585)
>>>
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl. java:253)
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doSave(XMLRes ourceImpl.java:205)
>>>
>>> at
>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:1253)
>>>
>>> at
>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:964)
>>>
>>> at
>>> org.eclipse.ve.internal.java.codegen.util.VEModelCacheUtilit y.doSaveCache(VEModelCacheUtility.java:158)
>>>
>>> at
>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.primDoSave(JavaSourceTranslator.java:1397)
>>>
>>> at
>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.doSave(JavaSourceTranslator.java:1411)
>>>
>>> at
>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or$3.doRun(JavaSourceTranslator.java:956)
>>>
>>> at
>>> org.eclipse.ve.internal.java.codegen.util.ReverseParserJob.r un(ReverseParserJob.java:56)
>>>
>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>> Caused by: java.io.NotSerializableException:
>>> org.eclipse.ve.internal.cdm.model.Rectangle
>>> at java.io.ObjectOutputStream.writeObject0(Unknown Source)
>>> at java.io.ObjectOutputStream.writeObject(Unknown Source)
>>> at
>>> org.eclipse.emf.ecore.impl.EFactoryImpl.convertToString(EFac toryImpl.java:645)
>>>
>>> ... 34 more
>>>
>>>
>>> Philippe
Re: VE out of Eclipse Europa ? [message #138594 is a reply to message #138546] Fri, 06 July 2007 07:21 Go to previous messageGo to next message
Eclipse User
Originally posted by: mik.c-l-a-s-s-x.it

Erik, Rick,

is there a way to visually edit abstract classes extending concrete classes
?

I'm thinking of:

public abstract MyJPanel extends JPanel
{
public abstract void doSomething();
}

The parent default constructor would be useful to build visuals.

This could be a very nice feature.

Mik

--
============================================================ ================
> ClassX Development Italy Via Francesca, 368/I I-56030 S.M. a Monte (PI) <
> Tel.(+39)-0587-705153 Fax.(+39)-0587-705153 WEB: http://www.classx.it <
============================================================ ================


"Erik Hecht" <erik@ehecht.com> ha scritto nel messaggio
news:f6jjno$sdk$1@build.eclipse.org...
> Hello all,
>
> there is a simple solution for this exception.
> Add only a "implements Serializable" to this class, I don't know why this
> was missing.
Re: VE out of Eclipse Europa ? [message #138606 is a reply to message #138546] Fri, 06 July 2007 16:00 Go to previous messageGo to next message
Marco Maniscalco is currently offline Marco Maniscalco
Messages: 30
Registered: July 2009
Member
Erik, you're the new ve-team :-)

Greets Marco

"Erik Hecht" <erik@ehecht.com> schrieb im Newsbeitrag
news:f6jjno$sdk$1@build.eclipse.org...
> Hello all,
>
> there is a simple solution for this exception.
> Add only a "implements Serializable" to this class, I don't know why this
> was missing.
>
> I will post when I have built a newer version.
>
> best regards.
>
> Erik
>
> DEFERT Philippe schrieb:
>> Hello All,
>>
>> Thanks to Erik for the port to europa.
>> Thanks Marco to the work around.
>>
>> I use a composite with nebula component.
>>
>> Now, I have much less exception. there remains to me this one
>>
>> Message: Exception thrown.
>> Severity: Error
>> Plugin ID: org.eclipse.ve.java.core
>> Stack Trace:
>> java.lang.RuntimeException: java.io.NotSerializableException:
>> org.eclipse.ve.internal.cdm.model.Rectangle
>> at
>> org.eclipse.emf.ecore.impl.EFactoryImpl.convertToString(EFac toryImpl.java:650)
>> at
>> org.eclipse.ve.internal.cdm.impl.CDMFactoryImpl.convertViewR ectangleToString(CDMFactoryImpl.java:377)
>> at
>> org.eclipse.ve.internal.cdm.impl.CDMFactoryImpl.convertToStr ing(CDMFactoryImpl.java:136)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.convertToString (XMLHelperImpl.java:1570)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.getDatatypeValue( XMLSaveImpl.java:2887)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveDataTypeSingl e(XMLSaveImpl.java:1609)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1196)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMISaveImpl.writeTopObjects(X MISaveImpl.java:90)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.traverse(XMLSaveI mpl.java:585)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl. java:253)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doSave(XMLRes ourceImpl.java:205)
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:1253)
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:964)
>> at
>> org.eclipse.ve.internal.java.codegen.util.VEModelCacheUtilit y.doSaveCache(VEModelCacheUtility.java:158)
>> at
>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.primDoSave(JavaSourceTranslator.java:1397)
>> at
>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.doSave(JavaSourceTranslator.java:1411)
>> at
>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or$3.doRun(JavaSourceTranslator.java:956)
>> at
>> org.eclipse.ve.internal.java.codegen.util.ReverseParserJob.r un(ReverseParserJob.java:56)
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>> Caused by: java.io.NotSerializableException:
>> org.eclipse.ve.internal.cdm.model.Rectangle
>> at java.io.ObjectOutputStream.writeObject0(Unknown Source)
>> at java.io.ObjectOutputStream.writeObject(Unknown Source)
>> at
>> org.eclipse.emf.ecore.impl.EFactoryImpl.convertToString(EFac toryImpl.java:645)
>> ... 34 more
>>
>>
>> Philippe
Re: VE out of Eclipse Europa ? [message #138619 is a reply to message #138582] Sat, 07 July 2007 19:06 Go to previous messageGo to next message
Erik Hecht is currently offline Erik Hecht
Messages: 61
Registered: July 2009
Member
Hello Rich,

thanks for this tip, it works.

As I have seen you are a commiter of this project.
Can you patch it directly into repository?

Thanks
Erik

Rich Kulp schrieb:
> Ah, I see the difference now. EFactoryImpl.convertToString(object) used
> to do just toString(). It doesn't do that now.
>
> CDMFactoryImpl should be changed to instead of
> super.convertToString(value) it should be
>
> if (value != null)
> return value.toString();
> else
> return null;
>
> for convert rectangle, point, and dimension.
>
> Besides these are more efficient than straight serialization anyway.
>
>
> Rich Kulp wrote:
>> Serializable should NOT be needed. EFactoryImpl.convertToString() used
>> to do toString() on the object. It didn't try to do a serialize.
>>
>> The override methods in CDMFactoryImpl for creating a CDM rectangle
>> from string expects it to be a string that came from the toString()
>> call, NOT the string that results for serializing!
>>
>> Point and Dimension do the same thing.
>>
>> I don't know what changed between EMF 2.1 and EMF 2.3 but this needs
>> to be tracked down.
>>
>> Erik Hecht wrote:
>>> Hello all,
>>>
>>> there is a simple solution for this exception.
>>> Add only a "implements Serializable" to this class, I don't know why
>>> this was missing.
>>>
>>> I will post when I have built a newer version.
>>>
>>> best regards.
>>>
>>> Erik
>>>
>>> DEFERT Philippe schrieb:
>>>> Hello All,
>>>>
>>>> Thanks to Erik for the port to europa.
>>>> Thanks Marco to the work around.
>>>>
>>>> I use a composite with nebula component.
>>>>
>>>> Now, I have much less exception. there remains to me this one
>>>>
>>>> Message: Exception thrown.
>>>> Severity: Error
>>>> Plugin ID: org.eclipse.ve.java.core
>>>> Stack Trace:
>>>> java.lang.RuntimeException: java.io.NotSerializableException:
>>>> org.eclipse.ve.internal.cdm.model.Rectangle
>>>> at
>>>> org.eclipse.emf.ecore.impl.EFactoryImpl.convertToString(EFac toryImpl.java:650)
>>>>
>>>> at
>>>> org.eclipse.ve.internal.cdm.impl.CDMFactoryImpl.convertViewR ectangleToString(CDMFactoryImpl.java:377)
>>>>
>>>> at
>>>> org.eclipse.ve.internal.cdm.impl.CDMFactoryImpl.convertToStr ing(CDMFactoryImpl.java:136)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.convertToString (XMLHelperImpl.java:1570)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.getDatatypeValue( XMLSaveImpl.java:2887)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveDataTypeSingl e(XMLSaveImpl.java:1609)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1196)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMISaveImpl.writeTopObjects(X MISaveImpl.java:90)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.traverse(XMLSaveI mpl.java:585)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl. java:253)
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doSave(XMLRes ourceImpl.java:205)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:1253)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:964)
>>>>
>>>> at
>>>> org.eclipse.ve.internal.java.codegen.util.VEModelCacheUtilit y.doSaveCache(VEModelCacheUtility.java:158)
>>>>
>>>> at
>>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.primDoSave(JavaSourceTranslator.java:1397)
>>>>
>>>> at
>>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.doSave(JavaSourceTranslator.java:1411)
>>>>
>>>> at
>>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or$3.doRun(JavaSourceTranslator.java:956)
>>>>
>>>> at
>>>> org.eclipse.ve.internal.java.codegen.util.ReverseParserJob.r un(ReverseParserJob.java:56)
>>>>
>>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>> Caused by: java.io.NotSerializableException:
>>>> org.eclipse.ve.internal.cdm.model.Rectangle
>>>> at java.io.ObjectOutputStream.writeObject0(Unknown Source)
>>>> at java.io.ObjectOutputStream.writeObject(Unknown Source)
>>>> at
>>>> org.eclipse.emf.ecore.impl.EFactoryImpl.convertToString(EFac toryImpl.java:645)
>>>>
>>>> ... 34 more
>>>>
>>>>
>>>> Philippe
Re: VE out of Eclipse Europa ? [message #138630 is a reply to message #138582] Sun, 08 July 2007 00:02 Go to previous messageGo to next message
Erik Hecht is currently offline Erik Hecht
Messages: 61
Registered: July 2009
Member
Hello all,

i have done minor Bugfixes:
- missing class not found in Remote VM
- this java.io.NotSerializableException
- the original update url was missing
- I have included the source, while exporting

here is the again link where you can find my (non-official) version.

http://www.ehecht.com/eclipse_ve/ve.html

best regards

Erik


Rich Kulp schrieb:
> Ah, I see the difference now. EFactoryImpl.convertToString(object) used
> to do just toString(). It doesn't do that now.
>
> CDMFactoryImpl should be changed to instead of
> super.convertToString(value) it should be
>
> if (value != null)
> return value.toString();
> else
> return null;
>
> for convert rectangle, point, and dimension.
>
> Besides these are more efficient than straight serialization anyway.
>
>
> Rich Kulp wrote:
>> Serializable should NOT be needed. EFactoryImpl.convertToString() used
>> to do toString() on the object. It didn't try to do a serialize.
>>
>> The override methods in CDMFactoryImpl for creating a CDM rectangle
>> from string expects it to be a string that came from the toString()
>> call, NOT the string that results for serializing!
>>
>> Point and Dimension do the same thing.
>>
>> I don't know what changed between EMF 2.1 and EMF 2.3 but this needs
>> to be tracked down.
>>
>> Erik Hecht wrote:
>>> Hello all,
>>>
>>> there is a simple solution for this exception.
>>> Add only a "implements Serializable" to this class, I don't know why
>>> this was missing.
>>>
>>> I will post when I have built a newer version.
>>>
>>> best regards.
>>>
>>> Erik
>>>
>>> DEFERT Philippe schrieb:
>>>> Hello All,
>>>>
>>>> Thanks to Erik for the port to europa.
>>>> Thanks Marco to the work around.
>>>>
>>>> I use a composite with nebula component.
>>>>
>>>> Now, I have much less exception. there remains to me this one
>>>>
>>>> Message: Exception thrown.
>>>> Severity: Error
>>>> Plugin ID: org.eclipse.ve.java.core
>>>> Stack Trace:
>>>> java.lang.RuntimeException: java.io.NotSerializableException:
>>>> org.eclipse.ve.internal.cdm.model.Rectangle
>>>> at
>>>> org.eclipse.emf.ecore.impl.EFactoryImpl.convertToString(EFac toryImpl.java:650)
>>>>
>>>> at
>>>> org.eclipse.ve.internal.cdm.impl.CDMFactoryImpl.convertViewR ectangleToString(CDMFactoryImpl.java:377)
>>>>
>>>> at
>>>> org.eclipse.ve.internal.cdm.impl.CDMFactoryImpl.convertToStr ing(CDMFactoryImpl.java:136)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.convertToString (XMLHelperImpl.java:1570)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.getDatatypeValue( XMLSaveImpl.java:2887)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveDataTypeSingl e(XMLSaveImpl.java:1609)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1196)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMISaveImpl.writeTopObjects(X MISaveImpl.java:90)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.traverse(XMLSaveI mpl.java:585)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl. java:253)
>>>> at
>>>> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doSave(XMLRes ourceImpl.java:205)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:1253)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:964)
>>>>
>>>> at
>>>> org.eclipse.ve.internal.java.codegen.util.VEModelCacheUtilit y.doSaveCache(VEModelCacheUtility.java:158)
>>>>
>>>> at
>>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.primDoSave(JavaSourceTranslator.java:1397)
>>>>
>>>> at
>>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.doSave(JavaSourceTranslator.java:1411)
>>>>
>>>> at
>>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or$3.doRun(JavaSourceTranslator.java:956)
>>>>
>>>> at
>>>> org.eclipse.ve.internal.java.codegen.util.ReverseParserJob.r un(ReverseParserJob.java:56)
>>>>
>>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>> Caused by: java.io.NotSerializableException:
>>>> org.eclipse.ve.internal.cdm.model.Rectangle
>>>> at java.io.ObjectOutputStream.writeObject0(Unknown Source)
>>>> at java.io.ObjectOutputStream.writeObject(Unknown Source)
>>>> at
>>>> org.eclipse.emf.ecore.impl.EFactoryImpl.convertToString(EFac toryImpl.java:645)
>>>>
>>>> ... 34 more
>>>>
>>>>
>>>> Philippe
Re: VE out of Eclipse Europa ? [message #138642 is a reply to message #138630] Sun, 08 July 2007 02:35 Go to previous messageGo to next message
Eclipse User
Originally posted by: wolfgang_baltes.hotmail.com

Hi Erik,

thanks very much for your work. The new code works very well for me. I don't
see any errors in the log.

However, it is still necessary to have
org.eclipse.ve.java.core_1.3.0.200707070308.jar referenced in the project
properties/Java Build Path for VE to work properly. But this is clearly not
a priority compared to the other problems we saw so far. I don't think this
was necessary under eclipse 3.2/VE 1.2; it may have happend automatically
though.

Ultimately it would be nice if there were a complete VE package including
JEM, so that it can be added to the standard Europa RCP distribution.

Again, thanks for the good job and your willingness to jump in and address
this issue.

Wolfgang.


"Erik Hecht" <erik@ehecht.com> wrote in message
news:f6p9jj$c90$1@build.eclipse.org...
> Hello all,
>
> i have done minor Bugfixes:
> - missing class not found in Remote VM
> - this java.io.NotSerializableException
> - the original update url was missing
> - I have included the source, while exporting
>
> here is the again link where you can find my (non-official) version.
>
> http://www.ehecht.com/eclipse_ve/ve.html
>
> best regards
>
> Erik
>
>
> Rich Kulp schrieb:
>> Ah, I see the difference now. EFactoryImpl.convertToString(object) used
>> to do just toString(). It doesn't do that now.
>>
>> CDMFactoryImpl should be changed to instead of
>> super.convertToString(value) it should be
>>
>> if (value != null)
>> return value.toString();
>> else
>> return null;
>>
>> for convert rectangle, point, and dimension.
>>
>> Besides these are more efficient than straight serialization anyway.
>>
>>
>> Rich Kulp wrote:
>>> Serializable should NOT be needed. EFactoryImpl.convertToString() used
>>> to do toString() on the object. It didn't try to do a serialize.
>>>
>>> The override methods in CDMFactoryImpl for creating a CDM rectangle from
>>> string expects it to be a string that came from the toString() call, NOT
>>> the string that results for serializing!
>>>
>>> Point and Dimension do the same thing.
>>>
>>> I don't know what changed between EMF 2.1 and EMF 2.3 but this needs to
>>> be tracked down.
>>>
>>> Erik Hecht wrote:
>>>> Hello all,
>>>>
>>>> there is a simple solution for this exception.
>>>> Add only a "implements Serializable" to this class, I don't know why
>>>> this was missing.
>>>>
>>>> I will post when I have built a newer version.
>>>>
>>>> best regards.
>>>>
>>>> Erik
>>>>
>>>> DEFERT Philippe schrieb:
>>>>> Hello All,
>>>>>
>>>>> Thanks to Erik for the port to europa.
>>>>> Thanks Marco to the work around.
>>>>>
>>>>> I use a composite with nebula component.
>>>>>
>>>>> Now, I have much less exception. there remains to me this one
>>>>>
>>>>> Message: Exception thrown.
>>>>> Severity: Error
>>>>> Plugin ID: org.eclipse.ve.java.core
>>>>> Stack Trace:
>>>>> java.lang.RuntimeException: java.io.NotSerializableException:
>>>>> org.eclipse.ve.internal.cdm.model.Rectangle
>>>>> at
>>>>> org.eclipse.emf.ecore.impl.EFactoryImpl.convertToString(EFac toryImpl.java:650)
>>>>> at
>>>>> org.eclipse.ve.internal.cdm.impl.CDMFactoryImpl.convertViewR ectangleToString(CDMFactoryImpl.java:377)
>>>>> at
>>>>> org.eclipse.ve.internal.cdm.impl.CDMFactoryImpl.convertToStr ing(CDMFactoryImpl.java:136)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.convertToString (XMLHelperImpl.java:1570)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.getDatatypeValue( XMLSaveImpl.java:2887)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveDataTypeSingl e(XMLSaveImpl.java:1609)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1196)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMISaveImpl.writeTopObjects(X MISaveImpl.java:90)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.traverse(XMLSaveI mpl.java:585)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl. java:253)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doSave(XMLRes ourceImpl.java:205)
>>>>> at
>>>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:1253)
>>>>> at
>>>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:964)
>>>>> at
>>>>> org.eclipse.ve.internal.java.codegen.util.VEModelCacheUtilit y.doSaveCache(VEModelCacheUtility.java:158)
>>>>> at
>>>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.primDoSave(JavaSourceTranslator.java:1397)
>>>>> at
>>>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.doSave(JavaSourceTranslator.java:1411)
>>>>> at
>>>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or$3.doRun(JavaSourceTranslator.java:956)
>>>>> at
>>>>> org.eclipse.ve.internal.java.codegen.util.ReverseParserJob.r un(ReverseParserJob.java:56)
>>>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>> Caused by: java.io.NotSerializableException:
>>>>> org.eclipse.ve.internal.cdm.model.Rectangle
>>>>> at java.io.ObjectOutputStream.writeObject0(Unknown Source)
>>>>> at java.io.ObjectOutputStream.writeObject(Unknown Source)
>>>>> at
>>>>> org.eclipse.emf.ecore.impl.EFactoryImpl.convertToString(EFac toryImpl.java:645)
>>>>> ... 34 more
>>>>>
>>>>>
>>>>> Philippe
Re: VE out of Eclipse Europa ? [message #138655 is a reply to message #138642] Sun, 08 July 2007 16:50 Go to previous messageGo to next message
Erik Hecht is currently offline Erik Hecht
Messages: 61
Registered: July 2009
Member
Hello Wolfgang,

i will check it again, why it is necessary to add the jar, i have seen
some code already, which should do it automatically.

Finally I will include a complete JEM.

I'll post if I made the update.

thanks for your feedback.

Erik

exquisitus schrieb:
> Hi Erik,
>
> thanks very much for your work. The new code works very well for me. I
> don't see any errors in the log.
>
> However, it is still necessary to have
> org.eclipse.ve.java.core_1.3.0.200707070308.jar referenced in the
> project properties/Java Build Path for VE to work properly. But this is
> clearly not a priority compared to the other problems we saw so far. I
> don't think this was necessary under eclipse 3.2/VE 1.2; it may have
> happend automatically though.
>
> Ultimately it would be nice if there were a complete VE package
> including JEM, so that it can be added to the standard Europa RCP
> distribution.
>
> Again, thanks for the good job and your willingness to jump in and
> address this issue.
>
> Wolfgang.
>
>
> "Erik Hecht" <erik@ehecht.com> wrote in message
> news:f6p9jj$c90$1@build.eclipse.org...
>> Hello all,
>>
>> i have done minor Bugfixes:
>> - missing class not found in Remote VM
>> - this java.io.NotSerializableException
>> - the original update url was missing
>> - I have included the source, while exporting
>>
>> here is the again link where you can find my (non-official) version.
>>
>> http://www.ehecht.com/eclipse_ve/ve.html
>>
>> best regards
>>
>> Erik
>>
>>
>> Rich Kulp schrieb:
>>> Ah, I see the difference now. EFactoryImpl.convertToString(object)
>>> used to do just toString(). It doesn't do that now.
>>>
>>> CDMFactoryImpl should be changed to instead of
>>> super.convertToString(value) it should be
>>>
>>> if (value != null)
>>> return value.toString();
>>> else
>>> return null;
>>>
>>> for convert rectangle, point, and dimension.
>>>
>>> Besides these are more efficient than straight serialization anyway.
>>>
>>>
>>> Rich Kulp wrote:
>>>> Serializable should NOT be needed. EFactoryImpl.convertToString()
>>>> used to do toString() on the object. It didn't try to do a serialize.
>>>>
>>>> The override methods in CDMFactoryImpl for creating a CDM rectangle
>>>> from string expects it to be a string that came from the toString()
>>>> call, NOT the string that results for serializing!
>>>>
>>>> Point and Dimension do the same thing.
>>>>
>>>> I don't know what changed between EMF 2.1 and EMF 2.3 but this needs
>>>> to be tracked down.
>>>>
>>>> Erik Hecht wrote:
>>>>> Hello all,
>>>>>
>>>>> there is a simple solution for this exception.
>>>>> Add only a "implements Serializable" to this class, I don't know
>>>>> why this was missing.
>>>>>
>>>>> I will post when I have built a newer version.
>>>>>
>>>>> best regards.
>>>>>
>>>>> Erik
>>>>>
>>>>> DEFERT Philippe schrieb:
>>>>>> Hello All,
>>>>>>
>>>>>> Thanks to Erik for the port to europa.
>>>>>> Thanks Marco to the work around.
>>>>>>
>>>>>> I use a composite with nebula component.
>>>>>>
>>>>>> Now, I have much less exception. there remains to me this one
>>>>>>
>>>>>> Message: Exception thrown.
>>>>>> Severity: Error
>>>>>> Plugin ID: org.eclipse.ve.java.core
>>>>>> Stack Trace:
>>>>>> java.lang.RuntimeException: java.io.NotSerializableException:
>>>>>> org.eclipse.ve.internal.cdm.model.Rectangle
>>>>>> at
>>>>>> org.eclipse.emf.ecore.impl.EFactoryImpl.convertToString(EFac toryImpl.java:650)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.ve.internal.cdm.impl.CDMFactoryImpl.convertViewR ectangleToString(CDMFactoryImpl.java:377)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.ve.internal.cdm.impl.CDMFactoryImpl.convertToStr ing(CDMFactoryImpl.java:136)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.convertToString (XMLHelperImpl.java:1570)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.getDatatypeValue( XMLSaveImpl.java:2887)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveDataTypeSingl e(XMLSaveImpl.java:1609)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1196)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.xmi.impl.XMISaveImpl.writeTopObjects(X MISaveImpl.java:90)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.traverse(XMLSaveI mpl.java:585)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl. java:253)
>>>>>> at
>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doSave(XMLRes ourceImpl.java:205)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:1253)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:964)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.ve.internal.java.codegen.util.VEModelCacheUtilit y.doSaveCache(VEModelCacheUtility.java:158)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.primDoSave(JavaSourceTranslator.java:1397)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.doSave(JavaSourceTranslator.java:1411)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or$3.doRun(JavaSourceTranslator.java:956)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.ve.internal.java.codegen.util.ReverseParserJob.r un(ReverseParserJob.java:56)
>>>>>>
>>>>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>>> Caused by: java.io.NotSerializableException:
>>>>>> org.eclipse.ve.internal.cdm.model.Rectangle
>>>>>> at java.io.ObjectOutputStream.writeObject0(Unknown Source)
>>>>>> at java.io.ObjectOutputStream.writeObject(Unknown Source)
>>>>>> at
>>>>>> org.eclipse.emf.ecore.impl.EFactoryImpl.convertToString(EFac toryImpl.java:645)
>>>>>>
>>>>>> ... 34 more
>>>>>>
>>>>>>
>>>>>> Philippe
>
Re: VE out of Eclipse Europa ? [message #138667 is a reply to message #138655] Sun, 08 July 2007 17:18 Go to previous messageGo to next message
Eclipse User
Originally posted by: wolfgang_baltes.hotmail.com

Erik,

I just tried this: (3.2/1.2 refers to the previous combination eclipse/VE)

- Created a new project; result: no SWT libraries were in the build path.
(same as under 3.2/1.2)
- Added a Visual Class to the project; result: I can open the VE; the
palette is there, but only with Swing Controls. (under 3.2/1.2 there were
also the SWT controls)
- Check the Java Build Path and didn't find the SWT library. (under 3.2/1.2
the SWT libraries were added automatically)
- Added the SWT library and now everything looks fine: I can create a shell,
add a button, and use the Customize Layout dialog.
- The jar file is not referenced explicitely anywhere (where I looked at
least). (same as under 3.2/1.2)

In summary, the only difference between the new code and eclipse 3.2/VE 1.2
that remains is that with the old version, adding Visual Class to a project
also added the SWT libraries automatically, so that when you opened VE, SWT
controls were in the Palette.

By the way, I also confirm that since yesterday I did not get any new errors
into the log that relate to the VE integration.

Thanks,
Wolfgang.


"Erik Hecht" <erik@ehecht.com> wrote in message
news:f6r4ka$4ot$1@build.eclipse.org...
> Hello Wolfgang,
>
> i will check it again, why it is necessary to add the jar, i have seen
> some code already, which should do it automatically.
>
> Finally I will include a complete JEM.
>
> I'll post if I made the update.
>
> thanks for your feedback.
>
> Erik
>
> exquisitus schrieb:
>> Hi Erik,
>>
>> thanks very much for your work. The new code works very well for me. I
>> don't see any errors in the log.
>>
>> However, it is still necessary to have
>> org.eclipse.ve.java.core_1.3.0.200707070308.jar referenced in the project
>> properties/Java Build Path for VE to work properly. But this is clearly
>> not a priority compared to the other problems we saw so far. I don't
>> think this was necessary under eclipse 3.2/VE 1.2; it may have happend
>> automatically though.
>>
>> Ultimately it would be nice if there were a complete VE package including
>> JEM, so that it can be added to the standard Europa RCP distribution.
>>
>> Again, thanks for the good job and your willingness to jump in and
>> address this issue.
>>
>> Wolfgang.
>>
>>
>> "Erik Hecht" <erik@ehecht.com> wrote in message
>> news:f6p9jj$c90$1@build.eclipse.org...
>>> Hello all,
>>>
>>> i have done minor Bugfixes:
>>> - missing class not found in Remote VM
>>> - this java.io.NotSerializableException
>>> - the original update url was missing
>>> - I have included the source, while exporting
>>>
>>> here is the again link where you can find my (non-official) version.
>>>
>>> http://www.ehecht.com/eclipse_ve/ve.html
>>>
>>> best regards
>>>
>>> Erik
>>>
>>>
>>> Rich Kulp schrieb:
>>>> Ah, I see the difference now. EFactoryImpl.convertToString(object) used
>>>> to do just toString(). It doesn't do that now.
>>>>
>>>> CDMFactoryImpl should be changed to instead of
>>>> super.convertToString(value) it should be
>>>>
>>>> if (value != null)
>>>> return value.toString();
>>>> else
>>>> return null;
>>>>
>>>> for convert rectangle, point, and dimension.
>>>>
>>>> Besides these are more efficient than straight serialization anyway.
>>>>
>>>>
>>>> Rich Kulp wrote:
>>>>> Serializable should NOT be needed. EFactoryImpl.convertToString() used
>>>>> to do toString() on the object. It didn't try to do a serialize.
>>>>>
>>>>> The override methods in CDMFactoryImpl for creating a CDM rectangle
>>>>> from string expects it to be a string that came from the toString()
>>>>> call, NOT the string that results for serializing!
>>>>>
>>>>> Point and Dimension do the same thing.
>>>>>
>>>>> I don't know what changed between EMF 2.1 and EMF 2.3 but this needs
>>>>> to be tracked down.
>>>>>
>>>>> Erik Hecht wrote:
>>>>>> Hello all,
>>>>>>
>>>>>> there is a simple solution for this exception.
>>>>>> Add only a "implements Serializable" to this class, I don't know why
>>>>>> this was missing.
>>>>>>
>>>>>> I will post when I have built a newer version.
>>>>>>
>>>>>> best regards.
>>>>>>
>>>>>> Erik
>>>>>>
>>>>>> DEFERT Philippe schrieb:
>>>>>>> Hello All,
>>>>>>>
>>>>>>> Thanks to Erik for the port to europa.
>>>>>>> Thanks Marco to the work around.
>>>>>>>
>>>>>>> I use a composite with nebula component.
>>>>>>>
>>>>>>> Now, I have much less exception. there remains to me this one
>>>>>>>
>>>>>>> Message: Exception thrown.
>>>>>>> Severity: Error
>>>>>>> Plugin ID: org.eclipse.ve.java.core
>>>>>>> Stack Trace:
>>>>>>> java.lang.RuntimeException: java.io.NotSerializableException:
>>>>>>> org.eclipse.ve.internal.cdm.model.Rectangle
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.impl.EFactoryImpl.convertToString(EFac toryImpl.java:650)
>>>>>>> at
>>>>>>> org.eclipse.ve.internal.cdm.impl.CDMFactoryImpl.convertViewR ectangleToString(CDMFactoryImpl.java:377)
>>>>>>> at
>>>>>>> org.eclipse.ve.internal.cdm.impl.CDMFactoryImpl.convertToStr ing(CDMFactoryImpl.java:136)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.convertToString (XMLHelperImpl.java:1570)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.getDatatypeValue( XMLSaveImpl.java:2887)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveDataTypeSingl e(XMLSaveImpl.java:1609)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1196)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMISaveImpl.writeTopObjects(X MISaveImpl.java:90)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.traverse(XMLSaveI mpl.java:585)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl. java:253)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doSave(XMLRes ourceImpl.java:205)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:1253)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:964)
>>>>>>> at
>>>>>>> org.eclipse.ve.internal.java.codegen.util.VEModelCacheUtilit y.doSaveCache(VEModelCacheUtility.java:158)
>>>>>>> at
>>>>>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.primDoSave(JavaSourceTranslator.java:1397)
>>>>>>> at
>>>>>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.doSave(JavaSourceTranslator.java:1411)
>>>>>>> at
>>>>>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or$3.doRun(JavaSourceTranslator.java:956)
>>>>>>> at
>>>>>>> org.eclipse.ve.internal.java.codegen.util.ReverseParserJob.r un(ReverseParserJob.java:56)
>>>>>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>>>> Caused by: java.io.NotSerializableException:
>>>>>>> org.eclipse.ve.internal.cdm.model.Rectangle
>>>>>>> at java.io.ObjectOutputStream.writeObject0(Unknown Source)
>>>>>>> at java.io.ObjectOutputStream.writeObject(Unknown Source)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.impl.EFactoryImpl.convertToString(EFac toryImpl.java:645)
>>>>>>> ... 34 more
>>>>>>>
>>>>>>>
>>>>>>> Philippe
>>
Re: VE out of Eclipse Europa ? [message #138679 is a reply to message #138655] Sun, 08 July 2007 17:23 Go to previous messageGo to next message
Eclipse User
Originally posted by: wolfgang_baltes.hotmail.com

One more thing Eric:

I removed the reference to the jar library from my older projects and VE
opens properly and works fine. So you were correct in assuming that things
already happen automatically.

Wolfgang.

"Erik Hecht" <erik@ehecht.com> wrote in message
news:f6r4ka$4ot$1@build.eclipse.org...
> Hello Wolfgang,
>
> i will check it again, why it is necessary to add the jar, i have seen
> some code already, which should do it automatically.
>
> Finally I will include a complete JEM.
>
> I'll post if I made the update.
>
> thanks for your feedback.
>
> Erik
>
> exquisitus schrieb:
>> Hi Erik,
>>
>> thanks very much for your work. The new code works very well for me. I
>> don't see any errors in the log.
>>
>> However, it is still necessary to have
>> org.eclipse.ve.java.core_1.3.0.200707070308.jar referenced in the project
>> properties/Java Build Path for VE to work properly. But this is clearly
>> not a priority compared to the other problems we saw so far. I don't
>> think this was necessary under eclipse 3.2/VE 1.2; it may have happend
>> automatically though.
>>
>> Ultimately it would be nice if there were a complete VE package including
>> JEM, so that it can be added to the standard Europa RCP distribution.
>>
>> Again, thanks for the good job and your willingness to jump in and
>> address this issue.
>>
>> Wolfgang.
>>
>>
>> "Erik Hecht" <erik@ehecht.com> wrote in message
>> news:f6p9jj$c90$1@build.eclipse.org...
>>> Hello all,
>>>
>>> i have done minor Bugfixes:
>>> - missing class not found in Remote VM
>>> - this java.io.NotSerializableException
>>> - the original update url was missing
>>> - I have included the source, while exporting
>>>
>>> here is the again link where you can find my (non-official) version.
>>>
>>> http://www.ehecht.com/eclipse_ve/ve.html
>>>
>>> best regards
>>>
>>> Erik
>>>
>>>
>>> Rich Kulp schrieb:
>>>> Ah, I see the difference now. EFactoryImpl.convertToString(object) used
>>>> to do just toString(). It doesn't do that now.
>>>>
>>>> CDMFactoryImpl should be changed to instead of
>>>> super.convertToString(value) it should be
>>>>
>>>> if (value != null)
>>>> return value.toString();
>>>> else
>>>> return null;
>>>>
>>>> for convert rectangle, point, and dimension.
>>>>
>>>> Besides these are more efficient than straight serialization anyway.
>>>>
>>>>
>>>> Rich Kulp wrote:
>>>>> Serializable should NOT be needed. EFactoryImpl.convertToString() used
>>>>> to do toString() on the object. It didn't try to do a serialize.
>>>>>
>>>>> The override methods in CDMFactoryImpl for creating a CDM rectangle
>>>>> from string expects it to be a string that came from the toString()
>>>>> call, NOT the string that results for serializing!
>>>>>
>>>>> Point and Dimension do the same thing.
>>>>>
>>>>> I don't know what changed between EMF 2.1 and EMF 2.3 but this needs
>>>>> to be tracked down.
>>>>>
>>>>> Erik Hecht wrote:
>>>>>> Hello all,
>>>>>>
>>>>>> there is a simple solution for this exception.
>>>>>> Add only a "implements Serializable" to this class, I don't know why
>>>>>> this was missing.
>>>>>>
>>>>>> I will post when I have built a newer version.
>>>>>>
>>>>>> best regards.
>>>>>>
>>>>>> Erik
>>>>>>
>>>>>> DEFERT Philippe schrieb:
>>>>>>> Hello All,
>>>>>>>
>>>>>>> Thanks to Erik for the port to europa.
>>>>>>> Thanks Marco to the work around.
>>>>>>>
>>>>>>> I use a composite with nebula component.
>>>>>>>
>>>>>>> Now, I have much less exception. there remains to me this one
>>>>>>>
>>>>>>> Message: Exception thrown.
>>>>>>> Severity: Error
>>>>>>> Plugin ID: org.eclipse.ve.java.core
>>>>>>> Stack Trace:
>>>>>>> java.lang.RuntimeException: java.io.NotSerializableException:
>>>>>>> org.eclipse.ve.internal.cdm.model.Rectangle
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.impl.EFactoryImpl.convertToString(EFac toryImpl.java:650)
>>>>>>> at
>>>>>>> org.eclipse.ve.internal.cdm.impl.CDMFactoryImpl.convertViewR ectangleToString(CDMFactoryImpl.java:377)
>>>>>>> at
>>>>>>> org.eclipse.ve.internal.cdm.impl.CDMFactoryImpl.convertToStr ing(CDMFactoryImpl.java:136)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.convertToString (XMLHelperImpl.java:1570)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.getDatatypeValue( XMLSaveImpl.java:2887)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveDataTypeSingl e(XMLSaveImpl.java:1609)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1196)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMISaveImpl.writeTopObjects(X MISaveImpl.java:90)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.traverse(XMLSaveI mpl.java:585)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl. java:253)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doSave(XMLRes ourceImpl.java:205)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:1253)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:964)
>>>>>>> at
>>>>>>> org.eclipse.ve.internal.java.codegen.util.VEModelCacheUtilit y.doSaveCache(VEModelCacheUtility.java:158)
>>>>>>> at
>>>>>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.primDoSave(JavaSourceTranslator.java:1397)
>>>>>>> at
>>>>>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.doSave(JavaSourceTranslator.java:1411)
>>>>>>> at
>>>>>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or$3.doRun(JavaSourceTranslator.java:956)
>>>>>>> at
>>>>>>> org.eclipse.ve.internal.java.codegen.util.ReverseParserJob.r un(ReverseParserJob.java:56)
>>>>>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>>>> Caused by: java.io.NotSerializableException:
>>>>>>> org.eclipse.ve.internal.cdm.model.Rectangle
>>>>>>> at java.io.ObjectOutputStream.writeObject0(Unknown Source)
>>>>>>> at java.io.ObjectOutputStream.writeObject(Unknown Source)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.impl.EFactoryImpl.convertToString(EFac toryImpl.java:645)
>>>>>>> ... 34 more
>>>>>>>
>>>>>>>
>>>>>>> Philippe
>>
Re: VE out of Eclipse Europa ? [message #138703 is a reply to message #138655] Sun, 08 July 2007 20:56 Go to previous messageGo to next message
Marco Maniscalco is currently offline Marco Maniscalco
Messages: 30
Registered: July 2009
Member
Hello Erik,

does java code-completion work while using ve?

Greets
Marco

"Erik Hecht" <erik@ehecht.com> schrieb im Newsbeitrag
news:f6r4ka$4ot$1@build.eclipse.org...
> Hello Wolfgang,
>
> i will check it again, why it is necessary to add the jar, i have seen
> some code already, which should do it automatically.
>
> Finally I will include a complete JEM.
>
> I'll post if I made the update.
>
> thanks for your feedback.
>
> Erik
>
> exquisitus schrieb:
>> Hi Erik,
>>
>> thanks very much for your work. The new code works very well for me. I
>> don't see any errors in the log.
>>
>> However, it is still necessary to have
>> org.eclipse.ve.java.core_1.3.0.200707070308.jar referenced in the project
>> properties/Java Build Path for VE to work properly. But this is clearly
>> not a priority compared to the other problems we saw so far. I don't
>> think this was necessary under eclipse 3.2/VE 1.2; it may have happend
>> automatically though.
>>
>> Ultimately it would be nice if there were a complete VE package including
>> JEM, so that it can be added to the standard Europa RCP distribution.
>>
>> Again, thanks for the good job and your willingness to jump in and
>> address this issue.
>>
>> Wolfgang.
>>
>>
>> "Erik Hecht" <erik@ehecht.com> wrote in message
>> news:f6p9jj$c90$1@build.eclipse.org...
>>> Hello all,
>>>
>>> i have done minor Bugfixes:
>>> - missing class not found in Remote VM
>>> - this java.io.NotSerializableException
>>> - the original update url was missing
>>> - I have included the source, while exporting
>>>
>>> here is the again link where you can find my (non-official) version.
>>>
>>> http://www.ehecht.com/eclipse_ve/ve.html
>>>
>>> best regards
>>>
>>> Erik
>>>
>>>
>>> Rich Kulp schrieb:
>>>> Ah, I see the difference now. EFactoryImpl.convertToString(object) used
>>>> to do just toString(). It doesn't do that now.
>>>>
>>>> CDMFactoryImpl should be changed to instead of
>>>> super.convertToString(value) it should be
>>>>
>>>> if (value != null)
>>>> return value.toString();
>>>> else
>>>> return null;
>>>>
>>>> for convert rectangle, point, and dimension.
>>>>
>>>> Besides these are more efficient than straight serialization anyway.
>>>>
>>>>
>>>> Rich Kulp wrote:
>>>>> Serializable should NOT be needed. EFactoryImpl.convertToString() used
>>>>> to do toString() on the object. It didn't try to do a serialize.
>>>>>
>>>>> The override methods in CDMFactoryImpl for creating a CDM rectangle
>>>>> from string expects it to be a string that came from the toString()
>>>>> call, NOT the string that results for serializing!
>>>>>
>>>>> Point and Dimension do the same thing.
>>>>>
>>>>> I don't know what changed between EMF 2.1 and EMF 2.3 but this needs
>>>>> to be tracked down.
>>>>>
>>>>> Erik Hecht wrote:
>>>>>> Hello all,
>>>>>>
>>>>>> there is a simple solution for this exception.
>>>>>> Add only a "implements Serializable" to this class, I don't know why
>>>>>> this was missing.
>>>>>>
>>>>>> I will post when I have built a newer version.
>>>>>>
>>>>>> best regards.
>>>>>>
>>>>>> Erik
>>>>>>
>>>>>> DEFERT Philippe schrieb:
>>>>>>> Hello All,
>>>>>>>
>>>>>>> Thanks to Erik for the port to europa.
>>>>>>> Thanks Marco to the work around.
>>>>>>>
>>>>>>> I use a composite with nebula component.
>>>>>>>
>>>>>>> Now, I have much less exception. there remains to me this one
>>>>>>>
>>>>>>> Message: Exception thrown.
>>>>>>> Severity: Error
>>>>>>> Plugin ID: org.eclipse.ve.java.core
>>>>>>> Stack Trace:
>>>>>>> java.lang.RuntimeException: java.io.NotSerializableException:
>>>>>>> org.eclipse.ve.internal.cdm.model.Rectangle
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.impl.EFactoryImpl.convertToString(EFac toryImpl.java:650)
>>>>>>> at
>>>>>>> org.eclipse.ve.internal.cdm.impl.CDMFactoryImpl.convertViewR ectangleToString(CDMFactoryImpl.java:377)
>>>>>>> at
>>>>>>> org.eclipse.ve.internal.cdm.impl.CDMFactoryImpl.convertToStr ing(CDMFactoryImpl.java:136)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.convertToString (XMLHelperImpl.java:1570)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.getDatatypeValue( XMLSaveImpl.java:2887)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveDataTypeSingl e(XMLSaveImpl.java:1609)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1196)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMISaveImpl.writeTopObjects(X MISaveImpl.java:90)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.traverse(XMLSaveI mpl.java:585)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl. java:253)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doSave(XMLRes ourceImpl.java:205)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:1253)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:964)
>>>>>>> at
>>>>>>> org.eclipse.ve.internal.java.codegen.util.VEModelCacheUtilit y.doSaveCache(VEModelCacheUtility.java:158)
>>>>>>> at
>>>>>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.primDoSave(JavaSourceTranslator.java:1397)
>>>>>>> at
>>>>>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.doSave(JavaSourceTranslator.java:1411)
>>>>>>> at
>>>>>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or$3.doRun(JavaSourceTranslator.java:956)
>>>>>>> at
>>>>>>> org.eclipse.ve.internal.java.codegen.util.ReverseParserJob.r un(ReverseParserJob.java:56)
>>>>>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>>>> Caused by: java.io.NotSerializableException:
>>>>>>> org.eclipse.ve.internal.cdm.model.Rectangle
>>>>>>> at java.io.ObjectOutputStream.writeObject0(Unknown Source)
>>>>>>> at java.io.ObjectOutputStream.writeObject(Unknown Source)
>>>>>>> at
>>>>>>> org.eclipse.emf.ecore.impl.EFactoryImpl.convertToString(EFac toryImpl.java:645)
>>>>>>> ... 34 more
>>>>>>>
>>>>>>>
>>>>>>> Philippe
>>
Re: VE out of Eclipse Europa ? [message #138714 is a reply to message #138703] Sun, 08 July 2007 21:33 Go to previous messageGo to next message
Erik Hecht is currently offline Erik Hecht
Messages: 61
Registered: July 2009
Member
Hello Marco,

normally it does.

Greetings
Erik


Marco Maniscalco schrieb:
> Hello Erik,
>
> does java code-completion work while using ve?
>
> Greets
> Marco
>
> "Erik Hecht" <erik@ehecht.com> schrieb im Newsbeitrag
> news:f6r4ka$4ot$1@build.eclipse.org...
>> Hello Wolfgang,
>>
>> i will check it again, why it is necessary to add the jar, i have seen
>> some code already, which should do it automatically.
>>
>> Finally I will include a complete JEM.
>>
>> I'll post if I made the update.
>>
>> thanks for your feedback.
>>
>> Erik
>>
>> exquisitus schrieb:
>>> Hi Erik,
>>>
>>> thanks very much for your work. The new code works very well for me.
>>> I don't see any errors in the log.
>>>
>>> However, it is still necessary to have
>>> org.eclipse.ve.java.core_1.3.0.200707070308.jar referenced in the
>>> project properties/Java Build Path for VE to work properly. But this
>>> is clearly not a priority compared to the other problems we saw so
>>> far. I don't think this was necessary under eclipse 3.2/VE 1.2; it
>>> may have happend automatically though.
>>>
>>> Ultimately it would be nice if there were a complete VE package
>>> including JEM, so that it can be added to the standard Europa RCP
>>> distribution.
>>>
>>> Again, thanks for the good job and your willingness to jump in and
>>> address this issue.
>>>
>>> Wolfgang.
>>>
>>>
>>> "Erik Hecht" <erik@ehecht.com> wrote in message
>>> news:f6p9jj$c90$1@build.eclipse.org...
>>>> Hello all,
>>>>
>>>> i have done minor Bugfixes:
>>>> - missing class not found in Remote VM
>>>> - this java.io.NotSerializableException
>>>> - the original update url was missing
>>>> - I have included the source, while exporting
>>>>
>>>> here is the again link where you can find my (non-official) version.
>>>>
>>>> http://www.ehecht.com/eclipse_ve/ve.html
>>>>
>>>> best regards
>>>>
>>>> Erik
>>>>
>>>>
>>>> Rich Kulp schrieb:
>>>>> Ah, I see the difference now. EFactoryImpl.convertToString(object)
>>>>> used to do just toString(). It doesn't do that now.
>>>>>
>>>>> CDMFactoryImpl should be changed to instead of
>>>>> super.convertToString(value) it should be
>>>>>
>>>>> if (value != null)
>>>>> return value.toString();
>>>>> else
>>>>> return null;
>>>>>
>>>>> for convert rectangle, point, and dimension.
>>>>>
>>>>> Besides these are more efficient than straight serialization anyway.
>>>>>
>>>>>
>>>>> Rich Kulp wrote:
>>>>>> Serializable should NOT be needed. EFactoryImpl.convertToString()
>>>>>> used to do toString() on the object. It didn't try to do a serialize.
>>>>>>
>>>>>> The override methods in CDMFactoryImpl for creating a CDM
>>>>>> rectangle from string expects it to be a string that came from the
>>>>>> toString() call, NOT the string that results for serializing!
>>>>>>
>>>>>> Point and Dimension do the same thing.
>>>>>>
>>>>>> I don't know what changed between EMF 2.1 and EMF 2.3 but this
>>>>>> needs to be tracked down.
>>>>>>
>>>>>> Erik Hecht wrote:
>>>>>>> Hello all,
>>>>>>>
>>>>>>> there is a simple solution for this exception.
>>>>>>> Add only a "implements Serializable" to this class, I don't know
>>>>>>> why this was missing.
>>>>>>>
>>>>>>> I will post when I have built a newer version.
>>>>>>>
>>>>>>> best regards.
>>>>>>>
>>>>>>> Erik
>>>>>>>
>>>>>>> DEFERT Philippe schrieb:
>>>>>>>> Hello All,
>>>>>>>>
>>>>>>>> Thanks to Erik for the port to europa.
>>>>>>>> Thanks Marco to the work around.
>>>>>>>>
>>>>>>>> I use a composite with nebula component.
>>>>>>>>
>>>>>>>> Now, I have much less exception. there remains to me this one
>>>>>>>>
>>>>>>>> Message: Exception thrown.
>>>>>>>> Severity: Error
>>>>>>>> Plugin ID: org.eclipse.ve.java.core
>>>>>>>> Stack Trace:
>>>>>>>> java.lang.RuntimeException: java.io.NotSerializableException:
>>>>>>>> org.eclipse.ve.internal.cdm.model.Rectangle
>>>>>>>> at
>>>>>>>> org.eclipse.emf.ecore.impl.EFactoryImpl.convertToString(EFac toryImpl.java:650)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.ve.internal.cdm.impl.CDMFactoryImpl.convertViewR ectangleToString(CDMFactoryImpl.java:377)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.ve.internal.cdm.impl.CDMFactoryImpl.convertToStr ing(CDMFactoryImpl.java:136)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.convertToString (XMLHelperImpl.java:1570)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.getDatatypeValue( XMLSaveImpl.java:2887)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveDataTypeSingl e(XMLSaveImpl.java:1609)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1196)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMISaveImpl.writeTopObjects(X MISaveImpl.java:90)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.traverse(XMLSaveI mpl.java:585)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl. java:253)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doSave(XMLRes ourceImpl.java:205)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:1253)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:964)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.ve.internal.java.codegen.util.VEModelCacheUtilit y.doSaveCache(VEModelCacheUtility.java:158)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.primDoSave(JavaSourceTranslator.java:1397)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.doSave(JavaSourceTranslator.java:1411)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or$3.doRun(JavaSourceTranslator.java:956)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.ve.internal.java.codegen.util.ReverseParserJob.r un(ReverseParserJob.java:56)
>>>>>>>>
>>>>>>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>>>>> Caused by: java.io.NotSerializableException:
>>>>>>>> org.eclipse.ve.internal.cdm.model.Rectangle
>>>>>>>> at java.io.ObjectOutputStream.writeObject0(Unknown Source)
>>>>>>>> at java.io.ObjectOutputStream.writeObject(Unknown Source)
>>>>>>>> at
>>>>>>>> org.eclipse.emf.ecore.impl.EFactoryImpl.convertToString(EFac toryImpl.java:645)
>>>>>>>>
>>>>>>>> ... 34 more
>>>>>>>>
>>>>>>>>
>>>>>>>> Philippe
>>>
>
Re: VE out of Eclipse Europa ? [message #138739 is a reply to message #138619] Mon, 09 July 2007 14:04 Go to previous messageGo to next message
Eclipse User
Originally posted by: richkulp.us.NO_SPAM.ibm.com

This is a multi-part message in MIME format.
--------------050109010603040002080502
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

I was a committer, but at this time I no longer have an environment set
up to update, compile, and test VE. I've had to move on to other things
in my job.

I'm leery of updating it directly because I can't test it. Even a simple
little change like this can cause problems.

The best I can do is to give you the patch file for it (which I have
attached to this). I couldn't even compile this because I didn't have
the environment. I simply downloaded the CDE project and changed the
file. You'll need to apply that patch and make sure it works.



Erik Hecht wrote:
> Hello Rich,
>
> thanks for this tip, it works.
>
> As I have seen you are a commiter of this project.
> Can you patch it directly into repository?
>
> Thanks
Sorry,
Rich

--------------050109010603040002080502
Content-Type: text/plain;
name="CDMFactoryImpl.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="CDMFactoryImpl.txt"

### Eclipse Workspace Patch 1.0
#P org.eclipse.ve.cde
Index: cdm/org/eclipse/ve/internal/cdm/impl/CDMFactoryImpl.java
============================================================ =======
RCS file: /cvsroot/tools/org.eclipse.ve.cde/cdm/org/eclipse/ve/interna l/cdm/impl/CDMFactoryImpl.java,v
retrieving revision 1.11
diff -u -r1.11 CDMFactoryImpl.java
--- cdm/org/eclipse/ve/internal/cdm/impl/CDMFactoryImpl.java 25 May 2007 04:09:35 -0000 1.11
+++ cdm/org/eclipse/ve/internal/cdm/impl/CDMFactoryImpl.java 9 Jul 2007 13:59:21 -0000
@@ -306,7 +306,7 @@
* @generated
*/
public String convertViewDimensionToString(EDataType eDataType, Object instanceValue) {
- return super.convertToString(instanceValue);
+ return instanceValue != null ? instanceValue.toString() : null;
}

public Point createViewPointFromString(EDataType eDataType, String initialValue) {
@@ -336,7 +336,7 @@
* @generated
*/
public String convertViewPointToString(EDataType eDataType, Object instanceValue) {
- return super.convertToString(instanceValue);
+ return return instanceValue != null ? instanceValue.toString() : null;
}

public Rectangle createViewRectangleFromString(EDataType eDataType, String initialValue) {
@@ -374,7 +374,7 @@
* @generated
*/
public String convertViewRectangleToString(EDataType eDataType, Object instanceValue) {
- return super.convertToString(instanceValue);
+ return instanceValue != null ? instanceValue.toString() : null;
}

/**

--------------050109010603040002080502--
Re: VE out of Eclipse Europa ? [message #138750 is a reply to message #138630] Tue, 10 July 2007 20:47 Go to previous messageGo to next message
Marco Maniscalco is currently offline Marco Maniscalco
Messages: 30
Registered: July 2009
Member
Hello all,

I found a very strange (reproducable) defect in VE. Maybe any (ex)committers
know that issue.

java.lang.NullPointerException
at
org.eclipse.ve.internal.java.codegen.model.BeanPart.getSimpl eName(BeanPart.java:273)
at
org.eclipse.ve.internal.java.codegen.model.BeanPart.getImpli citName(BeanPart.java:282)
at
org.eclipse.ve.internal.java.codegen.model.BeanPart.getSimpl eName(BeanPart.java:276)
at
org.eclipse.ve.internal.java.codegen.model.BeanDeclModel.get UnreferencedBeanParts(BeanDeclModel.java:791)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.buildCompositionModel(JavaSourceTranslator.java:765)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.reverseParse(JavaSourceTranslator.java:874)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or$2.doRun(JavaSourceTranslator.java:921)
at
org.eclipse.ve.internal.java.codegen.util.ReverseParserJob.r un(ReverseParserJob.java:56)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

I have the following:

Simple SWT Composite with some random controls on it. All works great. But
if I declare a private Member, lets say, a HashMap, and use it in a member
function, ve crashes with a NullPointerException. VE only crashes if I
access the member!

Following code works without Exception:

public void myCustomMethodInVisualClass() {
// custom code here ....
// myMember.doSomething();
// custom code here ....
}

And this code crashes VE with "Parser Error" and NullPointerException:

public void myCustomMethodInVisualClass() {
// custom code here ....
myMember.doSomething();
// custom code here ....
}

I found out, that if I have custom members in my Visual-Class, ant thye are
null by default like this:

private MyStuff object;

then VE crashes. If I instatiate like:

private MyStuff object = new MyStuff();

everything works (all this is absolutely reproducable.)

Does *any*body explain that?? ;-)


I guess alot of people have this problem. If you make changes to a visual
file, for example declaring a lazy-loaded member, and later you try to open
your class in VE and it crashes with a parser exception, it is hard to
figure out.


Greetings Marco

"Erik Hecht" <erik@ehecht.com> schrieb im Newsbeitrag
news:f6p9jj$c90$1@build.eclipse.org...
> Hello all,
>
> i have done minor Bugfixes:
> - missing class not found in Remote VM
> - this java.io.NotSerializableException
> - the original update url was missing
> - I have included the source, while exporting
>
> here is the again link where you can find my (non-official) version.
>
> http://www.ehecht.com/eclipse_ve/ve.html
>
> best regards
>
> Erik
>
>
> Rich Kulp schrieb:
>> Ah, I see the difference now. EFactoryImpl.convertToString(object) used
>> to do just toString(). It doesn't do that now.
>>
>> CDMFactoryImpl should be changed to instead of
>> super.convertToString(value) it should be
>>
>> if (value != null)
>> return value.toString();
>> else
>> return null;
>>
>> for convert rectangle, point, and dimension.
>>
>> Besides these are more efficient than straight serialization anyway.
>>
>>
>> Rich Kulp wrote:
>>> Serializable should NOT be needed. EFactoryImpl.convertToString() used
>>> to do toString() on the object. It didn't try to do a serialize.
>>>
>>> The override methods in CDMFactoryImpl for creating a CDM rectangle from
>>> string expects it to be a string that came from the toString() call, NOT
>>> the string that results for serializing!
>>>
>>> Point and Dimension do the same thing.
>>>
>>> I don't know what changed between EMF 2.1 and EMF 2.3 but this needs to
>>> be tracked down.
>>>
>>> Erik Hecht wrote:
>>>> Hello all,
>>>>
>>>> there is a simple solution for this exception.
>>>> Add only a "implements Serializable" to this class, I don't know why
>>>> this was missing.
>>>>
>>>> I will post when I have built a newer version.
>>>>
>>>> best regards.
>>>>
>>>> Erik
>>>>
>>>> DEFERT Philippe schrieb:
>>>>> Hello All,
>>>>>
>>>>> Thanks to Erik for the port to europa.
>>>>> Thanks Marco to the work around.
>>>>>
>>>>> I use a composite with nebula component.
>>>>>
>>>>> Now, I have much less exception. there remains to me this one
>>>>>
>>>>> Message: Exception thrown.
>>>>> Severity: Error
>>>>> Plugin ID: org.eclipse.ve.java.core
>>>>> Stack Trace:
>>>>> java.lang.RuntimeException: java.io.NotSerializableException:
>>>>> org.eclipse.ve.internal.cdm.model.Rectangle
>>>>> at
>>>>> org.eclipse.emf.ecore.impl.EFactoryImpl.convertToString(EFac toryImpl.java:650)
>>>>> at
>>>>> org.eclipse.ve.internal.cdm.impl.CDMFactoryImpl.convertViewR ectangleToString(CDMFactoryImpl.java:377)
>>>>> at
>>>>> org.eclipse.ve.internal.cdm.impl.CDMFactoryImpl.convertToStr ing(CDMFactoryImpl.java:136)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.convertToString (XMLHelperImpl.java:1570)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.getDatatypeValue( XMLSaveImpl.java:2887)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveDataTypeSingl e(XMLSaveImpl.java:1609)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1196)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2291)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1464)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMISaveImpl.writeTopObjects(X MISaveImpl.java:90)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.traverse(XMLSaveI mpl.java:585)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl. java:253)
>>>>> at
>>>>> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doSave(XMLRes ourceImpl.java:205)
>>>>> at
>>>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:1253)
>>>>> at
>>>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:964)
>>>>> at
>>>>> org.eclipse.ve.internal.java.codegen.util.VEModelCacheUtilit y.doSaveCache(VEModelCacheUtility.java:158)
>>>>> at
>>>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.primDoSave(JavaSourceTranslator.java:1397)
>>>>> at
>>>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.doSave(JavaSourceTranslator.java:1411)
>>>>> at
>>>>> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or$3.doRun(JavaSourceTranslator.java:956)
>>>>> at
>>>>> org.eclipse.ve.internal.java.codegen.util.ReverseParserJob.r un(ReverseParserJob.java:56)
>>>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>> Caused by: java.io.NotSerializableException:
>>>>> org.eclipse.ve.internal.cdm.model.Rectangle
>>>>> at java.io.ObjectOutputStream.writeObject0(Unknown Source)
>>>>> at java.io.ObjectOutputStream.writeObject(Unknown Source)
>>>>> at
>>>>> org.eclipse.emf.ecore.impl.EFactoryImpl.convertToString(EFac toryImpl.java:645)
>>>>> ... 34 more
>>>>>
>>>>>
>>>>> Philippe
Re: VE out of Eclipse Europa ? [message #138762 is a reply to message #138750] Tue, 10 July 2007 23:39 Go to previous messageGo to previous message
Eclipse User
Originally posted by: richkulp.us.NO_SPAM.ibm.com

VE tries to execute your code. If you have an uninitialized member and
you don't have an appropriate lazy getter method to initialize it, the
VE doesn't know how or even if it should be initialized. So it uses the
null and throws an exception.

I agree the message is not good. That could improved.

Rich
Previous Topic:Perhaps A Dumb VE/Europa Question
Next Topic:VE, Eclipse 3.3, and Vista
Goto Forum:
  


Current Time: Thu Oct 23 17:54:25 GMT 2014

Powered by FUDForum. Page generated in 0.07582 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software