Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext Proxy handler error(Xtext Proxy handler error)
Xtext Proxy handler error [message #1731139] Tue, 03 May 2016 07:24 Go to next message
RamaRao Nandamuri is currently offline RamaRao NandamuriFriend
Messages: 120
Registered: April 2016
Senior Member
Hi Christian,

I am getting below error. Could you please tell me what would be the problem?

The proxied handler for 'com.prolifics.jpl.ui.JPLEditorExecutableExtensionFactory:com.prolifics.jpl.ui.handler.GenerationHandler' could not be loaded

PFA
Re: Xtext Proxy handler error [message #1731140 is a reply to message #1731139] Tue, 03 May 2016 07:27 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
do you have any warnings on any build.properties files?

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Proxy handler error [message #1731144 is a reply to message #1731140] Tue, 03 May 2016 07:46 Go to previous messageGo to next message
RamaRao Nandamuri is currently offline RamaRao NandamuriFriend
Messages: 120
Registered: April 2016
Senior Member
No. I don't have. I have written the below code to execute when I click on an option convert2bin from context menu. But it is not executing I assume. It is not showing anything on console. How can I debug my plugin?

Please let me know is there thing wrong with my code:

package com.prolifics.jpl.ui.handler

import java.io.BufferedReader
import java.io.InputStreamReader
import org.eclipse.core.commands.AbstractHandler
import org.eclipse.core.commands.ExecutionEvent
import org.eclipse.core.commands.ExecutionException
import org.eclipse.core.commands.IHandler
import org.eclipse.core.resources.IFile
import org.eclipse.core.resources.IProject
import org.eclipse.core.resources.IResource
import org.eclipse.core.resources.IWorkspace
import org.eclipse.core.resources.IWorkspaceRoot
import org.eclipse.core.resources.ResourcesPlugin
import org.eclipse.core.runtime.NullProgressMonitor
import org.eclipse.ui.IEditorPart
import org.eclipse.ui.handlers.HandlerUtil

class GenerationHandler extends AbstractHandler implements IHandler {
override Object execute(ExecutionEvent event) throws ExecutionException {
val IEditorPart activeEditor = HandlerUtil.getActiveEditor(event);
val IFile file = activeEditor.getEditorInput().getAdapter(IFile) as IFile;
val IWorkspace workspace = ResourcesPlugin.getWorkspace();
val IWorkspaceRoot root = workspace.getRoot();

if (file != null) {
val IProject project = file.project

/*********************** File Input Stream Start :::::::::::::: **********************************/
val String cmd = "\""+root.getRawLocation()+file.project.fullPath.toString()+"/jpl2bin.exe\""+" -b -f -p "+file.location;
val Process p = Runtime.getRuntime().exec(cmd);
val BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream()));
val BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getErrorStream()));
val sInput = stdInput.readLine()
System.out.println(sInput);
val sError = stdError.readLine()
System.err.println(sError);
project.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
/************************* File Input Stream End :::::::::::::: ***********************************/
}
return null;
}
}



Re: Xtext Proxy handler error [message #1731146 is a reply to message #1731144] Tue, 03 May 2016 07:58 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Do you get a trace if you klick on the error

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Proxy handler error [message #1731148 is a reply to message #1731146] Tue, 03 May 2016 08:10 Go to previous messageGo to next message
RamaRao Nandamuri is currently offline RamaRao NandamuriFriend
Messages: 120
Registered: April 2016
Senior Member
No I am not getting any response from that class.
Re: Xtext Proxy handler error [message #1731150 is a reply to message #1731148] Tue, 03 May 2016 08:15 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
i mean if you double click on the error in the log?
can you share your update site?


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Proxy handler error [message #1731164 is a reply to message #1731150] Tue, 03 May 2016 09:30 Go to previous messageGo to next message
RamaRao Nandamuri is currently offline RamaRao NandamuriFriend
Messages: 120
Registered: April 2016
Senior Member
Hi Christian,

My functionality in GenerateHandler.class is working fine and I am getting converted .bin file also. But when I am failing to convert in console it is not showing up the errors that I place System.out.println() statement.
Re: Xtext Proxy handler error [message #1731167 is a reply to message #1731164] Tue, 03 May 2016 09:52 Go to previous messageGo to next message
RamaRao Nandamuri is currently offline RamaRao NandamuriFriend
Messages: 120
Registered: April 2016
Senior Member
Hi Christian,

Generally when we building xtext project we will have all the xtext related artifacts will be in one Eclipse application and editor will be opened in run time application. If we write any system.out.println statements in any of the classes it will be shown in xtext project console, but not on run time application console. Is there any way to show errors on run time application
Re: Xtext Proxy handler error [message #1731171 is a reply to message #1731167] Tue, 03 May 2016 10:15 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Since this is not xtext related you should look ask elsewhere eg in the rcp
forum or google
http://stackoverflow.com/questions/2127718/eclipse-rcp-how-to-redirect-the-output-to-console-view


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Proxy handler error [message #1731178 is a reply to message #1731171] Tue, 03 May 2016 11:09 Go to previous messageGo to next message
RamaRao Nandamuri is currently offline RamaRao NandamuriFriend
Messages: 120
Registered: April 2016
Senior Member
Hi Christian,

This is not I want. I want to show error messages that I added in xtext project code. So that code is in my plugin. After installing the plugin, I am using that installed editor but it is not showing error that I have added in plugin code. I want to display that error message in currently running editor console. I can set console output within the plugin but how can I configure outside the plugin?

Re: Xtext Proxy handler error [message #1731179 is a reply to message #1731178] Tue, 03 May 2016 11:13 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
sry dont get you please share a mockj screenshot that shows what you are talking about?

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Proxy handler error [message #1731180 is a reply to message #1731179] Tue, 03 May 2016 11:15 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
i understood: in my code i do a sysout and i want to redirect this to the eclipse console

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:How to get started with code generator in intellij?
Next Topic:How to bind AbstractInternalAntlrParser
Goto Forum:
  


Current Time: Thu Mar 28 14:11:29 GMT 2024

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

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

Back to the top