Developing SCM Plugin for JDev9i... Deadlock

Hi!
I'm currentlly developing a SCM plugin for JDev9i with the option to use MS Visual Source Safe. I've experienced problems with hanging for a while. I'm using the oracle.ide.scm packages bundled with JDev, and I think I've found where the hangup is caused.
There's a class called oracle.ide.scm.util.SCMProcess which is a process wrapper around another class called oracle.ide.scm.util.SCMShellRunner. The process will recieve output text from standard out and standard error. These outputs must be caught and displayed as they are given to the system. If they are not displayed, JDev will go into deadlock it seams.
These classes have their equals respectivelly in java.lang.Process and java.lang.Runtime. I've used these classes to run a command from disk and they work if you properlly handle the output. The problem with this way of doing things is that these classes does not report back to the scm systems and can cause unexpected results from the other interfaces and classes in the oracle.ide.scm...
Does anybody have any experience in coding plugins of this kind? Have you experienced the same problem and have you found a way around it?
This does not work as it should:
SCMShellRunner rt = SCMShellRunner.getInstance();
SCMProcess p = rt.run(cmd, envArr);
while(!p.isFinished()) {
System.err.println(p.getErrorText());
System.out.println(p.getOutputText());

Hi.
The SCMShellRunner and SCMProcess classes are utilities which you
may find useful in implementing your SCM support; you can still
use java.lang.Runtime and java.lang.Process if you prefer.
However, we strongly recommend that you use SCMShellRunner because:
- On windows systems, the external process is launched in the
context of a shell.
- The output and error streams of the external process are
monitored separate threads to prevent blocking issues because of
buffer overruns.
- A native workaround is used to prevent console windows popping
up every time external processes are launched under Windows.
Not sure what could be causing the deadlock, but I did notice in
your code snippet that you are attempting to print output from the
process before it is finished.
The 'error text' and 'output text' will become available only
when the process has successfully terminated, so I guess you're
seeing an awful lot of "null" in your debug window.
Also, I would suggest using SCMProcess.waitFor() to block until
the process has completed; it will not be so greedy with CPU.
Try something like the following:
SCMShellRunner rt = SCMShellRunner.getInstance();
SCMProcess p = rt.run(cmd, envArr);
p.waitFor();
if (p.getExitCode().intValue() != 0)
// throw SCM exception.
System.err.println(p.getErrorText()); // should be non-null
System.out.println(p.getOutputText()); // should be non-null
Thanks,
Paul. JDev SCM

Similar Messages

  • Develop a plugin for Jdeveloper

    Hi everybody, anyone knows if there is a way to develop a plugin for jdeveloper?
    Thanks.

    Sure there is.
    There is an Extension API that you can use.
    Go to "check for updates" and download the ESDK extension - you'll get documentation and a bunch of samples.
    More information is here:
    http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/index.html

  • How to develop a plugin for 64-bit windows 2008 server?

    I have developed a plugin to open local application from web pages, but the plugin could only run on 32-bit windows and 32-bit and 64-bit windows 7, it couldn't work on 64-bit windows 2008 server. The plugin was compiled by vs2008 studio on 32-bit windows xp. Any instructions or advices, men of genius? Thanks

    Hi Gnittala,
    Thanks for your reply.
    I debug the javascript code in firebug on windows 8 and found that firefox would be not responding while executing "document.body.append(myPlugin)".
    My javascript code is below:
    function openLocalApp(cmdPath, cmdLine) {
    var npMyPlugin = navigator.mimeTypes["application/mozilla-npruntime-scriptable-plugin"];
    if (npMyPlugin) {
    var myPlugin = document.createElement("embed");
    myPlugin.style.visibility = "hidden";
    myPlugin.type = "application/mozilla-npruntime-scriptable-plugin";
    myPlugin.width = 0;
    myPlugin.height = 0;
    document.body.appendChild(myPlugin);
    myPlugin.foo(cmdPath, cmdLine);
    } else {
    alert("Failed to create the plugin!");
    And firefox plugin's source code copys from the following link:
    http://mxr.mozilla.org/seamonkey/source/modules/plugin/samples/npruntime/
    Just changed a little.
    I know the sample is very old, but newer proper sample couldn't be found. So if you can give me a newer sample, I'll appreciate.
    Thanks again.

  • Developing a plugin for Adobe Reader 9.0

    Hi All,
    I want to develop a plugin in Adobe Reader 9.0. I have setup Visual Studio 2005 and the plugin wizard.
    I am using the samples from acrobat SDK 9.0, I am able to build the samples and *.api is created. I have put that file in the plugins directory but I am not able to use the plugins in adobe reader as well not getting any error.
    Do I have to get key from adobe for plugin testing on my local PC?
    Regards,
    Sawan

    You can refer this: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/common/html/w whelp.htm?context=Acrobat9_HTMLHelp&file=Plugins_ReaderPlug.52.5.html

  • Developing a plugin for 64 bit CS4

    Hi,
    I am trying to develop plugin for 64 bit version of Adobe Illustrator CS4. Is ther any separate SDK for 64 bit. ??
    If not , will existing SDK work for 64 bit as well ??
    If i already have a plugin code ready for 32 version, what things i will be required to do to migrate my code to 64 bit .
    Thanks in advance.

    Adobe Illustrator CS5 is a 32-bit application. These processors are listed in the requirements since it can be run on a 64-bit machine. i.e. you will be running 32-bit application on a 64-bit OS.

  • Is Panasonic developing a plugin for FCP X that allows you to import Panasonic HDC-TM700 1080/60p footage straight into it without transcoding?

    I've been hearing from a few people on these Support Communities that Panasonic is apparently said to be have been developing some kind of plugin that will let FCP X users import 1080/60p footage from the TM700 straight into the editor, without need for use of third-party software such as Popcorn to transcode the footage into .MOV files. They were also apparently going to release this plugin this summer. Anyone know of some kind of link to some more information about it, or some confirmation that it actually is happening? I really would like to know, as I'm big into the 60p setting on the TM700, and my current workflow has me waiting about 3 or 4 hours each time I go to import any footage. Please let me know!

    Hey guys!
    I just downloaded Clipwrap to import my 60p footage into FCPX. I downloaded the demo and realize it will only convert up to a 1min file.
    When I re-wrap and nativate to my re-wrapped file, I can see (and hear) that it preserves my 5.1. When I play it back, the audio stops about half way (odd). When I import it into FCPX, there is no audio at all. Will FCPX not edit AC-3?
    If I keep the LPCM boxed checked on Clipwrap, I get a mono audio file.
    Can someone step out a workflow for me that gets me re-wrapping in Clipwrap, retaining 5.1 and editing in FCPX?
    Thanks for any help!

  • SCM Plugin for ECC6.0

    Hi All
    I have installed ECC6.0 unicode system and now have to put SCM on it. All i know about this process is that we have to download the plugin and apply it through SAINT. But when i go on service.sap.com i dont find the plugin.
    If anyone of you out there have implemented what i talking about, please drop in a line or two of your valuable suggestions of this process.
    Thankyou in advance.

    Hi Alex,
    Please follow the like hope this help you
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b7eab546-0d01-0010-d2bf-db6071ada2e2;jsessionid=(J2EE3417700)ID0246380350DB10595759393207384100End
    Regards,
    Pankaj

  • Can I do this with a plugin for Reader?

    Hello, I'm totally new to Adobe Reader development and I'm in the need to develop a plugin for Reader that must implement certain functionality. Before starting, I think it's better to ask to the experts if what I want to do is possible or if what I need goes beyond what the Adobe API provides. So, if you're so kind, I'd like you to check the list of needed features and please tell me if they can be fulfilled with a Reader Plugin.
    The plugin must work for Adobe Reader 7,8,9 and 10. It's not a problem if I need to develop a plugin for each version.
    When the user tries to print a document, I will block/cancel the printing process depending on which document is tried to be printed (the full path to the document will be needed).
    I need traceability in "Save as" and "Save as text" features, if the user saves a copy of "c:\file.pdf" into "c:\file - copy.pdf" I need to know both the source and the destiny of the save as operation. Same for any kind of "export to format x" operations if possible.
    I need to be able to communicate with another module via named pipe to periodically send information. This might require dinamically loading a DLL and calling its methods.
    [Optional] I need to restrict the use of the clipboard depending on the documents opened in Reader, i.e. don't allow to copy if a certain document is opened.
    [Optional] If a document is exported via file printer (like Microsoft xps printer), I need traceability on this operation. I'm really pesimistic about this one.
    Also, I'm assuming that retrieving the list of opened documents, or the "active" document will be possible at any time. Please, correct me if wrong.
    Thank you very much for your time, for reading and helping. Im' not asking you to tell me how to implement every single feature, I just need to know if I will be able to implement them when I get some knowledge.
    Have a great day. Greets.
    Message was edited by: fernandoarrabal reason: bad phrasing

    Two things.
    First – Adobe no longer supports Reader 7 or 8, so you would be on your own for those.
    Second, in order to develop a plugin for Reader you need to obtain a license from Adobe.  Details and forms are in the Acrobat SDK.   Start this process ASAP as that will tell you whether you will be able to do your plugin or not.

  • Developing CS5 plugin on CS6

    I need to develop a plugin for Photoshop CS5 for a Mac. Can this be done on Photoshop CS6 on a Mac?
    This is called Forward Compatibility, and I couldn't find information about this in the SDK documentation.
    Thank you in advance.

    I think those plugins build with the CS6 sdk should run under CS5 without much problems.

  • Developing a plugin using XCode 4

    Hi Everyone,
    I was recently inspired to develop a plugin for Illustrator CS6 on my Mac. I've run into a few problems though, because apparently I'm trying to build the plugin in an unsupported environment. I'm using OS X 10.8 (Mountain Lion) and XCode 4.4. Now, I realize that Mountain Lion isn't public yet (I'm an Apple developer so I have access to the prerelease stuff), but regardless, I think that the problem is that I don't have the correct SDK for the development. XCode 4.4 only has 10.7 and 10.8 SDKs with it, and I looked for a XCode 3.2.5 download, but it stopped being supported on Lion. If I have to, I can fetch a copy of 10.5 or 10.6 and develop using it, but I would really like to just use my main machine to do the development. Does anyone have any thoughts on this?
    Thanks

    Think you can copy SDKs to Developer directory and set default compiller to gcc 4.0 in project settings, for all AI SDK samples.

  • Building a "Quick Reply" plugin for Mac Mail???

    Anyone know where I can find someone to develop a plugin for Mountain Lion Mail that replicates the "Quick Reply" feature from Sparrow mail? (ref: http://michaelwender.com/blog/2012/07/18/sparrow-mail-app-quick-reply-is-my-favo rite-feature/)
    Anyone even know if it's feasible/possible?  Not sure why Apple isn't all over this one, but it probably violates some usability Zen law or something.  I happen to really like it.  Anything that makes me FASTER on email is good.

    I couldn't agree more, with everything you said.  Sparrow has been bought by Google and development ceased.  www.fluent.io looked even better, but they've just shut down.  I think even Microsoft at www.Outlook.com have the same thing.
    We really need this Quick Reply functionality for Apple Mail.  And integration of Facebook into the same 'news feed' style presentation of emails.  It's the way ahead.  Apple need to be all over this.

  • How to develop a plugin/event for Popcorn?

    Hello everyone.
    Me and some friends want to develop a plugin (or event, I am not sure which is the correct word) for Popcorn which represents table of contents for the video. If you click on some section then the video directly jumps there. And we want this plugin to be able to be used in the editor (https://popcorn.webmaker.org/en-US/editor/). We have been trying for now to understand the code and the logic behind popcorn but without much success. We have mainly been digging here (http://popcornjs.org/popcorn-docs/plugins/) but we could not fully understand the instructions. Does anyone has any idea where and what we have to touch for our project or is it too ambitious? Оr maybe someone knows some better developer tutorials? Any help is appreciated.
    Greetings,
    ViDim

    The best way is contact the webmaker developers
    *https://webmaker.org/en-US/getinvolved
    *https://wiki.mozilla.org/Webmaker/Code#Developing_Webmaker

  • Where is "Google Web Toolkit Developer Plugin for Firefox?"

    I can not find this plug in for the version of Firefox I have 3.6.8, even though it already runs with it?
    I can not find Google Web Toolkit Developer Plugin for Firefox for Firefox 3.6.8 even though I already have Google Web Toolkit Developer Plugin for Firefox running on a version of Firefox 3.6.8 on other computers.
    # There is no regular information that tells you how to get this plugin as there is with other plugins.
    # When GWT Devmode loads the Firefox brower, it says "missing plugin." you click to install, and it can't find it.
    # I know that I have previously been able to install Google Web Toolkit Developer Plugin for Firefox version 1.0.7511 installed on Firefox 3.6.8 on another machine. But I'm migrating to this one.
    (Edited to correct the formatting to stop the post scrolling to the right - TonyE)

    Hi richkatz,
    I'm on FF3.6.2 and today, I encounter the same problem.
    I got the solution by opening the download page in another tab. Then the firefox message switched from "Look for Plugin" to "Autorise FF to install the plugin".
    Here is the URL of my new tab, hoping that it works for FF3.6.8 : https://dl-ssl.google.com/gwt/plugins/firefox/gwt-dev-plugin.xpi
    Seeya! ;)

  • ABAP + BSP plugin for Netweaver Developer Studio

    Hallo,
    does an ABAP + BSP plugin for Netweaver Developer Studio exist? Or is considered to be developed in future?
    Best regards,
    Josef Motl

    hi Josef
    check this out:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap-code-samples/test drive the new abap editor.htm
    I didn't try it yet. Thomas Jung did it, so I'm quite sure it does work.
    cheers
    daniel

  • Eclipse plugins for web development

    Hi guys,
    I am a .net/LAMP developer and new to Java development. I am going to start my first Java project which will be a web app using the following stuff
    1. JSF (may be MyFaces, not yet decided)
    2. Spring
    3. Hibernate
    4. Ant
    5. JUnit
    6. Log4J
    7. Tomcat
    8. AJAX
    The IDE will be Eclipse. I am now looking for plugins (either Free or not) for the above stuff. What plugins do you guys recommend?
    Thanks.
    Michael

    Hi,
    May be you can try myEclipse plugin for eclipse, this is an commercial
    plugin with 29$ yealy subscription. This has all the stuff you are looking for.
    (AJAX is still not present in myEclipse).
    Thanks
    Ansar

Maybe you are looking for

  • No records written to the transactional cube with the copy function

    Hi, I am unable to copy data from the basic cube to transactional cube, I have developed following: 1. Planning Area PA1 – for the basic cube 2. Planning Area PA2 – for the transactional cube 3. Multi planning Area MPA1 – over PA1 and PA2. 4. Plannin

  • Why can't iTunes cue up next song?!

    I've been using iTunes for years now, maybe I'm missing something but I can't understand why you can't simply cue a song to play next from within the main library..?! Surely this must be one of the most basic and useful features you could have in a m

  • Error when installing packages: .../xorg-fonts-cyrillic-1.0.0-1/des

    Hi, I am completely new to Arch Linux, and under my first installation I got this error: error: /mnt/var/lib/pacman/current/xorg-fonts-cyrillic-1.0.0-1/des error: /mnt/var/lib/pacman/current/xorg-fonts-cyrillic-1.0.0-1/des error: /mnt/var/lib/pacman/

  • After updating to Yosemite,  headers and footers no longer visible.

    After updating to Yosemite, all of my headers and footers have moved to the back layer, hidden by images and graphics. How do I move them back to the front so they are on top of images and graphics? This has affected all of my old documents where hea

  • Cipher help | It keeps throwing errors

    As soon as you try to input a key it throws an error. import javax.swing.*; public class Animal     private String inputString;     private int intOffset;     public Animal()         inputString = null;         intOffset = 0;     public static void m