XMLStreamReader byte location missmatch

Hello,
I am trying to parse a XML file and want to store the byte positions of start and closing tags so I can later use RandomAccessFile to get a particular xml element.
This should be used to access very big xml files. I want to be able to pull out a arbitrary xml element given only the xpath expression from the root element.
But I am having some trouble with it.
I tried to use XMLStreamReader to parse the XML and getLocation to get the byte offset, but the position I get when a START_ELEMENT event occurs is not the start of the XML tag! It is somewhere after that. I have even tried to use the previous or next positions, but none of them fits the start tag.
XMLInputFactory xif = XMLInputFactory.newInstance();
XMLStreamReader xsr = xif.createXMLStreamReader(is);
while ( xsr.hasNext() ) {
    if (xsr.isStartElement()) {
        int currentPos = xsr.getLocation().getCharacterOffset();
        System.out.print("current position: " + currentPos);
}It would be very helpful if somebody could give me a hint as how to solve my problem or where to find a better way to do this.
Thanks a lot!

I tried some more and it seems that the position of the XMLEvent changes when the layout of the XML changes.
For example using the same code to retrieve the byte positions of a specific tag, I get different results.
Test XMl files:
XML 1:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<first>
  <second>
    <third>
      <forth>Text1a</forth>
      <forth>Text1b</forth>
      <forth>Text1c</forth>
    </third>
  </second>
  <second>
    <third>Text2</third>
  </second>
</first>XML 2 (same XML, but unformated):
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><first><second><third><forth>Text1a</forth><forth>Text1b</forth><forth>Text1c</forth></third></second><second><third>Text2</third></second></first>When querying the positions for the start and stop tags of the first occurrence of the "forth" element and then using RandomAccessFile to read in those positions, I get the following results:
XML1:
"<forth>Text1a</forth>"
XML2:
"th>Text1a</forth><fort"
I would have expected that the layout of the XML file has no impact.
Is this a bug or can anybody explain what I must have overlooked?
Thanks!

Similar Messages

  • InetAddress.getByAddress(byte[]) problem...

    the following line of code is not compiling for me.
    InetAddress inAd = InetAddress.getByAddress(IAbyte);where IAbyte is an byte array of length 4 where each byte is the component of an IP address.
    I am recieving the error:
    C:\tmp\FTPServer,java.java:507: cannot resolve symbol
    symbol : method getByAddress (byte[])
    location: class java.net.InetAddress
                   InetAddress inAd = InetAddress.getByAddress(IAbyte);
    Which is quite odd as the API http://java.sun.com/j2se/1.4.1/docs/api/java/net/InetAddress.html#getByAddress(byte[]) says that the method should be there.
    Knowing me it is just a silly little error on my part ^_^;

    Which is quite odd as the API http://java.sun.com/j2se/1.4.1/docs/api/java/net/InetAddress.html#getByAddress(byte[]) says that the method should be there.
    yes its right
    by the way which version of jdk r u using ...

  • Syntax error byte[]

    How Can I write this code java in new Javafx syntax?
    function receiveMessage(byte[] receivedString)I have tryed so....... but don't work!
    function receiveMessage(receivedString: byte[])I have problem with byte[]...
    This is the error:
    >
    BluechatRFCOMMEchoServer.fx:59: cannot find symbol
    symbol : variable byte
    location: class BluechatRFCOMMEchoServer
    function receiveMessage(receivedString: byte[]) {
    ^
    1 error
    >
    Sorry for English and thanks for the support!
    Edited by: BumbaBoom on Dec 22, 2008 7:29 PM

    JavaFX defines its own "primitive" data types that may be different from Java. JavaFX does not support primitive data types of Java (eg boolean, int, float, double, long, byte) but you can the DataType wrapper instead.
    The following is the built-in datatype of JavaFX as highlighted from http://java.sun.com/javafx/1/tutorials/core/dataTypes/
    -      String
    -      Number and Integer
    -      Boolean
    -      Duration
    -      Void
    -      Null
    I suggest you read up the two JavaFX compulsory guides before attempting your first JavaFX code because JavaFX is substantially different from Java, and it will save you a lot of frustration.
    http://java.sun.com/javafx/1/tutorials/core/
    http://java.sun.com/javafx/1/tutorials/ui/
    taken from http://javafx.com/docs/tutorials/
    The closest you can get is
    function receiveMessage(receivedString: java.lang.Byte[]) // using a Java primitive datatype wrapper

  • Login to Development from Firefox 1.5.0.3??

    Has anyone have problems logging into htmldb dev from FIrefox 1.5.0.3. I can log in using ssl, but when trying http:// I log in and get rediected to same page. When I use the IE tab options, it works fine using IE Rendering. Sample mod_plsql log. Is there a setting or extension screwing up the browser? Any insight would be helpful.
    <13779421 ms> HTTP_USER_AGENT(16)=(91)Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3
    <13779421 ms> HTTP_HOST(10)=(6)mjslt
    <13779421 ms> HTTP_ACCEPT(12)=(100)text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    <13779421 ms> HTTP_ACCEPT_ENCODING(21)=(13)gzip,deflate
    <13779421 ms> HTTP_ACCEPT_LANGUAGE(21)=(15)en-us,en;q=0.5
    <13779421 ms> HTTP_ACCEPT_CHARSET(20)=(31)ISO-8859-1,utf-8;q=0.7,*;q=0.7
    <13779421 ms> HTTP_ORACLE_ECID(17)=(37)1147749171:192.168.2.1:5016:3080:2,0
    <13779421 ms> WEB_AUTHENT_PREFIX(19)=(1)
    <13779421 ms> DAD_NAME(9)=(7)afbslt
    <13779421 ms> DOC_ACCESS_PATH(16)=(5)docs
    <13779421 ms> DOCUMENT_TABLE(15)=(23)wwv_flow_file_objects$
    <13779421 ms> PATH_ALIAS(11)=(1)
    <13779421 ms> REQUEST_CHARSET(16)=(13)WE8MSWIN1252
    <13779421 ms> REQUEST_IANA_CHARSET(21)=(13)WINDOWS-1252
    <13779421 ms> SCRIPT_PREFIX(14)=(1)
    <13779421 ms>StrArrPosBind pos 2 Charset Id : 178
    <13779421 ms>StrArrPosBind pos 3 Charset Id : 178
    <13779421 ms>StrArrPosBind pos 5 Charset Id : 178
    <13779828 ms>(wpd.c,1962) Begin header parsing...
    <13779828 ms>(wpd.c,2011) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
    <13779828 ms>(wpd.c,2029) X-ORACLE-IGNORE parsed
    <13779828 ms>(wpd.c,2011) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
    <13779828 ms>(wpd.c,2029) X-ORACLE-IGNORE parsed
    <13779828 ms>(wpd.c,2011) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
    <13779828 ms>(wpd.c,2029) X-ORACLE-IGNORE parsed
    <13779828 ms>(wpd.c,2011) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
    <13779828 ms>(wpd.c,2029) X-ORACLE-IGNORE parsed
    <13779828 ms>(wpd.c,2011) Got a line (83 bytes): Location: f?p=4550:1:10888497011440826265
    <13779828 ms>(wpd.c,2133) Parsed header - Location:f?p=4550:1:10888497011440826265
    <13779828 ms>(wpd.c,2011) Got a line (35 bytes): Content-length: 0
    <13779828 ms>(wpd.c,2084) Parsed header - Content-Length:0
    <13779828 ms>(wpd.c,2011) Got a line (1 bytes):
    <13779828 ms>(wpd.c,2018) End of headers detected
    <13779828 ms>(wpcs.c, 77) Executed 'begin dbms_session.reset_package; end;' (rc=0)
    <13779828 ms>(wpd.c,1820) Going to close cursor
    <13779828 ms>DeinitCursor
    <13779828 ms>(wpx.c,665) Normal completion
    <13779828 ms>(wpx.c,693) Shutdown has been called
    <13779828 ms>(wpx.c,705) Going to logoff
    <13779828 ms>Logoff: Pooling this connection
    <13779828 ms>[ReqEndtime: 15/May/2006:23:12:52]
    <13779828 ms>[ReqExecTime: 453 ms]

    Just loging in the development environment. Can't log in..?? Can over secure connection.
    Yes my characterset is different. I'll change and see what happens.
    <Location /afbslt>
    AddType text/xml xbl
    AddType text/x-component htc
    SetHandler pls_handler
    Order deny,allow
    Allow from all
    AllowOverride None
    PlsqlDatabaseUsername HTMLDB_PUBLIC_USER
    PlsqlDatabasePassword *************************************************
    PlsqlDatabaseConnectString mjslt:1521:AFBSLT ServiceNameFormat
    PlsqlDefaultPage htmldb
    PlsqlDocumentTablename wwv_flow_file_objects$
    PlsqlDocumentPath docs
    PlsqlDocumentProcedure wwv_flow_file_mgr.process_download
    PlsqlAuthenticationMode Basic
    PlsqlNLSLanguage AMERICAN_AMERICA.WE8MSWIN1252
    </Location>

  • Problem with Dates in ADF Calendar (Possibly Oracle 9i related?)

    Hi All,
    I have an entity and up-datable view object based on the following table
    CREATE TABLE IM_CALENDAR
    ID VARCHAR2(32 BYTE),
    START_TIME DATE,
    END_TIME DATE,
    PROVIDER_ID VARCHAR2(32 BYTE),
    TITLE VARCHAR2(256 BYTE),
    RECURRING VARCHAR2(32 BYTE),
    REMINDER VARCHAR2(3 BYTE),
    TIME_TYPE VARCHAR2(6 BYTE),
    LOCATION VARCHAR2(256 BYTE)
    When I run the ADF Application, it responds with the following error.
    Cannot create an object of type:java.sql.Date from type:java.util.Date with value:22/12/10 00:00
    In the app server console, I get the following error message.
    <Utils><buildFacesMessage> ADF: Adding the following JSF error message: Cannot create an object of type:java.sql.Date from type:java.util.Date with value:22/12/10 00:00
    oracle.jbo.domain.DataCreationException: JBO-25009: Cannot create an object of type:java.sql.Date from type:java.util.Date with value:22/12/10 00:00
         at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:852)
    In my Oracle XE database this ran fine. But I am now running on an Oracle 9i Database, will this cause an issue with ADF?

    The error message you give has nothing to do with the database.. seems that something else has changed (assuming it used to work)

  • How to load color table in a indexed mode file??

    How to load color table in a indexed mode file??
    Actually, if i opened a indexed file and want to edit color table by loading another color table from desktop (or any other location), any way to do this through java scripting??

    continuing...
    I wrote a script to read a color table from a GIF file and save to an ACT color table file. I think it might be useful for someone.
    It goes a little more deeper than the code I posted before, as it now identifies the table size. It is important because it tells how much data to read.
    Some gif files, even if they are saved with a reduced palette (less than 256), they have all the bytes for the full color palette filled inside the file (sometimes with 0x000000). But, some gif files exported in PS via "save for web" for example, have the color table reduced to optimize file size.
    The script store all colors into an array, allowing some kind of sorting, or processing at will.
    It uses the xlib/Stream.js in xtools from Xbytor
    Here is the code:
    // reads the color table from a GIF image
    // saves to an ACT color table file format
    #include "xtools/xlib/Stream.js"
    // read the 0xA byte in hex format from the gif file
    // this byte has the color table size info at it's 3 last bits
    Stream.readByteHex = function(s) {
      function hexDigit(d) {
        if (d < 10) return d.toString();
        d -= 10;
        return String.fromCharCode('A'.charCodeAt(0) + d);
      var str = '';
      s = s.toString();
         var ch = s.charCodeAt(0xA);
        str += hexDigit(ch >> 4) + hexDigit(ch & 0xF);
      return str;
    // hex to bin conversion
    Math.base = function(n, to, from) {
         return parseInt(n, from || 10).toString(to);
    //load test image
    var img = Stream.readFromFile("~/file.gif");
    hex = Stream.readByteHex(img);      // hex string of the 0xA byte
    bin = Math.base(hex,2,16);          // binary string of the 0xA byte
    tableSize = bin.slice(5,8)          // Get the 3 bit info that defines size of the ct
    switch(tableSize)
    case '000': // 6 bytes table
      tablSize = 2
      break;
    case '001': // 12 bytes table
      tablSize = 4
      break;
    case '010': // 24 bytes table
      tablSize = 8
      break;
    case '011': // 48 bytes table
      tablSize = 16
      break;
    case '100': // 96 bytes table
      tablSize = 32
      break;
    case '101': // 192 bytes table
      tablSize = 64
      break;
    case '110': // 384 bytes table
      tablSize = 128
      break;
    case '111': // 768 bytes table
      tablSize = 256
      break;
    //========================================================
    // read a color (triplet) from the color lookup table
    // of a GIF image file | return 3 Bytes Hex String
    Stream.getTbColor = function(s, color) {
      function hexDigit(d) {
        if (d < 10) return d.toString();
        d -= 10;
        return String.fromCharCode('A'.charCodeAt(0) + d);
      var tbStart = 0xD; // Start of the color table byte location
      var colStrSz = 3; // Constant -> RGB
      var str = '';
      s = s.toString();
         for (var i = tbStart+(colStrSz*color); i < tbStart+(colStrSz*color)+colStrSz; i++) {
              var ch = s.charCodeAt(i);
              str += hexDigit(ch >> 4) + hexDigit(ch & 0xF);
          return str;
    var colorHex = [];
    importColors = function (){
         for (i=0; i< tablSize; i++){ // number of colors
              colorHex[i] = Stream.getTbColor(img, i);
    importColors();
    // remove redundant colors
    // important to determine exact color number
    function unique(arrayName){
         var newArray=new Array();
         label:for(var i=0; i<arrayName.length;i++ ){ 
              for(var j=0; j<newArray.length;j++ ){
                   if(newArray[j]==arrayName[i])
                        continue label;
              newArray[newArray.length] = arrayName[i];
         return newArray;
    colorHex = unique(colorHex);
    // we have now an array with all colors from the table in hex format
    // it can be sorted if you want to have some ordering to the exported file
    // in case, add code here.
    var colorStr = colorHex.join('');
    //=================================================================
    // Output to ACT => color triplets in hex format until 256 (Adr. dec 767)
    // if palette has less than 256 colors, is necessary to add the
    // number of colors info in decimal format to the the byte 768.
    ColorNum = colorStr.length/6;
    lstclr = colorStr.slice(-6); // get last color
    if (ColorNum < 10){
    ColorNum = '0'+ ColorNum;
    cConv = function (s){
         var opt = '';
         var str = '';
         for (i=0; i < s.length ; i++){
              for (j=0; j<2 ; j++){
                   var ch = s.charAt(i+j);
                   str += ch;
                   i ++;
              opt += String.fromCharCode(parseInt(str,16));
              str = '';
         return opt
    output = cConv(colorStr);
    // add ending file info for tables with less than 256 colors
    if (ColorNum < 256){
         emptyColors = ((768-(colorStr.length/2))/3);
         lstclr = cConv(lstclr);
         for (i=0; i < emptyColors ; i++){
              output += lstclr; // fill 256 colors
    output += String.fromCharCode(ColorNum) +'\xFF\xFF'; // add ending bytes
    Stream.writeToFile("~/file.act", output);
    PeterGun

  • Update statement getting ORA-00904 invalid identifier

    I am getting this ORA error when I try to conduct an update statement from a column value in one table to a like-named column in another table.
    For instance, in my select, shown below, this query runs like a champ, returning all of my records
    SELECT
    b.ID,
    b.ZIP, a.ZIP,
    a.NAME,
    a.LOCATION
    FROM TBL_ARCHIVE a
    INNER JOIN TBL_UAT b ON
    a.ID = b.ID
    WHERE
    b.ID > 470000  And b.ID <470100;However, if I try to run an update statement with any of the following, I get this error. It seems so strange to me that I'd get an error using the same columns in the update statement, but would return the desired results effectively from the select statement!
    one version of UPDATE
    UPDATE TBL_ARCHIVE a
    SET a.ZIP = TBL_UAT.ZIP
    WHERE TBL_UAT.ID = a.ID;and another
    UPDATE TBL_ARCHIVE
    SET a.ZIP  =
    (SELECT b.ZIP
    FROM TBL_UAT b
    WHERE b.ID <472500 And b.ID >471000)
    FROM TBL_ARCHIVE a
    WHERE a.ID = b.ID)
    WHERE ID IN
    (SELECT ID
    FROM TBL_UAT b
    WHERE b.ID  <472500 And b.ID >471000
    );^ - this one produces a SQL not properly ended. Error ORA-00933: SQL command not properly ended.
    I'm really unsure though, how what I thought was a fairly basic update statement wouldn't work. I'm using Oracle 11g but through either Toad or SQL Plus. I've gotten these same errors in both.
    Though MS Access runs slow as snails, I can manage to run the update statement successfully with it, a thousand records or so at a time. Problem is, I've got about 300K records needing updating.
    I've looked around for similar problems but haven't found one where someone wasn't either using a reserved word for a column, which I'm not, I don't believe, or a problem that really dealt with this error in the context of an update statement.
    But I'd welcome any enlightenment on this.

    rp0428 wrote:
    UPDATE TBL_ARCHIVE a
    SET a.ZIP = TBL_UAT.ZIP
    WHERE TBL_UAT.ID = a.ID;That isn't a valid query and neither is the other one.
    Please post the actual query you are using and the actual complete error message you are getting (everything about the error that is displayed).^^
    That is NOT a valid query?
    How else would you have an UPDATE statement created to set the value of a column in table A to the value of a (in this case, same named) column in table B?
    And keep them in order to update the records appropriately?
    I'll append the create statements momentarily.
    Thanks!
    CREATE TABLE TBL_UAT
    ( ID NUMBER(6),
    ZIP VARCHAR2(10 BYTE) ) and
    CREATE TABLE TBL_ARCHIVE
    ( ID NUMBER(6) NOT NULL, NAME VARCHAR2(50 BYTE),
    EMAIL VARCHAR2(50 BYTE),
    LOCATION VARCHAR2(50 BYTE),
    DEPARTMENT VARCHAR2(50 BYTE),
    PRIORITY VARCHAR2(50 BYTE),
    APPROVING_MGR_NAME VARCHAR2(50 BYTE),
    TYPE1 VARCHAR2(50 BYTE),
    TYPE2 VARCHAR2(50 BYTE),
    CONTACT_NAME VARCHAR2(50 BYTE),
    CONTACT_PHN_NO VARCHAR2(50 BYTE),
    LOAN_NUM VARCHAR2(50 BYTE),
    REF_ID VARCHAR2(50 BYTE),
    BORROWER_NAME VARCHAR2(50 BYTE),
    ADDRESS VARCHAR2(50 BYTE),
    CITY VARCHAR2(50 BYTE),
    ST VARCHAR2(50 BYTE),
    ZIP VARCHAR2(10 BYTE),
    SALE_DATE DATE,
    COMMENTS VARCHAR2(800 BYTE),
    TIME_REQ DATE,
    ACCTLOC VARCHAR2(50 BYTE),
    OTHER_ACCTLOC VARCHAR2(50 BYTE)) Hope this can be of assistance.
    Thanks, folks!
    Edited by: user515689 on Feb 7, 2012 11:59 AM

  • Need to read data files originally created in LabVIEW in C++

    I have originally created binary files in LabVIEW. These files are made by flattening labview data to a string, then converting the string to a U8 byte array which is then saved to a binary data file. A separate file is used to keep track of the variables written to the data file. (FAT) a 2D-String array (first element = variable name, 2nd element = staring byte location in .dat file, 3rd element = byte length of variable) is flattened to U32 and then written to a binary file.
    Opening the files in LabVIEW follows the inverse proceedure. The FAT file is read as a U32 binary data, converted to a byte array, converted to a string, and then unflattened from the string into a LabVIEW 2D-string data type. From this the starting location and length of the variable is extracted. These are used to read the data file, in U8, which is then converted bu a string and then unflattened to LabVIEW data according to the LabVIEW data type.
    I now need to now open these files in a Linux environment using C++. I am at a loss at how to emulate all of this data-type conversion, flattening, and unflattening in C++. Does anyone have any ideas?

    Faraclas wrote:
    > Thanks rolfk, I will do the reading. But just to make sure you don't misunderstand
    > me, everything works beautifully in LabVIEW.
    I gathered that. But reading through the description gave me the
    impression that a few conversions/typecasts may actually be superfluous
    without any change to the actual data.
    > The problem I am having is trying to open up these files in C++. This system has
    > been around for a couple of years now, so I cannot change the data structure in
    > the LabVIEW programs (well I could but I don't want to because it is really a very
    > flexible system that works well).
    Well, it really isn't that difficult, it just won't be a one hour job
    for sure. A few guidelines:
    1) LabVIEW flattened data contains the actual data as is for all fixed
    size elements (scalars and clusters of scalars). Any variable sized data
    (strings, arrays) is prepended with an int32 for each dimension
    containing the number of elements for that dimension.
    2) LabVIEW flattened data is always in Big Endian (Most significant Byte
    first) format. This means for normal C(++) programs developed on an x86
    system you will have to byteswap every single 16 bit and 32 bit integer.
    3) LabVIEW Typecast really is similar to Flattened data but no
    prepending of the number of elements is done for variable sized data.
    And Typecast can't convert any type containing variable sized data, but
    any arbitrary complex datatype only containing fixed size data, or a
    simple array or string can be typecasted.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Getting the document content in a variable??

    Hi,
    How can I get the entire contents of a document into a string variable? I donot
    want to print the contents inline but rather have to get them in a variable. Using
    printDoc or printProperty tag?? I guess I will have to use printDoc but then how
    can I stop the contents from being displayed in the jsp and how can I put them
    in a variable??
    Please help me...
    Thanx.
    Prirua

    You should always double-check code put on the newsgroups, even if it's
    put there by me :)
    It probably should be at the beginning:
    <es:forEachInArray array="<%=docs%>" id="adoc"
    type="com.bea.p13n.content.document.Document">
    <%
         byte[] bytes = adoc.getContentBlock(0L, -1L);
    Notice 'byte[]' instead of 'bytes[]', the type specified as Document
    (Content doesn't have the getContentBlock() method, the sub-interface
    Document does), and the 'L's on the numbers to specify that they are
    longs to help the compiler find the correct method.
    Greg
    Prirua wrote:
    Hi,
    Thanx for your propmt reply. My code looks somethinglike this
    <es:forEachInArray array="<%=docs%>" id="adoc" type="com.bea.p13n.content.Content"
              <%
              bytes[] bytes = adoc.getContentBlock(0, -1); // retrieve all the content
              String enc = adoc.getPropertyAsString(null, "encoding");
              String str = null;
              if (enc != null)
                   str = new String(bytes, 0, bytes.length, enc);
              else // use VM default encoding
                   str = new String(bytes);
              %>
              <li>The document title is: <cm:printProperty id="adoc" name="Title" encode="html"
    />
         </es:forEachInArray>
    But it is giving me these two errors...
    C:\bea\wlportal4.0\applications\portal\MyPortal\WEB-INF\_tmp_war_portalDomain_po
    rtalServer_MyPortal\jsp_servlet\_portlets\__contentq.java:152: cannot resolve
    sy
    mbol
    symbol : class bytes
    location: class jsp_servlet._portlets.__contentq
    bytes[] bytes = adoc.getContentBlock(0, -1); // retrieve
    all the content //[ /portlets/contentQ.jsp; Line: 19]
    ^
    C:\bea\wlportal4.0\applications\portal\MyPortal\WEB-INF\_tmp_war_portalDomain_po
    rtalServer_MyPortal\jsp_servlet\_portlets\__contentq.java:152: cannot resolve
    sy
    mbol
    symbol : method getContentBlock (int,int)
    location: interface com.bea.p13n.content.Content
    bytes[] bytes = adoc.getContentBlock(0, -1); // retrieve
    all the content //[ /portlets/contentQ.jsp; Line: 19]
    ^
    2 errors
    Could you plz specify if I have to include some file or something ?
    Thanx.
    Gregory Smith <[email protected]> wrote:
    You will need to call the getContentBlock() method on the Document
    object to retrieve the bytes of the document's content. Then, you do
    whatever you need to with the bytes. When converting it to a String,
    you
    should be aware of double-byte-character encodings, and should check
    the
    Document's encoding metadata attribute, e.g.:
    <%
    bytes[] bytes = doc.getContentBlock(0, -1); // retrieve all the content
    String enc = doc.getPropertyAsString(null, "encoding");
    String str = null;
    if (enc != null)
    str = new String(bytes, 0, bytes.length, enc);
    else // use VM default encoding
    str = new String(bytes);
    %>
    In 8.1, the new <cm:getProperty> is able to retrieve the BinaryValue
    of
    a binary property of a Node.
    Greg
    Prirua wrote:
    Hi,
    How can I get the entire contents of a document into a string variable?I donot
    want to print the contents inline but rather have to get them in a variable.Using
    printDoc or printProperty tag?? I guess I will have to use printDocbut then how
    can I stop the contents from being displayed in the jsp and how canI put them
    in a variable??
    Please help me...
    Thanx.
    Prirua

  • Exporting data from text file to a table using utl_file

    Dear all,
    I have a text file as below and i have a table having 12 columns. Now i need to insert this text file into the table story_books.
    CREATE TABLE story_books
    book_id NUMBER,
    Category VARCHAR2(100 BYTE),
    Book_type VARCHAR2(100 BYTE),
    Name VARCHAR2(700 BYTE),
    Location VARCHAR2(700 BYTE),
    Ownership_code VARCHAR2(700 BYTE),
    Author VARCHAR2(700 BYTE),
    Less_Sel_fact VARCHAR2(700 BYTE),
    Reason VARCHAR2(700 BYTE),
    Buying VARCHAR2(700 BYTE),
    Suspected Book VARCHAR2(700 BYTE),
    Conditions VARCHAR2(700 BYTE)
    -------------------------text file---------------
    Books Out Table: Books
    Book. Type          Name          Location               Ownership Code
    Story               SL          hyd               SS-HYD
    Known Author:     Unknown               
    Less Selling Factors: Thunderstorms     
    Reason:     Unknown               
    Buying (if applicable):
    Not Applicable
    Suspected Book:
    Unknown
    Conditions to increace sales:
    Advertisement in all areas
    i was able to read the data and storing if it is in the same line.But i dont know how to read below data
    Book. Type          Name          Location               Ownership Code
    Story               SL          hyd               SS-HYD
    In this data i have to search for 'Book. type' and then i need to save the word 'Story' to the column 'Book_type'
    Then i need to search for 'Name' and i need to save 'SL' into the column into 'Name'
    Then i need to search for 'Location' and i need to save 'hyd' into the column into 'Location'
    I was able to extract the data if it is in below format using utl_file.get_line
    Known Author:     Unknown               
    Less Selling Factors: Thunderstorms     
    Reason:     Unknown     
    Any one can explain me how to solve the above criteria.
    Thanks in advance.

    Dear all,
    I have a text file as below and i have a table having 12 columns. Now i need to insert this text file into the table story_books.
    CREATE TABLE story_books
    book_id NUMBER,
    Category VARCHAR2(100 BYTE),
    Book_type VARCHAR2(100 BYTE),
    Name VARCHAR2(700 BYTE),
    Location VARCHAR2(700 BYTE),
    Ownership_code VARCHAR2(700 BYTE),
    Author VARCHAR2(700 BYTE),
    Less_Sel_fact VARCHAR2(700 BYTE),
    Reason VARCHAR2(700 BYTE),
    Buying VARCHAR2(700 BYTE),
    Suspected Book VARCHAR2(700 BYTE),
    Conditions VARCHAR2(700 BYTE)
    -------------------------text file---------------
    Books Out Table: Books
    Book. Type          Name          Location               Ownership Code
    Story               SL          hyd               SS-HYD
    Known Author:     Unknown               
    Less Selling Factors: Thunderstorms     
    Reason:     Unknown               
    Buying (if applicable):
    Not Applicable
    Suspected Book:
    Unknown
    Conditions to increace sales:
    Advertisement in all areas
    i was able to read the data and storing if it is in the same line.But i dont know how to read below data
    Book. Type          Name          Location               Ownership Code
    Story               SL          hyd               SS-HYD
    In this data i have to search for 'Book. type' and then i need to save the word 'Story' to the column 'Book_type'
    Then i need to search for 'Name' and i need to save 'SL' into the column into 'Name'
    Then i need to search for 'Location' and i need to save 'hyd' into the column into 'Location'
    I was able to extract the data if it is in below format using utl_file.get_line
    Known Author:     Unknown               
    Less Selling Factors: Thunderstorms     
    Reason:     Unknown     
    Any one can explain me how to solve the above criteria.
    Thanks in advance.

  • Pantech UML295 & Asus RT-AC68U

    Does anyone have any ideas on how to configure the Pantech UML295 Data Modem to work with the Asus RT-AC68U Router ?

    Followed your instructions to the letter. Nothing !    Also, shouldn't this router have some type of accurate clock ?
    Set the time to EST but it continues to show date and time in December / January.   Log file appears as Jan 01.  Here is last thirty lines of log file.....Thanks again for all your help !!!
    ersion 2.6.36.4brcmarm ([email protected]) (gcc version 4.5.3 (Buildroot 2012.02) ) #21 SMP PREEMPT Thu Nov 21 15:05:36 CST 2013
    Jan  1 00:00:10 kernel: CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c53c7f
    Jan  1 00:00:10 kernel: CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
    Jan  1 00:00:10 kernel: Machine: Northstar Prototype
    Jan  1 00:00:10 kernel: Ignoring unrecognised tag 0x00000000
    Jan  1 00:00:10 kernel: Memory policy: ECC disabled, Data cache writealloc
    Jan  1 00:00:10 kernel: Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 60928
    Jan  1 00:00:10 kernel: Kernel command line: root=/dev/mtdblock2 console=ttyS0,115200 init=/sbin/preinit earlyprintk debug
    Jan  1 00:00:10 kernel: Memory: 255504k/255504k available, 6640k reserved, 0K highmem
    Jan  1 00:00:10 syslog: module ledtrig-usbdev not found in modules.dep
    Jan  1 00:00:10 syslog: module leds-usb not found in modules.dep
    Jan  1 00:00:10 kernel: Virtual kernel memory layout:
    Jan  1 00:00:10 kernel:     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    Jan  1 00:00:10 kernel:     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    Jan  1 00:00:10 kernel:     DMA     : 0xf7e00000 - 0xffe00000   ( 128 MB)
    Jan  1 00:00:10 kernel:     vmalloc : 0xd8800000 - 0xf0000000   ( 376 MB)
    Jan  1 00:00:10 kernel:     lowmem  : 0xc0000000 - 0xd8000000   ( 384 MB)
    Jan  1 00:00:10 kernel:     modules : 0xbf000000 - 0xc0000000   (  16 MB)
    Jan  1 00:00:10 kernel:       .init : 0xc0008000 - 0xc003d000   ( 212 kB)
    Jan  1 00:00:10 kernel:       .text : 0xc003d000 - 0xc03ad000   (3520 kB)
    Jan  1 00:00:10 kernel:       .data : 0xc03c6000 - 0xc03e6380   ( 129 kB)
    Jan  1 00:00:10 kernel: External imprecise Data abort at addr=0x0, fsr=0x1c06 ignored.
    Jan  1 00:00:10 kernel: Mount-cache hash table entries: 512
    Jan  1 00:00:10 kernel: CPU1: Booted secondary processor
    Jan  1 00:00:10 kernel: Found a AMD NAND flash:
    Jan  1 00:00:10 kernel: Total size:  128MB
    Jan  1 00:00:10 kernel: Block size:  128KB
    Jan  1 00:00:10 kernel: Page Size:   2048B
    Jan  1 00:00:10 kernel: OOB Size:    64B
    Jan  1 00:00:10 kernel: Sector size: 512B
    Jan  1 00:00:10 kernel: Spare size:  16B
    Jan  1 00:00:10 kernel: ECC level:   8-bit
    Jan  1 00:00:10 kernel: Device ID: 0x 1 0xf1 0x 0 0x1d 0x 1
    Jan  1 00:00:10 kernel: bio: create slab <bio-0> at 0
    Jan  1 00:00:10 kernel: PCI: no core
    Jan  1 00:00:10 kernel: PCI: no core
    Jan  1 00:00:11 kernel: PCI: Fixing up bus 0
    Jan  1 00:00:11 kernel: PCI: Fixing up bus 0
    Jan  1 00:00:11 kernel: PCI: Fixing up bus 1
    Jan  1 00:00:11 kernel: PCI: Fixing up bus 0
    Jan  1 00:00:11 kernel: PCI: Fixing up bus 2
    Jan  1 00:00:11 syslog: module fat not found in modules.dep
    Jan  1 00:00:11 syslog: module vfat not found in modules.dep
    Jan  1 00:00:11 kernel: VFS: Disk quotas dquot_6.5.2
    Jan  1 00:00:11 kernel: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    Jan  1 00:00:11 kernel: pflash: found no supported devices
    Jan  1 00:00:11 kernel: bcmsflash: found no supported devices
    Jan  1 00:00:11 kernel: Boot partition size = 524288(0x80000)
    Jan  1 00:00:11 kernel: lookup_nflash_rootfs_offset: offset = 0x200000
    Jan  1 00:00:11 kernel: nflash: squash filesystem with lzma found at block 28
    Jan  1 00:00:11 kernel: Creating 4 MTD partitions on "nflash":
    Jan  1 00:00:11 kernel: 0x000000000000-0x000000080000 : "boot"
    Jan  1 00:00:11 kernel: 0x000000080000-0x000000200000 : "nvram"
    Jan  1 00:00:11 kernel: 0x000000200000-0x000002000000 : "linux"
    Jan  1 00:00:11 kernel: 0x00000039f87c-0x000002000000 : "rootfs"
    Jan  1 00:00:11 kernel: === PPTP init ===
    Jan  1 00:00:11 kernel: Registering the dns_resolver key type
    Jan  1 00:00:11 kernel: Spare area=64 eccbytes 56, ecc bytes located at:
    Jan  1 00:00:11 kernel:  2 3 4 5 6 7 8 9 10 11 12 13 14 15 18 19 20 21 22 23 24 25 26 27 28 29 30 31 34 35 36 37 38 39 40 41 42 43 44 45 46 47 50 51 52 53 54 55 56 57 58 59 60 61 62 63
    Jan  1 00:00:11 kernel: Available 7 bytes at (off,len):
    Jan  1 00:00:11 kernel: (1,1) (16,2) (32,2) (48,2) (0,0) (0,0) (0,0) (0,0)
    Jan  1 00:00:11 kernel: Options: NO_AUTOINCR,NO_READRDY,BBT_SCAN2NDPAGE,
    Jan  1 00:00:11 kernel: Creating 1 MTD partitions on "brcmnand":
    Jan  1 00:00:11 kernel: 0x000002000000-0x000008000000 : "brcmnand"
    Jan  1 00:00:11 kernel: VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
    Jan  1 00:00:11 kernel: ctf: module license 'Proprietary' taints kernel.
    Jan  1 00:00:11 kernel: Disabling lock debugging due to kernel taint
    Jan  1 00:00:11 kernel: et_module_init: passivemode set to 0x0
    Jan  1 00:00:11 kernel: et_module_init: txworkq set to 0x1
    Jan  1 00:00:11 kernel: et_module_init: et_txq_thresh set to 0x400
    Jan  1 00:00:11 kernel: eth0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 6.37.14.34 (r415984)
    Jan  1 00:00:11 kernel: wl_module_init: passivemode set to 0x0
    Jan  1 00:00:11 kernel: wl_module_init: txworkq set to 0x1
    Jan  1 00:00:11 kernel: eth1: Broadcom BCM4360 802.11 Wireless Controller 6.37.14.34 (r415984)
    Jan  1 00:00:11 kernel: eth2: Broadcom BCM4360 802.11 Wireless Controller 6.37.14.34 (r415984)
    Jan  1 00:00:11 kernel: SCSI subsystem initialized
    Jan  1 00:00:11 kernel: jnl: driver (lke_8.9.0, Nov 21 2013 15:14:38, LBD=ON) loaded at bf5d3000
    Jan  1 00:00:11 kernel: ufsd: driver (lke_8.9.0 lke_8.9.0_r216329_b2, LBD=ON, delalloc, acl, ioctl, ugm, sd, wb) loaded at bf5e0000
    Jan  1 00:00:11 kernel: NTFS support included
    Jan  1 00:00:11 kernel: Hfs+/HfsJ support included
    Jan  1 00:00:11 kernel: optimized: speed
    Jan  1 00:00:11 kernel: Build_for__Asus_RT-AC56U_k2.6.36_2013-11-07_lke_8.9.0_r216329_b2
    Jan  1 00:00:12 syslog: module proxyarp not found in modules.dep
    Jan  1 00:00:12 stop_nat_rules: apply the redirect_rules!
    Jan  1 00:00:12 WAN Connection: Ethernet link down.
    Jan  1 00:00:12 rc_service: wanduck 496:notify_rc restart_wan_if 0
    Jan  1 00:00:13 kernel: scsi 0:0:0:0: CD-ROM            PANTECH  CD-ROM           0000 PQ: 0 ANSI: 2
    Jan  1 00:00:13 kernel: scsi 0:0:0:0: Attached scsi generic sg0 type 5
    Jan  1 00:00:14 RT-AC68U: start httpd
    Jan  1 00:00:15 kernel: cdc_acm 1-2:1.4: This device cannot do calls on its own. It is not a modem.
    Jan  1 00:00:15 kernel: cdc_acm 1-2:1.6: This device cannot do calls on its own. It is not a modem.
    Jan  1 00:00:16 disk monitor: be idle
    Jan  1 00:00:16 miniupnpd[590]: HTTP listening on port 37564
    Jan  1 00:00:16 miniupnpd[590]: Listening for NAT-PMP traffic on port 5351
    Jan  1 00:00:16 pppd[591]: pppd 2.4.5 started by admin, uid 0
    Jan  1 00:00:16 kernel: hub 1-0:1.0: over-current change on port 1
    Jan  1 00:00:16 rc_service: asus_usb_interf 626:notify_rc reboot
    Jan  1 00:00:16 rc_service: waitting "restart_wan_if 0" via wanduck ...
    Jan  1 00:00:16 rc_service: asus_usb_interf 628:notify_rc reboot
    Jan  1 00:00:16 rc_service: waitting "restart_wan_if 0" via wanduck ...
    Jan  1 00:00:16 rc_service: asus_usb_interf 623:notify_rc reboot
    Jan  1 00:00:16 rc_service: waitting "restart_wan_if 0" via wanduck ...
    Jan  1 00:00:16 rc_service: asus_usb_interf 627:notify_rc reboot
    Jan  1 00:00:16 rc_service: waitting "restart_wan_if 0" via wanduck ...
    Jan  1 00:00:16 rc_service: asus_usb_interf 631:notify_rc reboot
    Jan  1 00:00:16 rc_service: waitting "restart_wan_if 0" via wanduck ...
    Jan  1 00:00:16 kernel: hub 1-0:1.0: over-current change on port 2
    Jan  1 00:00:16 kernel: tty_port_close_start: count = -1
    Jan  1 00:00:16 rc_service: asus_usb_interf 629:notify_rc reboot
    Jan  1 00:00:16 rc_service: waitting "restart_wan_if 0" via wanduck ...
    Jan  1 00:00:16 pppd[591]: Connect script failed
    Jan  1 00:00:16 rc_service: asus_usb_interf 625:notify_rc reboot
    Jan  1 00:00:16 rc_service: waitting "restart_wan_if 0" via wanduck ...
    Jan  1 00:00:16 rc_service: asus_usb_interf 630:notify_rc reboot
    Jan  1 00:00:16 rc_service: waitting "restart_wan_if 0" via wanduck ...
    Jan  1 00:00:17 kernel: hub 1-0:1.0: over-current change on port 1
    Jan  1 00:00:17 stop_wan(): perform DHCP release
    Jan  1 00:00:17 stop_wan(): perform DHCP release
    Jan  1 00:00:17 kernel: hub 1-0:1.0: over-current change on port 2
    Jan  1 00:00:20 stop_wan(): perform DHCP release
    Jan  1 00:00:20 stop_wan(): perform DHCP release
    Jan  1 00:00:20 rc_service: wanduck 496:notify_rc restart_wan_if 1
    Jan  1 00:00:20 rc_service: waitting "reboot" via  ...
    Jan  1 00:00:20 FTP Server: daemon is stoped
    Jan  1 00:00:21 Samba Server: smb daemon is stoped
    Jan  1 00:00:21 kernel: gro disabled
    Jan  1 00:00:22 Timemachine: daemon is stoped
    Jan  1 00:00:22 WEBDAV Server: daemon is stoped
    Jan  1 00:00:10 syslogd started: BusyBox v1.17.4
    Jan  1 00:00:10 kernel: klogd started: BusyBox v1.17.4 (2013-11-21 14:59:26 CST)
    Jan  1 00:00:10 kernel: Linux version 2.6.36.4brcmarm ([email protected]) (gcc version 4.5.3 (Buildroot 2012.02) ) #21 SMP PREEMPT Thu Nov 21 15:05:36 CST 2013
    Jan  1 00:00:10 kernel: CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c53c7f
    Jan  1 00:00:10 kernel: CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
    Jan  1 00:00:10 kernel: Machine: Northstar Prototype
    Jan  1 00:00:10 kernel: Ignoring unrecognised tag 0x00000000
    Jan  1 00:00:10 kernel: Memory policy: ECC disabled, Data cache writealloc
    Jan  1 00:00:10 kernel: Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 60928
    Jan  1 00:00:10 kernel: Kernel command line: root=/dev/mtdblock2 console=ttyS0,115200 init=/sbin/preinit earlyprintk debug
    Jan  1 00:00:10 kernel: Memory: 255504k/255504k available, 6640k reserved, 0K highmem
    Jan  1 00:00:10 syslog: module ledtrig-usbdev not found in modules.dep
    Jan  1 00:00:10 syslog: module leds-usb not found in modules.dep
    Jan  1 00:00:10 kernel: Virtual kernel memory layout:
    Jan  1 00:00:10 kernel:     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    Jan  1 00:00:10 kernel:     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    Jan  1 00:00:10 kernel:     DMA     : 0xf7e00000 - 0xffe00000   ( 128 MB)
    Jan  1 00:00:10 kernel:     vmalloc : 0xd8800000 - 0xf0000000   ( 376 MB)
    Jan  1 00:00:10 kernel:     lowmem  : 0xc0000000 - 0xd8000000   ( 384 MB)
    Jan  1 00:00:10 kernel:     modules : 0xbf000000 - 0xc0000000   (  16 MB)
    Jan  1 00:00:10 kernel:       .init : 0xc0008000 - 0xc003d000   ( 212 kB)
    Jan  1 00:00:10 kernel:       .text : 0xc003d000 - 0xc03ad000   (3520 kB)
    Jan  1 00:00:10 kernel:       .data : 0xc03c6000 - 0xc03e6380   ( 129 kB)
    Jan  1 00:00:10 kernel: External imprecise Data abort at addr=0x0, fsr=0x1c06 ignored.
    Jan  1 00:00:10 kernel: Mount-cache hash table entries: 512
    Jan  1 00:00:10 kernel: CPU1: Booted secondary processor
    Jan  1 00:00:10 kernel: Found a AMD NAND flash:
    Jan  1 00:00:10 kernel: Total size:  128MB
    Jan  1 00:00:10 kernel: Block size:  128KB
    Jan  1 00:00:10 kernel: Page Size:   2048B
    Jan  1 00:00:10 kernel: OOB Size:    64B
    Jan  1 00:00:10 kernel: Sector size: 512B
    Jan  1 00:00:10 kernel: Spare size:  16B
    Jan  1 00:00:10 kernel: ECC level:   8-bit
    Jan  1 00:00:10 kernel: Device ID: 0x 1 0xf1 0x 0 0x1d 0x 1
    Jan  1 00:00:10 kernel: bio: create slab <bio-0> at 0
    Jan  1 00:00:10 kernel: PCI: no core
    Jan  1 00:00:10 kernel: PCI: no core
    Jan  1 00:00:10 kernel: PCI: Fixing up bus 0
    Jan  1 00:00:10 kernel: PCI: Fixing up bus 0
    Jan  1 00:00:11 kernel: PCI: Fixing up bus 1
    Jan  1 00:00:11 kernel: PCI: Fixing up bus 0
    Jan  1 00:00:11 kernel: PCI: Fixing up bus 2
    Jan  1 00:00:11 kernel: VFS: Disk quotas dquot_6.5.2
    Jan  1 00:00:11 kernel: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    Jan  1 00:00:11 syslog: module fat not found in modules.dep
    Jan  1 00:00:11 syslog: module vfat not found in modules.dep
    Jan  1 00:00:11 kernel: pflash: found no supported devices
    Jan  1 00:00:11 kernel: bcmsflash: found no supported devices
    Jan  1 00:00:11 kernel: Boot partition size = 524288(0x80000)
    Jan  1 00:00:11 kernel: lookup_nflash_rootfs_offset: offset = 0x200000
    Jan  1 00:00:11 kernel: nflash: squash filesystem with lzma found at block 28
    Jan  1 00:00:11 kernel: Creating 4 MTD partitions on "nflash":
    Jan  1 00:00:11 kernel: 0x000000000000-0x000000080000 : "boot"
    Jan  1 00:00:11 kernel: 0x000000080000-0x000000200000 : "nvram"
    Jan  1 00:00:11 kernel: 0x000000200000-0x000002000000 : "linux"
    Jan  1 00:00:11 kernel: 0x00000039f87c-0x000002000000 : "rootfs"
    Jan  1 00:00:11 kernel: === PPTP init ===
    Jan  1 00:00:11 kernel: Registering the dns_resolver key type
    Jan  1 00:00:11 kernel: Spare area=64 eccbytes 56, ecc bytes located at:
    Jan  1 00:00:11 kernel:  2 3 4 5 6 7 8 9 10 11 12 13 14 15 18 19 20 21 22 23 24 25 26 27 28 29 30 31 34 35 36 37 38 39 40 41 42 43 44 45 46 47 50 51 52 53 54 55 56 57 58 59 60 61 62 63
    Jan  1 00:00:11 kernel: Available 7 bytes at (off,len):
    Jan  1 00:00:11 kernel: (1,1) (16,2) (32,2) (48,2) (0,0) (0,0) (0,0) (0,0)
    Jan  1 00:00:11 kernel: Options: NO_AUTOINCR,NO_READRDY,BBT_SCAN2NDPAGE,
    Jan  1 00:00:11 kernel: Creating 1 MTD partitions on "brcmnand":
    Jan  1 00:00:11 kernel: 0x000002000000-0x000008000000 : "brcmnand"
    Jan  1 00:00:11 kernel: VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
    Jan  1 00:00:11 kernel: ctf: module license 'Proprietary' taints kernel.
    Jan  1 00:00:11 kernel: Disabling lock debugging due to kernel taint
    Jan  1 00:00:11 kernel: et_module_init: passivemode set to 0x0
    Jan  1 00:00:11 kernel: et_module_init: txworkq set to 0x1
    Jan  1 00:00:11 kernel: et_module_init: et_txq_thresh set to 0x400
    Jan  1 00:00:11 kernel: eth0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 6.37.14.34 (r415984)
    Jan  1 00:00:11 kernel: wl_module_init: passivemode set to 0x0
    Jan  1 00:00:11 kernel: wl_module_init: txworkq set to 0x1
    Jan  1 00:00:11 kernel: eth1: Broadcom BCM4360 802.11 Wireless Controller 6.37.14.34 (r415984)
    Jan  1 00:00:11 kernel: eth2: Broadcom BCM4360 802.11 Wireless Controller 6.37.14.34 (r415984)
    Jan  1 00:00:11 kernel: SCSI subsystem initialized
    Jan  1 00:00:11 kernel: jnl: driver (lke_8.9.0, Nov 21 2013 15:14:38, LBD=ON) loaded at bf5d3000
    Jan  1 00:00:11 kernel: ufsd: driver (lke_8.9.0 lke_8.9.0_r216329_b2, LBD=ON, delalloc, acl, ioctl, ugm, sd, wb) loaded at bf5e0000
    Jan  1 00:00:11 kernel: NTFS support included
    Jan  1 00:00:11 kernel: Hfs+/HfsJ support included
    Jan  1 00:00:11 kernel: optimized: speed
    Jan  1 00:00:11 kernel: Build_for__Asus_RT-AC56U_k2.6.36_2013-11-07_lke_8.9.0_r216329_b2
    Jan  1 00:00:12 syslog: module proxyarp not found in modules.dep
    Jan  1 00:00:12 stop_nat_rules: apply the redirect_rules!
    Jan  1 00:00:12 WAN Connection: Ethernet link down.
    Jan  1 00:00:12 rc_service: wanduck 496:notify_rc restart_wan_if 0
    Jan  1 00:00:14 RT-AC68U: start httpd
    Jan  1 00:00:15 kernel: cdc_acm 1-2:1.4: This device cannot do calls on its own. It is not a modem.
    Jan  1 00:00:15 kernel: cdc_acm 1-2:1.6: This device cannot do calls on its own. It is not a modem.
    Jan  1 00:00:16 disk monitor: be idle
    Jan  1 00:00:16 miniupnpd[582]: HTTP listening on port 41875
    Jan  1 00:00:16 miniupnpd[582]: Listening for NAT-PMP traffic on port 5351
    Jan  1 00:00:16 pppd[583]: pppd 2.4.5 started by admin, uid 0
    Jan  1 00:00:16 kernel: hub 1-0:1.0: over-current change on port 1
    Jan  1 00:00:16 rc_service: asus_usb_interf 622:notify_rc reboot
    Jan  1 00:00:16 rc_service: waitting "restart_wan_if 0" via wanduck ...
    Jan  1 00:00:16 rc_service: asus_usb_interf 619:notify_rc reboot
    Jan  1 00:00:16 rc_service: waitting "restart_wan_if 0" via wanduck ...
    Jan  1 00:00:16 rc_service: asus_usb_interf 618:notify_rc reboot
    Jan  1 00:00:16 rc_service: waitting "restart_wan_if 0" via wanduck ...
    Jan  1 00:00:16 rc_service: asus_usb_interf 621:notify_rc reboot
    Jan  1 00:00:16 rc_service: waitting "restart_wan_if 0" via wanduck ...
    Jan  1 00:00:16 kernel: hub 1-0:1.0: over-current change on port 2
    Jan  1 00:00:16 rc_service: asus_usb_interf 627:notify_rc reboot
    Jan  1 00:00:16 rc_service: waitting "restart_wan_if 0" via wanduck ...
    Jan  1 00:00:16 pppd[583]: Connect script failed
    Jan  1 00:00:16 kernel: tty_port_close_start: count = -1
    Jan  1 00:00:16 rc_service: asus_usb_interf 624:notify_rc reboot
    Jan  1 00:00:16 rc_service: waitting "restart_wan_if 0" via wanduck ...
    Jan  1 00:00:16 rc_service: asus_usb_interf 625:notify_rc reboot
    Jan  1 00:00:16 rc_service: waitting "restart_wan_if 0" via wanduck ...
    Jan  1 00:00:16 rc_service: asus_usb_interf 617:notify_rc reboot
    Jan  1 00:00:16 rc_service: waitting "restart_wan_if 0" via wanduck ...
    Jan  1 00:00:17 kernel: hub 1-0:1.0: over-current change on port 1
    Jan  1 00:00:17 stop_wan(): perform DHCP release
    Jan  1 00:00:17 stop_wan(): perform DHCP release
    Jan  1 00:00:17 kernel: hub 1-0:1.0: over-current change on port 2
    Jan  1 00:00:19 stop_wan(): perform DHCP release
    Jan  1 00:00:20 stop_wan(): perform DHCP release
    Jan  1 00:00:20 FTP Server: daemon is stoped
    Jan  1 00:00:20 Samba Server: smb daemon is stoped
    Jan  1 00:00:21 rc_service: wanduck 496:notify_rc restart_wan_if 1
    Jan  1 00:00:21 rc_service: waitting "reboot" via  ...
    Jan  1 00:00:21 kernel: gro disabled
    Jan  1 00:00:22 Timemachine: daemon is stoped
    Jan  1 00:00:22 WEBDAV Server: daemon is stoped
    Jan  1 00:00:10 syslogd started: BusyBox v1.17.4
    Jan  1 00:00:10 kernel: klogd started: BusyBox v1.17.4 (2013-11-21 14:59:26 CST)
    Jan  1 00:00:10 kernel: Linux version 2.6.36.4brcmarm ([email protected]) (gcc version 4.5.3 (Buildroot 2012.02) ) #21 SMP PREEMPT Thu Nov 21 15:05:36 CST 2013
    Jan  1 00:00:10 kernel: CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c53c7f
    Jan  1 00:00:10 kernel: CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
    Jan  1 00:00:10 kernel: Machine: Northstar Prototype
    Jan  1 00:00:10 kernel: Ignoring unrecognised tag 0x00000000
    Jan  1 00:00:10 kernel: Memory policy: ECC disabled, Data cache writealloc
    Jan  1 00:00:10 kernel: Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 60928
    Jan  1 00:00:10 kernel: Kernel command line: root=/dev/mtdblock2 console=ttyS0,115200 init=/sbin/preinit earlyprintk debug
    Jan  1 00:00:10 kernel: Memory: 255504k/255504k available, 6640k reserved, 0K highmem
    Jan  1 00:00:10 syslog: module ledtrig-usbdev not found in modules.dep
    Jan  1 00:00:10 syslog: module leds-usb not found in modules.dep
    Jan  1 00:00:10 kernel: Virtual kernel memory layout:
    Jan  1 00:00:10 kernel:     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    Jan  1 00:00:10 kernel:     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    Jan  1 00:00:10 kernel:     DMA     : 0xf7e00000 - 0xffe00000   ( 128 MB)
    Jan  1 00:00:10 kernel:     vmalloc : 0xd8800000 - 0xf0000000   ( 376 MB)
    Jan  1 00:00:10 kernel:     lowmem  : 0xc0000000 - 0xd8000000   ( 384 MB)
    Jan  1 00:00:10 kernel:     modules : 0xbf000000 - 0xc0000000   (  16 MB)
    Jan  1 00:00:10 kernel:       .init : 0xc0008000 - 0xc003d000   ( 212 kB)
    Jan  1 00:00:10 kernel:       .text : 0xc003d000 - 0xc03ad000   (3520 kB)
    Jan  1 00:00:10 kernel:       .data : 0xc03c6000 - 0xc03e6380   ( 129 kB)
    Jan  1 00:00:10 kernel: External imprecise Data abort at addr=0x0, fsr=0x1c06 ignored.
    Jan  1 00:00:10 kernel: Mount-cache hash table entries: 512
    Jan  1 00:00:10 kernel: CPU1: Booted secondary processor
    Jan  1 00:00:10 kernel: Found a AMD NAND flash:
    Jan  1 00:00:10 kernel: Total size:  128MB
    Jan  1 00:00:10 kernel: Block size:  128KB
    Jan  1 00:00:10 kernel: Page Size:   2048B
    Jan  1 00:00:10 kernel: OOB Size:    64B
    Jan  1 00:00:10 kernel: Sector size: 512B
    Jan  1 00:00:10 kernel: Spare size:  16B
    Jan  1 00:00:10 kernel: ECC level:   8-bit
    Jan  1 00:00:10 kernel: Device ID: 0x 1 0xf1 0x 0 0x1d 0x 1
    Jan  1 00:00:10 kernel: bio: create slab <bio-0> at 0
    Jan  1 00:00:10 kernel: PCI: no core
    Jan  1 00:00:10 kernel: PCI: no core
    Jan  1 00:00:11 kernel: PCI: Fixing up bus 0
    Jan  1 00:00:11 kernel: PCI: Fixing up bus 0
    Jan  1 00:00:11 kernel: PCI: Fixing up bus 1
    Jan  1 00:00:11 kernel: PCI: Fixing up bus 0
    Jan  1 00:00:11 kernel: PCI: Fixing up bus 2
    Jan  1 00:00:11 kernel: VFS: Disk quotas dquot_6.5.2
    Jan  1 00:00:11 syslog: module fat not found in modules.dep
    Jan  1 00:00:11 syslog: module vfat not found in modules.dep
    Jan  1 00:00:11 kernel: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    Jan  1 00:00:11 kernel: pflash: found no supported devices
    Jan  1 00:00:11 kernel: bcmsflash: found no supported devices
    Jan  1 00:00:11 kernel: Boot partition size = 524288(0x80000)
    Jan  1 00:00:11 kernel: lookup_nflash_rootfs_offset: offset = 0x200000
    Jan  1 00:00:11 kernel: nflash: squash filesystem with lzma found at block 28
    Jan  1 00:00:11 kernel: Creating 4 MTD partitions on "nflash":
    Jan  1 00:00:11 kernel: 0x000000000000-0x000000080000 : "boot"
    Jan  1 00:00:11 kernel: 0x000000080000-0x000000200000 : "nvram"
    Jan  1 00:00:11 kernel: 0x000000200000-0x000002000000 : "linux"
    Jan  1 00:00:11 kernel: 0x00000039f87c-0x000002000000 : "rootfs"
    Jan  1 00:00:11 kernel: === PPTP init ===
    Jan  1 00:00:11 kernel: Registering the dns_resolver key type
    Jan  1 00:00:11 kernel: Spare area=64 eccbytes 56, ecc bytes located at:
    Jan  1 00:00:11 kernel:  2 3 4 5 6 7 8 9 10 11 12 13 14 15 18 19 20 21 22 23 24 25 26 27 28 29 30 31 34 35 36 37 38 39 40 41 42 43 44 45 46 47 50 51 52 53 54 55 56 57 58 59 60 61 62 63
    Jan  1 00:00:11 kernel: Available 7 bytes at (off,len):
    Jan  1 00:00:11 kernel: (1,1) (16,2) (32,2) (48,2) (0,0) (0,0) (0,0) (0,0)
    Jan  1 00:00:11 kernel: Options: NO_AUTOINCR,NO_READRDY,BBT_SCAN2NDPAGE,
    Jan  1 00:00:11 kernel: Creating 1 MTD partitions on "brcmnand":
    Jan  1 00:00:11 kernel: 0x000002000000-0x000008000000 : "brcmnand"
    Jan  1 00:00:11 kernel: VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
    Jan  1 00:00:11 kernel: ctf: module license 'Proprietary' taints kernel.
    Jan  1 00:00:11 kernel: Disabling lock debugging due to kernel taint
    Jan  1 00:00:11 kernel: et_module_init: passivemode set to 0x0
    Jan  1 00:00:11 kernel: et_module_init: txworkq set to 0x1
    Jan  1 00:00:11 kernel: et_module_init: et_txq_thresh set to 0x400
    Jan  1 00:00:11 kernel: eth0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 6.37.14.34 (r415984)
    Jan  1 00:00:11 kernel: wl_module_init: passivemode set to 0x0
    Jan  1 00:00:11 kernel: wl_module_init: txworkq set to 0x1
    Jan  1 00:00:11 kernel: eth1: Broadcom BCM4360 802.11 Wireless Controller 6.37.14.34 (r415984)
    Jan  1 00:00:11 kernel: eth2: Broadcom BCM4360 802.11 Wireless Controller 6.37.14.34 (r415984)
    Jan  1 00:00:11 kernel: SCSI subsystem initialized
    Jan  1 00:00:11 kernel: jnl: driver (lke_8.9.0, Nov 21 2013 15:14:38, LBD=ON) loaded at bf5d3000
    Jan  1 00:00:11 kernel: ufsd: driver (lke_8.9.0 lke_8.9.0_r216329_b2, LBD=ON, delalloc, acl, ioctl, ugm, sd, wb) loaded at bf5e0000
    Jan  1 00:00:11 kernel: NTFS support included
    Jan  1 00:00:11 kernel: Hfs+/HfsJ support included
    Jan  1 00:00:11 kernel: optimized: speed
    Jan  1 00:00:11 kernel: Build_for__Asus_RT-AC56U_k2.6.36_2013-11-07_lke_8.9.0_r216329_b2
    Jan  1 00:00:12 syslog: module proxyarp not found in modules.dep
    Jan  1 00:00:12 stop_nat_rules: apply the redirect_rules!
    Jan  1 00:00:12 WAN Connection: Ethernet link down.
    Jan  1 00:00:12 rc_service: wanduck 487:notify_rc restart_wan_if 0
    Jan  1 00:00:14 RT-AC68U: start httpd
    Jan  1 00:00:16 miniupnpd[529]: HTTP listening on port 33871
    Jan  1 00:00:16 miniupnpd[529]: Listening for NAT-PMP traffic on port 5351
    Jan  1 00:00:16 disk monitor: be idle
    Jan  1 00:00:16 kernel: hub 1-0:1.0: over-current change on port 2
    Jan  1 00:00:16 kernel: hub 1-0:1.0: over-current change on port 1
    Jan  1 00:00:18 kernel: hub 1-0:1.0: over-current change on port 1
    Jan  1 00:00:18 kernel: hub 1-0:1.0: over-current change on port 2
    Jan  1 00:00:18 stop_wan(): perform DHCP release
    Jan  1 00:00:18 kernel: Attempt to kill tasklet from interrupt
    Jan  1 00:00:21 rc_service: wanduck 487:notify_rc restart_wan_if 1
    Jan  1 00:00:22 stop_wan(): perform DHCP release
    Jan  1 00:00:24 WAN Connection: Ethernet link down.
    Jan  1 00:02:01 rc_service: httpd 504:notify_rc restart_ftpsamba
    Jan  1 00:02:01 FTP Server: daemon is stoped
    Jan  1 00:02:01 Samba Server: smb daemon is stoped
    Jan  1 00:02:02 kernel: gro disabled
    Jan  1 00:02:02 kernel: gro enabled with interval 2
    Jan  1 00:02:04 Samba Server: daemon is started
    Jan  1 00:00:10 syslogd started: BusyBox v1.17.4
    Jan  1 00:00:10 kernel: klogd started: BusyBox v1.17.4 (2013-11-21 14:59:26 CST)
    Jan  1 00:00:10 kernel: Linux version 2.6.36.4brcmarm ([email protected]) (gcc version 4.5.3 (Buildroot 2012.02) ) #21 SMP PREEMPT Thu Nov 21 15:05:36 CST 2013
    Jan  1 00:00:10 kernel: CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c53c7f
    Jan  1 00:00:10 kernel: CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
    Jan  1 00:00:10 kernel: Machine: Northstar Prototype
    Jan  1 00:00:10 kernel: Ignoring unrecognised tag 0x00000000
    Jan  1 00:00:10 kernel: Memory policy: ECC disabled, Data cache writealloc
    Jan  1 00:00:10 kernel: Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 60928
    Jan  1 00:00:10 kernel: Kernel command line: root=/dev/mtdblock2 console=ttyS0,115200 init=/sbin/preinit earlyprintk debug
    Jan  1 00:00:10 kernel: Memory: 255504k/255504k available, 6640k reserved, 0K highmem
    Jan  1 00:00:10 syslog: module ledtrig-usbdev not found in modules.dep
    Jan  1 00:00:10 syslog: module leds-usb not found in modules.dep
    Jan  1 00:00:10 kernel: Virtual kernel memory layout:
    Jan  1 00:00:10 kernel:     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    Jan  1 00:00:10 kernel:     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    Jan  1 00:00:10 kernel:     DMA     : 0xf7e00000 - 0xffe00000   ( 128 MB)
    Jan  1 00:00:10 kernel:     vmalloc : 0xd8800000 - 0xf0000000   ( 376 MB)
    Jan  1 00:00:10 kernel:     lowmem  : 0xc0000000 - 0xd8000000   ( 384 MB)
    Jan  1 00:00:10 kernel:     modules : 0xbf000000 - 0xc0000000   (  16 MB)
    Jan  1 00:00:10 kernel:       .init : 0xc0008000 - 0xc003d000   ( 212 kB)
    Jan  1 00:00:10 kernel:       .text : 0xc003d000 - 0xc03ad000   (3520 kB)
    Jan  1 00:00:10 kernel:       .data : 0xc03c6000 - 0xc03e6380   ( 129 kB)
    Jan  1 00:00:10 kernel: External imprecise Data abort at addr=0x0, fsr=0x1c06 ignored.
    Jan  1 00:00:10 kernel: Mount-cache hash table entries: 512
    Jan  1 00:00:10 kernel: CPU1: Booted secondary processor
    Jan  1 00:00:10 kernel: Found a AMD NAND flash:
    Jan  1 00:00:10 kernel: Total size:  128MB
    Jan  1 00:00:10 kernel: Block size:  128KB
    Jan  1 00:00:10 kernel: Page Size:   2048B
    Jan  1 00:00:10 kernel: OOB Size:    64B
    Jan  1 00:00:10 kernel: Sector size: 512B
    Jan  1 00:00:10 kernel: Spare size:  16B
    Jan  1 00:00:10 kernel: ECC level:   8-bit
    Jan  1 00:00:10 kernel: Device ID: 0x 1 0xf1 0x 0 0x1d 0x 1
    Jan  1 00:00:10 kernel: bio: create slab <bio-0> at 0
    Jan  1 00:00:10 kernel: PCI: no core
    Jan  1 00:00:10 kernel: PCI: no core
    Jan  1 00:00:11 kernel: PCI: Fixing up bus 0
    Jan  1 00:00:11 kernel: PCI: Fixing up bus 0
    Jan  1 00:00:11 kernel: PCI: Fixing up bus 1
    Jan  1 00:00:11 kernel: PCI: Fixing up bus 0
    Jan  1 00:00:11 kernel: PCI: Fixing up bus 2
    Jan  1 00:00:11 syslog: module fat not found in modules.dep
    Jan  1 00:00:11 kernel: VFS: Disk quotas dquot_6.5.2
    Jan  1 00:00:11 syslog: module vfat not found in modules.dep
    Jan  1 00:00:11 kernel: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    Jan  1 00:00:11 kernel: pflash: found no supported devices
    Jan  1 00:00:11 kernel: bcmsflash: found no supported devices
    Jan  1 00:00:11 kernel: Boot partition size = 524288(0x80000)
    Jan  1 00:00:11 kernel: lookup_nflash_rootfs_offset: offset = 0x200000
    Jan  1 00:00:11 kernel: nflash: squash filesystem with lzma found at block 28
    Jan  1 00:00:11 kernel: Creating 4 MTD partitions on "nflash":
    Jan  1 00:00:11 kernel: 0x000000000000-0x000000080000 : "boot"
    Jan  1 00:00:11 kernel: 0x000000080000-0x000000200000 : "nvram"
    Jan  1 00:00:11 kernel: 0x000000200000-0x000002000000 : "linux"
    Jan  1 00:00:11 kernel: 0x00000039f87c-0x000002000000 : "rootfs"
    Jan  1 00:00:11 kernel: === PPTP init ===
    Jan  1 00:00:11 kernel: Registering the dns_resolver key type
    Jan  1 00:00:11 kernel: Spare area=64 eccbytes 56, ecc bytes located at:
    Jan  1 00:00:11 kernel:  2 3 4 5 6 7 8 9 10 11 12 13 14 15 18 19 20 21 22 23 24 25 26 27 28 29 30 31 34 35 36 37 38 39 40 41 42 43 44 45 46 47 50 51 52 53 54 55 56 57 58 59 60 61 62 63
    Jan  1 00:00:11 kernel: Available 7 bytes at (off,len):
    Jan  1 00:00:11 kernel: (1,1) (16,2) (32,2) (48,2) (0,0) (0,0) (0,0) (0,0)
    Jan  1 00:00:11 kernel: Options: NO_AUTOINCR,NO_READRDY,BBT_SCAN2NDPAGE,
    Jan  1 00:00:11 kernel: Creating 1 MTD partitions on "brcmnand":
    Jan  1 00:00:11 kernel: 0x000002000000-0x000008000000 : "brcmnand"
    Jan  1 00:00:11 kernel: VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
    Jan  1 00:00:11 kernel: ctf: module license 'Proprietary' taints kernel.
    Jan  1 00:00:11 kernel: Disabling lock debugging due to kernel taint
    Jan  1 00:00:11 kernel: et_module_init: passivemode set to 0x0
    Jan  1 00:00:11 kernel: et_module_init: txworkq set to 0x1
    Jan  1 00:00:11 kernel: et_module_init: et_txq_thresh set to 0x400
    Jan  1 00:00:11 kernel: eth0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 6.37.14.34 (r415984)
    Jan  1 00:00:11 kernel: wl_module_init: passivemode set to 0x0
    Jan  1 00:00:11 kernel: wl_module_init: txworkq set to 0x1
    Jan  1 00:00:11 kernel: eth1: Broadcom BCM4360 802.11 Wireless Controller 6.37.14.34 (r415984)
    Jan  1 00:00:11 kernel: eth2: Broadcom BCM4360 802.11 Wireless Controller 6.37.14.34 (r415984)
    Jan  1 00:00:11 kernel: SCSI subsystem initialized
    Jan  1 00:00:11 kernel: jnl: driver (lke_8.9.0, Nov 21 2013 15:14:38, LBD=ON) loaded at bf5d3000
    Jan  1 00:00:11 kernel: ufsd: driver (lke_8.9.0 lke_8.9.0_r216329_b2, LBD=ON, delalloc, acl, ioctl, ugm, sd, wb) loaded at bf5e0000
    Jan  1 00:00:11 kernel: NTFS support included
    Jan  1 00:00:11 kernel: Hfs+/HfsJ support included
    Jan  1 00:00:11 kernel: optimized: speed
    Jan  1 00:00:11 kernel: Build_for__Asus_RT-AC56U_k2.6.36_2013-11-07_lke_8.9.0_r216329_b2
    Jan  1 00:00:12 syslog: module proxyarp not found in modules.dep
    Jan  1 00:00:12 stop_nat_rules: apply the redirect_rules!
    Jan  1 00:00:12 WAN Connection: Ethernet link down.
    Jan  1 00:00:12 rc_service: wanduck 487:notify_rc restart_wan_if 0
    Jan  1 00:00:14 RT-AC68U: start httpd
    Jan  1 00:00:16 miniupnpd[530]: HTTP listening on port 55163
    Jan  1 00:00:16 miniupnpd[530]: Listening for NAT-PMP traffic on port 5351
    Jan  1 00:00:16 disk monitor: be idle
    Jan  1 00:00:16 kernel: hub 1-0:1.0: over-current change on port 1
    Jan  1 00:00:16 kernel: hub 1-0:1.0: over-current change on port 2
    Jan  1 00:00:17 kernel: hub 1-0:1.0: over-current change on port 1
    Jan  1 00:00:18 kernel: hub 1-0:1.0: over-current change on port 1
    Jan  1 00:00:18 kernel: hub 1-0:1.0: over-current change on port 2
    Jan  1 00:00:18 stop_wan(): perform DHCP release
    Jan  1 00:00:18 kernel: Attempt to kill tasklet from interrupt
    Jan  1 00:00:21 rc_service: wanduck 487:notify_rc restart_wan_if 1
    Jan  1 00:00:22 stop_wan(): perform DHCP release
    Jan  1 00:00:24 WAN Connection: Ethernet link down.
    Dec 31 19:15:11 syslogd started: BusyBox v1.17.4
    Dec 31 19:15:11 RT-AC68U: start httpd
    Dec 31 19:15:11 kernel: klogd started: BusyBox v1.17.4 (2013-11-21 14:59:26 CST)
    Dec 31 19:15:12 kernel: nf_conntrack_rtsp v0.6.21 loading
    Dec 31 19:15:12 kernel: nf_nat_rtsp v0.6.21 loading

  • String.getChars()

    String username = request.getParameter("username");
    int strlength = username.length();
    username.getChars(0,strlength,store);and have this is my error:
    C:\Program Files\Tomcat 5.5\webapps\ROOT\WEB-INF\classes
    request2.java:25: cannot find symbol
    symbol : method getChars(int,int,byte[])
    location: class java.lang.String
    username.getChars(0,strlength,store);
            ^
    1 errorI know this function .getChars exsists as its documented, but it wont let me use it? My array hasn't been filled with anything yet either.
    This program is part of a java servlet, I am trying to read in a string from an HTML form (which I have done )and send it using a UDP packet to the server. The string needs to be converted into a char array to do this hence the help needed.
    Message was edited by:
    Lisa_g

    I thought it wouldnt make a difference as a byte is 8 bits and so is a char. Works in C programming. Obvouisly java has some management of those arrays behind the scenes so you cant do it. Is there any suggestions on how I can turn a string into a byte array, cant find anything only a byte array into a string which is the wrong way round! Any help much apprecated.

  • Limitations in Oracle XE with respect to SQL

    Hi to all,
    Is there are any limitations in SQL Queries in Oracle XE?
    Because I am running a SQL query in Oracle Standard Edition which is returing results whereas I am not able to run the same query against the Oracle XE with the same table structure and same data.
    In Oracle XE it is throwing the error as ERROR at line 31:
    ORA-00904: "EMP"."EMPLOYEE_CODE": invalid identifier
    My query is
    SELECT "EMP"."EMPLOYEE_CODE",
    "EMP"."NAME",
    "EMP"."BIRTH_DATE",
    "EMP"."FH_NAME",
    "EMP"."JOINING_DATE",
    "EMP"."DESIGNATION",
    "EMP"."PAN_NO",
    "DEPT"."DESCRIPTION",
    "EMP"."DIVISION_CODE",
    "DIV"."DESCRIPTION",
    "LOC"."DESCRIPTION",
    "EMP"."PF_NO",
    "EMP"."ESI_NO",
    "EMP"."CURRENT_STATUS",
    "L"."CL_BALANCE",
    "L"."EL_BALANCE",
    "L"."ML_BALANCE" ,
    "A"."ATTENDED_DAYS",
    "A"."PUBLIC_HOLIDAYS",
    "A"."WEEKLY_HOLIDAYS",
    (SELECT SUM(CASE WHEN "LEAVE"."LEAVE_CODE"='CL' THEN "LEAVE"."LEAVE_DAYS" END ) CASUAL_LEAVE FROM LEAVE WHERE PERIOD=88 AND EMPLOYEE_CODE=EMP.EMPLOYEE_CODE) AS CASUAL_LEAVE,
    (SELECT SUM(CASE WHEN "LEAVE"."LEAVE_CODE"='EL' THEN "LEAVE"."LEAVE_DAYS" END) EARNED_LEAVE FROM LEAVE WHERE PERIOD=88 AND EMPLOYEE_CODE=EMP.EMPLOYEE_CODE) AS EARNED_LEAVE,
    "SICK_LEAVE",
    "ON_DUTY",
    "ESI_LEAVE",
    (SELECT SUM(CASE WHEN "LEAVE"."LEAVE_CODE"='LP' THEN "LEAVE"."LEAVE_DAYS" END) LOSS_OF_PAY_DAYS FROM LEAVE WHERE PERIOD=88 AND EMPLOYEE_CODE=EMP.EMPLOYEE_CODE) AS LOSS_OF_PAY_DAYS,
    "PAID_DAYS", "DIV"."ADDRESS2"||' '||"DIV"."ADDRESS3" AS ADDRESS,
    (SELECT SUM(AMOUNT) FROM(
    SELECT A.EMPLOYEE_CODE, SUM(A.AMOUNT) AS AMOUNT FROM PAYROLL A, PAY_ELEMENT B
    WHERE A.PAY_ELEMENT_CODE=B.PAY_ELEMENT_CODE AND
    A.PERIOD= 88 AND A.EMPLOYEE_CODE=EMP.EMPLOYEE_CODE AND B.PAY_ELEMENT_TYPE='E'
    AND B.PAY_ELEMENT_CODE NOT IN('FC')
    GROUP BY A.EMPLOYEE_CODE
    UNION
    SELECT A.EMPLOYEE_CODE, AMOUNT FROM FOOD_COUPON A, PAY_ELEMENT B
    WHERE EMPLOYEE_CODE=EMP.EMPLOYEE_CODE
    AND B.PAY_ELEMENT_CODE=A.PAY_ELEMENT_CODE
    AND B.PAY_ELEMENT_TYPE='E'
    AND PERIOD=88)D
    WHERE EMPLOYEE_CODE=EMP.EMPLOYEE_CODE) AS EARNINGS,
    (SELECT SUM(AMOUNT) FROM(
    SELECT A.EMPLOYEE_CODE, SUM(A.AMOUNT) AS AMOUNT FROM PAYROLL A, PAY_ELEMENT B
    WHERE A.PAY_ELEMENT_CODE=B.PAY_ELEMENT_CODE AND
    A.PERIOD= 88 AND A.EMPLOYEE_CODE=EMP.EMPLOYEE_CODE AND B.PAY_ELEMENT_TYPE='D'
    AND B.PAY_ELEMENT_CODE NOT IN('FCD')
    GROUP BY A.EMPLOYEE_CODE
    UNION
    SELECT A.EMPLOYEE_CODE, AMOUNT FROM FOOD_COUPON A, PAY_ELEMENT B
    WHERE EMPLOYEE_CODE=EMP.EMPLOYEE_CODE
    AND B.PAY_ELEMENT_CODE=A.PAY_ELEMENT_CODE
    AND B.PAY_ELEMENT_TYPE='D'
    AND PERIOD=88)D
    WHERE EMPLOYEE_CODE=EMP.EMPLOYEE_CODE) AS DEDUCTIONS,
    NVL((SELECT AMOUNT FROM PAY WHERE PAY_ELEMENT_CODE='BSC' AND EMPLOYEE_CODE=EMP.EMPLOYEE_CODE),0)AS BASIC,
    NVL((SELECT AMOUNT FROM PAY WHERE PAY_ELEMENT_CODE='HRA' AND EMPLOYEE_CODE=EMP.EMPLOYEE_CODE),0)AS HRA,
    NVL((SELECT AMOUNT FROM PAY WHERE PAY_ELEMENT_CODE='SP2' AND EMPLOYEE_CODE=EMP.EMPLOYEE_CODE),0)AS SPECIALPAY2,
    NVL((SELECT NVL(AMOUNT,0) FROM PAY WHERE PAY_ELEMENT_CODE='OA' AND EMPLOYEE_CODE=EMP.EMPLOYEE_CODE),0)AS OTHERALLOW,
    NVL((SELECT AMOUNT FROM PAY WHERE PAY_ELEMENT_CODE='TA' AND EMPLOYEE_CODE=EMP.EMPLOYEE_CODE),0)AS TRANSALLOW,
    NVL((SELECT AMOUNT FROM PAY WHERE PAY_ELEMENT_CODE='FC' AND EMPLOYEE_CODE=EMP.EMPLOYEE_CODE),0)AS FOODCOUPONS
    FROM "EMPLOYEE" "EMP",
    "DEPARTMENT" "DEPT",
    "DIVISION" "DIV",
    "LOCATION" "LOC",
    "LEAVE_BALANCE" "L",
    "PAYROLL" ,
    "ATTENDANCE" "A"
    WHERE ( "EMP"."DEPARTMENT_CODE" = "DEPT"."DEPARTMENT_CODE" ) and
    ( "EMP"."DIVISION_CODE" = "DEPT"."DIVISION_CODE" ) and
    ( "EMP"."DIVISION_CODE" = "DIV"."DIVISION_CODE" ) and
    ( "EMP"."LOCATION_CODE" = "LOC"."LOCATION_CODE" ) and
    ( "EMP"."EMPLOYEE_CODE" = "L"."EMPLOYEE_CODE" ) and
    ( "DIV"."DIVISION_CODE" = "L"."DIVISION_CODE" ) and
    ( "L"."EMPLOYEE_CODE" = "PAYROLL"."EMPLOYEE_CODE" ) and
    ( "PAYROLL"."DIVISION_CODE" = "L"."DIVISION_CODE" ) and
    ( ( "EMP"."CURRENT_STATUS" = 'C' ) AND
    ( "PAYROLL"."PAY_ELEMENT_CODE" = 'BSC' ) AND
    ( "PAYROLL"."PERIOD" = 88) AND
    ("EMP"."EMPLOYEE_CODE"="A"."EMPLOYEE_CODE") AND
    ("A"."PERIOD"=88))
    The above query returs rows in Standard Edition but throws error in XE with the same table structure and same data.
    Kindly help me in this regard,
    Vijayaraghavan K

    <!--[if gte mso 9]><xml>
    Normal
    0
    MicrosoftInternetExplorer4
    </xml><![endif]-->
    <!--[if gte mso 10]>
    <style>
    /* Style Definitions */
    table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman";}
    </style>
    <![endif]-->
    CREATE TABLE "DBO"."ATTENDANCE"
    ( "EMPLOYEE_CODE" VARCHAR2(6
    BYTE) NOT NULL ENABLE,
    "PERIOD"
    VARCHAR2(7 BYTE) NOT NULL ENABLE,
    "DIVISION_CODE"
    NUMBER(2,0) NOT NULL ENABLE,
    "PUBLIC_HOLIDAYS"
    NUMBER(2,0),
    "WEEKLY_HOLIDAYS"
    NUMBER(2,0),
    "CASUAL_LEAVE"
    NUMBER(5,2),
    "EARNED_LEAVE"
    NUMBER(5,2),
    "ON_DUTY"
    NUMBER(5,2),
    "SICK_LEAVE"
    NUMBER(5,2),
    "ESI_LEAVE"
    NUMBER(5,2),
    "LOSS_OF_PAY_DAYS"
    NUMBER(5,2),
    "CANTEEN_DAYS"
    NUMBER(5,2),
    "WORKING_DAYS"
    NUMBER(5,2),
    "ATTENDED_DAYS"
    NUMBER(5,2),
    "PAID_DAYS"
    NUMBER(5,2),
    "AUTHORIZATION_TAG"
    VARCHAR2(1 BYTE),
    "CREATED_BY"
    VARCHAR2(8 BYTE),
    "CREATED_DATE"
    DATE,
    "LAST_MODIFIED_BY"
    VARCHAR2(8 BYTE),
    "LAST_MODIFIED_DATE"
    DATE,
    CONSTRAINT "PK_ATTENDANCE" PRIMARY
    KEY ("EMPLOYEE_CODE", "PERIOD")
    CONSTRAINT "ATTENDANCE_EMPLOYEE_FK1"
    FOREIGN KEY ("EMPLOYEE_CODE")
    REFERENCES
    "DBO"."EMPLOYEE" ("EMPLOYEE_CODE") ENABLE
    ===============================================================
    CREATE TABLE "DBO"."DEPARTMENT"
    ( "DIVISION_CODE" NUMBER(2,0)
    NOT NULL ENABLE,
    "DEPARTMENT_CODE"
    NUMBER(3,0) NOT NULL ENABLE,
    "DESCRIPTION"
    VARCHAR2(60 BYTE) NOT NULL ENABLE,
    "CREATED_BY"
    VARCHAR2(8 BYTE),
    "CREATED_DATE"
    DATE,
    "LAST_MODIFIED_BY"
    VARCHAR2(8 BYTE),
    "LAST_MODIFIED_DATE"
    DATE,
    CONSTRAINT "PK_DEPARTMENT" PRIMARY
    KEY ("DIVISION_CODE", "DEPARTMENT_CODE")
    CONSTRAINT "FK_DEPARTMENT_DIVISION"
    FOREIGN KEY ("DIVISION_CODE")
    REFERENCES
    "DBO"."DIVISION" ("DIVISION_CODE") ON DELETE
    CASCADE ENABLE
    ===============================================================
    CREATE TABLE "DBO"."DIVISION"
    ( "DIVISION_CODE" NUMBER(2,0)
    NOT NULL ENABLE,
    "COMPANY_CODE"
    NUMBER(2,0),
    "DESCRIPTION"
    VARCHAR2(30 BYTE) NOT NULL ENABLE,
    "ADDRESS1"
    VARCHAR2(200 BYTE),
    "ADDRESS2"
    VARCHAR2(30 BYTE),
    "ADDRESS3"
    VARCHAR2(30 BYTE),
    "LOCATION"
    VARCHAR2(30 BYTE),
    "PINCODE"
    NUMBER(6,0),
    "PHONE"
    VARCHAR2(20 BYTE),
    "EMAIL_ID"
    VARCHAR2(40 BYTE),
    "FAX"
    VARCHAR2(20 BYTE),
    "UNIT_HEAD_DESIG"
    VARCHAR2(30 BYTE),
    "UNIT_HEAD_NAME"
    VARCHAR2(30 BYTE),
    "FINANCE_HEAD_DESIG"
    VARCHAR2(30 BYTE),
    "FINANCE_HEAD_NAME"
    VARCHAR2(30 BYTE),
    "HRS_HEAD_DESIG"
    VARCHAR2(30 BYTE),
    "HRS_HEAD_NAME"
    VARCHAR2(30 BYTE),
    "PROCUREMENT_MEMBER1"
    VARCHAR2(30 BYTE),
    "PROCUREMENT_MEMBER2"
    VARCHAR2(30 BYTE),
    "PROCUREMENT_MEMBER3"
    VARCHAR2(30 BYTE),
    "PAN_NO"
    VARCHAR2(20 BYTE),
    "GST_NO"
    VARCHAR2(20 BYTE),
    "CST_NO"
    VARCHAR2(20 BYTE),
    "CONTRA_GL_CODE"
    NUMBER(6,0),
    "ECC_CODE"
    VARCHAR2(20 BYTE),
    "ESI_NO"
    VARCHAR2(15 BYTE),
    "PF_NO"
    VARCHAR2(15 BYTE),
    "PROFESSIONAL_TAX_NO"
    VARCHAR2(15 BYTE),
    "SALES_TAX_NO"
    VARCHAR2(15 BYTE),
    "CREATED_BY"
    VARCHAR2(8 BYTE),
    "CREATED_DATE"
    DATE,
    "LAST_MODIFIED_BY"
    VARCHAR2(8 BYTE),
    "LAST_MODIFIED_DATE"
    DATE,
    "COMPANY_ID"
    CHAR(3 BYTE),
    "NAME"
    VARCHAR2(30 BYTE),
    "PIN_CODE"
    NUMBER(6,0),
    "PHONE_NUMBER"
    VARCHAR2(20 BYTE),
    "FAX_NUMBER"
    VARCHAR2(20 BYTE),
    "PAN_NUMBER"
    VARCHAR2(20 BYTE),
    "GST_NUMBER"
    VARCHAR2(20 BYTE),
    "CST_NUMBER"
    VARCHAR2(20 BYTE),
    "TAN_NO"
    VARCHAR2(20 BYTE),
    "STATUS"
    VARCHAR2(1 BYTE),
    CONSTRAINT "PK_DIVISION_CODE"
    PRIMARY KEY ("DIVISION_CODE")
    CONSTRAINT "FK_COMPANY_CODE" FOREIGN
    KEY ("COMPANY_CODE")
    REFERENCES
    "DBO"."COMPANY" ("COMPANY_CODE") ON DELETE
    CASCADE ENABLE
    ==============================================================
    CREATE TABLE
    "DBO"."EMPLOYEE"
    ( "EMPLOYEE_CODE" VARCHAR2(6
    BYTE) NOT NULL ENABLE,
    "NAME"
    VARCHAR2(30 BYTE) NOT NULL ENABLE,
    "EMPLOYEE_INITIALS"
    VARCHAR2(3 BYTE),
    "FH_NAME"
    VARCHAR2(30 BYTE) NOT NULL ENABLE,
    "BIRTH_DATE"
    DATE NOT NULL ENABLE,
    VARCHAR2(1 BYTE) NOT NULL ENABLE,
    "STATUS"
    VARCHAR2(1 BYTE) NOT NULL ENABLE,
    "BLOOD_GROUP"
    VARCHAR2(15 BYTE),
    "ADDRESS"
    VARCHAR2(30 BYTE),
    "STREET"
    VARCHAR2(30 BYTE),
    "EMAIL"
    VARCHAR2(30 BYTE),
    "CITY"
    VARCHAR2(30 BYTE),
    "STATE"
    VARCHAR2(30 BYTE),
    "PINCODE"
    VARCHAR2(6 BYTE),
    "COUNTRY"
    VARCHAR2(20 BYTE),
    "PHONE"
    VARCHAR2(15 BYTE),
    "QUALIFICATION"
    VARCHAR2(30 BYTE) NOT NULL ENABLE,
    "DESIGNATION"
    VARCHAR2(30 BYTE) NOT NULL ENABLE,
    "GRADE"
    VARCHAR2(2 BYTE),
    "SUPERVISOR_CODE"
    VARCHAR2(6 BYTE),
    "CATEGORY_CODE"
    VARCHAR2(2 BYTE) NOT NULL ENABLE,
    "SUB_CATEGORY_CODE"
    VARCHAR2(2 BYTE) NOT NULL ENABLE,
    "SUB_CATEGORY_TYPE"
    VARCHAR2(1 BYTE),
    "DEPARTMENT_CODE"
    NUMBER(3,0) NOT NULL ENABLE,
    "LOCATION_CODE"
    VARCHAR2(3 BYTE) NOT NULL ENABLE,
    "DIVISION_CODE"
    NUMBER(2,0) NOT NULL ENABLE,
    "COST_CODE"
    VARCHAR2(4 BYTE),
    "JOINING_DATE"
    DATE NOT NULL ENABLE,
    "PROBATION_DATE"
    DATE,
    "CONFIRMATION_DATE"
    DATE,
    "PROMOTION_DATE"
    DATE,
    "TERMINATION_DATE"
    DATE,
    "TERMINATION_REASON"
    VARCHAR2(30 BYTE),
    "CURRENT_STATUS"
    VARCHAR2(1 BYTE),
    "MAX_CASUAL_LEAVE"
    NUMBER(5,2),
    "MAX_EARNED_LEAVE"
    NUMBER(5,2),
    "MAX_MEDICAL_LEAVE"
    NUMBER(5,2),
    "MONTH_OF_INCREMENT"
    VARCHAR2(3 BYTE),
    "NO_OF_INCREMENT"
    NUMBER(2,0),
    "LAST_INCREMENT_MONTH"
    VARCHAR2(3 BYTE),
    "PAN_NO"
    VARCHAR2(15 BYTE),
    "PF_NO"
    VARCHAR2(15 BYTE),
    "PF_PERCENTAGE"
    NUMBER,
    "VOLUNTARY_PF_PERCENTAGE"
    NUMBER(3,0),
    "PF_DATE"
    DATE,
    "ESI_INDICATOR"
    VARCHAR2(1 BYTE),
    "ESI_NO"
    VARCHAR2(15 BYTE),
    "ESI_DATE"
    DATE,
    "ESI_DISPENSARY"
    VARCHAR2(30 BYTE),
    "MODE_OF_PAYMENT"
    VARCHAR2(3 BYTE),
    "BANK_CODE"
    VARCHAR2(3 BYTE),
    "BANK_AC_NO"
    VARCHAR2(15 BYTE),
    "BRANCH_CODE"
    VARCHAR2(3 BYTE),
    "CREATED_BY"
    VARCHAR2(8 BYTE),
    "CREATED_DATE"
    DATE,
    "LAST_MODIFIED_BY"
    VARCHAR2(8 BYTE),
    "LAST_MODIFIED_DATE"
    DATE,
    "SAF_CODE"
    VARCHAR2(30 BYTE),
    "GSAF_CODE"
    VARCHAR2(30 BYTE),
    "IMAGE_LINK"
    VARCHAR2(200 BYTE),
    "PHONE_MOBILE"
    VARCHAR2(15 BYTE),
    CONSTRAINT "PK_EMP" PRIMARY KEY
    ("EMPLOYEE_CODE")
    CONSTRAINT "FK_EMPLOYEE_CATEGORY"
    FOREIGN KEY ("CATEGORY_CODE")
    REFERENCES
    "DBO"."CATEGORY" ("CATEGORY_CODE") ENABLE,
    CONSTRAINT "FK_EMPLOYEE_DEPARTMENT"
    FOREIGN KEY ("DIVISION_CODE", "DEPARTMENT_CODE")
    REFERENCES
    "DBO"."DEPARTMENT" ("DIVISION_CODE", "DEPARTMENT_CODE")
    ON DELETE CASCADE ENABLE,
    CONSTRAINT "FK_EMPLOYEE_DIVISION"
    FOREIGN KEY ("DIVISION_CODE")
    REFERENCES
    "DBO"."DIVISION" ("DIVISION_CODE") ENABLE,
    CONSTRAINT "FK_EMPLOYEE_LOCATION"
    FOREIGN KEY ("LOCATION_CODE")
    REFERENCES "DBO"."LOCATION"
    ("LOCATION_CODE") ENABLE,
    CONSTRAINT "FK_EMPLOYEE_SUBCATEGORY"
    FOREIGN KEY ("SUB_CATEGORY_CODE")
    REFERENCES
    "DBO"."SUB_CATEGORY" ("SUB_CATEGORY_CODE") ENABLE
    ===============================================================
    CREATE TABLE "DBO"."FOOD_COUPON"
    ( "PAY_ELEMENT_CODE" VARCHAR2(3
    BYTE),
    "EMPLOYEE_CODE"
    VARCHAR2(6 BYTE),
    "PERIOD"
    VARCHAR2(7 BYTE),
    "AMOUNT"
    NUMBER(10,2),
    "CREATED_BY"
    VARCHAR2(8 BYTE),
    "CREATED_DATE"
    DATE,
    "LAST_MODIFIED_BY"
    VARCHAR2(8 BYTE),
    "LAST_MODIFIED_DATE"
    DATE,
    CONSTRAINT "FD_PAY_ELEMENT" FOREIGN
    KEY ("PAY_ELEMENT_CODE")
    REFERENCES
    "DBO"."PAY_ELEMENT" ("PAY_ELEMENT_CODE") ENABLE,
    CONSTRAINT "FD_EMPLOYEE_CODE"
    FOREIGN KEY ("EMPLOYEE_CODE")
    REFERENCES
    "DBO"."EMPLOYEE" ("EMPLOYEE_CODE") ENABLE
    ==========================================================
    CREATE TABLE
    "DBO"."LEAVE"
    ( "EMPLOYEE_CODE" VARCHAR2(6
    BYTE) NOT NULL ENABLE,
    "LEAVE_CODE"
    VARCHAR2(2 BYTE) NOT NULL ENABLE,
    "LEAVE_FROM_DATE"
    DATE NOT NULL ENABLE,
    "LEAVE_TO_DATE"
    DATE NOT NULL ENABLE,
    "LEAVE_FROM_SESSION"
    VARCHAR2(1 BYTE),
    "LEAVE_TO_SESSION"
    VARCHAR2(1 BYTE),
    "LEAVE_REQUISITION_DATE"
    DATE,
    "LEAVE_DAYS"
    NUMBER(3,1),
    "LOP_DAYS"
    NUMBER(4,1),
    "SIGNED_BY"
    VARCHAR2(6 BYTE),
    "SANCTIONED_BY"
    VARCHAR2(6 BYTE),
    "LEAVE_REASON"
    VARCHAR2(100 BYTE),
    "PUBLIC_HOLIDAYS"
    NUMBER(2,0),
    "WEEKLY_HOLIDAYS"
    NUMBER(2,0),
    "PERIOD"
    VARCHAR2(7 BYTE),
    "AUTHORIZATION_TAG"
    VARCHAR2(1 BYTE),
    "CREATED_BY"
    VARCHAR2(8 BYTE),
    "CREATED_DATE"
    DATE,
    "LAST_MODIFIED_BY"
    VARCHAR2(8 BYTE),
    "LAST_MODIFIED_DATE"
    DATE,
    CONSTRAINT "PK_LEAVE" PRIMARY KEY
    ("EMPLOYEE_CODE", "LEAVE_CODE",
    "LEAVE_FROM_DATE", "LEAVE_TO_DATE")
    CONSTRAINT "SYS_C0037897" FOREIGN
    KEY ("SANCTIONED_BY")
    REFERENCES "DBO"."EMPLOYEE"
    ("EMPLOYEE_CODE") ON DELETE CASCADE DISABLE,
    CONSTRAINT "SYS_C0037898" FOREIGN
    KEY ("EMPLOYEE_CODE")
    REFERENCES
    "DBO"."EMPLOYEE" ("EMPLOYEE_CODE") ON DELETE
    CASCADE DISABLE,
    CONSTRAINT "SYS_C0037899" FOREIGN
    KEY ("SIGNED_BY")
    REFERENCES "DBO"."EMPLOYEE"
    ("EMPLOYEE_CODE") ON DELETE CASCADE DISABLE,
    FOREIGN KEY ("LEAVE_CODE")
    REFERENCES
    "DBO"."LEAVE_TYPE" ("LEAVE_CODE") ON DELETE
    CASCADE ENABLE
    ===============================================================
    CREATE TABLE "DBO"."LEAVE_BALANCE"
    ( "EMPLOYEE_CODE" VARCHAR2(6
    BYTE) NOT NULL ENABLE,
    "DIVISION_CODE"
    NUMBER(2,0),
    "EL_BALANCE"
    NUMBER(6,2),
    "CL_BALANCE"
    NUMBER(6,2),
    "ML_BALANCE"
    NUMBER(6,2),
    "ADJ_PAISE"
    NUMBER(2,0),
    "CREATED_BY"
    VARCHAR2(8 BYTE),
    "CREATED_DATE"
    DATE,
    "LAST_MODIFIED_BY"
    VARCHAR2(8 BYTE),
    "LAST_MODIFIED_DATE"
    DATE,
    "YEAR"
    NUMBER(4,0),
    CONSTRAINT "PK_LEAVE_BALANCE"
    PRIMARY KEY ("EMPLOYEE_CODE")
    CONSTRAINT
    "FK_LEAVE_BALANCE_DIVISION" FOREIGN KEY ("DIVISION_CODE")
    REFERENCES "DBO"."DIVISION"
    ("DIVISION_CODE") ON DELETE CASCADE ENABLE,
    CONSTRAINT "SYS_C0037900" FOREIGN
    KEY ("EMPLOYEE_CODE")
    REFERENCES
    "DBO"."EMPLOYEE" ("EMPLOYEE_CODE") ON DELETE
    CASCADE DISABLE
    ========================================================
    CREATE TABLE "DBO"."PAY"
    ( "EMPLOYEE_CODE" VARCHAR2(6
    BYTE) NOT NULL ENABLE,
    "PAY_ELEMENT_CODE"
    VARCHAR2(3 BYTE) NOT NULL ENABLE,
    "AMOUNT"
    NUMBER(10,2) NOT NULL ENABLE,
    "CREATED_BY"
    VARCHAR2(8 BYTE),
    "CREATED_DATE"
    DATE,
    "LAST_MODIFIED_BY"
    VARCHAR2(8 BYTE),
    "LAST_MODIFIED_DATE"
    DATE,
    CONSTRAINT "PK_PAY" PRIMARY KEY
    ("EMPLOYEE_CODE", "PAY_ELEMENT_CODE")
    CONSTRAINT "FK_PAY_EMPLOYEE_CODE"
    FOREIGN KEY ("EMPLOYEE_CODE")
    REFERENCES
    "DBO"."EMPLOYEE" ("EMPLOYEE_CODE") ENABLE,
    CONSTRAINT "FK_PAY_PAYELEMENT"
    FOREIGN KEY ("PAY_ELEMENT_CODE")
    REFERENCES
    "DBO"."PAY_ELEMENT" ("PAY_ELEMENT_CODE") ON
    DELETE CASCADE ENABLE
    ================================================ ======
    CREATE TABLE "DBO"."PAY_ELEMENT"
    ( "PAY_ELEMENT_CODE" VARCHAR2(3
    BYTE) NOT NULL ENABLE,
    "DESCRIPTION"
    VARCHAR2(30 BYTE) NOT NULL ENABLE,
    "PAY_ELEMENT_TYPE"
    VARCHAR2(1 BYTE) NOT NULL ENABLE,
    "PARTIAL_INDICATOR"
    VARCHAR2(1 BYTE),
    "TAX_INDICATOR"
    VARCHAR2(1 BYTE),
    "CREATED_BY"
    VARCHAR2(8 BYTE),
    "CREATED_DATE"
    DATE,
    "LAST_MODIFIED_BY"
    VARCHAR2(8 BYTE),
    "LAST_MODIFIED_DATE"
    DATE,
    "SEQUENCE_NO"
    NUMBER(2,0),
    CONSTRAINT "PK_PAY_ELEMENT" PRIMARY
    KEY ("PAY_ELEMENT_CODE")
    =======================================================
    CREATE TABLE "DBO"."PAYROLL"
    ( "EMPLOYEE_CODE" VARCHAR2(6
    BYTE) NOT NULL ENABLE,
    "PAY_ELEMENT_CODE"
    VARCHAR2(3 BYTE) NOT NULL ENABLE,
    "PERIOD"
    VARCHAR2(7 BYTE) NOT NULL ENABLE,
    "AMOUNT"
    NUMBER(10,2) NOT NULL ENABLE,
    "DIVISION_CODE"
    NUMBER(2,0) NOT NULL ENABLE,
    "SERIAL_CODE"
    NUMBER(2,0),
    "AUTHORIZATION_TAG"
    VARCHAR2(1 BYTE),
    "CREATED_BY"
    VARCHAR2(8 BYTE),
    "CREATED_DATE"
    DATE,
    "LAST_MODIFIED_BY"
    VARCHAR2(8 BYTE),
    "LAST_MODIFIED_DATE"
    DATE,
    CONSTRAINT "SYS_C0037906" FOREIGN
    KEY ("EMPLOYEE_CODE")
    REFERENCES
    "DBO"."EMPLOYEE" ("EMPLOYEE_CODE") ON DELETE
    CASCADE DISABLE
    ============================================================
    these are the Table structures
    Please help me in this regard

  • Sql/Plsql code to store data into a temporary table from a text file

    Dear all,
    I need to create a temporary table getting data from a text file. I am very new to data loading could you please help me how to read the text file in to a temporary table.
    i have text file like as below:
    order* items : books Purchasing
    start date:
    8-11-09
    Notes: Books are selling from aug10 to aug 25
    Action performed*
    Time*
    Verified By*
    sold* out from shop, sold out date:_________
    +1.+
    physics _______ book sold to ravi
    +2.+
    social _______ book this is a good book
    sold to kiran
    aug10th
    ronald
    +3.+
    maths book to sal
    +4.+
    english book__________ this was a newbook
    to raj
    jak
    return* to shop, return date:____________
    +1.+
    maths book return by:_____________ Verify book
    aug11th
    john
    +2.+
    story book by:_________ checked
    aug14th
    Now i need to create a temporary table with 5columns(order,Status,Action_Performed,Time,Verified_By) like as below:
    Now i need to create a temporary table named as books_order with 5columns(order,Status,Action_Performed,Time,Verified_By) like as below:
    Order               status     Action_Performed                         Time               Verified_By
    books Purchasing     sold          physics _______ book sold to ravi               _______          _________
    books Purchasing     sold          social _______ book this is a good book sold to kiran aug10th               ronald
    books Purchasing sold          maths book to sal                         _____               __________
    books Purchasing     sold          english book__________ this was a newbook to raj __________          jak
    books Purchasing return     maths book return by:_____________ Verify book      aug11th               john
    books Purchasing     return     story book by:_________ checked                aug14th               _________
    Thanks in advance.

    Hi,
    Thanks for your suggestions. I Was able to get the data using utl_file.get_line. But i was not able to the data if it is in the below format:
    I was able to read the data and storing if it is in the same line.But i dont know how to read below data
    Book. Type Name Location Ownership Code
    Story SL hyd SS-HYD
    In this data i have to search for 'Book. type' and then i need to save the word 'Story' to the column 'Book_type'
    Then i need to search for 'Name' and i need to save 'SL' into the column into 'Name'
    Then i need to search for 'Location' and i need to save 'hyd' into the column into 'Location'
    I was able to extract the data if it is in below format using utl_file.get_line
    Known Author: Unknown
    Less Selling Factors: Thunderstorms
    Reason: Unknown
    Any one can explain me how to solve the above criteria.
    Below i am explaining the same problem in detail.
    I have a text file as below and i have a table having 12 columns. Now i need to insert this text file into the table story_books.
    CREATE TABLE story_books
    book_id NUMBER,
    Category VARCHAR2(100 BYTE),
    Book_type VARCHAR2(100 BYTE),
    Name VARCHAR2(700 BYTE),
    Location VARCHAR2(700 BYTE),
    Ownership_code VARCHAR2(700 BYTE),
    Author VARCHAR2(700 BYTE),
    Less_Sel_fact VARCHAR2(700 BYTE),
    Reason VARCHAR2(700 BYTE),
    Buying VARCHAR2(700 BYTE),
    Suspected Book VARCHAR2(700 BYTE),
    Conditions VARCHAR2(700 BYTE)
    -------------------------text file---------------
    Books Out Table: Books
    Book. Type Name Location Ownership Code
    Story SL hyd SS-HYD
    Known Author: Unknown
    Less Selling Factors: Thunderstorms
    Reason: Unknown
    Buying (if applicable):
    Not Applicable
    Suspected Book:
    Unknown
    Conditions to increace sales:
    Advertisement in all areas
    i was able to read the data and storing if it is in the same line.But i dont know how to read below data
    Book. Type Name Location Ownership Code
    Story SL hyd SS-HYD
    In this data i have to search for 'Book. type' and then i need to save the word 'Story' to the column 'Book_type'
    Then i need to search for 'Name' and i need to save 'SL' into the column into 'Name'
    Then i need to search for 'Location' and i need to save 'hyd' into the column into 'Location'
    I was able to extract the data if it is in below format using utl_file.get_line
    Known Author: Unknown
    Less Selling Factors: Thunderstorms
    Reason: Unknown
    Any one can explain me how to solve the above criteria.
    Thanks in advance.

  • ORACLE_LOADER external Table.

    Hi Team,
    I am trying to read a file with non-delimited columns(fixed length).
    Able to create the table but SELECT query isn't working.
    Date Format: (There are a max of 84 characters in each record)
    001111111111111112233333XXXXXXNNNNNNN 201220124444444.44 55666667788888AAAA
    No of digits(characters):
    RECORD_TYPE(2)
    DLR_NUMBER(15)
    ACTIVITY_TYPE(2)
    TOKEN(5)
    INSTRUMENT_NAME(6)
    SYMBOL(10)
    EXPIRY_DATE(8)
    STPRICE(7,2)
    OPTION_TYPE(2) --blank
    LEVEL(2)
    MBRID(5)
    BRANCH(2)
    USERID(5)
    ACCT(10)
    I tried doing this:
    CREATE TABLE "STG"."EXT_DELIVERY"
    ("RECORD_TYPE" NUMBER(2,0),
         "DLR_NUMBER" NUMBER(15,0),
         "ACTIVITY_TYPE" NUMBER(2,0),
         "TOKEN" NUMBER(5,0),
         "INSTRUMENT_NAME" CHAR(6 BYTE),
         "SYMBOL" CHAR(10 BYTE),
         "EXPIRY_DATE" CHAR(8 BYTE),
         "STPRICE" NUMBER(7,2),
         "OPTION_TYPE" CHAR(2 BYTE),
         "LEVEL" NUMBER(2,0),
         "MBRID" CHAR(5 BYTE),
         "BRANCH" NUMBER(2,0),
         "USERID" NUMBER(5,0),
         "ACCT" CHAR(10 BYTE)
    ORGANIZATION EXTERNAL
    ( TYPE ORACLE_LOADER
    DEFAULT DIRECTORY "EXT_IN"
    ACCESS PARAMETERS
    ( RECORDS FIXED 84
                   ("RECORD_TYPE" NUMBER(2,0),
         "DLR_NUMBER" NUMBER(15,0),
         "ACTIVITY_TYPE" NUMBER(2,0),
         "TOKEN" NUMBER(5,0),
         "INSTRUMENT_NAME" CHAR(6 BYTE),
         "SYMBOL" CHAR(10 BYTE),
         "EXPIRY_DATE" CHAR(8 BYTE),
         "STPRICE" NUMBER(7,2),
         "OPTION_TYPE" CHAR(2 BYTE),
         "LEVEL" NUMBER(2,0),
         "MBRID" CHAR(5 BYTE),
         "BRANCH" NUMBER(2,0),
         "USERID" NUMBER(5,0),
         "ACCT" CHAR(10 BYTE)
    LOCATION
    ( 'DLR10122012_01.DAT')
    SELECT * FROM EXT_DELIVERY;
    Error report:
    SQL Error: ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-00554: error encountered while parsing access parameters
    KUP-01005: syntax error: found "(": expecting one of: "badfile, byteordermark, characterset, column, data, delimited, discardfile, disable_directory_link_check, fields, fixed, load, logfile, language, nodiscardfile, nobadfile, nologfile, date_cache, preprocessor, readsize, string, skip, territory, variable"
    KUP-01007: at line 2 column 4
    29913. 00000 - "error in executing %s callout"
    *Cause:    The execution of the specified callout caused an error.
    *Action:   Examine the error messages take appropriate action.
    Can anyone tell me what am I missing.
    Thoughts...??
    Regards,
    Pratim

    Similar thread
    Expdp impdp fails from 10g to 11g db version
    http://baioradba.wordpress.com/2011/07/26/ora-29913-error-in-executing-odciexttableopen-callout/

Maybe you are looking for

  • Can receive email from hotmail but cannot send email

    i can recieve my hotmail emails ok but i cannot send emails. i keep getting this message: "cannot send message using the servier hotmail. Connections to the server "smtp.live.com" on the default ports timed out. Select a different outgoing mail serve

  • Photoshop CC won't update Camera Raw to 8.1?

    Im on Windows 8, 64.  My current version of Camera Raw is 8.0 but when I run the Help Updates it says there are no updates.  I've tried clearing the AAM cache but that hasnt helped.  Any ideas? Thank!

  • Tracks "disappear" without a real "punch"

    Tracks "disappear". My problem: I've recorded a whole piece of music (playalong, 8 tracks), 3 mins. Now I want to punch in 10 seconds where I played badly. Everything appears fine after I stopped the recording. However, when I click on the first basi

  • Is AI CC worth it?

    I'm taking a look at AI CC. Some of the new features are cool, but I can do without them. What I was hoping to see were some refinements to the interface such as I have learned to appreciate in Photoshop. To name a few: Drag-Zoom feature "Scrub" pref

  • How do I start a group email list

    I have tried to start an email list for group distribution and have not had any luck. New at this so appreciate any help.