Mal-formed reply

Any reason our system would get this error when trying to access
http://www.aquinas.edu ?? Only happens for that particular site.
Status : 502 Bad Gateway
Description : Mal-formed reply from origin server
Thanks

> yes...what exactly does that message mean? I can't access the site if I
> bypass the proxy either...get a DNS error.
The message means that the proxy or the browser don't "understand" what
the site is "saying". Are you trying to bypass the proxy without
unloading the filters?
Also, did you try with another browser?
Cat
NSC Volunteer Sysop

Similar Messages

  • 502 Bad Gateway Mal-formed Reply problem

    I need some help! A few users are reporting the following when accessing certain URLS via IE7 pointed to NBM 3.9SP1 server running NW65 SP7:
    HTTP ERROR
    Status: 502 Bad Gateway
    Description: Mal-formed reply from origin server.
    The problem can be seen when clicking on the "continue shopping" or "check out" link in KODAK Gallery
    The problem does not occur with Firefox or when pointed to another non-NBM proxy.
    The proxy.cfg being used is listed below. We were using one of Craig Johnson's proxy.cfg files but ran into some odd problems... Novell support provided the proxy.cfg below which seemed to solve those other problems.
    proxy.cfg:
    [MiniWeb Server]
    Port-Number=1959
    Root-Directory=SYS:\ETC\PROXY\DATA
    [MiniWeb Server: Mime Types]
    Content-Type: text/html=htm,html
    Content-Type: text/plain=txt,text,cla,class
    Content-Type: image/gif=gif
    Content-Type: image/jpeg=jpg,jpeg,jpe,jfif,pjpeg,pjp
    Content-Type: image/tiff=tiff,tif
    Content-Type: image/x-xbitmap=xbm
    Content-Type: video/x-msvideo=avi
    Content-Type: video/quicktime=qt,mov,moov
    Content-Type: video/x-mpeg2=mpv2,mp2v
    Content-Type: video/mpeg=mpeg,mpg,mpe,mpv,vbs,mpegv
    Content-Type: audio/x-pn-realaudio=ra,ram
    Content-Type: audio/x-mpeg=mpega,mp2,mpa,abs
    Content-Type: audio/x-wav=wav
    Content-Type: audio/x-aiff=aif,aiff,aifc
    Content-Type: application/x-ns-proxy-autoconfig=pac
    Content-Type: text/javascript
    Content-Type: application/x-javascript
    [Extra Configuration]
    AckWithNoDataOnSYN=1
    AllowGTCPProxyToUsePort25=1
    AllowSecond220Respond=1
    CodeRedWorkAround=1
    DiscardAcceptRanges=1
    DonotCache4ContEncoding=1
    DoNotCacheWhenCookieFound=1
    DoNotCreateFullyQualifiedHostNames=0
    DoNotResolveNamesBeforeGoingThruHierarchy=1
    DoNotSaveMemoryCacheDuringUnload=1
    DoNotSendExtraCRLF=1
    DonotSendIPToACL=1
    EnableActiveFTP=1
    EnableICSPassThruFix=1
    EnableIncomplete302ResponseFix=1
    EnableNoCachePassThru=1
    HTTPSAuthenticationSwitch=0
    IcpBypassOrigin=1
    IgnoreContentLengthCheck=1
    IgnoreDuplicateChill=1
    Line_Terminator=CR
    new302Redirect=1
    NoDummySlashUpstream=1
    noRetryIfPragmaNoCacheHeaderPresent=1
    OC_IgnoreContentLengthFlag=1
    #PassContentLength=0
    ResBadAddressLoopBreak=1
    ResolveProxyIPAddress=0
    RestartTimeoutAfterEverySend=1
    SCacheDestroyYieldInterval=200
    ScanVirusPatterns=1
    SendHTTP11Request=1
    SkipHttpReplyHeaderCaseChange=1
    TransparentProxySupportsVirtualServers=1
    TreatLeftArrowAsHeaderBodySeparator=0
    TurnOffPersistantPassThru=1
    UseSimplifiedErrorPage=1
    #bm39sp1 added options:
    #enableCacheInVersionDowngrade=1
    #EnableAcceptEncoding=1
    #GraceLoginNotification=1
    #GraceLoginText=Enter a customization grace login text here
    #PwdChangeURL=Enter the URL for changing the password
    #skipAuthForViaHeader=1
    #fixSecondTimeScheduling=1
    [TransparentHTTPS]
    HTTPSPort1=443
    [BM Cookie]
    BM_Forward_Cookie=0
    [Object Cache]
    cut thru no CLH length=0
    disk management factor=4000
    [Log Format]
    Delimiter-Character=space
    [HTTP Streaming]
    ResetOriginServerConnAfterClientReset=1
    [Tunneling]
    EnableTunnelingControl=1
    EnableTunnelingControlLog=0
    [HttpTunnelingAllowed]
    ; the example entries below allow ports 443, 444 (often specified
    ; for SSL Proxy Authenticaiton, 8009 (for NRM), 2200 (Apache Web Manager
    ; and 52443 (for iFolder) to be tunneled. Port 443 is enabled by default.
    ;port<x>=<port #>
    port1=8009
    port2=52443
    port3=2200
    ; use 444 for ssl proxy authentication
    port4=444
    ; allow 1494 thru for Citrix apps in browsers
    port5=1494
    ;;added by jwf
    port6=21459
    port7=21457
    port8=21450
    ;added per wo for lily rice access to UA
    port9=8443
    [Virus Pattern Configuration]
    MaxNoOfVirusPatterns=28
    NoOfVirusPatterns=28
    PatternSize=16
    EnableAutoPatternUpdate=1
    PatternStartOffset=1
    VirusPattern0=scripts/..%252f.
    VirusPatternoffset10=0
    VirusPatternvalue10=0
    VirusPatternoffset20=0
    VirusPatternvalue20=0
    VirusPatternorigLength0=57
    VirusPattern1=scripts/..%c1%1c
    VirusPatternoffset11=0
    VirusPatternvalue11=0
    VirusPatternoffset21=0
    VirusPatternvalue21=0
    VirusPatternorigLength1=58
    VirusPattern2=scripts/..%c0%2f
    VirusPatternoffset12=0
    VirusPatternvalue12=0
    VirusPatternoffset22=0
    VirusPatternvalue22=0
    VirusPatternorigLength2=58
    VirusPattern3=scripts/..%c0%af
    VirusPatternoffset13=0
    VirusPatternvalue13=0
    VirusPatternoffset23=0
    VirusPatternvalue23=0
    VirusPatternorigLength3=58
    VirusPattern4=scripts/..%%35c.
    VirusPatternoffset14=0
    VirusPatternvalue14=0
    VirusPatternoffset24=0
    VirusPatternvalue24=0
    VirusPatternorigLength4=57
    VirusPattern5=scripts/root.exe
    VirusPatternoffset15=0
    VirusPatternvalue15=0
    VirusPatternoffset25=0
    VirusPatternvalue25=0
    VirusPatternorigLength5=33
    VirusPattern6=MSADC/root.exe?/
    VirusPatternoffset16=0
    VirusPatternvalue16=0
    VirusPatternoffset26=0
    VirusPatternvalue26=0
    VirusPatternorigLength6=31
    VirusPattern7=d/winnt/system32
    VirusPatternoffset17=0
    VirusPatternvalue17=0
    VirusPatternoffset27=0
    VirusPatternvalue27=0
    VirusPatternorigLength7=41
    VirusPattern8=c/winnt/system32
    VirusPatternoffset18=0
    VirusPatternvalue18=0
    VirusPatternoffset28=0
    VirusPatternvalue28=0
    VirusPatternorigLength8=41
    VirusPattern9=_mem_bin/..%255c
    VirusPatternoffset19=0
    VirusPatternvalue19=0
    VirusPatternoffset29=0
    VirusPatternvalue29=0
    VirusPatternorigLength9=78
    VirusPattern10=_vti_bin/..%255c
    VirusPatternoffset110=0
    VirusPatternvalue110=0
    VirusPatternoffset210=0
    VirusPatternvalue210=0
    VirusPatternorigLength10=78
    VirusPattern11=msadc/..%255c../
    VirusPatternoffset111=0
    VirusPatternvalue111=0
    VirusPatternoffset211=0
    VirusPatternvalue211=0
    VirusPatternorigLength11=106
    VirusPattern12=scripts/..%%35%6
    VirusPatternoffset112=0
    VirusPatternvalue112=0
    VirusPatternoffset212=0
    VirusPatternvalue212=0
    VirusPatternorigLength12=59
    VirusPattern13=scripts/..%25%35%
    VirusPatternoffset113=0
    VirusPatternvalue113=0
    VirusPatternoffset213=0
    VirusPatternvalue213=0
    VirusPatternorigLength13=61
    VirusPattern14=scripts/..%255c..
    VirusPatternoffset114=0
    VirusPatternvalue114=0
    VirusPatternoffset214=0
    VirusPatternvalue214=0
    VirusPatternorigLength14=57
    VirusPattern15=scripts/..%c1%9c.
    VirusPatternoffset115=0
    VirusPatternvalue115=0
    VirusPatternoffset215=0
    VirusPatternvalue215=0
    VirusPatternorigLength15=58
    VirusPattern16=scripts/root.exe
    VirusPatternoffset116=0
    VirusPatternvalue116=0
    VirusPatternoffset216=0
    VirusPatternvalue216=0
    VirusPatternorigLength16=81
    VirusPattern17=scripts/httpodbc
    VirusPatternoffset117=0
    VirusPatternvalue117=0
    VirusPatternoffset217=0
    VirusPatternvalue217=0
    VirusPatternorigLength17=30
    VirusPattern18=MSADC/root.exe?/
    VirusPatternoffset118=0
    VirusPatternvalue118=0
    VirusPatternoffset218=0
    VirusPatternvalue218=0
    VirusPatternorigLength18=79
    VirusPattern19=MSADC/httpodbc.d
    VirusPatternoffset119=0
    VirusPatternvalue119=0
    VirusPatternoffset219=0
    VirusPatternvalue219=0
    VirusPatternorigLength19=28
    VirusPattern20="c/httpodbc.dll H"
    VirusPatternoffset120=0
    VirusPatternvalue120=0
    VirusPatternoffset220=0
    VirusPatternvalue220=0
    VirusPatternorigLength20=24
    VirusPattern21=d/winnt/system32
    VirusPatternoffset121=0
    VirusPatternvalue121=0
    VirusPatternoffset221=0
    VirusPatternvalue221=0
    VirusPatternorigLength21=92
    VirusPattern22="d/httpodbc.dll H"
    VirusPatternoffset122=0
    VirusPatternvalue122=0
    VirusPatternoffset222=0
    VirusPatternvalue222=0
    VirusPatternorigLength22=24
    VirusPattern23=scripts/..%255c.
    VirusPatternoffset123=0
    VirusPatternvalue123=0
    VirusPatternoffset223=0
    VirusPatternvalue223=0
    VirusPatternorigLength23=108
    VirusPattern24=scripts/.%255c..
    VirusPatternoffset124=0
    VirusPatternvalue124=0
    VirusPatternoffset224=0
    VirusPatternvalue224=0
    VirusPatternorigLength24=39
    VirusPattern25=scripts/..%252f.
    VirusPatternoffset125=0
    VirusPatternvalue125=0
    VirusPatternoffset225=0
    VirusPatternvalue225=0
    VirusPatternorigLength25=116
    VirusPattern26=scripts/..%252f.
    VirusPatternoffset126=0
    VirusPatternvalue126=0
    VirusPatternoffset226=0
    VirusPatternvalue226=0
    VirusPatternorigLength26=39
    VirusPattern27=default.ida?XXXX
    VirusPatternoffset127=0
    VirusPatternvalue127=0
    VirusPatternoffset227=0
    VirusPatternvalue227=0
    VirusPatternorigLength27=385

    jfish1,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • How to catch/read mal-formed xml at Error Handler.

    I have added Error Handler at starting node of Message Flow in a Proxy Service and its(Proxy Service) listenning to a JMS queue.
    So when i am putting a mal-formed XML into the JMS queue, getting "Failure while unmarshalling message: Failed to parse XML text" error at ALSB server log.
    But i am not able to capture the mal-formed xml inside Error Handler node.
    Can any one help me how to capture input mal-formed xml in Message Folw.
    Thanks in Advance.
    Regards.
    Deba

    Re: How to catch malformed xml using error handling mechanism in from a proxy? Had a solution for similar issue. It appears that in-case of malformed XML, $body will not be populated with faulty xml snippet. One way out of this solution is, design your service as Text service and create another service isXML as explained in my above reply.
    Thanks
    Manoj

  • Controlling the contact form reply-to address

    I have a contact form on my site. Everything works fine apart from when I receive an email submission the reply-to address is [email protected], so to reply to the email with the content intact, I have to copy and paste the address from the email body. I did change a setting somewhere that caused it to start giving my own address as the reply-to, which is no better, of course!
    I'm sure there's a simple solution to this but I cannot find the setting(s) to configure it. Any help with this is gratefully received.

    Hi Sanjit,
    Thanks for the quick reply. It's not the notification address I'm having issues with, it's the reply address.
    When someone uses my contact form, it is sent to the correct address but the reply address is not the sender's. See attached. Is it possible to automatically use the sender's email address for the reply?
    Also, is there any way of getting back to the original layout (below). I've tried removing all forms and republishing the Muse site but it doesn't change.
    David

  • Muse Contact form reply issues

    Can anyone help with this issue.
    Thank you for contacting Adobe.
    A representative will be with you shortly. 
    Thank you for your patience.
    While you wait, you can try our community forums where experts are available 24 hours a day, 7 days a week.
    You are now chatting with Sonam.
    Vicky Quick: The contact form for Muse sites doesn't allow my clients to reply to the person who contacted them. It puts their address in the top requiring them to cut and paste the person requesting information. How can I change the reply to field in the contact form and is that even an option? If not do you offer a work around? I've put this question on the forum and no one has an answer. PLEASE HELP!
    Sonam: Hi, welcome to Adobe
    Sonam: Vicky, is your site hosted via BC, or a 3rd party hosting provider?
    Vicky Quick: I have one on BC and one on godaddy both do not work
    Vicky Quick: The contact form works, but the reply back doesn't
    Vicky Quick: hello?
    Sonam: Vicky, this feature is not available via Muse or BC. Kindly share the link to your forum post, I shall forward it to the product team and ask them to get back to you at the earliest.
    Sonam: If there is a work around, or if it is possible with any customization, the product team shall help you with it.
    Vicky Quick: I have put it on the forum as well as third party sites like muse-themes.com and they don't have answer either
    Sonam: Kindly share the link to your forum post
    Vicky Quick: How do I share the link?
    Sonam: Copy and paste to this chat

    As Anshul has suggested , this needs a Customer Case Management system , where your client can reply directly to submitters email.
    With BC this is possible enabling CST( Customer Service Ticketing ) , you can define role responsible as which users should receive the submission emails and then reply to customers directly from email client used.
    Level responses can be used such as First level with escalation level. Enabling this , form submission will create a case which will then get converted into a web case and will be triggered into role responsible mailboxes. Site users(your client) can directly reply to the customer from any email client used using this method.
    In case you are using external server , you can use any third party ticketing system and setup on the email to which notifications are received.
    Currently , with Muse when form is setup with email . Submitters form submission notification is received from that email and submitters email is included in subject line , which you can use manually to send email replies.
    Thanks,
    Sanjit

  • CFolder and Adobe Interactive Forms-reply ASAP

    Hi
    we have a new requirement where there needs to be integration of cFolder with Adobe Interactive Forms. I would like to know:
    How cFolders integrate with Adobe IF?
    Concept behind combining these two technologies.
    Does cFolder integrate with Java Adobe IF or ABAP Adobe IF?
    I know very little about Abode IF(Java) and nothing about cFolder. Please explain.
    Thanks in Advance
    karthika
    Edited by: Karthika Somayajula on Sep 4, 2009 1:47 PM
    Edited by: Karthika Somayajula on Sep 4, 2009 1:47 PM

    Hi,
    Pls check this thread:
    Adobe Interactive forms for material creation
    Eddy
    PS. Reward the useful answers and you will get <a href="http:///people/baris.buyuktanir2/blog/2007/04/04/point-for-points-reward-yourself">one point</a> yourself!

  • Error compiling form in 6i

    Moving this thread from "PL/SQL" to "Forms"
    purple
    Posts: 3
    Registered: 02/23/11
    PL/SQL Version 8.0.6.0.0 (Production)
    Posted: Feb 23, 2011 8:55 AM
    oracle , builder , 6i , pl , sql , forms           Reply
    I'm a total newbie here. We have someone using Oracle Form Builder [32-Bit]. Oracle 6i database. Her information is as follows:
    Forms [32 Bit] Version 6.0.8.21.3 (Production)
    Oracle Toolkit Version 6.0.8.21.0 (Production)
    PL/SQL Version 8.0.6.0.0 (Production)
    Oracle Procedure Builder V6.0.8.17.0 Build #863 - Production
    PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
    Oracle Query Builder 6.0.7.1.0 - Production
    Oracle Virtual Graphics System Version 6.0.5.38.0 (Production)
    Oracle Tools GUI Utilities Version 6.0.8.20.1 (Production)
    Oracle Multimedia Version 6.0.8.20.0 (Production)
    Oracle Tools Integration Version 6.0.8.18.0 (Production)
    Oracle Tools Common Area Version 6.0.8.18.0
    Oracle CORE Version 4.0.6.0.0 - Production
    She's having trouble compiling a form. In comparing her PC with another (working) PC, the only difference is in the third line.
    Her's is: PL/SQL Version 8.0.6.0.0 (Production)
    The working PC is: PL/SQL Version 8.0.6.3.0 (Production)
    How do I "upgrade" this?
    BluShadow
    Posts: 16,328
    Registered: 09/21/05
    Re: PL/SQL Version 8.0.6.0.0 (Production)
    Posted: Feb 23, 2011 9:08 AM in response to: purple Helpful
    Reply
    Well, that database is very much out of date, and I don't even think you'd be able to easily get the patches from Oracle any more as they haven't supported that version for many years now. If you have a support contract with Oracle you could try asking for the relevant patch.
    Other than that, you're looking at upgrading the database to something more recent and supported.
    purple
    Posts: 3
    Registered: 02/23/11
    Re: PL/SQL Version 8.0.6.0.0 (Production)
    Posted: Feb 23, 2011 9:29 AM    in response to: BluShadow           Reply
    Thank you for the quick response. Yes, it's true it is an old database, but that's what we're using here. I used Patch12 which I thought was the most recent patch.
    SomeoneElse
    Posts: 11,472
    Registered: 10/15/98
    Re: PL/SQL Version 8.0.6.0.0 (Production)
    Posted: Feb 23, 2011 9:57 AM in response to: purple Helpful
    Reply
    She's having trouble compiling a form.
    Aside from the ancient software you have, you never told us what the trouble is.
    An error message? A syntax error? Something else?
    purple
    Posts: 3
    Registered: 02/23/11
    Re: PL/SQL Version 8.0.6.0.0 (Production)
    Posted: Feb 23, 2011 10:45 AM    in response to: SomeoneElse           Reply
    She's tried several different scenarios and still is not able to compile a "XXFPQLTR" form.
    It still appears to be something with the xxfps_price_pkg package in the get_rates procedure. If she comments out the line below it won't blow her out of forms.
    If it's in there, it tells her it's encountered an error, and closes forms with a non-descript error message.
    She attempted to hit 'debug' instead of 'close' when she got the forms error, and it did not provide herwith any further information .... it just blew up.
    Forms is only blowing up when she tries to compile a form that accesses pl/sql tables . If we take out the procedure that has the pl/sql she can compile the form.
    Billy Verreynne
    Posts: 12,472
    Registered: 05/27/99
    Re: PL/SQL Version 8.0.6.0.0 (Production)
    Posted: Feb 23, 2011 9:47 PM in response to: purple Reply
    Forms is not PL/SQL and PL/SQL is not forms. Yes, somewhat common language. No, very different as one runs on the client (Forms) and the other runs on the server (PL/SQL).
    And this is a PL/SQL forums - not Forms. So answers will tend to be about PL/SQL and not Forms. Make sure you do not mistake these as answers for Forms.
    In your sho3s.. I would dump Forms in favour of using Oracle 11gr2 with Apex.

    I've applied Patch12 to no avail
    So, what is your PL/SQL Version now that you've applied Patch 12?
    Patch12 is not the latest patch but but Patch17 is
    True, but you always want your development environments to match your production environment. If Prod is currently at Patch 12, then Patch 12 should be installed on ALL developer workstations.
    It is entirely possible that the problem is truly isolated to this one workstation. Have you tried performing a complete Unistall/Install of the Developer Suite (DS) 6i? With version 6i, I also found running Microsoft's RegClean tool often cleared up issues with the DS 6i. Microsoft no longer supports RegClean, but you can find it on the internet.
    you can put the code in a database procedure instead of a Forms procedureIf things still don't work after all this, I agree with InoL, perhaps the best option would be to move your logic to a database procedure and call the DB procedure from your Form.
    Out of curiosity, what is your Workstation operating system?
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.
    Edited by: CraigB on Feb 24, 2011 11:01 AM

  • Do co-authors need to have an adobe cc account to access the form?

    I have an Adobe CC account. I created a survey form from a template, and added 3 co-authors.
    Does each one need to have a CC subscription too?
    Do my recipients need to LOG IN to fill out this form once I have distributed it?
    Are the recipients of the form able to:
    - see the survey results
    - change/recall their survey answers
    - see other respondents' answers
    - download the survey form
    - reply to the survey more than once
    - begin the survey and save work in progress, then come back to finish it later
    - print the survey
    - forward the survey form to some other email recipient
    - access the survey they completed once they have hit 'Submit'
    If I start editing a survey form on my desktop Forms Central App, can I finish editing it online and vice -versa?
    What is the best practice in creating a form; desktop app, web app, or no difference?
    Do survey recipients see a preview of the survey form in theie email inBox?
    Thanks for all your help with my questions.
    NH

    from what ive experienced, you do not need a schema..(i seriously do not know what is the use of a schema!!) when i created my first (& last) dynamic form, the problem with it was i hadn't saved it as a dynamic form before testing! other things:
    - the dynamic part of the form must be a repeating subform
    - the script you use to add a button calls the right part of the form according to its location in the hierarchy
    don't know if thats any help at all

  • Send form is different email to address than specified in submit button

    I'm using Adobe Acrobat 9 PRO (CS5) and have a problem where the "wrong" mailto: address is displayed to the responder after a PDF form has been completed by the responder... it appears in the final "Send Form" pop up which details the email address the PDF is being submitted to (as well as 2 x fields for the responder to add their "From" info into: 1."email address" and 2."Full Name")
    THE PROBLEM IS THIS: The "Send Form"email address shown at the top is not the same as the email address specified in the PDF Forms submit button (I've used "[email protected]" option) and though the submit button DOES send it to the correct specified email address it is showing my standard email address in the "Send Form" pop up box, which I don't want as I am sending a survey form so I would like my "[email protected]" email address to appear here and not my usual/main email address (I need it to display the same info as I've set my submit button to).
    What can I do to change the info that seems to automatically appear here...? (Also to change the reply "Subject Header" while I'm at it?)
    Any help is greatly appreciated!

    Hi George,
    Many thanks for your reply; it was really helpful - now my "Send Form" reply pop-up window shows the same email address as the email address I specified in my forms submit button: excellent! (it has caused a new problem now though, with my email server now barring the replies from reaching me for some reason, but I'll have to sort that out with our IP!)
    - SPECIFYING A PDF FORM'S REPLY EMAIL "SUBJECT HEADER":
    I am manually distributing a "saved" form and will collate the data from my email inbox at a later date; did you have a solution to change the "Subject Header" in the reply email if use this manual send process?

  • Can we print a swing form

    hi,
    i have a question , i m making a windows based application in swings, can i print that form, reply at the earliest..
    thanks in advancee

    //or try this program, just execute it.
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    import java.awt.BorderLayout;
    import java.awt.print.*;
    import java.awt.Dimension;
    class printtest extends JFrame implements Printable,ActionListener
    Component c;
    printtest()
    super("just test");
    setSize(300,150);
    setVisible(true);
    JPanel p1=new JPanel(new FlowLayout());
    JLabel l1=new JLabel("name");
    JTextField t1=new JTextField(10);
    JButton b1=new JButton("Print");
    b1.addActionListener(this);
    t1.setText("hai");
    p1.add(l1);
    p1.add(t1);
    p1.add(b1);
    add(p1);
    this.c=p1;
    public void actionPerformed(ActionEvent e)
    try
    print();
    catch (java.lang.Throwable exc)
    System.out.println("Printer
    Exception");
    public void print() throws java.awt.print.PrinterException {
    PrinterJob job = PrinterJob.getPrinterJob();
    PageFormat format = job.pageDialog(job.defaultPage());
    job.setPrintable(this,format);
    if ( job.printDialog())
    job.print();
    public int print(Graphics graphics, PageFormat pageFormat, int
    pageIndex) throws
    PrinterException {
    if (pageIndex > 0)
    return Printable.NO_SUCH_PAGE;
    Graphics2D g2 = (Graphics2D) graphics;
    g2.translate(pageFormat.getImageableX(),pageFormat.getImageableY());
    c.paint(g2);
    return Printable.PAGE_EXISTS;
    public static void main(String ar[])
    printtest t=new printtest();
    }

  • About oracle forms

    hello,
    i have created menus in oracle forms using menu editor,now i want to show the created menu in the form while running ,how can i show menu in the form,
    reply soon please

    save and compile your menu module.
    open the property sheet of the form to which you want to attach them menu,
    On the "Menu Module" property give the full path of the menu you want to attach.
    if the menu is in the same path where your forms modules are then just give the menu module name.

  • Iphone hacked by scam emails?

    A few days ago while I was looking for a job I sent an email (from my mail app in my iphone 4S) to someone who was seeking a babysitter. I received a reply from the person from another email address asking my a bunch of questions (which didn't look right to me since i've done this before) so I checked to see the senders name and email and searched it online and it happens that it was a scam job post, well since then every now and then when i open my mail app the screen  (sort of like a contact window which on top says sender and Linda Walker with an email ) pops open and closes in like a second, I can't do anything because it changes/closes screen alone so fast and it only happens when i click on the mail app to open it. I created a new email account and deleted the other one and it still happens. Why??? Is it possible my phone is hacked? How can i know? I haven't done anything to my iphone like jailbreak or however its called or charged my iphone in any public place or my wifi is disconnected, also my phone is software is updated. Please help!!! Im afraid to even check my bank account in my iphone because of that.
    <Email Edited by Host>

    No, it is not possible your phone is hacked from an email.
    It's most likely a mal-formed email that causes Mail to crash.
    Log in to your email account on a computer via webmail, delete the offending email(s) and it should clear the problem.
    There was no point in creating a new email account.

  • Problems in the new itunes

    I recently added a song and a tv program to my shopping cart, and when I went to buy them, itunes acted funny, and then just didnt do anything. My songs didnt download or my tv shows either. When I "check for purchases" a big red X shows up and it says "unable to check for purchases. The iTunes store is temporarily unavailable. Please try again later." One of these songs was Kenny Chesney's new song thats out, and when I try to buy the album, it shows that I can complete my album, and when I try to do that I get the same error. I am able to download other items, and the STORE is available, so I don't understand why I have this problem for 2 days now. Any help sure would be appreciated.

    Contact the iTunes Store customer support department through the form at the bottom of their Download FAQ web page (I recommend that you use the form, not the link in your Purchase History as they advise; that's not proven to be very reliable) and explain the problem to them.
    You may get a form reply about the Check for Purchases command. Just email back and tell them that you've tried that and it doesn't work. After an exchange or two, you'll get a non-canned response from a real person.
    Good luck.

  • How to use Microsoft Word's Find and Replace with HTML tags?

    Hello to all!
    I'm trying to figure out how to use the find and replace function in Word to replace html tags. I'd like to be able to change something like this:
    <span class="B01-K-ITAL">random text</span>
    To something like this:
    <em>random text</em>
    I want to replace the open and close tags without changing or interfering with the text between the tags. I'm pretty sure I should use wildcards, but I can't figure out how to use them properly.
    Anyone able to lend a hand?

    Here is my latest regular expression with Perl.   I think it matches the spirit of the request in the original post.
    Note, this isn't as easy as you think.  You need to code up the complete set of html rules in you implementation. You need to allow for a certain amount of mal-formed html.
    perl -0660pe 's^<[sS][pP][aA][nN]\s+class="B01-K-ITAL"\s*>(.*?)</[sS][pP][aA][nN]>^<em>$1</em>^gs' i.html >|o.html
    input text
     <html> <head>...</head> <body>I'd like to be able to change something like this: <span class="B01-K-ITAL">#1 one line</span> I want to replace the open and close tags without changing or interfering with the text between the tags. I'm pretty sure I should use wildcards, but I can't figure out how to use them properly. <p>note, this isn't as easy as you think.  You need to code up the complete set of html rules in you implementation. You need to allow for a certain amount of mal-formed html.</p> <span class="B01-K-ITAL">#2 don't be greedy</span> <span class="B01-K-ITAL">$3 multiline text</span> <span class="B01-K-ITAL">#4 multiline tag. I believe html allow a carriage return in white space of tags</span> <span class="B01-K-ITAL">#5 split after the class tag. optional white space</span> <sPan class="B01-K-ITAL">#6 mixed case tag</Span> <p>no text #7</p><span class="B01-K-ITAL"></span> <!-- Apparently, this is valid     http://www.positioniseverything.net/articles/cc-plus.html --> <!--[if IE]> <div id="IEroot"> <![endif]--> <p id="IE">This browser is IE.</p> <p id="notIE">This browser is not IE.</p><!--[if IE]> </div> <![endif]--></body> </html>
    output text
     <html> <head>...</head> <body>I'd like to be able to change something like this: <em>#1 one line</em> I want to replace the open and close tags without changing or interfering with the text between the tags. I'm pretty sure I should use wildcards, but I can't figure out how to use them properly. <p>note, this isn't as easy as you think.  You need to code up the complete set of html rules in you implementation. You need to allow for a certain amount of mal-formed html.</p> <em>#2 don't be greedy</em> <em>$3 multiline text</em> <em>#4 multiline tag. I believe html allow a carriage return in white space of tags</em> <em>#5 split after the class tag. optional white space</em> <em>#6 mixed case tag</em> <p>no text #7</p><em></em> <!-- Apparently, this is valid     http://www.positioniseverything.net/articles/cc-plus.html --> <!--[if IE]> <div id="IEroot"> <![endif]--> <p id="IE">This browser is IE.</p> <p id="notIE">This browser is not IE.</p><!--[if IE]> </div> <![endif]--></body> </html>

  • Uploading Multiple Files from web client to web server

    Am using a Digitally signed applet to pickup files from a specific directory and only to pickup those of a specific type. Applet is called by a HTML converted page and uses the JAVA 1.3.1 plug-in. Client side is ok, but the server side does not work - cannot see how to drop the files down onto the web server.
    code
    URL url = null ;
    FileInputStream filReader = null ;
    DataOutputStream dosOutfile = null ;
    HttpURLConnection httpUrlConn = null ;
    int bytes = 0 ;
    //read local file on client's hd with signed applet
    try
    filReader = new FileInputStream( new File( fromFile ) );
    catch ( java.io.FileNotFoundException eNotFound )
    DisplayStatus ( fromFile + " Not found");
    eNotFound.printStackTrace();
    // start setup to server-side copy of in file
    try
    url = new URL ( toFile ) ;
    catch ( java.net.MalformedURLException eMalFormedUrl )
    DisplayStatus ( url + " url mal formed");
    eMalFormedUrl.printStackTrace();
    // create a HttpUrl connection for POSTING
    try
    httpUrlConn = (HttpURLConnection) url.openConnection(); // do not remove this casting, as needed
    catch ( java.io.IOException eIoException )
    DisplayStatus ( url + " IO not possible");
    eIoException.printStackTrace();
    // set preferences
    httpUrlConn.setDoInput(true); // default value, but best make sure
    httpUrlConn.setDoOutput(true); // default value, but best make sure
    httpUrlConn.setUseCaches(false); // enable write straight through
    try
    httpUrlConn.setRequestMethod("POST") ;
    // httpUrlConn.setRequestMethod("PUT") ;
    } catch ( java.net.ProtocolException eProtEx )
    DisplayStatus ( "Protocol Exception on setting up POST") ;
    eProtEx.printStackTrace();
    httpUrlConn.setRequestProperty("Content-Type", "multipart/form-data");
    // permissions?
    try
    java.security.Permission permission = httpUrlConn.getPermission() ;
    if ( iDebug == true )
    DisplayStatus ("Permission = " + permission.toString() ) ;
    DisplayStatus ( "Actions = " + permission.getActions() ) ;
    DisplayStatus ( "Name = " + permission.getName() ) ;
    catch ( java.io.IOException eUrlIOConnException )
    DisplayStatus ( "httpUrl " + httpUrlConn + " IO not possible");
    DisplayStatus ( eUrlIOConnException.toString() ) ;
    eUrlIOConnException.printStackTrace();
    // connect
    try
    this.VerifyHttpResponseCode ( httpUrlConn.getResponseCode() ) ;
    DisplayStatus ("About to connect") ;
    httpUrlConn.connect() ;
    DisplayStatus ("Connected") ;
    if ( iDebug == true )
    DisplayStatus ("Connected Content Encoding = " + httpUrlConn.getContentEncoding() ) ;
    DisplayStatus ("Connected Content Length = " + httpUrlConn.getContentLength() ) ;
    DisplayStatus ("Connected Content Type = " + httpUrlConn.getContentType() ) ;
    DisplayStatus ("Connected default allow user interaction = " + httpUrlConn.getDefaultAllowUserInteraction() ) ;
    DisplayStatus ("Connected File Map = " + httpUrlConn.getFileNameMap() ) ;
    DisplayStatus ("Connected request method = " + httpUrlConn.getRequestMethod() ) ;
    DisplayStatus ("Connected response code = " + httpUrlConn.getResponseCode() ) ;
    DisplayStatus ("Connected response message = " + httpUrlConn.getResponseMessage() ) ;
    DisplayStatus ("Connected = " + httpUrlConn.getURL() ) ;
    } // end of debug print out status
    catch ( java.net.ConnectException eConnEx )
    this.DisplayStatus ( "Connection error - no server listening or incorrect port " ) ;
    this.DisplayStatus ( "Connection error - http = " + httpUrlConn) ;
    eConnEx.printStackTrace();
    catch ( java.io.IOException eUrlConnException )
    DisplayStatus ( "url " + url + " connection not possible");
    DisplayStatus ( eUrlConnException.toString() ) ;
    eUrlConnException.printStackTrace();
    // create file on server
    try
    dosOutfile = new DataOutputStream ( new BufferedOutputStream( httpUrlConn.getOutputStream () ) ) ;
    catch ( java.io.IOException eNewFileIO )
    DisplayStatus ("Unable to create file on server / buffer output stream " + toFile ) ;
    // copy files char by char for the moment, till testing complete
    try
    bytes = filReader.read();
    while(bytes != -1)
    dosOutfile.writeByte(bytes);
    bytes = filReader.read();
    // close both files
    dosOutfile.flush ();
    dosOutfile.close ();
    filReader.close();
    catch (java.io.IOException eCpyIo )
    DisplayStatus ("Error copying files") ;
    connection of the HttpURLConnection
    gives 'Fobbiden' response for 'PUT'
    and
    'method not allowed' for 'POST'
    trying to create the file on the server than causes IOException at the create DataStream line
    What am I doing wrong?
    Is this philosphy correct?
    Should the HttpURLConnection be to the target folder
    and then create the file in it?

    hello,
    first here is my interpretation of your prob.
    You have a client.From this client you are trying to upload files onto a server.
    Finding the files and reading them on the client side is not a prob. The prob is storing them on the server side.
    right?
    If the above stated prob is right, here is a solution.
    1. You have to first inform the server that you are sending the file. Unless you do so the server will not understand when you have started sending the file.
    So, initially, the applet which you have written need to communicate with a servlet on the server side.
    This can be done using reqs.. .get or post.In the req itself you can even send the name of the folder wherein you want to store the file you are going to transfer later on.
    Next, after receiving the folder name, the servlet can now understand that next file data is going to be received.
    The applet now sends the file which is received by the servlet and stored appropriately.
    You need to explicitly write a servlet to receive a data into the file and then store the file into appropriate folder.
    for any further probs email me at [email protected]

Maybe you are looking for

  • How do I create an app inventory

    Unfortunately, I am an app addict and I have too many apps. I love the features recently implemented to see the apps purchased.  I want to be able to create an app inventory or database. I have checked out the apps that say they are for keeping track

  • External DVD Not Recognized

    I have a Sony DWQ28A Dual Layer DVD burner that I have put up as an external drive attaching to a Firewire hub. Tne Mini does not recognize the burner at all. I have tried Disk Utility and there is no drive showing. I have heard that Patchburn may be

  • How to remove Java Applications from "Add and Remove Programs" list?

    I have deployed my Java applications (both JWS and Applet) via JNLP with allow-offline option enabled and without installer-desc option specified. My questions are: 1. An entry is added to the Add and Remove Programs list after launching the applicat

  • Multiple switch vlan routing, almost there!

    Hello, I'm hoping this is a blatantly obvious issue, but we all know how late night thinking tends to be fairly foggy! Anyway, I have 3 3400cl HP switches and a 2610 Poe switch.  One of the 3400's is acting as the core, with the other 3 switches lacp

  • Oracle proc call from CF has 4sec overhead

    G'day I've been troubleshooting a slow-running Oracle (9i) proecdure call, which was coming in at 4sec. When run via a Oracle SQL Developer window, it runs in 0ms, which is more like what I'd expect form the amount of work it's doing. I applied Fusio