Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Cann't create Visual Class with VE
Cann't create Visual Class with VE [message #56764] Sat, 21 August 2004 23:28 Go to next message
Eclipse UserFriend
Originally posted by: joyofstudy2003.yahoo.com

This is a multi-part message in MIME format.
--------------040600070403080705040701
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hi all,
When I tried to create a new Java Visual Class which inherits
javax.swing.JFrame, I always got the error "Creation of element failed.
See error log for more details".
In the log, it said that
java.io.FileNotFoundException: VisualClassSourceWizardSkeleton.java (The
system cannot find the file specified)
.....
I attached the log file here, anyway.
I use eclipse SDK 3.0 Win32, EMF-SDO-XSD SDK 2.0.0, GEF SDK 3.0, VE SDK
1.0M2.
Can anyone help me with this problem?
Thanks in advance
Mark

--------------040600070403080705040701
Content-Type: text/plain;
name=".log"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename=".log"

!SESSION Aug 22, 2004 08:34:19.171 ---------------------------------------------
eclipse.buildId=unknown
java.version=1.4.1_02
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_AU

!ENTRY org.eclipse.emf.codegen 4 0 Aug 22, 2004 08:34:19.171
!MESSAGE VisualClassSourceWizardSkeleton.java (The system cannot find the file specified)
!STACK 0
java.io.FileNotFoundException: VisualClassSourceWizardSkeleton.java (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(U nknown Source)
at java.net.URL.openStream(Unknown Source)
at org.eclipse.emf.codegen.jet.JETCompiler.openStream(JETCompil er.java:544)
at org.eclipse.emf.codegen.jet.JETCompiler.handleDirective(JETC ompiler.java:164)
at org.eclipse.emf.codegen.jet.JETParser$DelegatingListener.han dleDirective(JETParser.java:133)
at org.eclipse.emf.codegen.jet.JETParser$Directive.accept(JETPa rser.java:506)
at org.eclipse.emf.codegen.jet.JETParser.parse(JETParser.java:5 75)
at org.eclipse.emf.codegen.jet.JETCompiler.parse(JETCompiler.ja va:439)
at org.eclipse.emf.codegen.jet.JETCompiler.parse(JETCompiler.ja va:432)
at org.eclipse.ve.internal.java.vce.templates.TemplateObjectEmi tter.parseTemplate(TemplateObjectEmitter.java:163)
at org.eclipse.ve.internal.java.vce.templates.TemplateObjectEmi tter.getClassName(TemplateObjectEmitter.java:106)
at org.eclipse.ve.internal.java.vce.templates.TemplateObjectFac tory.getClassInstance(TemplateObjectFactory.java:113)
at org.eclipse.ve.internal.java.codegen.wizards.NewVisualClassC reationWizard.getGeneratorInstance(NewVisualClassCreationWiz ard.java:101)
at org.eclipse.ve.internal.java.codegen.wizards.NewVisualClassC reationWizard.applyContributor(NewVisualClassCreationWizard. java:275)
at org.eclipse.ve.internal.java.codegen.wizards.NewVisualClassC reationWizard.finishPage(NewVisualClassCreationWizard.java:3 04)
at org.eclipse.jdt.internal.ui.wizards.NewElementWizard$2.run(N ewElementWizard.java:108)
at org.eclipse.jdt.internal.core.BatchOperation.executeOperatio n(BatchOperation.java:34)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaMod elOperation.java:700)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1673)
at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:3246)
at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter .run(WorkbenchRunnableAdapter.java:65)
at org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:101)

!ENTRY org.eclipse.ve.java.core 4 0 Aug 22, 2004 08:34:22.593
!MESSAGE SyntaxError: typeName cannot be resolved

