Deadlock on sending via url

Hello
I've got an applet which has a JTree. Each node is a panel which has some logic in it. One part of the logic is if one certain JCheckbox is changed on a certain position the tree is traversed an all child nodes or parents are changed accordingly.
The problem is each panel indirectly calls my send function which is:
private static Collection connect(String data)
            throws IOException, ClassNotFoundException {
        URL testServlet = null;
        testServlet = new URL(servletURL + data);
        if (MMSCMSTree.debug)
            System.out.println("Servlet URL: " + testServlet);
        URLConnection connection = null;
        connection = testServlet.openConnection();
        InputStream input = connection.getInputStream();
        ObjectInputStream objStream = new ObjectInputStream(input);
        Collection collection = (Collection) objStream.readObject();
        return collection;
    }Another problem is I do not know how to cope with this threading issue. The effect is that the applet commits suicide and hangs. If anyone could help me with this issue, it would be very nice.
Thank you.
Regards
Tarik

Hello
There was only a deadlock in my head. The problem was a infinite while condition on the server side.
Regards
Tarik

Similar Messages

  • Problems with sending via url

    Hi there, I've got a problem with sending via an URL. If I send and receive something I use a method called connect. This method works well, I construct a URL, connect and receive an ObjectStream.
    But as I only want to set some values in another use case I do not want to receive anything,
    But it doesn't work - my servlet does not receive any request.
    Could anyone please help me to solve this?
    Thank you.
    Regards
    Tarik
    private synchronized static void connectOneWay(String data)
                throws IOException, ClassNotFoundException {
            try {
                URLConnection connection = null;
                URL testServlet = null;
                Class classLock = ServletConnector.class;
                while (locked)
                    classLock.wait();
                locked = true;
                testServlet = new URL(servletURL + data);
                if (MMSCMSTree.debug)
                    System.out.println("Servlet URL: " + testServlet);
                connection = testServlet.openConnection();
                connection.setDoInput(false);
                connection.connect();
                locked = false;
                classLock.notify();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

    Hi
    There was not a problem with this, the problem was on the server side, infinite loop ... :-)
    Regards
    Tarik

  • BIP Report access via URL in OBIEE

    Experts, I want to access a BIP report via URL in OBIEE. Here are the details. I already have Answers request with 'Is Prompted' filters. I have a dashboard prompt. The request works according to the values given in the prompt. Say, the user gives some filter conditions in the prompt and the result returns 10 records.Now, due to some business requirements, I want the same result set(10 records) to be opened in a new window. For that we thought of using BIP and invoking this BIP report from OBIEE. Any ideas how can we accomplish this.
    thx,
    parag

    I mean to say that....assume your first view might be pivot report,then you create a BIP report from answers and place the view just below the pivot view in the dashboard.
    Globally you give those prompts ,so that when you give values....it applies to both the views in the dashboard.
    Suggest the end user instead of pop up....you can view both views at a single instance :) .......Give a meaning full name for that BIP report according to what you want to achieve
    =====================================================================
    EDITED:
    you can use go url for your pop-up .....but you need to pass the variable values of the prompt to the go-url so you can achieve your requirement.
    let the end user pass dynamically any values multiple times but the same should be passed to the go-url to get what you want.
    ========================================================================
    EDITED
    I suppose YES we need to pass all the 5 prompt values to BIP report......if user gives 3 values then it filters on those 3 values and only 3 will be passed to BIP i suppose.
    Never tried this passing 3 values and next session passing 2 values.....Play around with your requirement you will achieve it.
    hope all questions are answered.Mark Points.
    By,
    KK
    Edited by: Kranthi on Jan 7, 2011 9:06 PM

  • How to parse crystal report query prompt value via url parameters

    HI All,
    I am creating a employee detail report in crystal report. The recordset is huge and i have created a parameter prompts in the query and thinking to parse the prompt value via url parameters. Not sure why i still could not make it works.
    for example, in my query panel i have created a prompt called "pwwid"
    and this is how i parse the prompt value via open document url.
    OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=AV8U6HlIq4FBl_MhcBwHqGI&lsSpwwid=12345678
    I read the sap documentation, this is how it parse the prompt value via url parameter. but it is not working for me and i am getting prompt to fill in the wwid whenever i run the reports.
    any idea why i am not getting this works?
    Regards,
    KeatAun

    Could you try:
    OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=AV8U6HlIq4FBl_MhcBwHqGI&lsSpspwwid=12345678
    -Abhilash

  • I want to email a Pages document as a Word doc. I used to be able to do this by clicking on share then send via mail then on Word and an email would appear with my word doc attached.  Now the email does not come up.  Why?

    I want to email a Pages document as a Word doc. I used to be able to do this by clicking on 'share' then 'send via mail' then on 'Word' and an email would appear with my word doc attached.  Now the email does not come up.  Why?

    It's difficult to do more than guess when you don't say what version of OS X or Pages you're running, but if you're on the latest, have you tried the Share menu -> Send via Mail command?
    If that doesn't help, you may have better luck if you ask in the Pages forum:
    Pages
    When you repost, be sure to include full details about your versions so that people know what it is you're working with.
    Regards.

  • Run XML Publisher Report  via URL (like Oracle Reports)

    Hi All,
    Is it possible to run xml-publisher report via URL?
    In Oracle Reports works this fine:
    http://test:7777/reports/rwservlet?server=test_bihome1&report=test1.rdf&userid=test/testv@db&desformat=pdf&destype=cache
    We need this for public reports without user login.
    Thanks
    Thomas

    Thomas,
    I was waiting to get home before Tim replied... He got the better of me this time :-)
    You say you want to let your users run reports using XMLP just by clicking on an URL same way you do with reports and without having to login. If I got the question right and assuming that:
    1.Your company is not overly concerned on who runs what reports
    2.Who sees what data
    3.Your XMLP installation is on your intranet and firewalled from the outside
    What you can do is:
    On the main page of your XMLP Enterprise installation you should see a folder called "Guest". Any report you create under this folder is run as user "guest" which means you don't have to authenticate yourself as you would normally do.
    I have tested this on my home server and this is what I've done:
    1.Logged in as admin or any other user you've created with admin privileges created a report under the "Guest" folder.
    2.Copied the URL, on my server it is "http://samba.private.net:15101/xmlpserver/Guest/People/People.xdo"
    4.Logged off as admin and pasted the URL to a new browser window
    5.Hit return and Voila, my report runs without the need to login to XMLP.
    Hope this helps. Let us know how you got on.
    Cheers,
    Joao
    PS: If you want to see the report for yourself here's the URL from the outside: http://medeiros.homelinux.net:15101/xmlpserver/Guest/People/People.xdo
    I'll keep the link alive for a couple of days.

  • The problem is with the new operating system  and sending photo via email when used in my iPad.   From photo I selected 3 photos to send via email. I choose the upload key and choose to send by email. Typing text on the email is very slow.

    The problem is with the new operating system  and sending photo via email when used in my iPad.
    From photo I selected 3 photos to send via email. I choose the upload key and choose to send by email. Typing text on the email is very slow. This is solved by saving the email as a draft and opening the email again from mail.
    Can you amend he system to allow emails to be sent from photo as previously.

    Have you tried restarting or resetting your iPad?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after the iPad shuts down, then press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds). Ignore the "Slide to power off"

  • Filling up a pdf form which I received as email. I opened it on my adobe reader 11 and filled up the highlighted fields. Yet when I click on the send via mail it says changes will not be included. How do I send the form with changes?

    Filling up a pdf form which I received as email. I opened it on my adobe reader 11 and filled up the highlighted fields. Yet when I click on the send via mail it says changes will not be included. How do I send the form with changes?
    The add annotations field shows as not allowed in the security options. So how do I send this form back with the changes??

    I think you you need to click 'save' first, then it is saved to acrobat, where it will prompt to send.

  • How do I get my photos off 1st generation itouch? I have macbook pro, ipad, iphone. Itouch syncs but does not have option to share in any capacity ie send via email, etc. Also, the computer from which photos were originally taken from has crashed.

    How do I get my photos off 1st generation itouch? I have macbook pro, ipad, iphone. Itouch syncs but does not have option to share in any capacity ie send via email, etc. Also, the computer from which photos were originally taken from has crashed.

    It has always been very basic to always maintain a backup copy of your computer.
    Did you fail to back up your pics?
    The photo sync is one way - comptuer to ipod.
    You can e-mail them to yourself (instructions in the manual), but they will not be of the original quality.

  • Problem using image via URL

    Hi everybody
    I have a problem with loading images via URL into my PDFs.
    I am using LCD ES2 Version 9.0.1....
    I want to create a PDF which loads images from the internet but it does not work.
    So far I have tried to add an image or image field to my PDF in the LCD and populate that image using the Object-->Field-->URL: palett. I put the URL in there like this http://www.adobe.com/imageshome/pdfgift_home.gif , tick the "embed image Data" checkbox (also tried with without that just to be sure) and save as Dynamic PDF (I also tried static) but when I open the PDF in adobe reader 9 or 10 or acrobat  9 there is no image showing. I also put the image in a subform and made that subform flowed, as well as the page itself and made the binding global.
    I have the form properties - default set to "Acrobat and Adobe Reader version 9.0 or higher", Default Language to JavaScript, PDF Render format to Dynamic PDF.
    I also tried using JavaScript events like "form:ready ImageField2.value.#image.href = "http://www.adobe.com/imageshome/pdfgift_home.gif" as discribed here http://partners.adobe.com/public/developer/en/tips/lc_dynamic_images.pdf but that also does not work.
    What am I missing?
    Any help would be great and greatly appreciated!!!
    Thanks and best regards
    Norbert

    As far as I can tell, this use case is not allowed because of cross site references related security concerns. The form can refer to the images stored on the same server from where the PDF is served, but the images cannot come from external servers.

  • Can I send an url (link) from iMac to Apple TV

    Hi & good day,
    Everything is working just fine.
    However it is tedious to enter f ex a YouTube video _name_ into Apple TV with the simple control, spelling back and forth every letter.
    I would like to find a YouTube video on y desktop and then be able to send the url to AppleTV or somehow?
    Wouldn't it be nice.
    with best regards,
    Omar K N
    Stockholm, Sweden

    You could Airplay from an iPad or iPhone or use the Remote app on these devices to get around the clumsy physical remote interface.

  • Printing a report via URL

    Hey,
    is there any chance to get a report printout via an url call? We can get our reports via url as pdf, html, rtf and so on. In my mind there is no chance for a printout or perhaps email via url?
    I tested the delivery API as second way without some good results.
    thanks for help and ideas

    Hi Gael,
    your URL is made up of :
    [ProcedureName]?[parameter1]=[value1]&[parameter2]=[value2]
    creating URLs like this can have problems especially with spaces and punctuation.
    the answer is a FORM
    the following will create a hidden form :
    FORM ACTION="[ProcedureName]" METHOD="POST" name="F1"
    INPUT type="HIDDEN" name="[parameter1]" value="[value1]"
    INPUT type="HIDDEN" name="[parameter2]" value="[value2]"
    /FORM
    you can set the values in the form using:
    document.F1.[parameter1].value="abc123%%&&$$!";
    document.F1.submit();
    will submit the form and the PL/SQL procedure should receive the text as it was contained in the form.
    the only characters that can now cause problems are :
    " as it delimits the field.
    ' as it may cause problems in PL/SQL.
    \ as it is a special character.
    Regards Michael

  • Changing the file name of a PDF you send via email

    Hello Support,
    I am trying to find out how to change the file name of the attachment I send via email when I click submit via email. I would like the file to be sent with the file name, not some other file name.
    How can I fix it? This is very urgent! I need HELP!
    Cheers
    Joel
    Message was edited by: J Braden

    Hi,
    you can't.
    Except you save the file under a different name before you send it.

  • Sending a URL in a WF notification

    Hi All,
    I am new to WORKFLOW and have an object to be developed.
    The requirement is to send a URL in an email notification to the notifications screen of the Workflow Administrator.
    Workflow Administrator >> Administrator Workflow >> Notifications.
    The notifications screen is attached to the function "WF_ADMIN_NOTIFICATIONS".
    Work Done:
    I have created an attribute of type URL and defaulted the value as "JSP:/OA_HTML/OA.jsp?OAFunc=WF_ADMIN_NOTIFICATIONS".
    The above step has resulted in providing a URL link in the email, but, when clicked, a new window does get opened, but, I only get the header (which is in blue color and has the words like 'Home', 'Preference', Diagnostics') and the base title of page (which is also in blue and has similar options including options like, 'About the Page', 'Privacy Statement'), but not the details of the page nor does it show the details about WF or the options to Approve/Reject the notification, which generally occurs between these two title bars in blue..
    Below is the exact error that is shown on the new window that gets opened:
    Error
    You have insufficient privileges for the current operation. Please contact your System Administrator.
    **Could someone please help me in this issue?**
    A quick response/guidance/inputs will be of great help, as I need to deliver this object today.
    Thanks in Advance!
    Regards,
    AB
    Edited by: user13792839 on Sep 8, 2011 10:26 PM
    Edited by: user13792839 on Sep 8, 2011 11:04 PM

    Duplicate post - Sending a URL in a WF notification
    Srini

  • Image loading via URL with resources in packages

    And another newbie-question:
    When I want to access local media-files (for example images) in a subdirectory, I can use a url to get a local path/filename. For example:
    url = getClass().getResource("/path/image-name.gif");
    image = getToolkit().getImage(url);
    Now I have packaged my classes including the subdirs containing the images in a jar file.
    package.jar
    |
    -- subdir (with images)
    |
    -- a.class
    |
    -- b.class
    |
    -- x.class
    Now the access via url doesn't seem to work any longer. When I subclass "a" outside the package (with correct import-statements, of course) and the constructor of "a" tries to access the images in "subdir" (invoking super()), it cannot find it and an exception occurs.
    Is this correct, or does the error lie maybe somewhere else?
    I had the impression that a jar-archive can be accessed like a directory? Have I to access the images in another way to get them working inside a package? When the classes and images are not packaged, all works fine.
    I work with Sun One, btw., and do mount the jar-archive as a filesystem...
    Any advise?
    Thanks in advance.
    Xanathon

    Am I on the right way when using an URLClassLoader instead of getClass()?

Maybe you are looking for

  • Raid 0 Stripe 16k, on SATA 3+4 or 1+2?

    Ok, im about to reinstall everything as soon as my Videocard comes off the Fedex truck. I had my Raptor at raid 0 and at 64k stripe and HDtach was all over the place. I seen highscores with 16k stripe so going to go that route. Now i always had my Ra

  • FM error message - related to payroll

    Hi all, HR is getting the following error message when they run payroll: "No earmarked funds found for external document XXXX" (Message no. RE154). Here is the explanation for this message: "You want to post a document which references earmarked fund

  • Report GRR2 lib 6P2- activity quantity Hours in column,project def in row

    Hi expert, i have created a Report in lyb 6P2. i have proj definition "6PPSPID" in the row and i wolud like to have quantityof the hours of the activity type spent at project definition level, i mean i need a total of the hours spent on all the WbE t

  • Wired keyboard not found

    Hi I just did an update (stupidly didnt check wat the update was) of my 10.8.3 OSX (14th May 2013) on a brand new imac and now the wired keyboard isnt found - maybe it's a faulty keyboard but we are talking less than 2 weeks old and i had no problems

  • Uniqueness and document searches.

    I have an application where I need to enforce the uniqueness of an entire document structure. In a relational database, I'd create a unique index across all columns, but I realize that's not really possible using an xml database. Is there any way, ot