Problem with PJC (Print Dialog) - Forms 10g

I have a problem with my PJC for Forms 10g r2. When I try to connect and run my PJC (raise Print dialog and put printer name in some text item) I get following message:
oracle.forms.net.ConnectionException: Forms session <2> aborted: unable to communicate with runtime process.
     at oracle.forms.net.ConnectionException.createConnectionException(Unknown Source)
     at oracle.forms.net.HTTPNStream.getResponse(Unknown Source)
     at oracle.forms.net.HTTPNStream.doFlush(Unknown Source)
     at oracle.forms.net.HTTPNStream.flush(Unknown Source)
     at java.io.DataOutputStream.flush(Unknown Source)
     at oracle.forms.net.StreamMessageWriter.run(Unknown Source)
When I started application, on Java console I saw this message, so I think the server configuration is fine (I change everything I need in Default.env and FormsWeb.cfg files):
Loading http://devsrv/forms/java/jESPrintDialog.jar from JAR cache
What can I change with server configuration or deploying my project to this PJC can work normaly?
Thanks....

Hi and thanks!
I resolve one part of my problem. Tt was about diferent compiler (in JDeveloper 10.1.3 compiler is 1.5 and in my oc4j server JRE is earlier version, so it can`t work normaly).
I comiled PJC in 1.4 version of compiler and now I can start and run my PJC.
But, there is another problem:
this is my part of java code (note: everything work fine except one line when I want to get printer name from select printer dialog):
try {
boolean b;
PrinterJob job = PrinterJob.getPrinterJob();
b = job.printDialog();
try {
return job.getPrintService().getName();
catch (Exception e) {
System.out.println("Error: "+e.getMessage());
return "My error:";
} catch (Exception e) {
System.out.println("ERROR: " + e.getMessage());
return "Problem with PJC [esoft]";
So, when pjc want to get back printer name
return job.getPrintService().getName();
i get following error (on Java console):
java.lang.NoSuchMethodError
     at happypjc.PDialog.getProperty(PDialog.java:50)
     at oracle.forms.handler.UICommon.onGet(Unknown Source)
     at oracle.forms.engine.Runform.onGetHandler(Unknown Source)
     at oracle.forms.engine.Runform.processMessage(Unknown Source)
     at oracle.forms.engine.Runform.processSet(Unknown Source)
     at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
     at oracle.forms.engine.Runform.onMessage(Unknown Source)
     at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
     at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
     at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
     at java.awt.Component.dispatchEventImpl(Unknown Source)
     at java.awt.Container.dispatchEventImpl(Unknown Source)
     at java.awt.Component.dispatchEvent(Unknown Source)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
     at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
     at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
     at java.awt.Container.dispatchEventImpl(Unknown Source)
     at java.awt.Component.dispatchEvent(Unknown Source)
     at java.awt.EventQueue.dispatchEvent(Unknown Source)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.run(Unknown Source)
Can you give me some hint about it. Everything is OK now, except this (very important) peace of code!
best regards
mret

Similar Messages

  • Problem with custom print dialog in Illustrator cs3 on OS X

    Hello Illustrator Support Forum,
    I am an IT systems administrator and I have a user that has a problem when printing from Illustrator to our Ricoh photocopier.  The problem is that Illustrator uses its own custom print dialog and not the default mac os x system one.  This prevents the print job from going through because it does not send the required user code along with the print job.
    A work around we found was to print to Adobe Distiller creating a pdf then printing from there but this definately not ideal.
    Any ideas?
    Thank you,
    - Vince

    Hi Larry,
    Thanks for the tip.  This makes it a bit easier of a work-around but its still not a fix for the initial problem of printing directly through Illustrator.

  • PROBLEM WITH LOGO PRINTING IN REVERSE DIRECTION

    HI,
    When Ever I take the print out of the checks, The company logo is getting printed in reverse direction, but if i look at the print preview , it is showing up correctly. even if i take the print out of just  the logo from SE78, the logo is getting printed out in reverse direction...I think it is the problem with the printer settings, but i m not sure. Can any one please help me out with this issue,
    Regards,
    Raghu

    Hi,
      Are you trying to get this print directly from the backend or some frondend application triggers your form? As I also faced same problem many a times but then observed that when smartform was triggered from frontend, logo was always in its right position.
    Regards,
    Shikha

  • Problem with java print

    Hi, I'm have problems with java print (g2d). For example i want to print a String "ABC**************************DEF" on paper size 80mm width (invoice paper). I can print all that string with paper A4 size, but with paper size 80mm i have problem with that String, the result is "C*****************D" lost AB and EF. I think i had problem with paper size, pls help me. Thank you so much.
    My code is below:
    package app.util;
    To change this template, choose Tools | Templates
    and open the template in the editor.
    @author HUU NGHIA
    // Printing Sample code
    // This code demonstrates the Java 2 print mechanism
    import com.connection.Product;
    import java.awt.;
    import java.awt.print.;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    import java.util.Vector;
    // Define a class that is called per page that needs printing. It implements
    // the one and only method in the Printable interface : print. Note that
    // this is quite separate from the PrinterJob class print() method.
    // This method does not actually do any printing. All it does is write text
    // and/or graphics onto the passed page (graphics context). The calling
    // printer job object will then pass this page to the printer.
    public class PrinterController {
    public static void print(Vector<Product> products) {
    // Create an object that will hold all print parameters, such as
    // page size, printer resolution. In addition, it manages the print
    // process (job).
    PrinterJob job = PrinterJob.getPrinterJob();
    // It is first called to tell it what object will print each page.
    job.setPrintable(new PrintObject(products));
    // Then it is called to display the standard print options dialog.
    if (job.printDialog()) {
    // If the user has pressed OK (printDialog returns true), then go
    // ahead with the printing. This is started by the simple call to
    // the job print() method. When it runs, it calls the page print
    // object for page index 0. Then page index 1, 2, and so on
    // until NO_SUCH_PAGE is returned.
    try {
    job.print();
    } catch (PrinterException e) {
    e.printStackTrace();
    class PrintObject implements Printable {
    Vector<Product> products;
    public PrintObject(Vector<Product> products) {
    this.products = products;
    public int print(Graphics g, PageFormat f, int pageIndex) {
    Graphics2D g2 = (Graphics2D) g; // Allow use of Java 2 graphics on
    // the print pages :
    System.out.println("f.getImageableX(): " f.getImageableX());
    // A simple circle to go on the second page (index = 1).
    switch (pageIndex) {
    case 0:
    printInvoiceTemplate(g2, products);
    return PAGE_EXISTS;
    // case 1 : g2.setColor(Color.red); // Page 2 : print a circle
    // g2.draw(circle);
    // return PAGE_EXISTS;
    default:
    return NO_SUCH_PAGE; // No other pages
    public String getDate(){
    Date d = new Date();
    SimpleDateFormat sp = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss");
    return sp.format(d);
    private void printInvoiceTemplate(Graphics2D g2, Vector<Product> products) {
    //System.out.println("#######" cardInfo.getTranType());
    int alignY = 40;
    int alignXCenter = 60;
    int enterSpace = 15;
    int xProductName = 10;
    int xUnit = 85;
    int xAmt = 110;
    int xTotal = 155;
    int yEndData = 0;
    int totalAll = 0;
    g2.setColor(Color.black); // Page 1 : print a rectangle
    g2.setFont(new Font("Verdana", 0, 8));
    g2.drawString("ABC", alignXCenter, alignY);
    g2.drawString("123WWW", alignXCenter, alignY enterSpace *1);
    g2.drawString("Phone: (08)62891633", alignXCenter, alignY enterSpace*2);
    g2.setFont(new Font("Verdana", 1, 12));
    g2.drawString("Invoice", alignXCenter - 10, alignY enterSpace*4);
    products = new Vector<Product>();
    for (int i = 0; i < 10; i+) {
    Product product = new Product();
    product.setProductName("ZESTORETIC TAB 20MG B/28" i);
    product.setUnit("v"+i);
    product.setAmt(5+i);
    product.setPrice(50000+i);
    products.add(product);
    for (int i = 0; i < products.size(); i+) {
    System.err.println(i);
    int total = products.get(i).getAmt()*products.get(i).getPrice();
    g2.drawString(i+1+"."products.get(i).getProductName(), xProductName+2, alignY enterSpace(8+(i*2)));
    g2.drawString(products.get(i).getUnit(), xUnit+5, alignY enterSpace*(9(i*2)));
    g2.drawString(products.get(i).getAmt()"x"+AppUtils.formatPrice(products.get(i).getPrice())"", xAmt+5, alignY enterSpace*(9(i*2)));
    g2.drawString(AppUtils.formatPrice(total), xTotal+15, alignY enterSpace*(9(i*2)));
    yEndData = 9+(i*2);
    totalAll = totalAll total;
    System.out.println(yEndData);
    g2.drawLine(xProductName, alignY enterSpace*(yEndData 1), 210, alignY enterSpace*(yEndData 1));
    g2.drawString(AppUtils.formatPrice(totalAll)" VND", xAmt, alignY enterSpace*(yEndData 2));
    g2.drawString("Thank you", alignXCenter, alignY enterSpace*(yEndData 4));
    g2.drawString("***", alignXCenter 30, alignY enterSpace*(yEndData + 5));
    public static void main(String[] args) {
    PrinterController.print(null);
    }

    When you posted you didn't use code tags, as a result the forum software has interpreted some of your characters in your program as screen formatting codes and has corrupted your post--the most easily observable change is the bolded characters in you post. Please repost your code using code tags so people will be helping with uncorrupted code.

  • Problem with the printer or ink system. Turn printer off message.

    A message on the printer reads that there is a problem with the printer or ink cartridges.  I turned off printer several times, I have replaced cartridges.  At the bottom it says to contact HP. What do I do to get my printer working again? I also need to delete other printers that are listed as ones that I can use.  I don't have any idea about these other printers other than the HP printer 6700, All in one.

    Hi , I understand you are seeing an error stating there is an problem with the printer or ink system. If you have completed the solutions presented in the following document I suggest calling us: HP Officejet Printers - 'Problem with Ink System' Error Message Displays on the Computer During Setup. To reach somebody in tech support, what you can do, is use the following link to create yourself a case number, then call and it may help speed up the call process:
    Step 1. Open link: www.hp.com/contacthp/
    Step 2. Enter Product number or select to auto detect
    Step 3. Scroll down to "Still need help? Complete the form to select your contact options"
    Step 4. Scroll down and click on: HP contact options - click on Get phone number
    Case number and phone number appear.

  • Bizarre freezing problem with FireFox & printing from Wikipedia

    The Suspects:
    Mac Pro
    OS X 10.4.11
    Firefox 2.0.0.13
    wikipedia.org
    Brother HL-5240
    I bought a Brother HL-5240 laser printer a couple months ago and I'm really happy with it. A couple minutes ago I went to print some stuff from apple.com, then I went to wikipedia.org to print out some pages there. Immediately after clicking "Print" in the print dialog box, I got everyone's favorite spinning cursor.
    Huh... weird. I've never had a problem with this printer. I wait a little while, but Firefox is completely frozen up, which is ok since I accidentally printed the normal version and not the "printable version." I force quit and reopen. I try it again, this time with the "printable version" with the same result, spinning cursor, everything frozen. Force quit, reopen.
    Now I decide that I'm going to try to save it as a PDF from the print dialog. Again, same result! Everything is frozen!
    Time for Safari, it prints everything just fine.
    Anyone else run into this utterly strange problem?

    hello, firefox 19 has introduced its own integrated pdf viewer - if you want to switch back to the plugin you've used before to view pdfs just go to firefox > options > applications & scroll down and define the default action for the '''portable document format (pdf)'''.
    [[How to disable the built-in PDF viewer and use another viewer]]

  • Problem with HP Printer Utility and Mac OSX 10.5.4

    I have a problem with HP printer Utility. When a standard user adds a new paper profile HP Printer Utility asks to type an administrator's name and password to allow HP printer Utility to make changes. Is it possible to avoid this? Otherwise I have to give admin rights to every user because they have to be able to add new papers. HP printer Utility sharing and permisssions are set to read and write to everyone.
    HP designjet Z3200
    MacOSX 10.5.4 (Mac pro intel)
    HP printer utility 3.6.0.

    Just found an email HP Support sent to me back in January 2008, about this issue
    "Hello Hunter,
    Thank you for contacting HP Total Care.
    There currently is not proper driver for 10.5, so it is surprising that the printer is printing correctly on your Mac from any application.
    Your issue cannot be resolved until the 10.5 driver is developed and released.
    To sign up for an update as soon as it is available ...click on the link below:
    HP's subscriber's choice is a free service where you can select to receive timely email notifications ranging from software and driver updates to creative ways to do more with your HP products.
    http://h71036.www7.hp.com/hho/html/3618-0-0-225-121.html
    If you need further assistance, please reply to this message and we will be happy to assist you further.
    You may receive an e-mail survey regarding your e-mail support experience. We would appreciate your feedback.
    For information on keeping your HP and Compaq products up and running, please visit our Web site
    at:
    http://www.hp.com/go/totalcare
    Sincerely,
    Dave
    HP Total Care"
    I just sent them an email today on any updates regarding a release date on the Leopard driver for P1005, i'll post any info i receive.

  • T.code FBL5N: a problem with the print of the output list

    Hi All,
    with reference to the t.code FBL5N, I have  a problem with the print of the output list of the report.
    When I execute the print, I obtain one customer for each page printed.
    I wonder if is possible to obtain more customers for each page printed.
    Could anyone help me?
    Thanks
    Gandalf
    Edited by: Umberto Gandalf on Dec 21, 2008 10:36 PM

    Hi,
    Though personally i havent tried this option, check the same
    Go to Menu: Settings >> Switch List
    This will make the value displayed in ALV format and then try taking print outs.
    Regards,
    Sridevi

  • Problems with my printer HP Officejet pro 8600 Plus + Yosemite

    Hi got problems with my printer HP Officejet pro 8600 Plus till I installed Yosemite it is not recognized so what can I do now.. No new drivers found by HP

    Thanks for this AnnRT!
    I've spent the best part of a day trying to figure this out. Everything was fine and then one day nothing worked! I have narrowed the issue down to Bonjour via WiFi as everything worked fine via USB, and via IP over WiFi.
    I've now set a static IP for the printer and things seem to be working fine again
    Thanks!
    Chris

  • Problem with pdf-printing in Adobe Acrobat Pro

    Hi,
    I have Adobe Acrobat Pro 9.4.3.
    PDF-printing has always worked great but suddenly there is some kind of problem.
    After printing a excel-document from "Print to pdf" built-in function in MacOS OR Adobes Printer I have corruptet pdf-files when showing them in Adobe Reader/Acrobat, but the MacOS Preview-software shows them correct.
    So, there cannot be any problem with the printing, but the local preview on my computer using Reader or Acrobat. I dont even use the Myriad font in the document, I use Verdana.

    You say you're using Verdana but you're not. The error message clearly shows you're using MyriadPro Bold.
    You probably recently installed the Mac OS X 10.6.7 update which has a bug with OpenType PostScript fonts like MyriadPro Bold. Either use Verdana or another TrueType or PostScript font, or revert to Mac OS X 10.6.6.
    Read about the problem here: http://www.tidbits.com/article/12078

  • HP Officejet Pro 8600+ "There is a problem with the printer or ink system..."

    I have an HP Officejet Pro 8600+ that is coming up with an error message. This just happened out of the blue yesterday. The printer is just over a year old.
    It says:
    "There is a problem with the printer or ink system. Print head missing not detected incorectly installed or incompatable" 
    I have removed and reinstalled ink cartridges, the head, unplugged, cleaned, etc. etc.
    HP Officejet Pro 8600+
    Product Number CM750A
    Serial Number {Content Removed}
    Not under warranty
    Please advise.
    This question was solved.
    View Solution.

    Sorry that you are experiencing this problem. Here is a link that may assist you with the ink system.
    http://goo.gl/BXDFf
    It seems to be a bad print head, or it needs manually cleaned with lint free cloth and water. If these steps do not resolve the issue, contact HP Support (1800-474-6836).
    **Click the KUDOS star on the left to say 'Thanks'**
    Please mark a reply "ACCEPTED AS SOLUTION" if it solved your problem, so others can find it.

  • Problem with the printer or ink system code 0x610000f6 HP model 6700 premium

    Hello, I have recieved an alert for the second time in a week stating that there is a problem with the printer or ink system. The alert prompts me  to turn off, then on the printer. If problem persists, contact HP. 0x610000f6. What could be the cause for this type of alert to appear?

    '0x610000f6' error message appears if there is a 'Paper Jam' or a 'Carriage Jam' in the printer.
    You can experience following issues:
    The product won't print.
    The print job stops unexpectedly.
    To resolve Error code '0x610000f6' follow methods provided in below mentioned link
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&docname=c01620497

  • Problems with HP printer and PSE 11 (was bill v)

    When using my HP 7020e photosmart printer and Adobe photoshop elements 11, I get a very small white border on the prints. I have set for borderless printing. Adobe says the print size is 4.2 x 6.18 instead of 4 x 6. Any suggestions?

    I had already set it to borderless but it still prints a very small white 
    border. HP had no solution. I am ready to send the printer back to them.
    In a message dated 1/14/2014 5:47:22 A.M. Eastern Standard Time, 
    [email protected] writes:
    Re:  Problems with HP printer and PSE 11 (was bill v)
    created by hyadav (http://forums.adobe.com/people/hyadav)  in Photoshop 
    Elements - View the full  discussion
    (http://forums.adobe.com/message/6010537#6010537)

  • Problem with my printer "sorry not recognised"

    Dispite posting the problem i had after MUCH hard work and searching for how to do this, i never got a reply (i thought this was a support forum), i hate to say it but support from HP has seriously gone down hill, i have a problem with my printer which is in warrenty can i send and email NOOOOOOO cos i have to put S/N and product number i put them in but i get "sorry not recognised" How the hell are you meant to get any support when they make 99% impossible to to post and email them  i am sorry HP but your support is a shambles, your heads should be hung in shame.

    Same problem and the same printer, Yosemite not recognize the printer (which I think is incredible, Windows was better in these areas to get a new OS).
    Some advice from those who have been mentioned here and do not solve the problem?
    If I had known I stay with Snow Leopard, worked best on Imac mid-2010.
    Very unhappy with Apple, had understood that they were more serious and respectful to customers.

  • Pavillion G6. Shrunk C Drive, and formatted the other as I drive. Had some problems with my printe

    I shrank C drive. that left me with another drive, which I formatted as drive I.  The recovery drive is D, as it was when I received the computer.   I had some problems with my printer (Epson) through a Dlink DIR655B1, and wanted to return the computer to factory condition.
    When I try to use the recovery through Windows, it says factory reset is disabled??  When I try to shut down, reboot, and use the bios restore, it just comes up with an error message, says to use the dvd that came with the computer, which it didn't?
    Any way I can put this all back to normal?
    Thanks
    Joe

    517joe wrote:
    I shrank C drive. that left me with another drive, which I formatted as drive I.  The recovery drive is D, as it was when I received the computer.   I had some problems with my printer (Epson) through a Dlink DIR655B1, and wanted to return the computer to factory condition.
    When I try to use the recovery through Windows, it says factory reset is disabled??  When I try to shut down, reboot, and use the bios restore, it just comes up with an error message, says to use the dvd that came with the computer, which it didn't?
    Any way I can put this all back to normal?
    Thanks
    Joe
    You damaged the partition structure when you shrank C, see this guide to properly add a 5th partition after you get it restored using HP recovery media.
    http://h30434.www3.hp.com/t5/Other-Notebook-PC-Questions/How-to-repartition-HDD-of-HP-notebook-with-...

Maybe you are looking for

  • How to create web service client

    Hi All, I am new to web services .Can any body explain how to create web service client .... Please give the give the discription step wise. Thanx Arun

  • Form Question

    Hi Everyone, I'm first creating a form in Microsoft word before I put it into an Adobe form but, I need help. I want users to be able to fill in the text boxes & check boxes but, I also want them to be able to copy and paste text or pictures (into tw

  • DBMS_SESSION.RESET_PACKAGE

    Hi Guru's, I was using DBMS_SESSION.RESET_PACKAGE in oracle version 9.2.0.6.0.It was working fine.But when that application is tested in after apply patch 9.2.0.8.0, its showing different face.All the global variables are cleared from the memory only

  • Hard Disk Drive Failure

    Hello, I recently tried updating my iTunes on my Pavilion g6 with Windows 8 and when it went to restart to complete the update, the computer never restarted.  I ran a diagnostic and this is what I get: failure id: U4VL7D-6GE74R-MFPx0k-60RU03 hard dis

  • McAfee software will not update. Apparently my com...

    Apparently my McAfee sofware will not update and my computer is now at risk.  I have paid for this as part of my package with BT.  I presume they are responsible.  Solved! Go to Solution.