Workshop extension: JavaDocument problem

Hello,
I'm developing extension for Workshop Web Service Java Control.
In getExtensionFileContent() method I want to read the generated control java class, to parse it and to do something with this data.
For example I need to know the return type of the methods of this class.
I'm usin following code :
// tahke the file source from somewhere (file system for example
File file = new File("C:\\bea\\Web.java");
JavaDocument jcx = (JavaDocument)DocumentSvc.get().getDocument(file .toURI());
jcx.waitForRootElement();
JavaClass myClass = jcx.getMainClass();
List methodsList = myClass.getChildrenByClass(JavaMethod.class);
for (int i = 0; i < methodsList.size(); i++) {
JavaMethod javaMethod = (JavaMethod) methodsList.get(i);
String name = javaMethod.getName();
String type = javaMethod.getType();
The input class is as following :
public class MyClass
     com.mycompany.MyReturnType myFunction() {
return null;
the class com.mycompany.MyReturnType is in the classpath.
When I invoke this code I get the string "<error> in type variable from above.
Does anybody know what is the problem and how to solve it?
Thanks a lot.
Victor.

Hello,
I'm developing extension for Workshop Web Service Java Control.
In getExtensionFileContent() method I want to read the generated control java class, to parse it and to do something with this data.
For example I need to know the return type of the methods of this class.
I'm usin following code :
// tahke the file source from somewhere (file system for example
File file = new File("C:\\bea\\Web.java");
JavaDocument jcx = (JavaDocument)DocumentSvc.get().getDocument(file .toURI());
jcx.waitForRootElement();
JavaClass myClass = jcx.getMainClass();
List methodsList = myClass.getChildrenByClass(JavaMethod.class);
for (int i = 0; i < methodsList.size(); i++) {
JavaMethod javaMethod = (JavaMethod) methodsList.get(i);
String name = javaMethod.getName();
String type = javaMethod.getType();
The input class is as following :
public class MyClass
     com.mycompany.MyReturnType myFunction() {
return null;
the class com.mycompany.MyReturnType is in the classpath.
When I invoke this code I get the string "<error> in type variable from above.
Does anybody know what is the problem and how to solve it?
Thanks a lot.
Victor.

Similar Messages

  • Adobe InDesign CC 2014 Custom Panel Built With Extension Builder - Problem: Can't tab from one entry field to the next; Hitting tab instead hides all palettes; Is there a fix? This didn't happen in Adobe Indesign CC

    Adobe InDesign CC 2014 Custom Panel Built With Extension Builder - Problem: Can't tab from one entry field to the next; Hitting tab instead hides all palettes; Is there a fix? This didn't happen in Adobe Indesign CC

    This is planned to be fixed in the next release.

  • OS 10.4.6 and Extensis X1 problem

    I have a new G5 OS 10.4.6 and I loaded Extensis X1 version 11.0.2 on it. But when I try to add/transfer some fonts from the hard drive into Extensis it won't do it.
    It show the fonts on the right-hand frame, but they are ‘shaded’ and not bold, so I can’t open them to add them.
    I have the admin unlocked so I can have permission to add fonts etc.
    I took Extensis off the system and reloaded it but this didn’t work.
    Also, I took all the fonts out of Font Book (I think) in case there was a clash there (I put them in a folder on the desktop), as well I ran a permission repair.
    And I can’t add fonts into the Font Book as well, again the fonts are listed but are shaded and I can’t drag or add them from the font folder I put on the hard drive (of fonts from G4 that I need).
    And one more thing I can’t open Quark documents in the new Quark 6.5 I loaded on the G5, not even Quark 5.0 documents. The funny thing is that I could when I first loaded Quark on, though I had to go about it in a round about way, but now it seems that I can’t.
    Can anybody give me any advice?

    Point taken but this is not just a Quark question. I have been told that 10.4.6 has problems with Extensis X1.
    Kind of silly to put out thousands for a computer and not to have it work with certain programs.

  • Lightbox gallery extension - upload problems!

    Hi,
    I've made a small test site in Dreamweaver CS5 with a photo gallery in a Lightbox extension ( that I've added from Dreamweaver extensions ). Everything looks and works the way I want it to in Dreamweaver Safari preview...but as soon as I upload my test site, the Lightbox Gallery doesn't work anymore. I asked my webhotel support for help, but they say that I should contact the developer for an answer ???
    I'm thinking that it must a very common problem, does anyone have a clue what the problem could be?
    ( My webhotel is an  advanced LINUX server ...as if I knew what that means ;-)
    Thanks and Merry Christmas !

    You have:
    <a href="nyhavn.jpg" title="Nyhavn, heritage harbour and a popular
    place to go for dinner or a drink.">
    <img src="nyhavn_s.jpg" width="72" height="73" alt="" /> </a>
    Are you not supposed to have   rel="lightbox" added to it? Such as
    <a href="nyhavn.jpg" title="Nyhavn, heritage harbour and a popular
    place to go for dinner or a drink.">
    <img src="nyhavn_s.jpg" rel="lightbox" width="72" height="73" alt="" /> </a>
    On closer inspection, if you look at your  "scripts/lightbox.js"
    It is not a js file at all, it is an html file....what happened to your original js file?
    Gary

  • Cloud/Illustrator CC + Extension Manager problem

    Hi, I signed up for Cloud yesterday then downloaded Illustrator, but Adobe Extension Manager only shows older versions of Photoshop & Illustrator (CS5). Can anyone help?
    thanks Jackie

    I ran the report and a portion is included below. Not sure what the results mean -- did it find  Extension Manager and Flash Builder? If it DID find two of the products, the implication is that the paths weren't changed/renamed?  If I can query the PCD, can I also alter/fix the PCD? What is the remedy for the problem?
    Targets: 2
    Connector = PCD
    Installed: 0
    Running: 0
    exman-6.0:
    Path = /Applications/Adobe Extension Manager CS6/Adobe Extension Manager CS6.app
    Display Name = Adobe Extension Manager CS6
    MsgAuthentication = ON
    MsgDigest = ON
    ESTK = OFF
    BundleID = com.adobe.exman
    Status = (not running)
    ExeName = Adobe Extension Manager CS6.app
    flashbuilder-4.5:
    Path = /Applications/Adobe Flash Builder 4.7/Adobe Flash Builder 4.7.app
    Display Name = Adobe Flash Builder 4.7
    MsgAuthentication = ON
    MsgDigest = ON
    ESTK = OFF
    Status = (not running)
    ExeName = Adobe Flash Builder 4.7.app
    Installed: 2
    Running: 0
    Groups = (no groups defined)

  • Same file name - Different extension - Viewing problem

    I know this has been written about quite a bit and I have searched through the posts but I cannot find a solution to my problem. I shoot RAW, import then into Lightroom, make changes, import into CS3 & make more changes, save as a .psd file; no problem so far. I use Neat Image on some files that need the noise reduction so in CS3 I save the .psd as a .tif, run it through Neat Image and save it to the same directory where the RAW and .psd files are. Go back to Lightroom and no .tif file. If you "find" the file in Lightroom it shows up but shows as the .psd file. I have tried unstacking and everything else I can think of but I cannot make the .tif file display. I can go back to CS3 and locate the file through it but if in a few months or however long it takes me to forget that the .tif is there, the .tif will be lost in never never land. Bottom line, how do I get Lightroom to show ALL files, no matter name, extension, etc?
    I am using Version 1.3.1 on Windows XP, 2Gigs ram, 3.4 Gig P4 processor

    This issue was argued down to skeletal remains in beta and after. Adobe finally rlented somewhat and allowed the importation of files with same name and the RAW and jpeg extensions, because for one good reason some cameras produce both and some shooters utilize both for differring purposes.
    Jao,
    I will disagree with your reading of what is standard. That MS's stupid explorer or anything else won't show extensions is immaterial. First, anyone wanting to work at any speed and efficiency will be using something like Total Commander instead of Explorer, and it and virtually every other app I own shows extensions and treats files with the same name but differing extensions as unique files unto themselves--as it should be.
    After all it is digital data in the file that is unique. The extension is a tag to tell you and the computor how to deal with that data. The content is not identical, and therefore it ought not be treated as if it were by any application.
    Anyone with an interest in wasting several hours can trace the arduous wailing at the LR team to treat the extension as part of a unique name. As I said bdefore, they did make some concessions. Hopefully, they will go the whole distance soon.

  • Character with extension display-problem

    Dear all,
    I have forms10 in a UTF8 environment, using JPI technology with JRE 1.6 I'm able to write letters with extension, letters are well saved in the database, but the problem I'm facing is that I'm getting the letter not well displayed in forms, they are displayed as ( خ ۆ ) instead of having it as follow ( خۆ )
    is there anything that can be done?
    rgds

    Dear all,
    I have forms10 in a UTF8 environment, using JPI technology with JRE 1.6 I'm able to write letters with extension, letters are well saved in the database, but the problem I'm facing is that I'm getting the letter not well displayed in forms, they are displayed as ( خ ۆ ) instead of having it as follow ( خۆ )
    is there anything that can be done?
    rgds

  • Safari's Extensions Installation Problem

    I'd like to install some extensions to Safari however I can not make it happen. Always I get this message, "An error occurred while installing the extension “...”".
    I use Safari 6.0.3. How can I fix this problem. Thanks.

    Back up all data. Don't continue unless you're sure you can restore from a backup, even if you're unable to log in.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Triple-click the following line to select it. Copy the selected text to the Clipboard (command-C):
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    Step 1 should give you usable permissions in your home folder. This step will restore special attributes set by OS X on some user folders to protect them from unintended deletion or renaming. You can skip this step if you don't consider that protection to be necessary, and if everything is working as expected after step 1.
    Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not  going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • DUALphone 3088 extension numbers problem

    Hi!
    We’ve bought DUALphone 3088 some days ago. We planned to use it in our virtual dial exchange (we have a virtual phone number that can be forwarded to landline phones, mobiles and SKYPE also).
    The main thing is that this device must be used as main phone in our office (in Skype mode only). So when somebody of us receives call he must be able to redirect it to another employee using extension number (like ##5 in tone mode). And we were disappointed that we can’t do that! We can’t dial extension numbers when WE RECEIVE skype call. Skype on PC allows to do that. But not this device.
    Nevertheless we CAN dial extension numbers when WE MAKE skype call using this device.
    So this is firmware error…
    Can anybody tell how ask the producer to make an update and fix this problem?

    same here in spain.
    I am a wireless network operator, with a lot of skype customers.. Oddly those using PC's are unaffected, but myself and a few others using dualphones cannot connect.
    As network manager I am able to prioritise skype, inspect packets etc and Nat across to any number of public IP's.
    I can confirm that its not this network at fault nor any of my public IP's. 

  • Workshop 8.1 Problem

    We've run into a problem with javax.xml.namespace.QName versions -- there is a version of this file in weblogic.jar and the problem is that we need to float the newer implementation (used by Axis2) higher on the classpath than weblogic.jar;
    We've been able to do this in setDomainEnv.cmd for our server startup, in our build files for compilation, but for Workshop and the debugger, it appears that the way things are configured, there is no way to reconfigure the default server classpath for an Application/Domain.
    For example if you right click on an application in Workshop and go to "Properties" you'll see a message at the bottom of the "WebLogic Server" tab that says "If you have added any jars to your server's classpath, add them here as well. Note that this is the IDE's view of additions to the server classpath. Changes do not affect the server itself."
    Adding the JAR I need here does not affect the default server classpath ordering at all. I see how these options are just dumped into the root domain directory in a workshop.properties file, but the Default Server Path is not specified there. Where is that coming from?
    I know in certain parts of Eclipse dealing with paths you can prepend parts to paths. That's what we need to do, essentially. Anyone know how to do this?
    Thanks for any help!

    Can you open a support case on this?
    http://support.bea.com/application?namespace=portal
    Chris Wash wrote:
    We've run into a problem with javax.xml.namespace.QName versions -- there is a version of this file in weblogic.jar and the problem is that we need to float the newer implementation (used by Axis2) higher on the classpath than weblogic.jar;
    We've been able to do this in setDomainEnv.cmd for our server startup, in our build files for compilation, but for Workshop and the debugger, it appears that the way things are configured, there is no way to reconfigure the default server classpath for an Application/Domain.
    For example if you right click on an application in Workshop and go to "Properties" you'll see a message at the bottom of the "WebLogic Server" tab that says "If you have added any jars to your server's classpath, add them here as well. Note that this is the IDE's view of additions to the server classpath. Changes do not affect the server itself."
    Adding the JAR I need here does not affect the default server classpath ordering at all. I see how these options are just dumped into the root domain directory in a workshop.properties file, but the Default Server Path is not specified there. Where is that coming from?
    I know in certain parts of Eclipse dealing with paths you can prepend parts to paths. That's what we need to do, essentially. Anyone know how to do this?
    Thanks for any help!

  • Extension manager problem

    I'm a newbie at this. Just downloaded extension manager. Then
    open it to go to exchange and downloaded a plug in.
    Plug in is on hard drive, but not in extension manager.
    Suggestions? F!/Help in extension manager doesn't work.

    I'm running Flash 8 with the corresponding extension manager,
    buut I think I solved my problem. I had the Flash 9 Beta installed
    and once I removed that, eveything went back to normal.

  • Extension Manager problems

    I've seen a couple of other messages here about this problem,
    but no one has ever answered. Since upgrading to Studio 8, I've
    noticed that Extension Manager requires that each app (Flash,
    Dreamweaver, etc.) be running before it can see it and therefore
    install an extension. Is this normal behavior now? It certainly
    wasn't the case in MX2004. I also remember in the past that
    installing an extension while an app was running could cause
    problems?

    I can easily install extensions with only the Extension
    Manager open in
    Studio 8. Are you saying the app isn't showing up in the
    dropdown of the
    EM? Did you install Studio 8 apps in their default locations?
    Nancy Gill
    Adobe Community Expert
    BLOG:
    http://www.dmxwishes.com/blog.asp
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
    A Beginner's
    Guide, Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "sebrame" <[email protected]> wrote in
    message
    news:e3nl8i$m0u$[email protected]..
    > I've seen a couple of other messages here about this
    problem, but no one
    > has
    > ever answered. Since upgrading to Studio 8, I've noticed
    that Extension
    > Manager
    > requires that each app (Flash, Dreamweaver, etc.) be
    running before it can
    > see
    > it and therefore install an extension. Is this normal
    behavior now? It
    > certainly wasn't the case in MX2004. I also remember in
    the past that
    > installing an extension while an app was running could
    cause problems?
    >

  • Workshop 6U2 debug problem

    After debugging for a while the dbx shell that workshop uses becomes unstable. I have to restart the whole environment
    This also is produced on the console:
    workshop: warning: MsgSnd::snd_via(): no socket -- msg 'DBX_KSH_CMD' dropped
    Has anyone got a workaround for this ?

    This error message means that the dbx binary running inside
    workshop is crashing. If you can go to the machine where
    the tool is running, and copy the /tmp/core file and
    compress it and then mail it to me ([email protected])
    then I'll file a bug for you.
    You can check the core file to make sure it's from dbx:
    % file /tmp/core
    /tmp/core:     ELF 32-bit MSB core file SPARC Version 1, from 'dbx'
    The output should look something like that.
    Also, if you have more questions or problems related
    to the debugging tools there is now a separate forum
    just for topics related to the debugging tools.
    --chris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Extensions Instalation problems

    Hi All.
    I am struggling. I am trying to install some extensions using Extension Manager. Download is ok, then after I accept terms and conditions it spits out: "You do not have the appropriate permissions to perform this operation. Contact your system administrator to obtain permission". I am tearing my hair out as I am the only user on my computer, account is set up as Administrators. It is Win7 32bit I am running. Anyone knows how to fix it?
    Also when I launch Fireworks similar message appears. I have to go to task manager and End Task so it disappears and then Firework launch ok.
    Hope you can help me.
    Chris.

    Just to add it is a CS5 Web Premium problem.

  • Extension installation problem

    When i try to install the extentsion I will accept the terms but I then get a message that say the file does not have a valid signature.

    I have the same problem, as well.
    This is a fresh install of CS6- I just installed it a few minutes ago. I also installed all available updates (installed via cd).
    Pity, I'd been looking forward to trying LevelUp out!
    After some googling, I found a way that managed to get LevelUp installed!
    Download Adobe Exchange (https://www.adobeexchange.com/) and install it in the Extension Manager.
    Window>Extensions>Adobe Exchange to open the Adobe Exchange window in Photoshop.
    Search "LevelUp". The LevelUp extension should appear. Click it, and click on the "Free" button to download it.
    Adobe Extension Manager should then open up and start installing the extension. You may need to provide administrative privileges.
    Restart Photoshop.
    Window>Extensions>LevelUp for Photoshop and the extension should open up!

Maybe you are looking for

  • Installing an ABAP Application Server for ECC6? I am getting a few errors!

    Hi All I assumed that this was a simple procedure when installing an Application server. Run SAPinst and select Dialog instance and install My server has Java installed and runs fine until you get to the profile directory stage. and when I enter the

  • How to add a blog in muse?

    How can you add a working blog to a muse site? Is there a plug-in or template? Thanks!

  • JOIN TABLES!!!!!!

    SELECT a. EN_LNG, b. SA_LNG, c. COST_LNG, d. ACCT_DESC , e. gl_dt, f. MONTH, f. YEAR_LNG, e. ar_amt FROM D_ENY_STG1 a, F_ACC e, D_COST_STG2 c, D_SUB_STG2 b, D_AC_STG2 d, D_PER_STG1 f      WHERE e.db_id = 'xxx' and e.gl_dt = '2007-01-01' and      (e.g

  • Mouse left button acting like right button

    I have a MacBook black with snow Leopard. My mouse is acting up. On both the laptop and a usb mouse the left button is acting like athe write button by bringing up action boxes instead of just doing the deffault action. for example I go to the task b

  • Filter expression in union all in obiee

    WHERE offset = 0 OR (offset = 1 AND mkt_value <> 0) i have to implement this filter in where clause in result columns after union all .. how to make it feasible FILTER(saw_6 USING ((saw_6 = 1) OR ((saw_6 = 1) AND ((CASE WHEN saw_6 = 1 THEN saw_31 ELS