Java TEXT PANE & DOCUMENT
when i try to update the text associated with a document i get an exception "illegalstateexception"
I have created a JTextPane & associated it with a Default Styled Document.I have added Document Listener to the Document.Now when i type text in the JTextPane at run time ,I get my insertUpdate event triggered.In that i am trying to change the attribute of some of the code to reflect color coding concept in my GUI project.But i get illegalStateException .
Similar Messages
-
Cant get automatic scrolling text pane to work from other classes
Hi guys, I've been creating a program that utilises JInternalFrames, one of which frames is an "event log" which is simply a Document I append text to, problem is I'm getting some strange logic errors. It works fine if it's just left alone and adds text from its internal timer method, but as soon (sometimes on 3rd or 4th call) of it's static method called 'append' it starts spewing out error message - mainly ""AWT-EventQueue-0" java.lang.NullPointerException", and stops working.
Here is my internal frame (a MyJDesktopPane component), with its internal appendText that works fine.
import java.awt.event.*;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.swing.*;
public class EventLog extends JInternalFrame {
public EventLog() {
super("",
false, //resizable
false, //closable
false, //maximizable
true); //iconifiable
atp = new ELInternal();
this.getContentPane().add(new JScrollPane(atp));
this.setSize(200, 200);
this.setVisible(true);
// Add some text every second
Timer t = new Timer(1000, new ActionListener() {
public void actionPerformed(ActionEvent evt) {
String timeString = fmt.format(new Date());
atp.appendText(timeString + "\n");
SimpleDateFormat fmt = new SimpleDateFormat("HH:mm:ss");
t.start();
public static void append(String in)
try {
atp.appendText(in + "\n");
} catch ( Exception e ){}
static ELInternal atp;
}Here is the internal panes content:
import java.awt.*;
import javax.swing.*;
import javax.swing.text.*;
public class ELInternal extends JTextPane {
public ELInternal() {
super();
public ELInternal(StyledDocument doc) {
super(doc);
// Appends text to the document and ensure that it is visible
public void appendText(String text) {
try {
Document doc = getDocument();
// Move the insertion point to the end
setCaretPosition(doc.getLength());
// Insert the text
replaceSelection(text);
// Convert the new end location
// to view co-ordinates
Rectangle r = modelToView(doc.getLength());
// Finally, scroll so that the new text is visible
if (r != null) {
scrollRectToVisible(r);
} catch (BadLocationException e) {
System.out.println("Failed to append text: " + e);
}So every time I call "append" which another classes need to be able to call to update it's current event, It just doesn't work... ? I've been staring at this code for hours, think it's going all matrix on me.Isn't this the "*new* to java" forum? I know what error messages are for, if I understood it I wouldn't be here asking the question!!!!
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at javax.swing.text.BoxView.updateChildSizes(Unknown Source)
at javax.swing.text.BoxView.setSpanOnAxis(Unknown Source)
at javax.swing.text.BoxView.layout(Unknown Source)
at javax.swing.text.BoxView.setSize(Unknown Source)
at javax.swing.text.BoxView.updateChildSizes(Unknown Source)
at javax.swing.text.BoxView.setSpanOnAxis(Unknown Source)
at javax.swing.text.BoxView.layout(Unknown Source)
at javax.swing.text.FlowView.layout(Unknown Source)
at javax.swing.text.BoxView.setSize(Unknown Source)
at javax.swing.text.BoxView.updateChildSizes(Unknown Source)
at javax.swing.text.BoxView.setSpanOnAxis(Unknown Source)
at javax.swing.text.BoxView.layout(Unknown Source)
at javax.swing.text.BoxView.setSize(Unknown Source)
at javax.swing.plaf.basic.BasicTextUI$RootView.setSize(Unknown Source)
at javax.swing.plaf.basic.BasicTextUI.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at javax.swing.JEditorPane.getPreferredSize(Unknown Source)
at javax.swing.ScrollPaneLayout.layoutContainer(Unknown Source)
at java.awt.Container.layout(Unknown Source)
at java.awt.Container.doLayout(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validate(Unknown Source)
at javax.swing.RepaintManager.validateInvalidComponents(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Sourc
e)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source) -
How to attach a text/htm document to the message
Trying to attach a text/htm document to a workflow message and it is not working. Can someone please help?
Tried to attach it as a PL/SQL CLOB but the notification is never sent. It errors out with
ERROR:[SVC-GSM-WFMLRSVC-224510-10006 : oracle.apps.fnd.wf.mailer.SMTPOutboundProcessor.send(Message)]:Problem encountered when sending to {[["[email protected]"]]} -> javax.mail.MessagingException: IOException while sending message;
nested exception is:
java.io.IOException: No content
Wrote a stand-alone procedure to check if it can load the file to a clob and displayed the contents and it read and displayed correctly so I am not sure why it does not generate any content.
DBMS_LOB.CREATETEMPORARY(
lob_loc => temp_clob
, cache => false
, dur => dbms_lob.call
DBMS_LOB.OPEN(
lob_loc => temp_clob
, open_mode => DBMS_LOB.LOB_READWRITE
DBMS_LOB.OPEN(src_clob, DBMS_LOB.LOB_READONLY);
DBMS_LOB.LoadCLOBFromFile(
DEST_LOB => temp_clob
, SRC_BFILE => src_clob
, AMOUNT => DBMS_LOB.GETLENGTH(src_clob)
, DEST_OFFSET => dst_offset
, SRC_OFFSET => src_offset
, BFILE_CSID => DBMS_LOB.DEFAULT_CSID
, LANG_CONTEXT => lang_ctx
, WARNING => warning
DBMS_LOB.CLOSE(src_clob);
amount := dbms_lob.getLength(temp_clob);
dbms_lob.copy(document,temp_clob,amount,1,1);
document_type := 'text/htm' || ';name=' || filename;
DBMS_LOB.CLOSE(lob_loc => temp_clob);
DBMS_LOB.FREETEMPORARY(lob_loc => temp_clob);
Then I tried to attach it as a PL/SQL BLOB and now it errors out with a different error.
[WF_ERROR] ERROR_MESSAGE=3835: Error '-20002 - ORA-20002: [WFMLR_DOCUMENT_ERROR]' encountered during execution of Generate function 'WF_XML.Generate' for event 'oracle.apps.wf.notification.send'. ERROR_STACK= WF_MAIL.GetDocLOBContent(ORDER_RPT) WF_XML.GetAttachment(1079953, text/html) WF_XML.GetAttachments(1079953 WF_XML.GenerateDoc(oracle.apps.wf.notification.send, 1079953) WF_XML.Generate(oracle.apps.wf.notification.send, 1079953) WF_XML.Generate(oracle.apps.wf.notification.send, 1079953) Wf_Event.setMessage(oracle.apps.wf.notification.send, 1079953, WF_XML.Generate) Wf_Event.dispatch_internal()
DBMS_LOB.CREATETEMPORARY(
lob_loc => temp_lob
, cache => false
, dur => dbms_lob.call
DBMS_LOB.OPEN(
lob_loc => temp_lob
, open_mode => DBMS_LOB.LOB_READWRITE
DBMS_LOB.FILEOPEN(src_file, DBMS_LOB.LOB_READONLY);
dbms_lob.loadblobfromfile(
DEST_LOB => temp_lob
, SRC_BFILE => src_file
, AMOUNT => dbms_lob.lobmaxsize
, SRC_OFFSET => src_offset
, DEST_OFFSET => dst_offset);
DBMS_LOB.FILECLOSE(src_file);
amount := dbms_lob.getLength(temp_lob);
dbms_lob.copy(document,temp_lob,amount,1,1);
document_type := 'text/htm' || ';name=' || filename;
DBMS_LOB.CLOSE(lob_loc => temp_lob);
DBMS_LOB.FREETEMPORARY(lob_loc => temp_lob);Figured it out. Typed in 'text/htm' instead of 'text/html' for document_type.
-
Can't output text before document element?
Hello,
When I try to run my template, which is programmed in Java and which is supposed to extract information from XML-File, I use a XSLTInputSource interface. But the compiler send the following message:
org.xml.sax.SAXException: Warning: can't output text before document element! Ignoring...
Can anyone explain me, what this Exception means?
Thanks
RudiRatteThe XML-File is in a database, which I can't access.
-
Next focusable componentwhen using a text pane
I am using nextFocusableComponent and it works grand with textFields but how do I use it with a textPane. By pressing tab it will just go onto a new line. I want it to tab to the next item. I want to use "return/enter" to get the next line on the text pane.
Swing related questions should be posted in the Swing forum.
Here is my answer for a JTextArea. I assumes its the same for a JTextPane:
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=609727 -
How do you highlight text in document in Pages
How do you highlight text in document in Pages
but Pages is NOT a 3rd party app. it's an application that's programmed by apple. it's supposed to act something like Word in MS office, but that is not at all true.
choices for editing text, highlighting, et al., like what you find in MS Office Word, should be immediately available whenever you are inside of a Pages document, but that is not the case.
don't you wish that when you buy an apple app for apple/macs that is supposed to be like a windows something or another that it really is? -
Post long text for document line item via FI-GL Inbound IDoc
Hi guru,
I am trying post extension ZFIDCP02 linked basic type FIDCCP02 and message type FIDCC2 IDoc in R/3 (4.6c) via IBM Websphere (Inbound IDoc),
I am use inbound function module IDOC_INPUT_FIDCC2 and activate exit 008 (EXIT_SAPLF050_008) and exit 002 (EXIT_SAPLF050_002),
In the extension ZFIDCP02 and under E1FISEG, I am add my segment ZITEXT include field TDSPRAS, TDID, TDOBJECT, TDLINE.
I am send ZFIDCP02 IDoc via IBM Websphere no error but all field TDSPRAS, TDID, TDOBJECT, TDLINE in my segment ZITEXT not post in FI-GL.
How can I post long text for document line item (ZITEXT) in FI-GL ?.
and I'm mean post ZITEXT to bank statement via IDOC.
Please throw light on this and may be I 'm want solution or example ABAP code for exit 002 (EXIT_SAPLF050_002).
Thanks in advance,
Akkapong Pirachai
CAT Telecom
Edited by: Akkapong Pirachai on Aug 20, 2008 7:40 AMClose question because long time for answer.
-
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. -
Hi guys,
I need a component which acts as a chat screen allowing me to append messages. Each chat message may be a different colour. I also need to set the font of the pane via my look and feel. This font is not included in html.
First I tried using a JEditorPane which worked fine, I could change the colour of the text using html formatting but could not use my own font.
My next option was to use a JTextPane (see code below) but when I append lots of messages the screen flickers and the scroll pane jumps to the top.
public class JLTextPane extends JTextPane {
public void append(Color c, String s) {
setEditable(true);
StyleContext sc = StyleContext.getDefaultStyleContext();
AttributeSet aset = sc.addAttribute(SimpleAttributeSet.EMPTY,
StyleConstants.Foreground, c);
setCaretPosition(getDocument().getLength()); // place caret at the end (with no selection)
setCharacterAttributes(aset, false);
replaceSelection(s); // there is no selection, so inserts at caret
setCaretPosition(getDocument().getLength());
setEditable(false);
public void appendLine(Color c, String line) {
if(getDocument().getLength() == 0) {
append(c, line);
} else {
append(c, "\n" + line);
}I have run out of ideas. Any help?
ThanksI could not find your alternative approach from your last post. I understand it must be frustrating dealing with people who are new to swing when you are so experienced yourself but after all this is a forum and thats why I'm here.
I have written you a test program which should be runnable.
public class MessagePanel extends JPanel {
//the size of the panel
private static final Dimension SIZE = new Dimension(400, 175);
//the input box
private JTextField _input;
//the text pane itself
private JTextPane _pane;
public MessagePanel() {
initPanel();
createPanel();
public void initPanel() {
setLayout(new GridBagLayout());
setPreferredSize(SIZE);
public void createPanel() {
//create and setup the text pane
_pane = new JTextPane();
_pane.setEnabled(false);
//create and setup the scrollable pane
JScrollPane scrollable_pane = new JScrollPane(_pane);
scrollable_pane.setPreferredSize(new Dimension(SIZE.width - 5, SIZE.height - 26));
scrollable_pane.setVerticalScrollBarPolicy(
ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
//add the components to the main panel
GridBagConstraints c = new GridBagConstraints();
c.gridx = 0;
c.gridy = 0;
add(scrollable_pane, c);
private void append(Color colour, String message) {
if(colour == null) {
colour = Color.BLACK;
StyleContext sc = StyleContext.getDefaultStyleContext();
AttributeSet aset = sc.addAttribute(SimpleAttributeSet.EMPTY,
StyleConstants.Foreground, colour);
_pane.setCaretPosition(_pane.getDocument().getLength()); // place caret at the end (with no selection)
_pane.setCharacterAttributes(aset, false);
_pane.replaceSelection(message); // there is no selection, so inserts at caret
_pane.setCaretPosition(_pane.getDocument().getLength());
private void appendLine(Color c, String line) {
if(_pane.getDocument().getLength() == 0) {
append(c, line);
} else {
append(c, "\n" + line);
public static void main(String[] args) {
MessagePanel panel = new MessagePanel();
JFrame frame = new JFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().add(panel);
frame.pack();
frame.setVisible(true);
Color[] colours = new Color[3];
colours[0] = Color.RED;
colours[1] = Color.BLUE;
colours[2] = Color.ORANGE;
for(int i = 0; i < 100; i++) {
panel.appendLine(colours[i % 3], "Line: " + i);
}Could you possibly alter my code so that it can append lines without flicker and prevents the user from editing the JTextPane.
Thanks again. -
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,
AlbertHi,
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 -
How do I copy a photo from iPhoto and paste it into a text/Pages document?
How do I copy a photo from iPhoto and paste it into a text/Pages document (using iMaC)?
Use the Media browser in Pages and just drag the image over.
-
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 -
Possible to change a text pane in card template to photo pane?
I am working on a holiday card, but would like to use an additional photo where there is currently a text box/pane. Is there any way to change this text pane to another photo? Simple drag and drop does not seem to work.
Thanks,
BorisLOL. man what a day! Ever feel like when you do anything it
takes an act of congress? As if walking through quicksand? Sheesh.
Yes, here is the link you need:
Click
here to visit the Capitvate Feature Request/Bug Reporting form
Cheers... Rick -
URGENT: Entering Chinese into Java Text Area
Hi,
This might be an FAQ question but some of the info I've gotten over the web so far is conflicting.
How do I allow a user to enter Chinese text into a Java Text Area (using an english keyboard)?
All my users have:
English Windows 2000 with a multilanguage pack. I cannot change this.
But, I can specify any downloads (IMEs, etc.) and I can choose whichever version of Java I desire.
Please let me know what is the simplist way to enable Chinese data entry in this environment. Let me know if I need to create my own input type :( or I can use MS Global IME) or if there are other third party chinese input types (even if they are not free).
Thank you and have a nice day.
Best Regards,
CarlosThanks for the note. The news was depressing - but things are much clearer now :) I would like one more clarification, though -
On the MS site, I quote
Any user who needs to input East Asian text across the language platforms of Windows Me, Windows 98, Windows 95, or Windows NT 4.0 could use Global IME.
"Note: On Windows 2000, the Global IMEs work in any application since that OS has full-featured East Asian input support built in. On Windows Millennium, Windows 98, Windows 95, and Windows NT 4.0, the Global IMEs work only in supporting applications."
When they say they say "full-featured East Asian input support built-in" does that exclude Java? If it would work, would it work with Swing or only AWT?
Any thoughts? Thanks again for your not, I would greatly appreciate it if you could help me with this clarification.
Best Regards,
Carlos
Maybe you are looking for
-
Can you choose which emails are downloaded?
I had a lot of fun tonight at launch of iPhone in the UK at local Apple Store. Had used the iPhone in US months ago - it's better than I remembered! But I'm puzzled about apparent lack of one feature which is important for mail management. have I mis
-
Error on Invalid certificate serial number while configuring mutual SSL
Hi Guys, I encounter this error(refer below) while running the EAI Outbound Body proxy.I'm currently trying to do outbound web service with a third party who uses SSL. Base on oracle support I have followed on how to import the CA certs and also I ha
-
Import process in cin for complite process
sir can some one explain me total process in journal entries (from po to utliz) in capital import process. when i am posting excise in j1iex_p it is crediting below gl acc i could nt understand actual process ,when i am doing miro all expencess is po
-
How to get '%' Sign in a column
Hi, I'm trying to calculate Percentage and would like to see it's sign (%) in front of the result... Can anybody help me with sort of Column settings? Thank you. Jitendra
-
Need a recommenda​tion on a DAQ to finish this configurat​ion
I am currently putting together a setup that includes the following items: 1: Motor Driver - Aries AR-01xx from Parker 2: NI UMI -7774 3: Motor - Direct Drive Rotary Table from Parker that is listed under rotar