!ENTRY org.eclipse.jdt.ui 4 10001 Aug 22, 2004 08:34:22.640
!MESSAGE Internal Error
!STACK 0
java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:284)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 752)
at org.eclipse.jdt.internal.ui.wizards.NewElementWizard.perform Finish(NewElementWizard.java:115)
at org.eclipse.ve.internal.java.codegen.wizards.NewVisualClassC reationWizard.performFinish(NewVisualClassCreationWizard.jav a:359)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:609)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:305)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:506)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2772)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2431)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:668 )
at org.eclipse.jface.window.Window.open(Window.java:648)
at org.eclipse.ui.internal.ide.NewWizardShortcutAction.run(NewW izardShortcutAction.java:96)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:881 )
at org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:915)
at org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:866)
at org.eclipse.jface.action.ActionContributionItem$7.handleEven t(ActionContributionItem.java:785)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2772)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2431)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:96)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:335)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
at org.eclipse.core.launcher.Main.run(Main.java:644)
at org.eclipse.core.launcher.Main.main(Main.java:628)
Caused by: java.lang.NullPointerException
at org.eclipse.ve.internal.java.codegen.wizards.NewVisualClassC reationWizard.applyContributor(NewVisualClassCreationWizard. java:280)
at org.eclipse.ve.internal.java.codegen.wizards.NewVisualClassC reationWizard.finishPage(NewVisualClassCreationWizard.java:3 04)
at org.eclipse.jdt.internal.ui.wizards.NewElementWizard$2.run(N ewElementWizard.java:108)
at org.eclipse.jdt.internal.core.BatchOperation.executeOperatio n(BatchOperation.java:34)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaMod elOperation.java:700)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1673)
at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:3246)
at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter .run(WorkbenchRunnableAdapter.java:65)
at org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:101)
Root exception:
java.lang.NullPointerException
at org.eclipse.ve.internal.java.codegen.wizards.NewVisualClassC reationWizard.applyContributor(NewVisualClassCreationWizard. java:280)
at org.eclipse.ve.internal.java.codegen.wizards.NewVisualClassC reationWizard.finishPage(NewVisualClassCreationWizard.java:3 04)
at org.eclipse.jdt.internal.ui.wizards.NewElementWizard$2.run(N ewElementWizard.java:108)
at org.eclipse.jdt.internal.core.BatchOperation.executeOperatio n(BatchOperation.java:34)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaMod elOperation.java:700)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1673)
at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:3246)
at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter .run(WorkbenchRunnableAdapter.java:65)
at org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:101)

--------------040600070403080705040701--
Re: Cann't create Visual Class with VE [message #56793 is a reply to message #56764] Sun, 22 August 2004 00:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: joyofstudy2003.yahoo.com

By the way, I'm quite new with VE. I did try to delete the configuration
directory and still had the same problem.
I checked previous mails but couldn't find the answer for my problem.
Mark
Re: Cann't create Visual Class with VE [message #57037 is a reply to message #56793] Mon, 23 August 2004 19:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

Please give us the driver ids of the Eclipse, GEF, EMF, and VE that you
are using.

Mark wrote:

> By the way, I'm quite new with VE. I did try to delete the configuration
> directory and still had the same problem.
> I checked previous mails but couldn't find the answer for my problem.
> Mark

--
Thanks, Rich Kulp

Re: Cann't create Visual Class with VE [message #57091 is a reply to message #56764] Mon, 23 August 2004 20:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mendelgili.netscape.net

Mark wrote:
> Hi all,
> When I tried to create a new Java Visual Class which inherits
> javax.swing.JFrame, I always got the error "Creation of element failed.
> See error log for more details".
> In the log, it said that
> java.io.FileNotFoundException: VisualClassSourceWizardSkeleton.java (The
> system cannot find the file specified)
> ....
> I attached the log file here, anyway.
> I use eclipse SDK 3.0 Win32, EMF-SDO-XSD SDK 2.0.0, GEF SDK 3.0, VE SDK
> 1.0M2.
> Can anyone help me with this problem?
> Thanks in advance
> Mark
>

hmm... Is the template skelaton available at
org.eclipse.ve.java.core\templates\org\eclipse\ve\internal\j ava\codegen\jjet\wizards\contributors\VisualClassSourceWizar dSkeleton.java
?

Close the IDE, and
delete the following directory
<workspace>.metadata\.plugins\org.eclipse.ve.java.core\JetObjects

This will remove older Jet templates.
Re: Cann't create Visual Class with VE [message #57139 is a reply to message #57037] Tue, 24 August 2004 00:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: joyofstudy2003.yahoo.com

Hi Rich,
The driver ids are:
Eclipse SDK: 200406251208
GEF: 200406251257
EMF: 200406280827
VE: 200407301410
Thanks.
Vinh
Re: Cann't create Visual Class with VE [message #57266 is a reply to message #57139] Tue, 24 August 2004 15:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

Try out Gili's request about deleting the following directory
<workspace>.metadata\.plugins\org.eclipse.ve.java.core\JetObjects

Mark wrote:

> Hi Rich,
> The driver ids are:
> Eclipse SDK: 200406251208
> GEF: 200406251257
> EMF: 200406280827
> VE: 200407301410
> Thanks.
> Vinh

--
Thanks, Rich Kulp

