StringIndexOutOfBoundsException error while convering char to string

I am getting the following error could someone please help. thanks.
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
the error is on line : char a = middleinitial.trim().charAt(0);
following is my code:
if (!fname.equals("") && (!lname.equals("") && (!mi.equals(""))))
             s = lname.trim()+fname.trim()+mi.trim();
             lastName = st.nextToken().trim();
             firstName = st.nextToken().trim();
             middleinitial = st.nextToken().trim();
             char a =  middleinitial.trim().charAt(0);
             if (mi.equalsIgnoreCase(String.valueOf(a)))
               {name3 = lastName+firstName+mi;
                 if (name3.equalsIgnoreCase(s))
                   row.addElement(lastName);
                   row.addElement(firstName);
                   row.addElement(middleinitial);
                   while (st.hasMoreTokens())
                     row.addElement(st.nextToken());
                   dataVector.addElement(row);
             }

if i am trying to serch midname z i still get
exception because it hits null before it hits zYou should place the search inside the empty String
if() block like this:
  while ( (record = dis.readLine()) != null)        
      StringTokenizer st = new StringTokenizer(record, ":", false);
      Vector row = new Vector();
      String s;
      String t;
      if (!fname.equals("") && (!lname.equals("") && (!mi.equals(""))))          
          s = lname.trim()+fname.trim()+mi.trim();
          lastName = st.nextToken().trim();
          firstName = st.nextToken().trim();
          middleinitial = st.nextToken().trim();
          if(!middleinitial.equals("")
            char a =  middleinitial.trim().charAt(0);
            if (mi.equalsIgnoreCase(String.valueOf(a)))              
                name3 = lastName+firstName+mi;
                if (name3.equalsIgnoreCase(s))                
                    row.addElement(lastName);
                    row.addElement(firstName);
                    row.addElement(middleinitial);
                    while (st.hasMoreTokens())                  
                        row.addElement(st.nextToken());
                    dataVector.addElement(row);                       }
  }Is this how you tried it?
Alpha75

