Reading class component

Hi,
I am trying to interpret Class component and i got a stragne hex value in the file: you can see the complete content as below:
06 01 5A 00 0A 03 44 40 03 33 30 06 68 20 A2 A3 80 00 81 02 81 00 0A 69 6E 74 65 72 66 61 63 65 32 A4 00 0C 80 00 81 02 81 00 0A 69 6E 74 65 72 66 61 63 65 31 00 82 03 00 FF 00 07 01 00 00 00 1E 25 83 00 00 FF 00 01 05 00 00 00 46 00 4A 00 4E 00 52 00 56 00 1E 05 01 02 04 03 05 00 0C 04 02 04 03 05 80 00 00 81 02 03 04 03 05 81 00 03 04 03 05 05 3E E9 00 00 01 E2 75 00 03 02 99 F8 00 06 04 05 46 00 06 03 0C 84 00 06 05 00 06 43 6C 61 73 73 41 02 00 1E 00 0C 25 00 3E 01 FF 00 02 0A 00 06 00 B1 00 4E 00 52 00 56 00 61 00 64 00 67 00 6A 00 6D 00 70 00 8B 00 8E 00 91 00 94 00 97 00 9A 00 1E 05 01 02 04 03 05 00 0C 04 02 04 03 05 80 00 00 81 02 03 04 03 05 81 00 03 04 03 05 05 3E E9 00 00 01 E2 75 00 03 02 99 F8 00 06 04 05 46 00 06 03 0C 84 00 06 05 00 09 4C 69 62 72 61 72 69 65 73 02 00 1E 00 0C 25 00 97 01 FF 00 0C 01 06 00 00 BC 00 1E 05 01 02 04 03 05 00 0C 04 02 04 03 05 80 00 00 81 02 03 04 03 05 81 00 03 04 03 05 05 3E E9 00 00 01 E2 75 00 03 02 99 F8 00 06 04 05 46 00 06 03 0C 84 00 06 05 00 06 43 6C 61 73 73 42 02 00 1E 00 0C
so:
06 - tag
01 5A - size
00 0A - signature pool length
03 44 40 - first sig item - correct, since the nibble counti is 3, and last nibble is 0x0
03 33 30 - second sig item - correct as above
06 68 20 A2 - third item - correct
next is the forth item:
A3 *80 00 81 02 81 00 0A 69 6E 74*
*65 72 66 61 63 65 32 A4 00 0C*
*80 00 81 02 81 00 0A 69 6E 74*
*65 72 66 61 63 65 31 00 82 03*
*00 FF 00 07 01 00 00 00 1E 25*
*83 00 00 FF 00 01 05 00 00 00*
*46 00 4A 00 4E 00 52 00 56 00*
*1E 05 01 02 04 03 05 00 0C 04*
*02 04*
as you see, the nibble count is odd (A3 => 163), hence the last nibble in the array should be 0x0, but it is 0x4 -> something wrong
secondly, the first nibble in the array is 0x8, which is not a valid value of nibble, since in nibble value table (table 24 in JCVM spec), there is no 0x8 value.
Could you help me to find out what wrong here?
thanks,
Hoang Long
Edited by: user5138836 on Jun 12, 2011 8:53 PM
Edited by: user5138836 on Jun 12, 2011 8:54 PM
Edited by: user5138836 on Jun 12, 2011 8:55 PM

Hi Shane,
do you see something wrong int the fourth item of signature pool array that i separate it out of other elements?
its first byte is A3 (HEX) = 163 (DEC) which is nibble count value. Therefore, according to the spec, if nibble count is odd then the last item in nibble array must be 0x0. However this concept is not respected in this example.
Can you spend some time to clarify this situation?
thanks,
Hoang Long
Edited by: user5138836 on Jun 14, 2011 6:42 PM