Re: Cann't create Visual Class with VE [message #57366 is a reply to message #57091] Tue, 24 August 2004 23:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: joyofstudy2003.yahoo.com

Gili Mendel wrote:
> Mark wrote:
>
>> Hi all,
>> When I tried to create a new Java Visual Class which inherits
>> javax.swing.JFrame, I always got the error "Creation of element failed.
>> See error log for more details".
>> In the log, it said that
>> java.io.FileNotFoundException: VisualClassSourceWizardSkeleton.java
>> (The system cannot find the file specified)
>> ....
>> I attached the log file here, anyway.
>> I use eclipse SDK 3.0 Win32, EMF-SDO-XSD SDK 2.0.0, GEF SDK 3.0, VE SDK
>> 1.0M2.
>> Can anyone help me with this problem?
>> Thanks in advance
>> Mark
>>
>
> hmm... Is the template skelaton available at
> org.eclipse.ve.java.core\templates\org\eclipse\ve\internal\j ava\codegen\jjet\wizards\contributors\VisualClassSourceWizar dSkeleton.java
> ?
>
> Close the IDE, and
> delete the following directory
> <workspace>.metadata\.plugins\org.eclipse.ve.java.core\JetObjects
>
> This will remove older Jet templates.
>
I got it work now. I was abit stupid when I thought that it can't be
the problem of the file VisualClassSourceWizardSkeleton.java, as I
carefully downloaded and unzipped the VE files 2 or 3 times.
This morning, I went to the directory of that file and found the file
has been renamed to VISUAL~.JAV. I tried to rename it again, but I
couldn't. The problem is the path I put my Eclipse directory is too long
and Window OS couldn't handle the renaming due to that fact. I guess,
that's also the reason the file has been automatically renamed. So, I
move my Eclipse directory to a much shorter path and I'm able to work
with VE now.
Thank you guys for all your help!
Mark
Re: Cann't create Visual Class with VE [message #60702 is a reply to message #56764] Thu, 23 September 2004 08:25 Go to previous messageGo to next message
ronny is currently offline ronnyFriend
Messages: 46
Registered: July 2009
Member
Hello,

I've got the same problem (Creation of Element failed)and deleting the
JetObjects-folder didn't work.

My goal is to create a new Swing-menu, so I need to create a new Visual
Class of JPanel, right?
Creating a Visual Class of Object works, but then I cannot place any
widgets.

My Eclipse is 3.0.0 on Linux/KDE3.2 and I installed the VE via the
update-function.

thanks for help
spunti from Germany
Re: Cann't create Visual Class with VE [message #60704 is a reply to message #60702] Thu, 23 September 2004 09:36 Go to previous message
ronny is currently offline ronnyFriend
Messages: 46
Registered: July 2009
Member
Starting with "eclipse -clean" solved my problem.

regards
spunti

But I did it once before, so there must be something that forced me to
restart Eclipse this way again.
Re: Cann't create Visual Class with VE [message #597543 is a reply to message #56764] Sun, 22 August 2004 00:40 Go to previous message
Mark is currently offline MarkFriend
Messages: 61
Registered: July 2009
Member
By the way, I'm quite new with VE. I did try to delete the configuration
directory and still had the same problem.
I checked previous mails but couldn't find the answer for my problem.
Mark
Re: Cann't create Visual Class with VE [message #597626 is a reply to message #56793] Mon, 23 August 2004 19:59 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

Please give us the driver ids of the Eclipse, GEF, EMF, and VE that you
are using.

Mark wrote:

> By the way, I'm quite new with VE. I did try to delete the configuration
> directory and still had the same problem.
> I checked previous mails but couldn't find the answer for my problem.
> Mark

--
Thanks, Rich Kulp

Re: Cann't create Visual Class with VE [message #597641 is a reply to message #56764] Mon, 23 August 2004 20:05 Go to previous message
Gili Mendel is currently offline Gili MendelFriend
Messages: 338
Registered: July 2009
Senior Member
Mark wrote:
> Hi all,
> When I tried to create a new Java Visual Class which inherits
> javax.swing.JFrame, I always got the error "Creation of element failed.
> See error log for more details".
> In the log, it said that
> java.io.FileNotFoundException: VisualClassSourceWizardSkeleton.java (The
> system cannot find the file specified)
> ....
> I attached the log file here, anyway.
> I use eclipse SDK 3.0 Win32, EMF-SDO-XSD SDK 2.0.0, GEF SDK 3.0, VE SDK
> 1.0M2.
> Can anyone help me with this problem?
> Thanks in advance
> Mark
>

