Java Text Printing

Hi Guys,
I am trying to print a text file in a JTextArea. I tried doing it in many ways...
1) Implementing Printable interface and calling printAll of the JTextArea - It only prints the first page. Not good for me.
2) Implementing Printable interface and drawing the text on the Graphics object using drawString. - Printing is good but it is very slow and spool size is very large. it takes around 2 mins to print a page. I have lots of reports going to tens of pages. They take a lot of time. Not good for me.
3) Implementing Printable interface and drawing the text on a DoubleBufferImage. Printing is fast but the image is not good. Not good for me.
All these things didnt work for me. Either they were slow using lot of spool memory or the resolution was not good.
So I started writing into the port of the printer (port - LPT) and it was very fast. To format the file, I used PCL and everything works fine now. I dont know if this is a good solution or if there are any other ways. Can somebody shed some light on this.
I am using Java 1.3.
-Vijay

Hi,
Implements the Printable like this... It works for me...
public int print(Graphics g, PageFormat pf, int pageIndex) throws PrinterException
Graphics2D g2 = (Graphics2D)g;
g2.setColor(Color.black);
Dimension dimen = this.getSize();
double panelW = dimen.width;
double panelH = dimen.height;
double pageH = pf.getImageableHeight();
double pageW = pf.getImageableWidth();
double scale = pageW/panelW;
int numPage = (int)Math.ceil(scale * panelH / pageH);
if(pageIndex >= numPage) return Printable.NO_SUCH_PAGE;
g2.translate(pf.getImageableX(), pf.getImageableY());
g2.translate(0f, -pageIndex*pageH);
g2.scale(scale, scale);
this.paint(g2);
return Printable.PAGE_EXISTS;
}

