DeliveryManager API to ipp printer returns Status of 11 ('Internal error')

Here's my Java code, based on the sample:
// create delivery manager instance
DeliveryManager dm;
// create a delivery request
try {
dm = new DeliveryManager();
} catch (InvalidFactoryException e) {
// TODO
System.out.println("Unable to create delivery manager: Exception: " + e.getMessage());
return;
DeliveryRequest req;
// set email subject
try {
req = dm.createRequest(DeliveryManager.TYPE_IPP_PRINTER);
} catch (UndefinedRequestTypeException e) {
// TODO
System.out.println("Unable to create delivery request: Exception: " + e.getMessage());
return;
// set IPP host
req.addProperty(DeliveryPropertyDefinitions.IPP_HOST, "dfw111ssun012");
// default IPP port
req.addProperty(DeliveryPropertyDefinitions.IPP_PORT, "631");
req.addProperty(DeliveryPropertyDefinitions.IPP_USE_FULL_URL, "true");
req.addProperty(DeliveryPropertyDefinitions.IPP_USE_CHUNKED_BODY, "true");
// printer name
req.addProperty(DeliveryPropertyDefinitions.IPP_PRINTER_NAME, "/printers/rightfax/.printer");
// authentication
req.addProperty(DeliveryPropertyDefinitions.IPP_AUTHTYPE, "IPP_AUTHTYPE_NONE");
// req.addProperty(DeliveryPropertyDefinitions.IPP_AUTHTYPE, "IPP_AUTHTYPE_DIGEST");
// req.addProperty(DeliveryPropertyDefinitions.IPP_USERNAME, "svc-rightfax.dfw");
// req.addProperty(DeliveryPropertyDefinitions.IPP_PASSWORD, "Dresser.RF");
req.addProperty(DeliveryPropertyDefinitions.IPP_DOCUMENT_FORMAT, "IPP_DOCUMENT_FORMAT_PLAINTEXT");
// set the document to deliver
try {
String filestr = "/tmp/instructions.txt";
File filename = new File(filestr);
if (filename.exists()) {
filestr = filename.getAbsoluteFile().toString();
} else {
System.out.println("Unable to find file: " + filestr);
return;
req.setDocument(filestr);
} catch (DeliveryException e) {
// TODO
System.out.println("Unable to set document: Exception: " + e.getMessage());
// submit the request
try {
req.submit();
} catch (DeliveryException e) {
// TODO
System.out.println("Unable to submit request: Exception: " + e.getMessage());
int i = req.getStatus();
String s12 = req.getStatusMessage();
System.out.println("Status is " + i + " Status Message is "+ s12);
// close the request
req.close();
i = req.getStatus();
s12 = req.getStatusMessage();
System.out.println("Status is " + i + " Status Message is "+ s12);
The printer 'rightfax' works fine and is configured correctly - I'm able to print to it from the command line using the ipp interface.
There are no firewall issues - I'm running this java code on the same box as the ipp implementation (which is Solaris IPP).
Any help is greatly appreciated...

Hi, I also tied th create a new admin user (via ovm_admin) which was successful but logging in with this new user brings the same error :-(
Regards
Axel D.

Similar Messages

  • Returns status code '500' (Internal Server Error) in response

    Hi,
    I got error like
    HTTP connection to http://XXX.com:50600/sap/xi/cache?sap-client=001 returns status code '500' (Internal Server Error) in response
    I did check this Discussion HTTP returns status is 500(Internal Server Error)
    But I don't understand can someone help me in detail.
    Thanks
    Kamal

    Hi All,
    When I check RFC destination configuration with following information.
    RFC Destination as "INTEGRATION_DIRECTORY_HMI"
    Connection Type: H
    Under Technical Setting TAB
    Target Host: write the host name
    Path Prefix: /dir/CacheRefresh
    Service No: enter J2ee port no (e.g. 50000)
    Under Logon/Security TAB
    select Basic Authontication radio button
    SSL select inactive
    Under Logon:
    Lang: EN
    Client: enter client
    User: XIISUSER
    Password: *******
    Under Special Option TAB
    HTTP Setting:
    HTTP Ver: HTTP 1.0
    Compression: inactive
    Compressed response: NO
    HTTP Cookies: Yes (All)
    This is the test result.
    Status HTTP response : 403
    Status text : Forbidden
    Duration test call : 163 ms
    Please help me.
    Thanks,
    Kamal

  • DeliveryManager IPP Printing Attributes

    Hello. I am using the DeliveryManager API to print reports to our printers. We are using two types: HP Laserjet and Canon ImageRunner
    Everything works okay for the Laserjet but when I try to run the Canon, I have to physically go to the printer and select the printer tray and the no of copies I specified is being ignored (not to mention it prints on both sides of paper)
    I understand the following link has a disclaimer on setting printer properties and this could be where my problem is coming from:
    http://docs.oracle.com/cd/E21764_01/bi.1111/e18863/delmgrapis.htm#CHDCGDEB
    The following properties are supported. A string value is required for each property, unless otherwise noted. Note that printer-specific properties such as IPP_SIDES, IPP_COPIES and IPP_ORIENTATION depend on the printer capabilities. For example, if the target printer does not support duplex printing, the IPP_SIDES setting will have no effect.
    But my question is, where do I start looking on the printer side if this is the case? Is it a ghostscript? A driver setting? I looked into CUPS but it seems that it's only used for making sure that the files are being understood by the printer. Both printers can print PDF files, the Canon printer just happens to ignore the printing attributes I specified.
    I also initially used BI Publisher Web Service to send files to the Canon printer and it does take the number of copies and doesn't ask me for tray selection. So I am not sure if this is even a printer config case at this point either.
    Below is the excerpt of the code. I tried various media types as well in the input and with no luck. Thank you very much. Any help is appreciated.
    +// create delivery manager instance+
    DeliveryManager dm = new DeliveryManager();
    +// create a delivery request+
    DeliveryRequest req = dm.createRequest(DeliveryManager.TYPE_IPP_PRINTER);
    +// set IPP printer host+
    req.addProperty(DeliveryPropertyDefinitions.IPP_HOST, ipaddress);
    +// set IPP printer port+
    req.addProperty(DeliveryPropertyDefinitions.IPP_PORT, "631");
    req.addProperty(DeliveryPropertyDefinitions.IPP_PRINTER_NAME, "/ipp");
    +// set the document format+
    req.addProperty(DeliveryPropertyDefinitions.IPP_DOCUMENT_FORMAT,
    DeliveryPropertyDefinitions.IPP_DOCUMENT_FORMAT_POSTSCRIPT);
    req.addProperty(DeliveryPropertyDefinitions.IPP_COPIES, noOfCopies);
    req.addProperty(DeliveryPropertyDefinitions.IPP_SIDES, DeliveryPropertyDefinitions.IPP_SIDES_ONE_SIDED);
    req.addProperty(DeliveryPropertyDefinitions.IPP_MEDIA, DeliveryPropertyDefinitions.IPP_MEDIA_A4);
    +// set the document+
    req.setDocument(file);
    +// submit the request+
    req.submit();
    +// close the request+
    req.close();
    Edited by: Rivana on May 9, 2013 10:52 AM
    Edited by: Rivana on May 9, 2013 10:53 AM
    Edited by: Rivana on May 9, 2013 10:54 AM

    Hi,
    It should have something to do with authentication setting on printer server.
    To get more effective help, please redirect to Windows server forum:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=winserverprint&filter=alltypes&sort=lastpostdesc
    Thanks!
    Andy Altmann
    TechNet Community Support

  • DeliveryManager API issue

    Hi,
    I am trying to use the DeliveryManager API for printing from my customised application. The code what I am using is as follows:
    // create delivery manager instance
    DeliveryManager dm = new DeliveryManager();
    // create a delivery request
    DeliveryRequest req = dm.createRequest(DeliveryManager.TYPE_IPP_PRINTER);
    // set IPP printer host
    req.addProperty(DeliveryPropertyDefinitions.IPP_HOST, "10.80.4.35");
    // set IPP printer port
    req.addProperty(DeliveryPropertyDefinitions.IPP_PORT, "9100");
    // set IPP printer name
    req.addProperty(DeliveryPropertyDefinitions.IPP_PRINTER_NAME,"/printers/Kyocera Mita FS-9500DN KX");
    // set the document format
    req.addProperty(DeliveryPropertyDefinitions.IPP_DOCUMENT_FORMAT,"application/postscript");
    // set the document
    req.setDocument("D:/XMLP_EXERCISES/xmlp_api/DEMO/test.html");
    // submit the request
    req.submit();
    // close the request
    req.close();
    But the output what I get is always the source code of the html page and not the content as I see in the browser.
    In the req.addProperty(DeliveryPropertyDefinitions.IPP_DOCUMENT_FORMAT,"") I have tried all these options -- "text/html", "text/plain", "application/postscript" but the output is the same (the source of the html file :( )
    I would also want to know how to print a PDF document.
    Can someone please help me out.
    Thanks,
    Suresh

    I think your problem is related to pdf to PostScript.... you need to do that conversion before you print. Use a tool like pdftops
    error IPP printing - can someone help me out?

  • Error IPP printing - can someone help me out?

    Environment - WinXP
    Code:
    package xmlp;
    import java.io.*;
    import oracle.apps.xdo.delivery.*;
    public class xpdeltest {
    public static void main(String[] args) {
    try {
    DeliveryManager deliverymanager1 = new DeliveryManager();
    System.out.println("done new delivery manager");
    DeliveryRequest deliveryrequest1 =
    deliverymanager1.createRequest(DeliveryManager.TYPE_IPP_PRINTER);
    System.out.println("done set output type");
    deliveryrequest1.addProperty("HOST:String", "http://lrappdev1/printers/");
    System.out.println("done set host");
    deliveryrequest1.addProperty("IPP_PRINTER_NAME:String",
    "IBMInfoP/.printer");
    System.out.println("done printer name");
    deliveryrequest1.addProperty(DeliveryPropertyDefinitions.IPP_DOCUMENT_FORMAT,DeliveryPropertyDefinitions.IPP_DOCUMENT_FORMAT_PLAINTEXT);
    System.out.println("done doc format");
    //deliveryrequest1.addProperty("IPP_USE_FULL_URL:String", "true");
    //deliveryrequest1.addProperty("IPP_USE_CHUNKED_BODY:String", "true");
    deliveryrequest1.setDocument("test.txt");
    System.out.println("done getting file");
    deliveryrequest1.submit();
    System.out.println("done submitting");
    int i = deliveryrequest1.getStatus();
    String s12 = deliveryrequest1.getStatusMessage();
    System.out.println("Status is " + i + "Status Message is " + s12);
    deliveryrequest1.close();
    } catch (Exception e) {
    e.printStackTrace();
    Error
    done new delivery manager
    done set output type
    done set host
    done printer name
    done doc format
    oracle.apps.xdo.delivery.DeliveryException: File does not exist : test.txt
         at oracle.apps.xdo.delivery.AbstractDeliveryRequest.setDocument(AbstractDeliveryRequest.java:315)
         at xmlp.xpdeltest.main(xpdeltest.java:26)

    Hi Shaun
    Thanks for quick reply.Reason why i was referring code snippets is "we are not using XML publisher enterprise edition,we are using Oracle XML Publisher plain version which is without enterprise enhancement. So we can not apply PDF filter in configuration page".
    Steps which u r refering is applicable to enterprise edition.I will insert snippet of code first which i get it from Oracle® XML Publisher 5.6.1 Guide.
    // create delivery manager instance
    DeliveryManager dm = new DeliveryManager();
    // create a delivery request
    DeliveryRequest req = dm.createRequest(DeliveryManager.TYPE_I
    PP_PRINTER);
    // set IPP printer host
    req.addProperty(DeliveryPropertyDefinitions.IPP_HOST, "myhost
    // set IPP printer port
    req.addProperty(DeliveryPropertyDefinitions.IPP_PORT, "631");
    // set IPP printer name
    req.addProperty(DeliveryPropertyDefinitions.IPP_PRINTER_NAME,
    "/printers/myprinter");
    // set the document format
    req.addProperty(DeliveryPropertyDefinitions.IPP_DOCUMENT_FORM
    AT,
    DeliveryPropertyDefinitions.IPP_DOCUMENT_FORMAT_POSTSCRIPT)
    // set the document
    req.setDocument("/document/invoice.ps");
    // submit the request
    req.submit();
    // close the request
    req.close();
    -- Now here Printer can only understand .ps file ,it will not understand .pdf file,so i have to convert PDF into .ps first ,Before following line in above code
    req.setDocument("/document/invoice.ps");
    So do u know ,how i can convert PDF to PS in Java Program ,any utility or any Java API ,which will convert PDF to PS
    Thanks
    Darshan

  • IPP printing problems in lion

    Hi,
    I'm having problems printing through IPP to my HP LaserJet 1010 connected to a print server router linux based. If I connect the HP printer directly to my Mac, no problems printing, if I configure it using IPP to print in my print server router, I have the following errors in cups error_log:
    D [21/Dec/2011:00:23:08 +0000] [Job 94] cupsRowFeed:      0d
    D [21/Dec/2011:00:23:08 +0000] [Job 94] cupsRowStep:      0d
    D [21/Dec/2011:00:23:08 +0000] [Job 94] Clipping to: top=0.125000, left=0.125000, bottom=6815.875000, right=4760.875000
    D [21/Dec/2011:00:23:08 +0000] [Job 94] Paddint to: top=0.000000, left=0.000000, bottom=0.000000, right=0.000000
    D [21/Dec/2011:00:23:08 +0000] [Job 94] Print-Job: server-error-service-unavailable (Unknown)
    D [21/Dec/2011:00:23:08 +0000] [Job 94] The printer is busy.
    D [21/Dec/2011:00:23:08 +0000] [Job 94] Set job-printer-state-message to "The printer is busy.", current level=INFO
    D [21/Dec/2011:00:23:08 +0000] [Job 94] idle
    D [21/Dec/2011:00:23:08 +0000] [Job 94] Set job-printer-state-message to "idle", current level=INFO
    D [21/Dec/2011:00:23:08 +0000] [Job 94] update_reasons(attr=1(none), s="(null)")
    D [21/Dec/2011:00:23:08 +0000] [Job 94] op=' ', new_reasons=0, state_reasons=0
    D [21/Dec/2011:00:23:08 +0000] [Job 94] Get-Printer-Attributes: successful-ok (successful-ok)
    D [21/Dec/2011:00:23:08 +0000] [Job 94] Printing page 1, 0% complete...
    D [21/Dec/2011:00:23:08 +0000] [Job 94] Set job-printer-state-message to "Printing page 1, 0% complete...", current level=INFO
    D [21/Dec/2011:00:23:08 +0000] [Job 94] ATTR: job-media-progress=0
    D [21/Dec/2011:00:23:08 +0000] [Job 94] cgpdftoraster: bytes written for sheet 1 = 32450976
    D [21/Dec/2011:00:23:08 +0000] [Job 94] Intercepted signal: 20ld for PID: 1516
    D [21/Dec/2011:00:23:08 +0000] [Job 94] PID: 1516 exited w/ no errors.
    D [21/Dec/2011:00:23:08 +0000] [Job 94] idle
    D [21/Dec/2011:00:23:08 +0000] [Job 94] Set job-printer-state-message to "idle", current level=INFO
    D [21/Dec/2011:00:23:08 +0000] [Job 94] update_reasons(attr=1(none), s="(null)")
    D [21/Dec/2011:00:23:08 +0000] [Job 94] op=' ', new_reasons=0, state_reasons=0
    D [21/Dec/2011:00:23:08 +0000] [Job 94] Get-Printer-Attributes: successful-ok (successful-ok)
    D [21/Dec/2011:00:23:08 +0000] [Job 94] idle
    D [21/Dec/2011:00:23:08 +0000] [Job 94] update_reasons(attr=1(none), s="(null)")
    D [21/Dec/2011:00:23:08 +0000] [Job 94] op=' ', new_reasons=0, state_reasons=0
    D [21/Dec/2011:00:23:08 +0000] [Job 94] Get-Printer-Attributes: successful-ok (successful-ok)
    D [21/Dec/2011:00:23:08 +0000] [Job 94] idle
    D [21/Dec/2011:00:23:08 +0000] [Job 94] update_reasons(attr=1(none), s="(null)")
    D [21/Dec/2011:00:23:08 +0000] [Job 94] op=' ', new_reasons=0, state_reasons=0
    D [21/Dec/2011:00:23:08 +0000] [Job 94] Get-Printer-Attributes: successful-ok (successful-ok)
    D [21/Dec/2011:00:23:08 +0000] [Job 94] idle
    D [21/Dec/2011:00:23:08 +0000] [Job 94] update_reasons(attr=1(none), s="(null)")
    D [21/Dec/2011:00:23:08 +0000] [Job 94] op=' ', new_reasons=0, state_reasons=0
    D [21/Dec/2011:00:23:08 +0000] [Job 94] Get-Printer-Attributes: successful-ok (successful-ok)
    D [21/Dec/2011:00:23:08 +0000] [Job 94] STATE: - com.hp.s.0-report
    D [21/Dec/2011:00:23:08 +0000] [Job 94] STATE: - com.hp.s.42-report
    D [21/Dec/2011:00:23:08 +0000] [Job 94] STATE: - com.hp.s.5-report
    D [21/Dec/2011:00:23:08 +0000] [Job 94] STATE: - other-report
    D [21/Dec/2011:00:23:08 +0000] [Job 94] STATE: + com.hp.e.2-error
    D [21/Dec/2011:00:23:08 +0000] [Job 94] STATE: + other-error
    D [21/Dec/2011:00:23:08 +0000] [Job 94] STATE: - com.hp.s.0-report
    D [21/Dec/2011:00:23:08 +0000] [Job 94] STATE: - com.hp.s.42-report
    D [21/Dec/2011:00:23:08 +0000] [Job 94] STATE: - com.hp.s.5-report
    D [21/Dec/2011:00:23:08 +0000] [Job 94] STATE: - other-report
    D [21/Dec/2011:00:23:08 +0000] [Job 94] PID: 1512 terminated on signal 0!
    D [21/Dec/2011:00:23:08 +0000] [Job 94] Backend returned status 7 (unknown)
    D [21/Dec/2011:00:23:08 +0000] [Job 94] Retrying job on same printer.
    D [21/Dec/2011:00:23:08 +0000] [Job 94] End of messages
    D [21/Dec/2011:00:23:08 +0000] [Job 94] printer-state=3(idle)
    D [21/Dec/2011:00:23:08 +0000] [Job 94] printer-state-message="/usr/libexec/cups/backend/ipp failed"
    D [21/Dec/2011:00:23:08 +0000] [Job 94] printer-state-reasons=com.hp.e.2-error,other-error
    It seems that it can get some printer attrs, but it isn't able to print the file.
    It's important to point out that I configured a Windows Vista box to troubleshoot and printed a file without any problems.
    I googled and searched in this community, for similar problems and I didn't find any success case. I've also tried out many workarrounds without success.
    Best regards,

    Thanks for your quick response.
    Regarding queue name, in my case I think is correctly configured, because I can read it in the IPP request (Something like this - //ip_address:631/printers/PRINTERNAME) on log file, but I didn't paste all entries in this post due to its size.
    I already suspected in backend ipp binary, because I found more people reporting similar issues with it and mostly because in Windows is working without any problem and in my cups error log I had this two entries that seems to me some kind a bug:
    Backend returned status 7 (unknown)
    printer-state-message="/usr/libexec/cups/backend/ipp failed"
    Seems that ipp is returning an unknown value for some reason.
    I have tried to downgrade ipp binary, but I didn't find a previous version that works correctly in my environment.
    unfortunately, my router only supports ipp, In past I have tried with success LPR but with other router and other a HP printer through parallel port.
    Best regards,

  • IPP printing

    I am getting this status at the end - "Status is 15Status Message is ".
    Can someone tell me what does this mean?
    Dasu

    your IPP print server didnt understand the file type you sent.
    run the sample code to test your IPP Printer
    import java.io.*;
    import oracle.apps.xdo.delivery.*;
    import oracle.apps.xdo.delivery.ipp.IPPPropertyDefinitions;
    class demo {
    public static void main(String args[]) {
    try {
    DeliveryManager deliverymanager1 = new DeliveryManager();
    DeliveryRequest deliveryrequest1 = deliverymanager1.createRequest("ipp_printer");
    deliveryrequest1.addProperty("HOST:String", "mtrfp01b.us.ad.steris.com");
    deliveryrequest1.addProperty("IPP_PRINTER_NAME:String", "/printers/ipptest/.printer");
    deliveryrequest1.addProperty("IPP_DOCUMENT_FORMAT:String", "text/plain");
    deliveryrequest1.addProperty("IPP_USE_FULL_URL:String", "true");
    deliveryrequest1.addProperty("IPP_USE_CHUNKED_BODY:String", "true");
    deliveryrequest1.setDocument("1.pdf");
    deliveryrequest1.submit();
    int i = deliveryrequest1.getStatus();
    String s12 = deliveryrequest1.getStatusMessage();
    System.out.println("Status is " + i + "Status Message is "+ s12);
    deliveryrequest1.close();
    catch (Exception e)
    System.out.println("Oh Oh!! it didnt work" + e);
    which IPP Print solution are your using??

  • How can I check the return status of a request using URLConnection?

    Hi,
    I am using the classes URL and URLConnection to connect to a remote server and make a POST request. The code extract is:
    URL u = new URL("http://.....");
    URLConnection con = u.openConnection();
    con.setDoInput(true);
    con.setDoOutput(true);
    con.setUseCaches(false);
    con.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
    DataOutputStream out = new DataOutputStream(con.getOutputStream());
    out.writeBytes(........);
    out.flush();
    out.close();
    Next, I would like to check the return status of my request. I need to see if the server returned status 200 (OK) or an error (e.g. 404). Is there a way to check this?
    If you are aware of another way I can achieve this whole thing I would be grateful if you could let me know.
    Thanks very much for your help!

    URLConnection doesn't have a getResponseCode
    method...
    But I found a link
    http://bugs.sun.com/bugdatabase/view_bug.do;:WuuT?bug_
    id=4191207
    that helped me found out that there is another class
    called HttpURLConnection:
    ((HttpURLConnection)conn).getResponseCode( )You should read the API:
    http://java.sun.com/j2se/1.5.0/docs/api/java/net/URL.html#openConnection()
    "If for the URL's protocol (such as HTTP or JAR), there exists a public, specialized URLConnection subclass belonging to one of the following packages or one of their subpackages: java.lang, java.io, java.util, java.net, the connection returned will be of that subclass. For example, for HTTP an HttpURLConnection will be returned,..."

  • R12 update_vendor_site return status

    I am trying to update an existing supplier site and making this call :
    pos_vendor_pub_pkg.update_vendor_site(
    p_vendor_site_rec => vendor_site_rec,
    x_return_status => l_return_status,
    x_msg_count => l_msg_count,
    x_msg_data => l_msg_data);
    The return status is : "U" and the return message is "FND". I assume that successfull update should return me status "S" with no messages.
    Seems like "FND" stands for found ( which is normal in case of Update ) What does status "U" mean? Was the site successfully updated?
    thanks in advance.

    This API does not exist in R12.
    I have read in the API definition that it does not update TCA info. I assume this is why the update does not work in R12.
    Does anyone know how to update a vendor site or contact in R12???
    Thanks

  • Return status is S but assignment id is not created

    I  have  To Assign to resource to project for that ihave     used pa assignment Pub. Create assignment api. Given all parameter but run well return status  S but assignment id return null. Please help

    Maybe you need to commit after calling the API?

  • Return Status

    Hi. Does anybody know where can I find what a Return Status means? I'm getting "Command Failed. Return Status = 1030100" while running an Esscmd.Thanks a lot. Diego.

    ##1030100 Cannot open file: [%s]look for message.txt in your Hyperion directory. (essbase/api/include)orhttp://www-3.ibm.com/software/data/db2/db2olap/v81docs/errmsgs/erhelp.htmwith hints on how to solve error.or if not listed then you can get an idea of the error category by errors range:http://www.essbase.com/doc/essbase-62/dbag/dtrbl.htm#14640Eric BelmonPartake [email protected]

  • Return Status from RunCommand

    I am creating an operating system print command string on a Sun Unix box
    using enscript. When I submit the print string using RunCommand it works
    fine. However, if I specify a non-existant printer the RunCommand does
    not seem to provide any feedback to the TOOL code. I am using the
    ExitStatus attribute in OperatingSystem object to check. Is this a
    valid method for checking OS status?
    task.Part.OperatingSystem.RunCommand(command = runCommand, isSynchronous
    = TRUE);
    exitStatus = task.Part.OperatingSystem.ExitStatus;
    I have also added an exception handler to try to catch the condition. I
    am currently handling SystemException, FIleResourceException, and
    UsageException. None of these seem to get triggered when specifing an
    invalid printer name to the OS.
    Questions: (1) How can I return a status code from the OS to TOOL or at
    least detect the appropriate exception?
    (2) Is it possible to test for the existance of a network
    printer via tool code? For example could I ping the
    device and return a result?
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Gary
    I believe that the RunCommand does not return the OS Exitstatus to
    Forte. Attached to the RunCommand there are two parameters being
    stdfileout and errfileout. These files will capture the contents of
    stdout and stderr. When I call the OS via RunCommand, I append the
    following onto my command:
    lp fred;echo =$?=
    I then open and read the stdfileout and look for the string EOT =0=. If
    it is not there then my lp command did not terminate properly.
    This is not the cleanest thing in the world to do, but I know that it
    works. If anyone does know if you can trap the existstatus from
    RunCommand then I'd be really happy to find out about it.
    Michael Strauss
    Mazda Australia Pty Limited
    -----Original Message-----
    From: Gary Maxwell [mailto:[email protected]]
    Sent: Friday, 15 May 1998 1:00
    To: Eric Forte; [email protected]
    Subject: Return Status from RunCommand
    I am creating an operating system print command string on a Sun Unix box
    using enscript. When I submit the print string using RunCommand it works
    fine. However, if I specify a non-existant printer the RunCommand does
    not seem to provide any feedback to the TOOL code. I am using the
    ExitStatus attribute in OperatingSystem object to check. Is this a
    valid method for checking OS status?
    task.Part.OperatingSystem.RunCommand(command = runCommand, isSynchronous
    = TRUE);
    exitStatus = task.Part.OperatingSystem.ExitStatus;
    I have also added an exception handler to try to catch the condition. I
    am currently handling SystemException, FIleResourceException, and
    UsageException. None of these seem to get triggered when specifing an
    invalid printer name to the OS.
    Questions: (1) How can I return a status code from the OS to TOOL or at
    least detect the appropriate exception?
    (2) Is it possible to test for the existance of a network
    printer via tool code? For example could I ping the
    device and return a result?
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    This message has successfully passed virus checking.
    Mazda Australia takes every precaution to ensure email messages are virus free. For complete protection, you should virus test this message.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Network printing: ipp "printer is busy"/LPD and AppSock prints garbled data

    Dear all,
    After months of trying on and off, I give up - I need help please. Since upgrading to Leopard, then Snow Leopard, I cannot print to the office computers. Windows or IPP printer settings produce the "printer is busy - wait 15 seconds" etc error message; LPD and AppSock printer settings enable data to get through, but the output is garbled text (the Adobe Postscript 3 engine on the printer isn't happy, obviously).
    We have some new colour copier/printers from FujiXerox (FX Docucentre IV C3370) and some older Canon laser printers (LBP5600), but they don't offer Bonjour connectivity and I am stuck. I can ping them, I have the latest drivers, but nothing works. They worked fine in OS10.4 on this same computer, and XP and Windows 7 of course in BootCamp, but nothing in OS10.5 or 10.6.
    I've been all over the web and through the Discussions forums and tried all the suggestions I can see, to no avail. I've tried KeyChains to carry by login ID and password to the machines, and deleting/adding printers through both the System Preferences and the CUPS interface, but I confess I am stuck. I currently copy all of my documents every day to a Dell desktop on my desk just to print them out.
    The Canons are run through a Windows server, the FujiXerox has a standalone IP address and no separate print queue at the moment. Running OS10.6.2 on MacBook Pro. I'm happily connected to the network and can access all sharepoints and servers, I just can print to any of the printers - it's infuriating.
    Is it a Firewall problem? Sub-net problems? Any ideas most welcome, thanks for looking and sorry if I've missed out anything important.

    MacJapan wrote:
    After digging around I found the Windows drivers are ART EX drivers; obviously that doesn't really come in Macintosh flavour, but FujiXerox do have a non-postscript driver for the machine which I downloaded. This time I could connect via LPD, as FujiXerox recommend, but the print job stalls at the spooling stage; the error message reads that the 'Library/Printers/FujiXerox/Filter/FXPSACMMFilter.bundle/Contents/MacOS/FXPSACM MFilter' failed.
    The filter bundle crashing could be related to permissions on the filter or a result of using a 32bit driver with a 64bit application.
    For the permissions, you could opening Terminal and entering the following text;
    sudo chown -R root:wheel /Library/Printers/FujiXerox/Filter/
    then press ENTER. You will be prompted to enter you user name and password. The user name needs to be an account that has admin rights to the Mac.
    Exit Terminal and restart the Mac. Now try printing again.
    Regarding the 64bit apps, these are the included SL apps like Preview, TextEdit and Safari. If you attempted to print with one of these apps when you got the error, you could try forcing the app to open in 32bit mode. This is done with the application closed. Locate the app with Finder and do a Get Info on the package (icon). There will be the option to 'Open in 32bit mode'. Select this, close the Get Info window and open the app. Now try a print.
    Regarding the Non-Postscript driver, looking at the FJ drivers web site, there are two of these drivers available. Both are showing as version 1.1, but the dates are different. Have a look at the following link to see if you have the one with the most recent date.
    http://onlinesupport.fujixerox.com/setupDriverForm.do?ctrycode=AU&lang_code=en&dlang=en&pid=DCIVC3370
    Greg's suggestion to use the Generic PCL is also a good alternative. One thing I did find however with the PCL5c is that it does not print in colour, even though it would suggest it does based on the name (the c normally indicates colour).
    Did you get the Canon LBP printing?
    Pahu

  • Problems printing to http printer via IPP printing

    I have a US Robotics Router with a print server on it that is called
    Printer location: http://192.168.2.1:1631/printers/My_Printer
    I have tried adding this printer using IP>IPP print setup and have not had any luck. It works from a Windows laptop. The routers directions say to use MacOS X's Internet Printing Protocol using HTTP but looking at the screens it is from an older version of OSX like 10.2. Could someone tell me how to get this to work and maybe what to put into each field?
    Thanks,
    Tess

    It's important to understand that the standard port for IPP (& http) is :631 - but U.S.R. decided to use :1631...
    You need to use the "Advanced" protocols in Print & Fax prefs. First click +, then
    point the cursor on the toolbar (next to any icon) and right click/ ctrl-click > Customize Toolbar - then,
    Drag the Advanced icon to the toolbar.
    Click Advanced - find and select ipp via http.
    Enter URI like you've shown above, except "My_Printer" is the queue name on the USR print server (Oh, actually, maybe they mean that the USR queue name IS My_Printer).

  • Is there any way to print return address labels?

    Is there any way to print return address labels in Pages?

    I use Avery Design Pro. It's free, supports all thier templates, and works under Lion.
    http://www.avery.com/avery/en_us/Templates-&-Software/Avery-DesignPro-for-Mac.ht m

Maybe you are looking for

  • Multiple clean installation failures-HELP!

    Keep getting error message "there were errors installing software. Please try again" in the middle of clean installation. Have disconnected all peripherals and used disk utility and Norton to check disk. Disk OK. Recently added 256K RAM to facilitate

  • Creating an ISO file from a bunch of BUP, IFO, VOB files

    Hi First, i want to apologize to all of you if my question is already answered somewhere, i did a search before. I have a bunch of BUP, IFO, VOB files (from an entire DVD) that i would like to burn into a single .ISO file. I am looking for the best s

  • Including a DLL in JAR file (Comm API)

    Writing a little app that interfaces with serial port device using the communications API and I'd like to bundle it into an executable JAR. JBuilder will create the JAR for me fine, but the issue is with the win32com.dll file thats part of the comms

  • What are the steps for ALE?

    Hi.. Can anyone explain me the steps to link two systems via ALE.? Thanks

  • Validate profit center in complete Project Structure

    Hi PS gurus, I want to validate profit center in (complete Project Structure) Project definition, WBS elements, N/W Header and N/W Activities. •     Presently in the WBS Element there is a possibility to check (Project definition and WBS elements) PR