Similar Messages

  • Reading CAP class component

    I have been trying to make sense of the CAP file structure using this Hello World example: Java Card “Hello World” Applet | Java Card
    The class component of its CAP file is given as:
    06 00 0c 00 80 03 00 ff 00 07 01 00 00 00 1c
    From the JCVM specification, 06 is the tag and 00 0c gives the size.
    How can the signature_pool_length be 00 80 = 128 when there clearly aren't enough bytes in the component?
    Thank you.

    Hi Shane,
    do you see something wrong int the fourth item of signature pool array that i separate it out of other elements?
    its first byte is A3 (HEX) = 163 (DEC) which is nibble count value. Therefore, according to the spec, if nibble count is odd then the last item in nibble array must be 0x0. However this concept is not respected in this example.
    Can you spend some time to clarify this situation?
    thanks,
    Hoang Long
    Edited by: user5138836 on Jun 14, 2011 6:42 PM

  • Class Component in Application area for Invoices & Dunning

    Hi friends, can anyone help me to know the class components of Application area while creating new tabs,
    For example- In that CIC screen, I want's to create a tab like Invoices & Dunning in application area, but the thing is I can't find the class component for the both Invoices & Dunning, I was searched in full class component detail description, I cn't see & find this, plz help me to know this, I would be great full to me.............

    Prince,
    I used all possible components and profiles for the Customer overview in Application area.
    I am happy with the two options.
    Case 1:
    Component - NAV_VIEW
    Profile - ISU
    Result - I am getting the following information in the screen.
    - Premise
    - CA
    - Contract
    - Installation
    - Device
    I am happy with this but the problem is I am not getting BP details.
    Case 2
    Component - NAV_VIEW
    Profile - ISU_DRG
    Result - I am getting the following information in the screen.
    - BP
    - Premise
    - CA
    - Contract
    - Installation
    - POD
    - Switch Document
    The problem is I am not getting Device details and also POD is not required.
    Please suggest.

  • Unable to read software component version from System Landscape Directory "

    I've worked in past creating/importing SWCV, but this is new system PI7.0 and stuck.
    A) Is my understanding on resolution correct?
    Should I go and apply notes 940309 and create client copy of existing client 001
                                        OR
    change role of client 001; SXMB_ADMIN -> 'Integration Engine Configuration' to 'Integration Server'
    I have no problem in using client 001 as Integration server, all I want is import of SWCV to work. Thanks. Appreciate the help.
    B) Here is what I have done and the error:
    1) Followed weblog below and created product, software component, technical system, business sytem in SLD.
    /people/srinivas.vanamala2/blog/2007/02/05/step-by-step-guide-xml-file-2-xml-file-scenario-part-i
    2) When I import the SWC from integration repository getting error
    (Unable to read software component version from System Landscape Directory "server:5<system number>00").
    C) Pointers used from the forum to debug the issue, but still no luck
    Below are the points checked from the forum and all steps are correct, but still have issues with the import
    1) check the RFCs SAPSLDAPI, LCRSAPRFC, connection test pass as the program ID registered with Jco
    2) T-code SLDCHECK no errors (followed http://help.sap.com/saphelp_nw04/helpdata/de/78/20244134a56532e10000000a1550b0/content.htm)
    3) T-code SLDAPICUST got user PIAPPLUSER, pwd is correct (reset the pwd)
    4) logged using PIAPPLUSER http://server:port/sld and it works
    5) One of the weblog SLD Check Failed (LCR_LIST_BUSINESS_SYSTEMS function doesn't work) referred to apply notes 940309
    Notes: 940309
    You are installing 'SAP NetWeaver 2004s SR1 ABAP+Java' Usage Type 'NetWeaver Process Integration (PI)'.
    You don't want to use the default client 001, but another client as Integration Server.

    applied portion (PIPostInstallProcess) of OSS notes 940309 and it resolved.
    Note:
    I still retained client 001 and didn't do client copy as mentioned in the notes. The wizard based CTC tool helped. Here are the details if someone has similar issue and want to know further details:
    A NetWeaver Process Integration (PI) Installation (ABAP+Java) has two parts: Installation and configuration. The former is done by the Installer, the latter by the 'Central Template Configuration' (CTC) Tool.
    http://help.sap.com/saphelp_nw04s/helpdata/en/14/39084136b5f423e10000000a155106/frameset.htm
    1.      Call the wizard-based configuration tool as described in Configuration Wizard.
           2.      Select the scenario PI and the task PIPostInstallProcess.
           3.      Choose Execute.
    A list of the steps to be executed by the wizard is displayed.
           4.      Choose Install.

  • Unable to read software component versions from System Landscape

    Dear all,
    I have an ECC system with ABAP and Java installed.
    I already configured so that SLDCheck, RFC destination configuration run successfully.
    PIAPPLUSER is not locked and can logon.
    However, when I import software component version in Integration Builder, the system return error message "Unable to read software component versions from System Landscape Directory "Server:50000".
    Please tell me how to correct this error.
    Giang

    Hi,
    Check this
    http://****************/Tips/XI/SWComponentError/Resolve.htm
    "Unable to read software component versions from System Landscape Directory
    Unable to read software component versions from System Landscape Directory
    unable to import from SLD
    Regards
    Seshagiri

  • "Master Data Read Class Parameters" field is disabled

    Hi.
    While creating infoobject I switch master data access from Default to Own implementation,
    after this screen is redisplayed  and only Name of Master Data Read Class field become enabled.
    I need  Master Data Read Class Parameters field, but it is disabled and button near this field has the same status.
    Why? How to make them active?

    Hi,
    I think it is not possible to add own Master Data Class if the reference is 0DATE or if the type is DATS.
    So may be you can create your infoobject as Type CHAR, Length 8.
    May be you can add a Conversion Routine for the required format of date to be displayed.

  • How to read what Component Config you are using at runtime

    is there any way to programatically read what Component Configuration you are running at runtime?

    Have a look at IF_WD_COMPONENT, method GET_CONFIGURATION_KEY. 
    http://help.sap.com/saphelp_nw70ehp2/helpdata/en/aa/0b8b85dce1a941b78eb3aedf47a378/frameset.htm

  • Compiling error in my test file for Reader class.

    I did a small program trying to test Reader class, here is my code:
    package testfilereader;
    import java.io.*;
    import java.io.Reader;
    import java.io.InputStream;
    * Title:
    * Description:
    * Copyright: Copyright (c) 2001
    * Company:
    * @author
    * @version 1.0
    public class FileTest {
    public static void main(String args[]){
    Byte buff[] = new Byte[80];
    try{
    InputStream r = new FileInputStream("test.txt");
    int i = r.read(buff);
    String s = new String(buff);
    System.out.println(s);
    }catch(NullPointerException e){}
    catch(IOException e2){}
    But I continue to get compiling errors:
    C:\>javac FileTest.java
    FileTest.java:19: cannot resolve symbol
    symbol : method read (java.lang.Byte[])
    location: class java.io.InputStream
    int i = r.read(buff);
    ^
    FileTest.java:20: cannot resolve symbol
    symbol : constructor String (java.lang.Byte[])
    location: class java.lang.String
    String s = new String(buff);
    Please advise what is wrong here.

    Replace Byte with byte - the methods
    expect arrays of byte; not Byte (which is a simple
    class wrapper for byte).Hi, I changed to:
    byte buff[] = new byte[80];
    Same errors, any other ideas?

  • 8iR3; EJB deploy; "Unable to read class bits" error

    Hi,
    I have a strange situation going on at the moment. Every time I wish to deploy an EJB to 8iR3, the JDeveloper Message View shows the following (after app specific messages):
    "Reading Deployment Descriptor...done
    Verifying Deployment Descriptor...done
    Gathering users...done
    Generating Comm Stubs...............................................done
    Compiling Stubs...done
    Generating Jar File...done
    Loading EJB Jar file and Comm Stubs Jar file...
    Unable to read class bits from library/sqlhelper/sjb/SQLHelperOperations.class
    *** Errors occurred while deploying the EJB to 8i JVM ***
    *** Deployment completed ***
    If I then just redeploy without changing a thing, it deploys fine and everything works.
    I haven't seen a post on this forum like this, is there a configuration problem at my end?
    Cheers,
    Jono
    null

    I think it is due to the fact that I am writing a 'business interface' for my EJB, then including it in my deployment package.
    This technique is recommended in O'Reilly's 'Enterprise Java Beans' 2nd Edition p344 to ensure the bean interface and the bean match their signature.
    I don't get the 'class bits' error when I write EJB from the wizard, but when I add a business interface it happens first deploy, and is OK for the second one.
    Hope this helps anyone else who is getting this behaviour, I guess we'll have to see what happens in OC4J/Orion.

  • My macbook pro do not read class 10 sd cards

    genius didn't  fine the way to fix that so they exchange the laptop for a new one,
    the point its that i can read that card in the imac and in the macbook, but not in the new macbook pro
    also i tried that in my sister macbook that its the new one and the same, that its bad
    apple haves a reputation that made perfect things but after that as a pro user i have to say that they start to disappoint,
    i need that port to check my  video camera,
    pleasse fix that

    Maybe a Class 10 SDHC is to awesomesauce for the built-in card reader. Plug your camera in through USB or FireWire and put the camera into Mass Storage Mode. Get a usb card reader. Or use Apple Hardware Test to check for hardware issues.

  • How can read BOM component date before save the production order??

    Hi Experts,
    In our company, we need to develop a program to read the BOM component data of the production order
    before we save the production order.
    That for example ,when we create and release a production order , before we save the production
    order,we want a porgram to read the BOM component data. If some component data can meet our
    requriement (may be if there is material requirement quantity>100 EA),then the system will pop up a
    small dialog box to remind us.
    There is user exit PPCO0007 and PPCO0007.But it seems they only can read the head data of the
    production order before we save the production order. And the BOM component data of the production
    order are saved in the RESB(Reservation Table).So if we do not save the production order,all the BOM
    component data are not saved in the RESB table.
    So how can slove the problem??
    How can read component date before save the production order??
    Are there any other user exit we can use???

    Hi Just wanted to check am I right that you are trying to check if you have enough Materials Available before you release or Save the order right ? if this is your business objective then when you create order you have material availability tab which checks and gives error if shortage is there. Please let me know if is this wht you asking for ?

  • Error in reading .class files

    What kind of program opens .class files?
    i'm new to java technology and am very confused with all these.
    Can someone please help?
    .class files ...
    i think its got something to do with JVM
    please send me instructions on how to run .class files
    thanks

    You need java.exe from the JRE or J2SDK. You can find the download links on the front page of http://java.sun.com. At its simplest, if your class file is called MyProgram.class, you would run it with the command "java MyProgram".

  • How to read .class file?

    i am trying to read java classfile and display it in my notepad ,but
    can not get the anticipative result . who can tell me why and give me
    a hand please...

    and when i see the bytecode with javap can i edit it
    manulay at java bytecode level and translate it to
    class again ?Take a look at Apache BCEL.

  • Strip off the base64 content from an XML and saving the rest in streaming fashion using XML Reader Class.

    Hi,
    I'm presently working in a scenario, where i need to read an XML (having base64 encoded images) using XmlReader class in a streaming fashion (considering the performance) .
    1) I have to strip offs the base64 encoded contents from the xml (front & back image node).
    2) Than saving the remaining XML (without base64 content) . 
    Sample XML:-
    <?xml version="1.0" encoding="utf-8"?>
    <tran>
      <tranheader>
     <feild1></feild1>
      </tranheader>
      <item>
    <fields></fields>
        <image>
          <frontimage>base64_content</frontimage>
          <rearimage>base64_content</rearimage>
        </image>
      </item>
      <item>
        <fields></fields>
        <image>
          <frontimage>base64_content</frontimage>
          <rearimage>base64_content</rearimage>
        </image>
      </item>
      <trantrailer>
        <feild1></feild1>
      </trantrailer>
    </tran>
    Please guide.
    Thanks & Regards

    E.g. a simplified skeleton:
    namespace ConsoleCS
    using System;
    using System.IO;
    using System.Xml;
    using System.Xml.Linq;
    class Program
    static void Main(string[] args)
    XDocument xdocument = XDocument.Parse(@"
    <Items>
    <Item>Test with a child element <more/> stuff</Item>
    <Item>Test with a CDATA section <![CDATA[<456>]]> def</Item>
    <Item>Test with a char entity: &#65;</Item>
    <SkipItem>Item to skip.</SkipItem>
    <!-- Fourteen chars in this element.-->
    <Item>1234567890ABCD</Item>
    </Items>");
    StringReader stringReader = new StringReader(xdocument.ToString());
    XmlReader xmlReader = XmlReader.Create(stringReader);
    xmlReader.MoveToContent();
    while (xmlReader.Read())
    switch (xmlReader.NodeType)
    case XmlNodeType.Element:
    if (xmlReader.Name == "SkipItem")
    Console.WriteLine("Skipping..");
    else
    Console.WriteLine("Pushing to output ({0}).", xmlReader.Name);
    break;
    Console.WriteLine("Done.");
    Console.ReadLine();

  • Efficieny of this TextFile reader class?

    I'm trying to make a class especially for handling text files.
    how efficient is this class?
    code:
    final class TextReader {
         public static ArrayList readTextFile(String fileName) {
              ArrayList result = new ArrayList();
              String tempstr;
              try {
                   FileReader fReader = new FileReader(fileName);
                   BufferedReader bReader = new BufferedReader(fReader);
                   while ((tempstr = bReader.readLine()) != null) {
                        result.add(tempstr);
    fReader.close();
         } catch (Exception err) {
                   err.printStackTrace();
         return result;
    }

    Sorry if my question is unclear.
    But if you would look at my above implementation, I use static in my method.
    So I would call:
    ArrayList list = TextReader.readTextFile(textfile);
    Or is it better that I leave the static out:
    Init(){
    TextReader tReader = new TextReader();//empty TextReader constructor
    //.......somewhere below
    ArrayList list = tReader.readTextFile(textfile);
    What I generally want to know is there a better way of implementating a TextReader class than what I did(1 that put a string in an arraylist)?
    thx for the replies.

Maybe you are looking for

  • FI HR Integration

    Hi friends, HR module is implemented in our project and I need some help on payroll integration with FI. 1.     If HR module is implemented is it necessary to create all employees as vendors? 2.     Assuming that there is no need to create all employ

  • IPhone 4/4S different display qualitys

    Hi everyone, I`m on iOS since version 1.1.3. Got my iPhone 4S yesterday and know these stories every year, of yellow tinted screens. Never had any issue with it. Until today. Compared to my iPhone 4 (got it right the first day it was released in swit

  • Admin home directory unreachable/invisible

    Hi, I installed a Leo server 10.5.4 and shortly after I had the admin home directoy unreachable at login ! Using spotlight I could see /Users/admin but they are white, unusable. Searching the forums I found about the applescript action to deflag invi

  • Getting the role of the user running the report?

    Hello, I'm doing a report with Answers and need to recover the role of the user running the report. Is it possible? Thanks

  • MacBookPro or G5 desktop? Which one should I buy?

    I had just made the decision to invest in a new Mac. I've been using my G3 Powerbook for a few years now and it's time to upgrade. I can't even put OSX on my PB (I should be able to but can't due to various problems and instabilities - with the PB th