Similar Messages

  • Java PrintService printing Chinese/Japanese characters output is garbled.

    Hi Java Gurus,
    I have been spending the whole day trying to make our text printing application able to print non-western Characters (e.g. Chinese and Japanese) as part of our requirements. But I am constantly getting garbled output when I print a UTF-8 formatted text file containing Chinese characters. I've been trying to switch the DocFlavor types (e.g. byte array in UTF 8, input stream auto sense, UT8-8, etc) but I couldn't simply make it work.
    Here is our test method:
         public void testPrintText(String fileName) throws Exception {
              FileInputStream textStream = new FileInputStream(fileName);
              File file = new File(fileName);
              String fileContent = FileUtils.readFileToString(file);
              DocFlavor flavor = DocFlavor.BYTE_ARRAY.TEXT_PLAIN_UTF_8;
              //DocFlavor flavor = DocFlavor.READER.TEXT_PLAIN;
              InputStreamReader isr = new InputStreamReader(textStream, "utf-8");
              DocAttributeSet das = new HashDocAttributeSet();
              //System.out.println("host encoding: " + flavor.hostEncoding);
              Doc mydoc = new SimpleDoc(fileContent.getBytes("utf-8"), flavor, das);
              //Doc mydoc = new SimpleDoc(textStream, flavor, das);
              PrintRequestAttributeSet pas = new HashPrintRequestAttributeSet();
              pas.add(new PrinterName("\\\\fsinec\\Canon iR5055 PCL6", null));
              PrintService[] services = PrintServiceLookup.lookupPrintServices(flavor, pas);
              PrintService defaultService = PrintServiceLookup.lookupDefaultPrintService();
              System.out.println("DEBUG: " + defaultService.getClass().getName());
              if(services.length == 0) {       
                   if(defaultService == null) {
                        //no printer found
                   } else {            
                        //print using default
                        DocPrintJob job = defaultService.createPrintJob();
                        job.print(mydoc, pas);
              } else {        
                   //built in UI for printing you may not use this
                   PrintRequestAttributeSet attSet = new HashPrintRequestAttributeSet();
                   for(int ctr=0; ctr<services.length; ctr++) {
                        PrintService printService = services[ctr];
                        System.out.println("COTS DEBUG: " + defaultService.getClass().getName());
                   //attSet.add();
                   PrintService service = null;
                   if(services.length == 1) {
                        //assume that there is no other printer with the name \\\\fsinec\\Canon iR5055 PCL6
                        //resulting to fetch the printer services to only one (1) element.
                        service = services[0];
                   /* open a dialog box
                   * PrintService service =
                        ServiceUI.printDialog(null, 200, 200, services, defaultService, flavor, attSet);*/
                   if (service != null) {           
                        DocPrintJob job = service.createPrintJob();
                        job.print(mydoc, attSet);
    Please help me on this.
    Thanks.

    This could be of different reeasons...
    1) Make sure your printer is uni-code enabled.
    2) Make sure, your unicode enabled printer is configured in SAP.
    3) make sure, your printer device is supported by SAP. (You can find list of SAP recommended printers in www.service.sap.com)
    4) Check whether the correct device type is used for printing chinese and japanese characters.
    5) Check code pages.
    6) Make sure you use Cyrillic font family, for printing chinese and Japanese characters.
    Regards,
    SaiRam

  • Problem in java.awt.print

    Hi here is my code .
    I am generating page dynamically and passing to printer.
    Printing Functionalities working file. But I am taking some data from database (Access). And in this code for example i have 4 records in Database and i am generating 4 pages (each page for resord).
    I am getting only 2 records. And for other two records i am getting blank page.
    Reason is My ResultSet object is moving to next record twice.
    I mean if i have 6 records i get only 3 pages.
    If i have 10 records i get only 5 pages and If i have 1 record i dont get any page.
    How shall i solve this problem.
    Thanx in advance.
    import java.awt.*;
    import java.awt.print.*;
    import java.sql.*;
    public class SubbuBook extends Thread implements Printable {
    Connection con;
         Statement stmt;
         static ResultSet rsValue;
         public void run() {
              dataConnection();
              PrinterJob job = PrinterJob.getPrinterJob();
              Book bk = new Book();
              job.setPageable(bk);
              if (job.printDialog()) {
         try {
              bk.append(new SubbuBook(),job.defaultPage(), 4);
              job.print();
              }catch (Exception e) {
              System.out.println("Exception "+e);
         System.exit(0);
    public int print(Graphics g, PageFormat pf, int pageIndex) throws PrinterException {
         Font fntHeading = new Font("Helvetica",Font.BOLD,24);
    Font fntRow = new Font("Helvetica",Font.PLAIN,14);
         try{
         if(rsValue.next()) {
              g.setFont(fntHeading);
              g.setColor(Color.red);
              g.drawString("Main Report",200,100);
              g.setColor(Color.blue);
              g.drawLine(100,150,500,150);
              g.drawLine(100,150,100,500);
              g.drawLine(100,500,500,500);
              g.drawLine(500,100,500,500);
              g.drawLine(200,150,200,500);
              g.setFont(fntRow);
              g.setColor(Color.black);
              g.drawString("Program Id",120,200);
              g.drawString(rsValue.getString("prog_id"),250,200);
              g.drawString("Program Name",120,250);
              g.drawString(rsValue.getString("prog_name"),250,250);
              g.drawString("Artist Name",120,300);
              g.drawString(rsValue.getString("Artist"),250,300);
         }catch(Exception ae) {
         System.out.println("Exception inside Paint"+ae);
         return Printable.PAGE_EXISTS;
    private void dataConnection() {
         try{
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         con=DriverManager.getConnection("jdbc:odbc:artist");
         stmt=con.createStatement();
         rsValue=stmt.executeQuery("select * from artist order by Prog_name");
         System.out.println("Connection is Proper");
         }catch(Exception e){
              System.out.println("Exception at Connection"+e);

    I am not sure this..
    Instead of if pls give while and check:
    try{
    while(rsValue.next()) {
    g.setFont(fntHeading);
    g.setColor(Color.red);
    g.drawString("Main Report",200,100);

  • Configure client printer in java.awt.print

    I have number of records in database.
    If User clicks on PRINT button (ON A JSP PAGE)each record should be printed(ON CLIENT PRINTER) on a separate sheet.
    I can only able to access printer connected to server not to client.
    I am using javax.print and java.awt.print packages

    I am not sure this..
    Instead of if pls give while and check:
    try{
    while(rsValue.next()) {
    g.setFont(fntHeading);
    g.setColor(Color.red);
    g.drawString("Main Report",200,100);

  • Text Prints as Black Instead of Assigned Swatch

    Hi, I have been having problems with text printing to a HP laser 5500dn printing as black in
    stead of the assigned swatch color.
    I am using CS3 on a Mac.
    It will print fine exported to PDF or printed on an inkjet.
    I have reset preferences.
    In the print dialogue box I have the following settings.
    I DO NOT have "Text as Black" selected.
    Color Management is: US Web Coated SWOP v2
    Color Handling is Let InDesign determine Colors
    Printer Profile is Document CMYK US Web Coated SWOP v2
    Output color is Composite CMYK (Unable to change in this configuration)
    Lastly, after printing and then closing the document,ID asks to save changes, When I cancel and review what edits were done, the last edit comes up as
    "Undo Change Ink"
    I don't know what that means.
    Suggestions?
    Thanks

    Thanks for your help.
    I haven't deleted the swatch or converted to another color.
    Not sure what you mean by aliasing the swatch.
    I did as suggested and looked in the printer setup in the print dialog and did not see anything to print text as black.
    So I ended up changing the text to several different colors and now it prints those colors fine.
    I think the color is so dark as to appear to be black when printing even though it is very apparent on the monitor that it is much different than black.
    I know that monitor colors and printer colors won't match, but this had me very baffled.
    Especially as the PDF printed much differently.
    So I guess I am going to print from the PDF to make sure the colors are as I want them to be.
    I work predominantly on a PC with CS3 that does not have Indesign; the Mac has CS3 with InDesign. The Mac routinely prints all documents much darker than the PC and what is displayed on the screen.
    Thanks, again.

  • Parse Exception : java.text.ParseException: Unparseable date

    I have inherited a UDF in some mapping that on the whole, works okay...
    but it throws an error after mapping a few dates:
    Parse Exception : java.text.ParseException: Unparseable date: "2010-03-18T00:00:00.000Z"
    Parse Exception : java.text.ParseException: Unparseable date: "2010-03-23T23:59:00.000Z"
    Parse Exception : java.text.ParseException: Unparseable date: "2010-03-18T00:00:00.000Z"
    Parse Exception : java.text.ParseException: Unparseable date: "2010-03-23T23:59:00.000Z"
    Parse Exception : java.text.ParseException: Unparseable date: "2010-03-18T00:00:00.000Z"
    Parse Exception : java.text.ParseException: Unparseable date: "2010-03-23T23:59:00.000Z"
    the first few map okay...  then i get the exception.
    the UDF is as follows:
    public String convertDateTimeToUTC(String strDate, Container container) throws StreamTransformationException{
    AbstractTrace trace = container.getTrace();
    Date date=null;
    SimpleDateFormat sdfSource = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
    try{
    String dt = strDate;
    date = sdfSource.parse(dt);
    trace.addInfo("Local Date:"+date);
    SimpleDateFormat sdfDestination = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
    strDate = sdfDestination.format(date);
    catch(ParseException pe){
    trace.addInfo("Parse Exception : " + pe);
    return strDate;
    can anyone see why this fails after successfully mapping a few fields???

    the first mapping works correctly...
    then we reuse the same fields to map to the additional segments.
    the context is correct as it is trying to pull the same fields in...  it just throw the error with the same data in the same UDF/Function Library but for different segments! :o(
    http://img199.imageshack.us/img199/3104/dateconversion.jpg
    as you can see from the screenshot above, the mapping works in the first instance, then fails on subsequent nodes.

  • Java.text.ParseException :UnparseableDate

    Hi,
    Iam trying to convert a String into Date and that Date in to a customized Date format...,Here it is what iam doing..
    import java.util.*;
    import java.io.*;
    import java.text.*;
    public class str2date
    public static void main(String[] args)
    try
    String mystr="01-03-2003";
         SimpleDateFormat converttodt=new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ss");
         java.util.Date mydt=converttodt.parse(mystr.trim());
         System.out.println("mydt"+mydt);
         String output=converttodt.format(mydt);
         System.out.println(output);
         catch(ParseException e)
         System.out.println(e.toString());
    Error:"java.text.ParseException :UnparseableDate 01-03-2003"
    Can any one help me out... URGENT...,
    Thanks in Advance
    Rao.

    Well, the problem is right in front of you. You're telling it the format of the date is going to be
    yyyy-MM-dd'T'hh:mm:ss
    and then you're giving it the date in a format of
    MM-dd-yyyy
    and wondering why it's not accepting it? If you want to input a date from one format and output it in another you need to create two SimpleDateFormat objects, one to parse the date from a String to a Date object, and a second (or reuse the first with a different parse string) to format the Date and output it as a String.

  • Black text prints white

    I finally purchased a copy of iWork '08 and merrily created about 80 slides only when I went to print them out I discovered that the image of the text was in most places white. If the text was in a box it printed and some of the grey text printed along with all text I have set up to fade in or out as the presentation progresses. The details:
    The black text appears in preview but appears white due to the colored background.
    Changing fonts does not help.
    All other programs print fine. I am printing on a Canon MP830, the text does show up on my Laser.
    If I export it to a .pdf the problem follows, even though the text appears on the screen and in preview.
    If I change the color of my text from black to red, or blue it prints fine, shades of grey do not.
    If I export the file to power point and print it from an old version I have in a "Classic" partition running OS 10.4 it prints but when I installed iWork in this partition I get the same result.
    The printer, my software, and iWork has the latest updates installed.
    This is obviously (well maybe not so obviously since it could be a virus no one has caught up with yet) a huge bug in iWork and how it handles black text (I don't know about graphics because there are not black graphics in my slides). I spent several hours reading through the "Discussions" and there are quite a few instances where black text comes out white, blank sheets print out, conversions to .pdf come out with no text ect.
    Does any one know of a work around for this? My only option currently is to fix this or return iWork and go back to Micorsoft with my tail between my legs and purchase Office.

    Presets is set to "Standard" I never changed it. If I select the drop down window there is a choice for "last used settings" and a "Save As".
    I did manage to get my slides printed by saving the file as a Power Point, opening it in a old Office 2001 version of Power Point I have in a "Classic" partition. After a little reformatting they printed perfectly on the same printer. Its kind of sad to have a 8 year old Microsoft program out-perform the latest program from Apple. Of course I will say that using Keynote was enjoyable, but if you can't reliably Print and Export the program is useless no matter how many useful features it comes with.

  • Text prints as bold when it's not bold :(

    Hi,
    I'm using Windows 7 and InDesign CS6. When I print PDF documents from files that have been created in InDesign some lines of the text print out bold when they are not bold and they also look a little fuzzy. I am creating the PDf using the "[High Quality Print]" option. I have tried changing several settings on the printer but nothing makes a difference. The problem doesn't occur when I print in black and white nor does it occur on PDF's I create from word or other applications. Can someone please help? Thanks Mel

    Try updating the driver to a newer version for your printer.
    And if you can get a Postscript Driver for your printer.
    I had a similar issue last year and installing a postscript driver fixed the issue for me.
    What printer are you using?

  • Java.text.ParseException: Unparseable date: "2008-12-16 00:00:00"

    Dear All WebLogic Guru,
    Need your help about the error in our WebLogic Apps Server. Below is the related logs. Hope to hear from you soon.
    ========
    Log snippet:
    ========
    [15:48:02 ] [INFO] [NumberFormatException in TimesheetAddHandler:] null [delegate.helper.gbms.bulkcrg.timesheet.TimesheetOperatorAddHandler.perform(TimesheetOperatorAddHandler.java:77)]
    java.text.ParseException: Unparseable date: "2008-12-16 00:00:00"
    at java.text.DateFormat.parse(DateFormat.java:337)
    at ejb.sessionBeans.gbms.bulkcrg.timesheet.TimesheetOperatorEJB.getOpsDttm(TimesheetOperatorEJB.java:1647)
    at ejb.sessionBeans.gbms.bulkcrg.timesheet.TimesheetOperator_vn72b_EOImpl.__WL_invoke(Unknown Source)
    at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
    at ejb.sessionBeans.gbms.bulkcrg.timesheet.TimesheetOperator_vn72b_EOImpl.getOpsDttm(Unknown Source)
    at delegate.helper.gbms.bulkcrg.timesheet.TimesheetOperatorAddHandler.perform(TimesheetOperatorAddHandler.java:383)
    at delegate.RequestManager.perform(RequestManager.java:85)
    at delegate.FrontController.processRequest(FrontController.java:241)
    at delegate.FrontController.doPost(FrontController.java:378)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at sg.com.jp.framework.sso.SingleSignOnFilter.doFilter(SingleSignOnFilter.java:121)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at sg.com.jp.util.xss.XssFilter.doFilter(XssFilter.java:57)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at uiServlet.jponlinecharge.TxnLogFilter.doFilter(TxnLogFilter.java:153)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    [15:48:02 ] [INFO] [ScreenManager] Screen ID [TimesheetOperatorViewSvlt] mapped to [JSP/gbms/bulkcrg/timesheet/TimesheetOP_details.jsp] [delegate.ScreenManager.nextScreen(ScreenManager.java:60)]
    [15:48:02 ] [INFO] Next Screen is : /JRPA(or ServletContext@27549577[app:47jrpa module:JRPA path:/JRPA spec-version:null],WebLogic Server 10.3.4.0 Fri Dec 17 20:47:33 PST 2010 1384255 Oracle WebLogic Server Module Dependencies 10.3 Thu Oct 28 06:03:12 PDT 2010 Oracle WebLogic Server on JRockit Virtual Edition Module Dependencies 10.3 Thu Sep 23 15:02:15 PDT 2010 )/JSP/gbms/bulkcrg/timesheet/TimesheetOP_details.jsp [delegate.FrontController.processRequest(FrontController.java:322)]
    [15:48:02 ] [DEBUG] 2nd funcName in doFilter = TimesheetOP_details [uiServlet.jponlinecharge.TxnLogFilter.doFilter(TxnLogFilter.java:83)]
    [15:48:02 ] [DEBUG] #########new admin framework ########## Function Code = [uiServlet.jponlinecharge.TxnLogFilter.doFilter(TxnLogFilter.java:92)]
    [15:48:02 ] [DEBUG] Function Code = [uiServlet.jponlinecharge.TxnLogFilter.doFilter(TxnLogFilter.java:108)]
    Status :S
    [15:48:03 ] [DEBUG] Contains Function: true TimesheetOperatorSuperAmend [tags.ACLTag.doAfterBody(ACLTag.java:132)]
    [15:48:03 ] [DEBUG] Contains Function: true TimesheetOperatorSuperDelete [tags.ACLTag.doAfterBody(ACLTag.java:132)]
    [15:48:03 ] [DEBUG] Contains Function: true TimesheetOperatorClose [tags.ACLTag.doAfterBody(ACLTag.java:132)]
    [15:48:31 ] [DEBUG] 2nd funcName in doFilter = TimesheetOperatorSuperAmend [uiServlet.jponlinecharge.TxnLogFilter.doFilter(TxnLogFilter.java:83)]
    [15:48:31 ] [DEBUG] Function Code = F27052 [uiServlet.jponlinecharge.TxnLogFilter.doFilter(TxnLogFilter.java:108)]
    [15:48:31 ] [DEBUG] Logged In?: true [delegate.helper.System.AuthenticationHandler.valid(AuthenticationHandler.java:571)]
    [15:48:31 ] [INFO] [RequestManager] Request ID [TimesheetOperatorSuperAmend] mapped to [delegate.helper.gbms.bulkcrg.timesheet.TimesheetOperatorAmendHandler] [delegate.RequestManager.perform(RequestManager.java:77)]
    [15:48:31 ] [INFO] [RequestManager] delegate.helper.gbms.bulkcrg.timesheet.TimesheetOperatorAmendHandler Created [delegate.helper.gbms.bulkcrg.timesheet.TimesheetOperatorAmendHandler@66d4bf] [delegate.RequestManager.perform(RequestManager.java:82)]
    [15:48:31 ] [INFO] performing request delegate.helper.gbms.bulkcrg.timesheet.TimesheetOperatorAmendHandler@66d4bf [delegate.RequestManager.perform(RequestManager.java:84)]
    [15:48:31 ] [INFO] [NumberFormatException in TimesheetAddHandler:] null [delegate.helper.gbms.bulkcrg.timesheet.TimesheetOperatorAmendHandler.perform(TimesheetOperatorAmendHandler.java:96)]
    [15:48:31 ] [ERROR] java.lang.StringIndexOutOfBoundsException: String index out of range: 2
    at java.lang.String.substring(String.java:1934)
    at delegate.helper.gbms.bulkcrg.timesheet.TimesheetOperatorAmendHandler.perform(TimesheetOperatorAmendHandler.java:110)
    at delegate.RequestManager.perform(RequestManager.java:85)
    at delegate.FrontController.processRequest(FrontController.java:241)
    at delegate.FrontController.doPost(FrontController.java:378)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at sg.com.jp.framework.sso.SingleSignOnFilter.doFilter(SingleSignOnFilter.java:121)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at sg.com.jp.util.xss.XssFilter.doFilter(XssFilter.java:57)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at uiServlet.jponlinecharge.TxnLogFilter.doFilter(TxnLogFilter.java:153)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    [delegate.helper.gbms.bulkcrg.timesheet.TimesheetOperatorAmendHandler.perform(TimesheetOperatorAmendHandler.java:526)]
    [15:48:31 ] [INFO] errorMessage ::: There are some error with your request. Please contact administrator if problem persists. [delegate.FrontController.processRequest(FrontController.java:311)]
    =================
    Application Server Specs:
    =================
    OS: Solaris10 x86
    cat /etc/release
    Oracle Solaris 10 9/10 s10x_u9wos_14a X86
    Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
    Assembled 11 August 2010
    RAM: 8GB
    HDD: 70GB
    Apps Server: WebLogic Server Version: 10.3.4.0
    Thank you and have a blessed day.
    Best regards,
    Albert

    Hi,
    Try this
    The reason for this error is that the time format entered is not correct. It should be a date and 24-hour format expressed as mm/dd/yy hh:mm:ss. For example: 07/15/10 14:30:00.
    The WebLogic Server 11g documentation gives instructions for Date/Time format. For details, please refer to
    http://download.oracle.com/docs/cd/E14571_01/apirefs.1111/e13952/pagehelp/Diagnosticsdiagnosticsviewmetricslogtabletitle.html
    Solution
    However, since you cannot open the Domain Log page again because the console hangs or reports a "Redirect Loop" error, you cannot modify this wrong time format on the console. To resolve this issue, please follow these steps:
    Stop WebLogic Server.
    Go to directory <Domain>/servers/<Server_Name>/data/console
    Either open ConsolePreferences.xml and modify the value of startrange (and/or endrange) to a correctly formatted time, e.g. 07/15/10 14:30:00
    OR
    Delete ConsolePreferences.xml entirely.
    Start Weblogic Server again.
    Regards,
    Kal

  • Stop it from using photo black ink for black text printing and where has the color ink gone?

    My HP Photosmart Prem C310 series all in one is using the Black Photo ink cartridge for text printing instead of the XL Black that I put in it for text printing. How can I get it to use the right cartridge for printing? Also, even though I have NOT printed ANY photo's and very few pages of text the new set of color cartridges I put in it a few months ago are almost empty. Why? How could they be almost empty when I have NOT printed anything in color? This is getting ridiculous replacing ink cartridges every few months WHEN I HAVE NOT BEEN PRINTING ANYTHING!!!
    The set of ink cartridges that came with it lasted for several months. Since then I've gone through two sets in less than a year. That's 3 sets of ink cartridges when I have only printed 3 photo's when I first set it up. And have only used les than a 1/4 of one package of printing paper. I've only put paper in it twice. Each time it was about a 1/4 inch or 3/8 of an inch thick stack of paper in the tray. I've even tried shutting the printer down when its not being used for a long period of time but the ink is still disapearing. Where is it going? Why is it going there? How do I stop it? This is rediculous. I may as well junk the thing even though it still works because I cant aford to keep feeding it ink when its just sitting there doing nothing most of the time.
    Thank you
    This question was solved.
    View Solution.

    I just got another email from HP about this problem wanting to know what I found for a solution to this problem. From all of the suggestions from the HP tec support all of them pretty much kept saying the same thing. That it is my fault that it's using so much ink because I have it on the wrong settings. One tec did slip and say that it doesn't matter what settings you have it on it will always use the Photo Black cartridge for printing plain black text and it doesn't matter if you have a X-Large Black cartridge in it for text printing because it was made to always use the Photo Black for text and even use some of the colors to blend with the black to make it stand out. Why anybody would need this when just printing shipping labels and things like that I don't know.
    Any who, The only solution for this problem is,,,, junk the printer and get a different brand & model of printer. Research it before buying to find out how much ink it wants to waste and if it will still print black text if it only has a black cartridge in it. I was going to get rid of mine by giving it to a friend since they don't have a printer. But since I want to keep him as a friend I decided not to give it to him. Since it cant be traded in for a different one even though it still works, Its going to the target shooting range the next time I go out shooting. Maybe I'll take a few video's clips of it getting blasted to pieces with a Ruger 10-22 .22 cal. rifle with 25 shot clips, a Ruger Mini-14 Ranch Rifle shooting .223 cal with a 30 shot clip, a Chinese SKS 7.62 with a 30 shot clip. And maybe use my Ruger P89 9mm pistol and put a couple 15 round clips of 9mm in it. If there's anything left I'll finish it off with a few 3" magnum loads of #2 steel shot with my 20 gauge shotgun.  Then I think I'll do the same thing to my Westinghouse 46" flat screen HDTV that just died.
       Then maybe I'll come back and post the video's of my "solution to this printers problem". It may not fix the problem, but it will be an entertaining way of getting rid of the problem.

  • Laser Jet Printer/Color Text Prints Grey

    Hi everyone, I have a HP LaserJet 2430, black & white printer hooked up to my iMac. I'm running Snow Leopard 10.6.6. When I want to print, for example, an email where a color was used for the font, the colored font prints in grey. When I was able to use the printer driver of my choice, I believe I used a PS or post script driver and everything printed in solid black. Now that the operating system is choosing the drivers for us, I seem to have this grey text issue. I've tried going to HP and downloading older drivers but they wouldn't install on my system, something about the drivers being older versions or something. I'd sure like to be able to choose my own drivers. Can anyone lend any help on this?
    I am able to make the colored text print a little darker but I have to go through many dialog boxes to change different settings and I just want to print quickly but any application but be able to read the text a little easier.
    Thanks for any help!

    Hello Arifbutt72,
    To get your issue more exposure I would suggest posting it in the commercial forums since the Color LaserJet printer 3600 is a commercial product. You can do this at HP Enterprise Business Community.
    I hope this helps!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • Java.text.DecimalFormat Error

    I have this import directive in my jsp page.
    <%@ page import="java.io.*,java.sql.*;java.text.DecimalFormat" contentType="text/html;charset=windows-1252"%>
    I am using Jdeveloper 9i 9.0.3.
    When I compile this page from within JDeveloper I get this error for java.text.DecimalFormat
    Error: 'class' or 'interface' expected
    When I compile outside JDeveloper, I get NO error.
    Can somebody tell me what the problem is.

    <%@ page import="java.io.*;java.sql.*;java.text.DecimalFormat" contentType="text/html;charset=windows-1252"%>
    I think that missing semi-colon is what's creating problems for you.
    Sergio Bastos

  • Problem with too small page size using Java 2D Printing API.

    Hello,
    I have problem with resolution of printer using Java 2D Printing API. Despite my printer has 600 x 600 DPI, inside java.awt.print.Printable.print(Graphics, PageFormat, int) I receive page format with 600 x 840 page size.
    I have tried to set resolution using javax.print.attribute.PrintRequestAttributeSetand javax.print.attribute.standard.PrinterResolution, but with no result.
    Can anybody solve this problem?
    Regards,
    Karl.

    600 x 840 is a Point value; Point is defined as 1/72nd of an inch. Printers do have much higher DPI than this, but I believe that this DPI has to do with richness of the printed image, not an actual ability to color with that level of resolution. You might want to try calling zoom on your Graphics2D object. Otherwise, I don't know what else you can try.

  • Is printing to generic text printer and hand-coding the report possible?

    We have created Oracle Reports that are formatted to print to Zebra printers. We code the report in Report Layout and the text printed is for generic text printers, what our Zebra printers requires. Can this be done with APEX reports?
    Example:
    ^xa
    ^ilr:val_set.grf2^fs
    ^fo88,132^a0,90,80^fb464,1,0,C,0^fd&<ACCESSION>^fs
    ^by2,3.0,32^fs
    ^ft64,402^BCb,32,n,n^fd&<FARMFIELD>^fs
    ^ft600,402^BCb,32,n,n^sn&<LOCLOW>,1,y^fs
    ^fo304,232^a0r,20,20^fd&<LOCTYPE>^fs
    ^fo334,232^a0,50,45^sn&<LOCLOW>,1,y^fs
    (skipping some code here for brevity)
    ^pq&<LOC_ROWS>^fs
    ^xz
    Asking whether APEX can print to generic text printers and can we code the report output
    ourselves.
    Thanks for any help.
    dave

    Here is a simple example of printing via pl/sql to a text file...
    create or replace procedure utl_file_io is
    l_fil utl_file.file_type;
    l_buf varchar2(200);
    begin
    l_fil := utl_file.fopen('TMP', 'amar_test.t', 'W');
    utl_file.put_line(l_fil, 'This is a sample text file.');
    utl_file.put_line(l_fil, 'Generated from Oracle utl_file package.');
    utl_file.put_line(l_fil, 'Below is the content of am1010 table.');
    for rec in (select col1, col2 from am1000) loop
    utl_file.put_line(l_fil, rpad(rec.col1, 15, ' ') || rec.col2);
    end loop;
    utl_file.put_line(l_fil, 'End of File');
    utl_file.fclose(l_fil);
    exception
    when no_data_found then
    utl_file.fclose(l_fil);
    end;
    This routine will generate a text file to the default directory on your server, you would need to build an Oracle directory and change the code to include the path to your file there. Getting it to the printer could be a simple shell script that copies the file out your your printer if it is on the network and can be seen..
    Thank you,
    Tony Miller
    Webster, TX

Maybe you are looking for

  • Customizing the Recent Objects Portlet

    Hi, I want my Recent Objects portlet to show only those items added to specific page group.I dont find that option anywhere when I customize that portlet. Thanx -Vipul

  • Flashplayer 11 download issue with IE 10, Windows 7

    At 50% through install, I'm prompted to closed Internet Explorer. I have done this through various ways including Closing off via Task Manager but every time it's not recognizing it's off or it's at least still giving the same error message and won't

  • How do I customize the Push Notification sound?

    How do I customize the Push Notification sound?

  • Pandora Radio for iPhone 4.

    Hello, I have been having an issue with subscribing to the monthly radio service for Pandora Radio on my iPhone 4, please note the following messages I receive. Confirm Subscription - Done. Confirm Your Subscription - Done. You Can't Purchase This -

  • Bloody forehead...

    Hello all - I've been trying to get Adobe Central Output Server 5.5 to print a document for a couple weeks now.  I can't get it to work so have been banging my head on my desk, hence the bloody forehead reference.   We have an old version of JetForms