Similar Messages

  • Error while trying to retrieve string from STDIN

    Hello,
    I want to read a string from input I use this code but getting compilation error:
    String s = System.in.readLine();
    Error is:
    symbol : method readLine ()
    location: class java.io.InputStream
    String s=System.in.readLine();
    ^
    1 error
    what's going wrong?
    System is Linux Slackware 9.1
    Thanks,
    Regards.

    Yeah, don't use readLine if you just want a single character. Actually you don't need the BufferedReader at all unless you want to do buffering for a reasoon other than to make it easy to read a line at a time. (Of course, buffering is a good thing anyway, but it's not strictly relevant to grabbing a character.)
    Re: requiring enter to be pressed, that may have a lot to do with your shell as well.
    try {
      Reader in = new InputStreamReader(System.in);
      int theChar; // you need an int because the read method returns values
                   // beyond the bits required for a char, to denote end of file
      while((theChar = in.read()) > -1) {
        System.out.println("Char read: " + (char) theChar);
      System.out.println("end of file reached");
    } catch (IOException e) {
      e.printStackTrace();
    }

  • Error while passing parameter(quoted string parameter ) to sql script

    Hi all,
    I have a master script insert_attribute_single.sql which takes 6 parameter. when i am using in sql prompt
    SQL>@@INSERT_ATTRIBUTE_SINGLE.SQL 'LEED PROJECT START DATE' 7 'N' 27265185 '7'22'008' NULL;
    then it is giving error for the 5th parameter. and i need to pass 5th parameter '7'22'008' in this.
    in the master script it is giving error - ORA-06550 here.
    dbms_output.put_line('Processing attribute : &1 Project : &4 Char value : &5 Numeric Value : &6 ' ) ;
    can you please help me to resolve this with single quotes in string.
    Thanks in advance.
    regards
    shyam~

    Here is my sql file:
    declare
    a_Var VARCHAR2(10) := '&1';
    begin
    dbms_output.put_line(a_var||','||'&2');
    end;
    /Here is how I am calling the sql file with parameter values containing quotes in itself:
    SQL> @@d:\a.sql '12''''23''''23' '123'
    old   2: a_Var VARCHAR2(10) := '&1';
    new   2: a_Var VARCHAR2(10) := '12''23''23';
    old   4: dbms_output.put_line(a_var||','||'&2');
    new   4: dbms_output.put_line(a_var||','||'123');
    12'23'23,123
    PL/SQL procedure successfully completed.
    SQL>

  • While validating windows when ienter legitcheck it says internet explorer script error line:94 char:5 error 's' is undefined

    Internet Explorer was unable to link to the Web page you requested. The page might be temporarily unavailable.
    Please try the following:
    Click the Refresh button, or try again later.
    If you have visited this page previously and you want to view what has been stored on your computer, click File, and then click Work Offline.
    For information about offline browsing with Internet Explorer, click the Help menu, and then click Contents and Index.
    while validating windows when i press legitcheck it says internet explorer script error line:94 char:5
    and says action cancelled Internet Explorer
    == This happened ==
    Every time Firefox opened
    == while validating windows

    Firefox 3.6.3 crashes running the validation script just as listed above. It also crashed on an older version of Firefox.

  • Unterminated String constant javascript error while handling textarea in ja

    hi,
    my code is -->
    <textarea class = "ipfield" rows="2" cols="80" name = "ruleDesc" id = "ruleDesc" onchange="setIsEdited()"><c:out value="${ruleDesc}" escapeXml="false"/></textarea>
    on click of cancel it should be reseated to previously present in ModelAnd View(MAV) object
    code is document.getElementById('ruleDesc').value = '<c:out value="${ruleDesc}" escapeXml="false"/>';
    but m getting javascript error while setting tht one
    i view tht source in IE.
    that is because of
    it looks like ->
    document.getElementById('ruleDesc').value = 'this is the data from database
    ok ?'
    if there is \n in database it will go to next line because of that *'* after document.getElementById('ruleDesc').value is not completed
    can u please help me about that problem.
    thanx in advance.

    Actually seeing as we are talking javascript at this point, the correct escape would be to escape the \n character. ie produce it as the characters \ and n.
    I would recommend using [StringUtils.escapeJavascriptString|http://commons.apache.org/lang/api-release/org/apache/commons/lang/StringEscapeUtils.html#escapeJavaScript(java.lang.String)] from the [apache commons|http://commons.apache.org/lang/]
    Cheers,
    evnafets

  • DG4ODBC: STRING DATA, RIGHT TRUNCATION ERROR WHILE ACCESSING VARCHAR(MAX) COLUMN

    Problem Summary
    DG4ODBC: STRING DATA, RIGHT TRUNCATION ERROR WHILE ACCESSING VARCHAR(MAX) COLUMN
    Driver
    Microsoft® ODBC Driver 11 for SQL Server® - RedHat Linux
    Problem Description
    When selecting a MS SQL VARCHAR (max) column over a ODBC Gateway database connection I am getting this error from Oracle:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Microsoft][ODBC Driver 11 for SQL Server]String data, right truncation {01004}
    [Microsoft][ODBC Driver 11 for SQL Server]String data, right truncation {01004}
    [Microsoft][ODBC Driver 11 for SQL Server]String data, right truncation {01004}
    [Microsoft][ODBC Driver 11 for SQL Server]String data, right truncation {01004}
    [Microsoft][ODBC Driver 11 for SQL Server]String data, right truncation {01004}
    ORA-02063: preceding 2 lines from <LINK_NAME>
    The ODBC driver should map the varchar(max) column to SQL_LONGVARCHAR which would be appropriate for Oracle but the column is getting truncated
    Issue
    By default the SQL Server ODBC driver exposes the varchar(max) data type as a SQL_VARCHAR. When reporting the maximum size of a varchar(max) column, the driver returns 0, which is the Microsoft convention for "unlimited".
      [ODBC][25518][1399527750.588980][SQLDescribeCol.c][497]
      Exit:[SQL_SUCCESS]                
      Column Name = [raw_response]                
      Data Type = 0x7fffe3cbe1a4 -> 12                
      Column Size = 0x7fffe3cbe158 -> 0                
      Decimal Digits = 0x7fffe3cbe1ac -> 0                
      Nullable = 0x7fffe3cbe1b0 -> 1
    DG4ODBC is unable to interpret a zero length as an "unlimited" size and returns an error when retrieving varchar(max) data.
    FreeTDS and DataDirect ODBC drivers  return SQL_LONGVARCHAR instead of SQL_VARCHAR with 0 precision. So there is no problem reported for these drivers.
    Is there a fix for this or is the Microsoft ODBC driver team working on a fix for the driver regarding varchar(max)?
    Regards,
    James

    Hi James,
    Thank you for your question. I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
    If you have any feedback on our support, please click
    here.
    Regards, 
    Elvis Long
    TechNet Community Support

  • Error while creating Attribute In BPM Object

    Hi,
    I am getting error while creating attributes in BPM Object.I am not able to open BPm object. while opening I am getting Below error.
    Please suggest.
    java.lang.StringIndexOutOfBoundsException: String index out of range: 28
         at java.lang.String.charAt(Unknown Source)
         at fuego.type.TypeFactory.createFromName(TypeFactory.java:482)
         at fuego.type.TypeFactory.forNameLazy(TypeFactory.java:263)
         at fuego.lang.CollectionTypeDescription.getIndexTypeRef(CollectionTypeDescription.java:146)
         at fuego.compiler.type.TypeRenderer.renderArrayType(TypeRenderer.java:355)
         at fuego.compiler.type.TypeRenderer.renderType(TypeRenderer.java:261)
         at fuego.compiler.type.TypeRenderer.renderArrayType(TypeRenderer.java:344)
         at fuego.compiler.type.TypeRenderer.renderType(TypeRenderer.java:261)
         at fuego.compiler.type.TypeRenderer.render(TypeRenderer.java:106)
         at fuego.compiler.type.TypeRenderer.render(TypeRenderer.java:94)
         at fuego.compiler.type.TypeRenderer.render(TypeRenderer.java:78)
         at fuego.designer.XObjectComponentStructurePanel$CellTypeRenderer.getText(XObjectComponentStructurePanel.java:612)
         at fuego.designer.XObjectComponentStructurePanel$CellTypeRenderer.getText(XObjectComponentStructurePanel.java:605)
         at fuego.ui.peer.swt.SwtTable$SwtTableModel.getColumnText(SwtTable.java:956)
         at org.eclipse.jface.viewers.TableColumnViewerLabelProvider.update(TableColumnViewerLabelProvider.java:70)
         at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java:135)
         at org.eclipse.jface.viewers.AbstractTableViewer.doUpdateItem(AbstractTableViewer.java:386)
         at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:466)
         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
         at org.eclipse.core.runtime.Platform.run(Platform.java:857)
         at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
         at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:199)
         at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:2026)
         at org.eclipse.jface.viewers.AbstractTableViewer.internalRefreshAll(AbstractTableViewer.java:695)
         at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:633)
         at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:620)
         at org.eclipse.jface.viewers.StructuredViewer$7.run(StructuredViewer.java:1433)
         at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1368)
         at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1330)
         at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1431)
         at org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer.java:536)
         at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1390)
         at fuego.ui.peer.swt.SwtViewer.repaint(SwtViewer.java:59)
         at fuego.ui.peer.swt.SwtColumn.setLabelProvider(SwtColumn.java:89)
         at fuego.ui.Column.setLabelProvider(Column.java:82)
         at fuego.designer.XObjectComponentStructurePanel.buildUI(XObjectComponentStructurePanel.java:299)
         at fuego.designer.AbstractEditor.build(AbstractEditor.java:542)
         at fuego.designer.AbstractEditor.init(AbstractEditor.java:133)
         at fuego.designer.XObjectComponentStructurePanel.<init>(XObjectComponentStructurePanel.java:126)
         at fuego.eclipse.studio.multipageeditor.BPMObjectMultipartEditor.createStructurePage(BPMObjectMultipartEditor.java:581)
         at fuego.eclipse.studio.multipageeditor.BPMObjectMultipartEditor.addDefaultPages(BPMObjectMultipartEditor.java:464)
         at fuego.eclipse.studio.multipageeditor.ExtendedMultiPageEditorPart.createPages(ExtendedMultiPageEditorPart.java:399)
         at fuego.eclipse.studio.multipageeditor.eclipse.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:253)
         at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
         at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:426)
         at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592)
         at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:299)
         at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:179)
         at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
         at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
         at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:400)
         at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)
         at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)
         at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1604)
         at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
         at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
         at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
         at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
         at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
         at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:217)
         at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:207)
         at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:774)
         at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:673)
         at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:634)
         at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2737)
         at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2651)
         at org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPage.java:2643)
         at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2595)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
         at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2590)
         at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2574)
         at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2557)
         at fuego.eclipse.ui.DefaultEditor.open(DefaultEditor.java:65)
         at fuego.eclipse.studio.EclipseWorkbench.createEditorFromResource(EclipseWorkbench.java:529)
         at fuego.eclipse.studio.EclipseWorkbench.createEditor(EclipseWorkbench.java:297)
         at fuego.designer.action.OpenCatalogNodeAction.open(OpenCatalogNodeAction.java:91)
         at fuego.designer.action.OpenCatalogNodeAction.run(OpenCatalogNodeAction.java:55)
         at fuego.eclipse.ui.EclipseAction.run(EclipseAction.java:180)
         at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
         at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
         at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
         at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
         at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
         at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
         at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
         at org.eclipse.equinox.launcher.Main.run(Main.java:1173)

    When you say you're having trouble "opening" the BPM Object, is it possible you instead mean you're having trouble expanding the BPM Object?
    Just a guess, but if you're having trouble expanding the BPM Object I'd suspect that the object's xcdl contents might be corrupted. You might want to consider exporting and saving a backup of the project and then try deleting the object from the Project Navigator. Rebuild the BPM Object once you've deleted it.
    Dan

  • Error while creating farm for Office web apps

    Hello.
    I have error while creating office web apps fars.
    when I enter this code to powershell : New-OfficeWebAppsFarm -InternalURL "http://servername" -AllowHttp -EditingEnabled
    It says this:
    New-OfficeWebAppsFarm : The term 'New-OfficeWebAppsFarm' is not recognized as the name of a cmdlet, function, script
    file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
    and try again.
    At line:1 char:1
    + New-OfficeWebAppsFarm -InternalURL "http://office" -AllowHttp -EditingEnabled
    + ~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (New-OfficeWebAppsFarm:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    so what's the problem?

    That is an error I would expect with the account running the cmdlet not having local administrator rights to the server.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Please help me. I am getting an error while launching an web start applic

    I am getting the following error while launching an java web start apllication.
    Exception in thread"javaWSApplicationMains"java.lan.NoClassDefFound:SimpleSerial.
    The jnlp file i have used is as follows:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for Aeon HHBM Manager Application -->
    <jnlp spec="1.0+" codebase="http://zycomm:8080" href="Aeon.jnlp">
    <information>
    <title>Aeon HHBM Manager</title>
    <vendor>ME</vendor>     
    <description>Aeon HHBM Manager</description>
    </information>
    <offline_allowed/>
    <resources>
    <j2se version="1.4+"/>
    <jar href="aeon.jar"/>
    </resources>
    <application-desc main-class="Aeon_PManager" />
    <component-desc/>
    </jnlp>
    The java code is as follows:
    SimpleSerial.java
    import java.io.*;
    //import java.lang.*;
    //import java.lang.ClassNotFoundException;
    Interface class for SimpleSerial.
    If you don't know what an interface is, don't worry. An interface defines the functions
    that can be called by implementors of this class. Currently there are two implementors,
    SimpleSerialNative, and SimpleSerialJava. There might be more in the future.
    SimpleSerialNative requires the file "SimpleSerialNative.dll" to be in the same folder as your Java
    project file. It's that simple.
    SimpleSerialJava requires the correct installation of Sun's Javacomm communication package. It's much
    more powerful, but it can be tricky for the newcomer to configure, and use.
    If you have problems with one, why don't you try the other.
    A VERY SIMPLE IMPLEMENTATION:
    public static void main(String args[]) {
    SimpleSerial ss; // delcare the SimpleSerial object
    ss = new SimpleSerialNative(2); // The argument is the commport number. There is no Comm0.
    ss.writeByte((byte)'a'); // write a byte to the serial port
    // Give the PIC chip time to digest the byte to make sure it's ready for the next byte.
    try { Thread.sleep(1); } catch (InterruptedException e) {}
    ss.writeByte((byte)'!'); // write another byte to the serial port
    String inputString = ss.readString(); // read any string from the serial port
    System.out.println("I read the string: " + inputString);
    A few important things to note:
    1. When you write data to the serial port, it just writes the data, whether or not the PIC chip is
    ready to receive data. There's no handshaking or signaling. If you send data and the PIC chip
    isn't ready for it, it will be ignored. Some PIC chips have a hardware UART which will buffer a
    few bytes of data for later retrieval. But this isn't a cure-all. If the buffer fills up, it
    creates an error condition which prevents further data from being read. You need to include
    custom PIC code to reset the error flag.
    2 In contrast to the PIC chip, the computer has a rather large hardware buffer. If the PIC chip
    sends serial data to your computer when you're not around to read it, it gets stored.
    3. If you make a call to readByte(), and there's no data to be read, readByte() waits until there
    is data. If you want to know how much data (if any) is available, make a call to available().
    4. Conversely, if you make a call to readBytes() or readString() and there's no data to be read,
    readBytes() returns a byte array of zero length, and readString() returns and empty string.
    5. If you want to use Sun's JavaComm package instead of this code, subsitute your calls to
    new SimpleSerialNative(2);
    with
    new SImpleSerialJava(2);
    public interface SimpleSerial {
    // These are copied right out of WINBASE.H
    // Most applications should be fine with the defaults.
    public static final int NOPARITY = 0;
    public static final int ODDPARITY = 1;
    public static final int EVENPARITY = 2;
    public static final int MARKPARITY = 3;
    public static final int SPACEPARITY = 4;
    public static final int ONESTOPBIT = 0;
    public static final int ONE5STOPBITS = 1;
    public static final int TWOSTOPBITS = 2;
    Returns the number of bytes available at the time of this call.
    It's possible there are more bytes by the time readByte() or
    readBytes() is executed. But there will never be fewer.
    public int available();
    public void waitForData(int n);
    public boolean writeString(String string);
    returns TRUE if port is fully operationsal
    returns FALSE if there is a problem with the port
    public boolean isValid();
    Be sure to close your serial port when done. Note that port is
    automatically closed on exit if you don't close it yourself
    public void close();
    Reads a single byte from the input stream.
    Return value will be from -128 to 127 (inclusive)
    If no data at serial port, waits in routine for data to arrive.
    Use available() to check how much data is available.
    If error, returns 256.
    public int readByte();
    Reads all the bytes in the serial port.
    If no bytes availble, returns array with zero elements.
    Never waits for data to arrive
    public byte[] readBytes();
    Reads bytes from serial port and converts to a text string.
    DO NOT use this routine to read data. Char->Byte converstion
    does strange things when the values are negative. For non-
    text values, use readBytes() above
    public String readString();
    Writes a single byte to the serial port.
    This writes the data, whether the PIC is ready to receive or not.
    Be careful not to overwhelm the PIC chip with data.
    On pics without a hardware UART, the data will be ignored.
    On pics with a hardware UART, overflowing will loose data AND require
    the UART on the PIC to be reset. You can reset the UART in PIC code,
    or manually turn the PIC off and then on.
    NOTE: A byte has a value in the range of -128 to 127
    NOTE: If you want to write a character, you need to cast it to a byte,
    for example: simpleSerial.writeByte((char)'b');
    public boolean writeByte(byte val);
    For more advanced use. Gets the input stream associated with serial port
    public InputStream getInputStream();
    For more advanced use. Gets the output stream associated with serial port
    public OutputStream getOutputStream();
    Please help I am the beginner in web start.Please

    Notes:
    1) Please use the code tags when posting code or JNLP/HTML. It helps to retain indentation and avoids asterisks and plus sings being interpreted as formatting marks. To do that, select the code/JNLP etc. and click the CODE button seen on the Plain Text tab of the message posting form.
    2) That launch file is invalid. You might check it (and the project in general) using JaNeLA.
    3) The only place that SimpleSerial class could be, that the JRE would find, is in the root of aeon.jar. Is it actually there?

  • Error while deploying war file

    I am getting this error while deploying a war file.
    (Also I am attaching error.txt containing the full exception stacktrace)
    ####<Apr 17, 2002 4:04:28 PM EDT> <Debug> <HTTP> <urkel> <myserver> <ExecuteThread:
    '1' for queue: '__weblogic
    adminhtml_queue'> <system> <> <101158> <Exception thrown while loading buying4p:
    java.lang.StringIndexOutOfB
    oundsException: String index out of range: -1>
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1525)
    at weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java:469)
    at weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.java:177)
    at weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppServletContext.java:3405)
    at weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletContext.java:3376)
    at weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:862)
    at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:815)
    at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428)
    at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
    at weblogic.j2ee.Application.addComponent(Application.java:163)
    at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
    at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:76)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy34.addWebDeployment(Unknown Source)
    at weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeployment(WebServerMBean_Cachin
    gStub.java:1121)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:315)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:
    491)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:361)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy12.addDeployment(Unknown Source)
    at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1516)
    at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:895)
    at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:847)
    at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:295)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
    at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204)
    at $Proxy9.setTargets(Unknown Source)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:92)
    at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:135)
    at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
    at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    [error.txt]

    Hi,
    Please post this to the servlet newsgroup.
    - Matt
    saM wrote:
    I am getting this error while deploying a war file.
    (Also I am attaching error.txt containing the full exception stacktrace)
    ####<Apr 17, 2002 4:04:28 PM EDT> <Debug> <HTTP> <urkel> <myserver> <ExecuteThread:
    '1' for queue: '__weblogic
    adminhtml_queue'> <system> <> <101158> <Exception thrown while loading buying4p:
    java.lang.StringIndexOutOfB
    oundsException: String index out of range: -1>
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1525)
    at weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java:469)
    at weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.java:177)
    at weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppServletContext.java:3405)
    at weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletContext.java:3376)
    at weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:862)
    at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:815)
    at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428)
    at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
    at weblogic.j2ee.Application.addComponent(Application.java:163)
    at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
    at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:76)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy34.addWebDeployment(Unknown Source)
    at weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeployment(WebServerMBean_Cachin
    gStub.java:1121)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:315)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:
    491)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:361)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy12.addDeployment(Unknown Source)
    at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1516)
    at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:895)
    at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:847)
    at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:295)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
    at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204)
    at $Proxy9.setTargets(Unknown Source)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:92)
    at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:135)
    at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
    at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Name: error.txt
    error.txt Type: Plain Text (text/plain)
    Encoding: base64

  • Error while executing the Job for Objects :null  Batch Risk Analysis

    Hi All,
    We've recently upgraded Virsa to version  5.3_14 .  I'm encountering a problem when executing the Batch Risk Analysis job for users, roles and profiles.  The job does not complete for some objects and it seems to be sporadic and shows this error: -
    Background Job History: job id=395, status=2, message=Error while executing the Job for Object(s) :ABROWN:null                                                                               
    I've attached the log for your review.
    Thanks in advance for your help.                                                                               
    Linda Lewis                                                                               
    Feb 9, 2011 1:47:53 PM com.virsa.cc.xsys.meng.ObjAuthMatcher <init>
    FINEST: ObjAuthMatcher constructed: 4ms, #singles=2141, #ranges=0, #super=0
    Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.riskanalysis.AnalysisEngine riskAnalysis
    WARNING:  Job ID:395 : Failed to run Risk Analysis
    java.lang.StringIndexOutOfBoundsException at java.lang.String.substring(String.java:1019)
    at com.virsa.cc.xsys.util.RuleLoader.getPermRule(RuleLoader.java:573)
    at com.virsa.cc.xsys.riskanalysis.AnalysisEngine.performActPermAnalysis(AnalysisEngine.java:1609)
    at com.virsa.cc.xsys.riskanalysis.AnalysisEngine.riskAnalysis(AnalysisEngine.java:321)
    at com.virsa.cc.xsys.bg.BatchRiskAnalysis.performBatchRiskAnalysis(BatchRiskAnalysis.java:1166)
    at com.virsa.cc.xsys.bg.BatchRiskAnalysis.performBatchSyncAndAnalysis(BatchRiskAnalysis.java:1464)
    at com.virsa.cc.xsys.bg.BgJob.runJob(BgJob.java:560)
    at com.virsa.cc.xsys.bg.BgJob.run(BgJob.java:363)
    at com.virsa.cc.xsys.riskanalysis.AnalysisDaemonBgJob.scheduleJob(AnalysisDaemonBgJob.java:375)
    at com.virsa.cc.xsys.riskanalysis.AnalysisDaemonBgJob.start(AnalysisDaemonBgJob.java:92)
    at com.virsa.cc.comp.BgJobInvokerView.wdDoModifyView(BgJobInvokerView.java:444)
    at com.virsa.cc.comp.wdp.InternalBgJobInvokerView.wdDoModifyView(InternalBgJobInvokerView.java:1236)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doModifyView(DelegatingView.java:78)
    at com.sap.tc.webdynpro.progmodel.view.View.modifyView(View.java:337)
    at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doModifyView(ClientComponent.java:481)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doModifyView(WindowPhaseModel.java:551)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:148)
    at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:332)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:741)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:694)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:253)
    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(AccessController.java:207)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.util.Lock lock
    FINEST: Lock:1004
    Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.util.Lock unlock
    FINEST: Unlock:1004
    Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.bg.BatchRiskAnalysis performBatchRiskAnalysis
    WARNING: Error: while executing BatchRiskAnalysis for JobId=395 and object(s):ABROWN: Skipping error to continue with next object: null Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.bg.BgJob updateJobHistory
    FINEST: --- @@@@@@@@@@@ Updating the Job History -
    2@@Msg is Error while executing the Job for Object(s) :ABROWN:null
    Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.bg.dao.BgJobHistoryDAO insert
    INFO: -
    Background Job History: job id=395, status=2, message=Error while executing the Job for Object(s) :ABROWN:null
    Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.util.Lock lock
    FINEST: Lock:1004
    Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.util.Lock unlock
    FINEST: Unlock:1004
    Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.bg.BatchRiskAnalysis performBatchRiskAnalysis
    INFO: --- BKG User Permission Analysis (System: P20:020) completed ---  elapsed time: 4522 ms
    Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.util.Lock lock
    Edited by: Linda Lewis on Feb 9, 2011 9:08 PM

    Hi,
    Was a solution found for this error?
    Thanks,
    Glen

  • Error while running AppsLocalLogin.jsp in R11.5.10 on Jdeveloper

    Hi,
    I am getting error while running AppsLocalLogin.jsp on Jdeveloper for r11.5.10 rup 7.
    I perform following steps to successfully compile (with warnings only) the page.
    1. Copy AppsLocalLogin.jsp from OA_HTML to C:\jdev_r11\jdevhome\jdev\myhtml\OA_HTML.
    2. Then when I recompile it give me following error
    Error: cannot access class oracle.apps.fnd.sso.SSOAccessEnabler; file oracle\apps\fnd\sso\SSOAccessEnabler.class not found
    3. So i copy all class files from oracle\apps\fnd\sso to C:\jdev_r11\jdevhome\jdev\myclasses\oracle\apps\fnd\sso
    4. Form successfully build.
    5. Execute the jsp and following error appears..
    *500 Internal Server Error*
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         at java.lang.String.substring(String.java:1444)
         at oracle.apps.fnd.sso.SSOAccessEnabler.<init>(SSOAccessEnabler.java:43)
         at AppsLocalLogin.jspService(AppsLocalLogin.jsp:80)
         [AppsLocalLogin.jsp]
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle9iAS (9.0.3.1.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind[Oracle9iAS (9.0.3.1.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind[Oracle9iAS (9.0.3.1.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind[Oracle9iAS (9.0.3.1.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind[Oracle9iAS (9.0.3.1.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
         at java.lang.Thread.run(Thread.java:534)
    I am stuck. Please let me know what i am doing wrong. Thanks.
    Ayaz

    Check out some old threads. Probably it might help
    Custom Login and Logout replacing AppsLocalLogin
    Re: How to Customize AppsLocalLogin.jsp page
    Thanks
    AJ

  • Jdev11.1.1.6.0-Error while translating message to native format-FileWrite

    Im reading a file from a service and transforming the data and writing them into a file through the external reference using a Mediator component.
    I have no problem while building or deploying.
    But while executing I get an error as follows:
    Non Recoverable System Fault :
    Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'WriteAppointmentRequestInLogFile' failed due to: Translation Error. Translation Error. Error while translating message to native format. Please make sure that the payload for the outbound interaction conforms to the schema. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
    My input is a File Adpater Read operation and output is File Adapter Write operation.
    The schemas are as below:
    Input schema:
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    xmlns:tns="http://stmatthews.hospital.com/ReadFileDoctorsAppointmentRequest"
    targetNamespace="http://stmatthews.hospital.com/ReadFileDoctorsAppointmentRequest"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified"
    nxsd:version="NXSD"
    nxsd:stream="chars"
    nxsd:encoding="US-ASCII"
    <xsd:element name="doctorAppointmentRequestRoot"><xsd:complexType>
    <xsd:sequence>
    <xsd:element name="doctorAppointmentRequest" minOccurs="1" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="C1" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
    <xsd:element name="C2" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
    <xsd:element name="C3" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
    <xsd:element name="C4" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
    <xsd:element name="C5" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
    <xsd:element name="C6" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
    <xsd:element name="C7" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
    <xsd:element name="C8" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
    <xsd:element name="C9" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
    <xsd:element name="C10" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
    <xsd:element name="C11" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
    <xsd:element name="C12" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
    <xsd:element name="C13" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
    <xsd:element name="C14" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
    <xsd:element name="C15" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy="&quot;" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    Output Schema:
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    xmlns:tns="http://stmatthews.hospital.com/LogDoctorAppointmentRequests"
    targetNamespace="http://stmatthews.hospital.com/LogDoctorAppointmentRequests"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified"
    nxsd:version="NXSD"
    nxsd:stream="chars"
    nxsd:encoding="US-ASCII"
    <xsd:element name="AppointmentRequestsLog"><xsd:complexType>
    <xsd:sequence>
    <xsd:element name="AppointmentRequest" minOccurs="1" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="C1" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
    <xsd:element name="C2" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
    <xsd:element name="C3" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
    <xsd:element name="C4" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
    <xsd:element name="C5" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
    <xsd:element name="C6" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
    <xsd:element name="C7" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
    <xsd:element name="C8" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
    <xsd:element name="C9" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy="&quot;" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    <!--NXSDWIZ:C:\SOAHandbook\DoctorsAppointmentRequestProcessor\DoctorAppointmentRequestProcessor\samples\Logged_DoctorsAppointmentRequestFile.txt:-->
    <!--USE-HEADER:false:-->
    Transformation XSL used in Mediator:
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsl:stylesheet version="1.0"
    xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/file/DoctorsAppointmentRequestProcessor/DoctorAppointmentRequestProcessor/ReadFileDoctorsAppointmentRequest"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:pc="http://xmlns.oracle.com/pcbpel/"
    xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
    xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
    xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
    xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:imp1="http://stmatthews.hospital.com/ReadFileDoctorsAppointmentRequest"
    xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    xmlns:med="http://schemas.oracle.com/mediator/xpath"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"
    xmlns:ns1="http://stmatthews.hospital.com/LogDoctorAppointmentRequests"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:bpmn="http://schemas.oracle.com/bpm/xpath"
    xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/file/DoctorsAppointmentRequestProcessor/DoctorAppointmentRequestProcessor/LogDoctorAppointmentRequests"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
    exclude-result-prefixes="xsi xsl tns pc plt wsdl imp1 jca xsd ns1 ns0 xp20 bpws bpel bpm ora socket mhdr oraext dvm hwf med ids xdk xref bpmn ldap">
    <xsl:template match="/">
    <ns1:AppointmentRequestsLog>
    <ns1:AppointmentRequest>
    <ns1:C1>
    <xsl:value-of select="xp20:current-date()"/>
    </ns1:C1>
    <ns1:C2>
    <xsl:value-of select='substring-before("doctor1234_20120926_helloworld","_")'/>
    </ns1:C2>
    <ns1:C4>
    <xsl:value-of select="concat(/imp1:doctorAppointmentRequestRoot/imp1:doctorAppointmentRequest/imp1:C2,/imp1:doctorAppointmentRequestRoot/imp1:doctorAppointmentRequest/imp1:C3)"/>
    </ns1:C4>
    <ns1:C5>
    <xsl:value-of select="/imp1:doctorAppointmentRequestRoot/imp1:doctorAppointmentRequest/imp1:C4"/>
    </ns1:C5>
    <ns1:C6>
    <xsl:value-of select="/imp1:doctorAppointmentRequestRoot/imp1:doctorAppointmentRequest/imp1:C5"/>
    </ns1:C6>
    <ns1:C7>
    <xsl:value-of select="/imp1:doctorAppointmentRequestRoot/imp1:doctorAppointmentRequest/imp1:C12"/>
    </ns1:C7>
    <ns1:C8>
    <xsl:value-of select="/imp1:doctorAppointmentRequestRoot/imp1:doctorAppointmentRequest/imp1:C14"/>
    </ns1:C8>
    <ns1:C9>
    <xsl:value-of select="/imp1:doctorAppointmentRequestRoot/imp1:doctorAppointmentRequest/imp1:C15"/>
    </ns1:C9>
    </ns1:AppointmentRequest>
    </ns1:AppointmentRequestsLog>
    </xsl:template>
    </xsl:stylesheet>
    Just in case if you are aware, Im trying the example in Lucas Jellema's book Chapter 7 and Im getting the error there in the first example project.
    I have seen few very old threads on this problem in the forum but none of them had any answers so opening up a new one.
    Thanks.

    Your transformation with for-each look is incorrect.
    This is what you have right now:
    <ns1:AppointmentRequestsLog>
    <xsl:for-each select="/imp1:doctorAppointmentRequestRoot/imp1:doctorAppointmentRequest">
    <ns1:AppointmentRequest>
    <ns1:C1>
    <xsl:value-of select="xp20:current-date()"/>
    </ns1:C1>
    <ns1:C2>
    <xsl:value-of select='substring-before("doctor1234_20120926_helloworld","_")'/>
    </ns1:C2>
    <ns1:C3>
    <xsl:value-of select="/imp1:doctorAppointmentRequestRoot/imp1:doctorAppointmentRequest/imp1:C2"/>
    </ns1:C3>This is the correct way to write for-each within XSLT:
    <ns1:AppointmentRequestsLog>
    <xsl:for-each select="/imp1:doctorAppointmentRequestRoot/imp1:doctorAppointmentRequest">
    <ns1:AppointmentRequest>
    <ns1:C1>
    <xsl:value-of select="xp20:current-date()"/>
    </ns1:C1>
    <ns1:C2>
    <xsl:value-of select='substring-before("doctor1234_20120926_helloworld","_")'/>
    </ns1:C2>
    <ns1:C3>
    <xsl:value-of select="imp1:C2"/>
    </ns1:C3>Also, check the flow trace in the EM console for the instance which errored out and paste here the data which is being sent to the FileWrite Adapter. Also, you need to ensure that any elements which are defined as xs:int should not have empty string as values. For example in your write schema C3 has int. So you should map C3 in XSLT like following:
    <xsl:choose>
    <xsl:when test="imp1:C2 and string-length(imp1:C2) > 0">
    <ns1:C3>
    <xsl:value-of select="imp1:C2"/>
    </ns1:C3>
    </xsl:when>
    <xsl:otherwise>
    <ns1:C3>0</ns1:C3>
    </xsl:otherwise>
    </xsl:choose>

  • Error while deploying Entity Beans on OC4J 10.1.3

    Hi,
    We have 350 entity beans in our system. Recently a new table is created as per following script.
    CREATE TABLE TBLSMDTATTRIBUTECATREL
    MDTCATEGORYID CHAR(7),
    ATTRIBUTECATEGORYID CHAR(10),
    CONSTRAINT PK_MDTATTRIBUTECATREL PRIMARY KEY (MDTCATEGORYID,ATTRIBUTECATEGORYID)
    Entity Bean for the same has been created. While deploying I am facing the following error.
    06/06/11 13:09:23 Notification ==> Error while compiling EJB component: file:/export/home/oc4j/j2ee/home/applications/JispAppEntities/billing-entities.jar
    com.evermind.compiler.CompilationException: Method public abstract java.lang.String com.elitecore.billing.ejb.system.entity.MdtattributecatrelCMP.getMdtcategoryid() can not be declared abstract for entity 'Mdtattributecatrel'
    at com.evermind.server.ejb.compilation.CMPObjectCompilation.verifyMethods(CMPObjectCompilation.java:800)
    at com.evermind.server.ejb.compilation.CMPObjectCompilation.<init>(CMPObjectCompilation.java:55)
    at com.evermind.server.ejb.compilation.PersistenceManagerCompilation.<init>(PersistenceManagerCompilation.java:26)
    at com.evermind.server.ejb.compilation.EntityBeanCompilation.<init>(EntityBeanCompilation.java:121)
    at com.evermind.server.ejb.compilation.Compilation.generateAnyOldStyle(Compilation.java:1593)
    at com.evermind.server.ejb.compilation.Compilation.compile(Compilation.java:181)
    at com.evermind.server.ejb.compilation.Compilation.doGenerateCode(Compilation.java:249)
    at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.java:971)
    at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:205)
    at com.evermind.server.Application.setConfig(Application.java:387)
    at com.evermind.server.Application.setConfig(Application.java:304)
    at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1651)
    at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication(ApplicationDeployer.java:402)
    at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:158)
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
    at com.evermind.server.administration.DefaultApplicationServerAdministrator.internalDeploy(DefaultApplicationServerAdministrator.java:440)
    at com.evermind.server.administration.DefaultApplicationServerAdministrator.deploy(DefaultApplicationServerAdministrator.java:341)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.evermind.server.rmi.ServerRmiMessageHandler.doMethodCall(ServerRmiMessageHandler.java:560)
    at com.evermind.server.rmi.ServerRmiMessageHandler.handleMethodInvocation(ServerRmiMessageHandler.java:471)
    at com.evermind.server.rmi.ServerRmiMessageHandler.handleOrmiRequest(ServerRmiMessageHandler.java:262)
    at com.evermind.server.rmi.ServerRmiMessageHandler.dispatchRequest(ServerRmiMessageHandler.java:231)
    at com.evermind.server.rmi.RMIServerConnection.processReceivedCommand(RMIServerConnection.java:155)
    at com.evermind.server.rmi.RMIConnection.handleCommand(RMIConnection.java:151)
    at com.evermind.server.rmi.RMIConnection.listenForOrmiCommands(RMIConnection.java:126)
    at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:105)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
    at java.lang.Thread.run(Thread.java:534)
    Can anybody please suggest the solution?
    Thanks in advance.
    Regards,
    Jinal Shah

    Hi,
    The error was coming because of the table structure. All the columns were composite keys. I alter the structured by removing composite keys and added a new column as primary key. Now it is getting deployed successfully.
    Can anybody comment on such a behaviour of OC4J?
    Regards,
    Jinal Shah

  • Getting runtime error while running HTTPS client

    hi
    i have return https client in java,which does not give error while compiling but its giving runtime error as shown below.
    java.security.NoSuchAlgorithmException: Algorithm RSA not available
    at javax.net.ssl.SunJSSE_b.a(DashoA6275)
    at javax.net.ssl.KeyManagerFactory.getInstance(DashoA6275)
    at SSLSocketClientWithClientAuth.main(SSLSocketClientWithClientAuth.java
    :65)
    java.lang.NullPointerException
    at SSLSocketClientWithClientAuth.main(SSLSocketClientWithClientAuth.java
    :78)
    and this is the code
    import java.net.*;
    import java.io.*;
    import javax.net.ssl.*;
    //import javax.security.cert.X509Certificate;
    import java.security.KeyStore;
    import java.security.*;
    * This example shows how to set up a key manager to do client
    * authentication if required by server.
    * This program assumes that the client is not inside a firewall.
    * The application can be modified to connect to a server outside
    * the firewall by following SSLSocketClientWithTunneling.java.
    public class SSLSocketClientWithClientAuth {
    public static void main(String[] args) throws Exception {
         //String host = null;
         //int port = -1;
         String host="10.11.25.251";
         int port = 443;
         SSLSocket socket;
         String path = null;
         for (int i = 0; i < args.length; i++)
         System.out.println(args);
         /*if (args.length < 3) {
         System.out.println(
              "USAGE: java SSLSocketClientWithClientAuth " +
              "host port requestedfilepath");
         System.exit(-1);
         /*try {
         host = args[0];
         port = Integer.parseInt(args[1]);
         //path = args[2];
         } catch (IllegalArgumentException e) {
         System.out.println("USAGE: java SSLSocketClientWithClientAuth " +
              "host port requestedfilepath");
         System.exit(-1);
         try {
         * Set up a key manager for client authentication
         * if asked by the server. Use the implementation's
         * default TrustStore and secureRandom routines.
         SSLSocketFactory factory = null;
         try {
              SSLContext ctx;
              KeyManagerFactory kmf;
              KeyStore ks;
              char[] keystorepass = "123456".toCharArray();
              char[] keypassword ="13051983".toCharArray();
              ctx = SSLContext.getInstance("TLS");
              //kmf = KeyManagerFactory.getInstance("RSA");
              ks = KeyStore.getInstance("JKS");
              ks.load(new FileInputStream("testkeys"), keystorepass);
    kmf = KeyManagerFactory.getInstance("RSA");
              kmf.init(ks, keypassword);
              ctx.init(kmf.getKeyManagers(), null, null);
              factory = ctx.getSocketFactory();
         } catch (Exception e) {
              //throw new IOException(e.getMessage());
         e.printStackTrace();
              socket = (SSLSocket)factory.createSocket(host, port);
              socket.startHandshake();
         * send http request
         * See SSLSocketClient.java for more information about why
         * there is a forced handshake here when using PrintWriters.
    PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())));
         // out.println("GET " + path + " HTTP/1.1");
         out.println();
         out.flush();
         * Make sure there were no surprises
         if (out.checkError())
              System.out.println(
              "SSLSocketClient: java.io.PrintWriter error");
         /* read response */
         BufferedReader in = new BufferedReader(
                        new InputStreamReader(
                        socket.getInputStream()));
         String inputLine;
         while ((inputLine = in.readLine()) != null)
              System.out.println(inputLine);
         in.close();
         out.close();
    socket.close();
         } catch (Exception e) {
         e.printStackTrace();
    please help me out .
    regards,
    sunil

    Hi
    Please do a fetch from the database and then change the information in DRM console for the CSS parameter. This error I received only due to the CSS details in DRM 11.1.2.
    Thanks
    Rupak
    Mantra to Win | WinMantras.com | http://hyperion.winmantras.com

Maybe you are looking for

  • Having trouble Connecting Macbook to TV. Plz Help

    I bought the adapter which connects the macbook to a RegDef TV using s-video or composite cable cords. Anyway, I hook it all up, and nothing happens. I click "detect displays" in the system prefs, but nothing comes up. I feel like I am missing someth

  • TextArea append information during process?

    I have a system that append information in one textarea, I would like that textarea shows the information being appended in the moment. To start the append, I click in a button. Then I click in the button, the information shows in the textarea when t

  • Multiple Available Values in Parameter

    I have a query like Select * from Table where column in (@Parameter) @Parameter has two choices.  Choice 1 value is 01 or 05. Choice 2 value is 04 or 06. If Choice 1 is selected for the parameter, I want the query to result into Select * from Table w

  • Problem with WebCamera example

    When I run WebCamera application (as Air application) in FlexBuilder on my MacBook Pro, I get the following startup error (see below). After I select "continue" and then select "Start," I get another error (further down). Also, I've run the DefaultPo

  • Condition Checking

    Hi,   Is there anyway i can ensure, let's say my "net income" is larger than 2 million before the user can submit the data? is there some sort of condition checking or locking mechanism that does this?   any input on this? cheers