hmm... Is the template skelaton available at
org.eclipse.ve.java.core\templates\org\eclipse\ve\internal\j ava\codegen\jjet\wizards\contributors\VisualClassSourceWizar dSkeleton.java
?

Close the IDE, and
delete the following directory
<workspace>.metadata\.plugins\org.eclipse.ve.java.core\JetObjects

This will remove older Jet templates.
Re: Cann't create Visual Class with VE [message #597654 is a reply to message #57037] Tue, 24 August 2004 00:00 Go to previous message
Mark is currently offline MarkFriend
Messages: 61
Registered: July 2009
Member
Hi Rich,
The driver ids are:
Eclipse SDK: 200406251208
GEF: 200406251257
EMF: 200406280827
VE: 200407301410
Thanks.
Vinh
Re: Cann't create Visual Class with VE [message #597701 is a reply to message #57139] Tue, 24 August 2004 15:49 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

Try out Gili's request about deleting the following directory
<workspace>.metadata\.plugins\org.eclipse.ve.java.core\JetObjects

Mark wrote:

> Hi Rich,
> The driver ids are:
> Eclipse SDK: 200406251208
> GEF: 200406251257
> EMF: 200406280827
> VE: 200407301410
> Thanks.
> Vinh

--
Thanks, Rich Kulp

Re: Cann't create Visual Class with VE [message #597734 is a reply to message #57091] Tue, 24 August 2004 23:07 Go to previous message
Mark is currently offline MarkFriend
Messages: 61
Registered: July 2009
Member
Gili Mendel wrote:
> Mark wrote:
>
>> Hi all,
>> When I tried to create a new Java Visual Class which inherits
>> javax.swing.JFrame, I always got the error "Creation of element failed.
>> See error log for more details".
>> In the log, it said that
>> java.io.FileNotFoundException: VisualClassSourceWizardSkeleton.java
>> (The system cannot find the file specified)
>> ....
>> I attached the log file here, anyway.
>> I use eclipse SDK 3.0 Win32, EMF-SDO-XSD SDK 2.0.0, GEF SDK 3.0, VE SDK
>> 1.0M2.
>> Can anyone help me with this problem?
>> Thanks in advance
>> Mark
>>
>
> hmm... Is the template skelaton available at
> org.eclipse.ve.java.core\templates\org\eclipse\ve\internal\j ava\codegen\jjet\wizards\contributors\VisualClassSourceWizar dSkeleton.java
> ?
>
> Close the IDE, and
> delete the following directory
> <workspace>.metadata\.plugins\org.eclipse.ve.java.core\JetObjects
>
> This will remove older Jet templates.
>
I got it work now. I was abit stupid when I thought that it can't be
the problem of the file VisualClassSourceWizardSkeleton.java, as I
carefully downloaded and unzipped the VE files 2 or 3 times.
This morning, I went to the directory of that file and found the file
has been renamed to VISUAL~.JAV. I tried to rename it again, but I
couldn't. The problem is the path I put my Eclipse directory is too long
and Window OS couldn't handle the renaming due to that fact. I guess,
that's also the reason the file has been automatically renamed. So, I
move my Eclipse directory to a much shorter path and I'm able to work
with VE now.
Thank you guys for all your help!
Mark
Re: Cann't create Visual Class with VE [message #598952 is a reply to message #56764] Thu, 23 September 2004 08:25 Go to previous message
ronny is currently offline ronnyFriend
Messages: 46
Registered: July 2009
Member
Hello,

I've got the same problem (Creation of Element failed)and deleting the
JetObjects-folder didn't work.

My goal is to create a new Swing-menu, so I need to create a new Visual
Class of JPanel, right?
Creating a Visual Class of Object works, but then I cannot place any
widgets.

My Eclipse is 3.0.0 on Linux/KDE3.2 and I installed the VE via the
update-function.

thanks for help
spunti from Germany
Re: Cann't create Visual Class with VE [message #598966 is a reply to message #60702] Thu, 23 September 2004 09:36 Go to previous message
ronny is currently offline ronnyFriend
Messages: 46
Registered: July 2009
Member
Starting with "eclipse -clean" solved my problem.

regards
spunti

But I did it once before, so there must be something that forced me to
restart Eclipse this way again.
Previous Topic:Add SWT objects to the palette
Next Topic:How to implement Dialog action in PropertySheet Editor - like in VE
Goto Forum:
  


Current Time: Thu Dec 26 16:28:24 GMT 2024

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

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

Back to the top