Java Language Specification error reports

Well, I wanted to report a typo in The Java Language Specification, Third Edition (http://java.sun.com/docs/books/jls/download/langspec-3.0.pdf), so from http://java.sun.com/docs/books/jls/ I clicked on the "feedback form" link (which points at http://developers.sun.com/contact/feedback.jsp?&category=doc&mailsubject=Java%20Language%20Specification%20Feedback). This was redirected to http://www.oracle.com/technetwork/community/join/overview/index.html which offers no such feedback form. Consider this sort-of-broken link as the first problem I'm reporting.
The second problem is in the aforementioned pdf, section 4.8 (Raw Types), page 58, where on can read:
"The type of the member(s) of Inner depends on the type parameter of Outer. If Outer is raw, Inner must be treated as raw as well, as their is no valid binding for T."
This should be instead:
"The type of the member(s) of Inner depends on the type parameter of Outer. If Outer is raw, Inner must be treated as raw as well, as there is no valid binding for T."
I think a forum category should be created for just this: error reports about the documentation (pdfs, APIs, support web pages).
Edited by: Urhixidur on 2011-09-08 09:23

Your intentions are admirable, but you are probably wasting your time. This is a forum for Java development related questions and 99.5% of the visitors are not related to Oracle at all. most likely nothing will be done with your information.
I think a forum category should be created for just this: error reports about the documentation (pdfs, APIs, support web pages).It is a good idea actually, but such a thing would need very tight moderation and then there is still the question of how to arrange that something is actually done with the reports.

Similar Messages

  • Java language specification

    1. Need most full on-line java language specification.
    2. How to convert String to int?

    You can convert only string wrapped numbers in to
    int, not all strings.wrong. It all depends on the algorithm you use and
    what meaning you wish to assign to the outcome...
    Take a hashcode for example, you can create one from
    a string and it is an integer value.I think he meant one can only parse strings containing "0-9" to int's.
    That is not true of course, because you can parse strings with base > 10.

  • Isn't it inconsistent in JLS (Java Language Specification)?

    In section 11.2 Compile-Time Checking of Exceptions, Chapter 11 Exception , JLS,
    it says "Static initializers (�8.7), class variable initializers, and instance initializers or instance variable initializers within named classes and interfaces (�8.3.2), must not result in a checked exception; if one does, a compile-time error occurs."
    but in 8.6 Instance initializers, it says "An instance initializer of a named class may not throw a checked exception unless that exception or one of its superclasses is explicitly declared in the throws clause of each constructor of its class and the class has at least one explicitly declared constructor. "
    Isn't is inconsistent?

    From the Java Spec Report
    http://www.ergnosis.com/java-spec-report/java-language/jls-11.2.html
    jikes 1.14 implements this. The Sun jdk 1.3.1 compiler does not.

  • Suddenly java.language.ClassLoader errors

    after successfully compiling and running a program I wrote another one and got the following errors when I tried to execute - compilation was ok
    java.lang.NoClassDefFoundError: SourceCode/BookPrograms/ASCII/ch05/OracleDemo (wrong name: OracleDemo)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    Exception in thread "main"
    I then tried it with the program that ran before and got the same errors and I'm now getting it for all programs I tried to run
    I not only don't understand the errors but also don't know what to look for in the documentation
    any help would be appreciated - peter jurkat

    Hi Peter,
    The error message "NoClassDefFoundError", means that the java class loader cannot find the file "OracleDemo.class" in subdirectory "SourceCode/BookPrograms/ASCII/ch05"
    Unfortunately, based on the [lack of] information you have supplied, I can only guess as to how to correct this problem. Hopefully, some of what I suggest may help you.
    When you launch the JVM, the class loader(s) search for required "*.class" files by searching a set of directories (and their subdirectories) whose names are determined via your configuration. Part of that configuration is an environment variable named CLASSPATH.
    If you claim that you were previously successful in launching your java applications, but now you are not, then obviously something has changed in your configuration -- possibly the value of your CLASSPATH. Again, I wouldn't have a clue what that change is because you haven't supplied much information regarding your environment.
    If you are using an IDE (like "JBuilder" or "eclipse"), perhaps you have modified its configuration?
    So basically, you need to correct your configuration/environment (probably by changing the value of your CLASSPATH environment variable) so as to allow the java class loader to locate the "OracleDemo.class".
    Judging from the information you have supplied, it seems that you are on a linux/UNIX platform. If that is the case, then have you seen this lesson (from the "Java Tutorial")?
    http://java.sun.com/docs/books/tutorial/getStarted/cupojava/unix.html
    Hope this helps you.
    Good Luck,
    Avi.

  • How to start learning java language?

    can any one advise me how to start with

    can any one advise me how to start withJVerd's post is great.
    Also there are some links I have compiled over the last few months along with others in this forum.
    Free Tutorials and Such
    Installation Notes - JDK 5.0 Microsoft Windows (32-bit)
    Your First Cup of Java
    The Java? Tutorial - A practical guide for programmers
    New to Java Center
    Java Programming Notes - Fred Swartz
    How To Think Like A Computer Scientist
    Introduction to Computer science using Java
    The Java Developers Almanac 1.4
    Object-Oriented Programming Concepts
    Object-oriented language basics
    Don't Fear the OOP
    Free Java Books
    Thinking in Java, by Bruce Eckel (Free online)
    Core Servlet Programming, by Merty Hall (Free Online)
    More Servlets, by Marty Hall (Free Online)
    A Java GUI Programmer's Primer
    Data Structures and Algorithms
    with Object-Oriented Design Patterns in Java, by Bruno R. Preiss
    Introduction to Programming Using Java, by David J. Eck
    Advanced Programming for the Java 2 Platform
    The Java Language Specification
    Books:
    Head First Java, by Bert Bates and Kathy Sierra
    Core Java, by Cay Horstmann and Gary Cornell
    Effective Java, by Joshua Bloch
    Also if you are in school, definatly take a intro to programming course.
    Have Fun,
    JJ

  • Java language proposal #1

    The overhead of reference counting has led to a preference for mark-and-sweep garbage collection. But this has some obvious disadvantages as well. For example, creation of temporary objects chews up memory; this reduces performance due to having to search for unused objects during garbage collection. Although incremental garbage collection can spread the search cost evenly over time, this does not reduce the cost.
    It is evident that both reference counting and mark-and-sweep have their place. Although it is conceivable that the JVM could dynamically choose between the two for any given class, this seems difficult to implement.
    The Java language specification should allow the programmer to specify whether a class is reference counted or not. To maintain compatibility, reference counting could be specified by adding the "transient" keyword to the class declaration.

    It wasn't only the "overhead" of reference counting that led to the use of other methods of garbage collection. There was also the problem that circular references (which are very common) meant that islands of inter-reference could never be collected, leading to memory leaks. This is the case in Visual Basic, for example, and it's sometimes surprisingly difficult to write code to get circular references unlinked so that garbage collection can take place.
    There's also the problem that the existing method of garbage collection (which can be summarized as "Don't refer to it and it will go away") appears to be too complicated for many programmers to understand, leading them to voodoo coding styles to "get around it". So I don't support making it even more complicated.

  • Create java: error reporting

    Hey all,
    Does anyone have any suggestions for how to receive more specific error messages from the compilation of java sources through sql statements? For example, I just tried compiling a piece of code and received the following error message:
    ORA-29511: could not resolve Java class
    I'm not surprised that I received the error, but it's a little inconclusive.
    Any ideas?
    Thanks,
    Jonathan

    Umm.....so....I just realized this may actually be a problem with the HTML DB interface. I had assumed it would transparently pass db error messages to the front-end. -_-;;
    I'm actually having trouble replicating this error now. Right now, when I try the following three commands I receive the following replies:
    1) Statement processed.
    2) Function created.
    3) ORA-29541: class ARDB.CalendarInterface could not be resolved
    The 'create java' statement should be returning a 'cannot find class' error.
    Hmm.....excuse the long post.
    Jonathan
    create or replace and compile java source named "CalendarInterface" as
    import oracle.calendar.soap.client.CalendaringResponse;
    import oracle.calendar.soap.client.Calendarlet;
    import oracle.calendar.soap.client.CreateCommand;
    import oracle.calendar.soap.client.authentication.BasicAuth;
    import oracle.calendar.soap.iCal.iCalendar;
    import oracle.calendar.soap.iCal.vCalendar;
    import oracle.calendar.soap.iCal.vEvent;
    public class CalendarInterface
      public static int addEvent(String title, String description, String dtStart, String duration)
           iCalendar ical   = new iCalendar();    
           vCalendar vcal   = new vCalendar();
           vEvent    vevent = new vEvent();
           ical.addvCalendar(vcal);
           vcal.addvComponent(vevent);
           String uid     = "ARDB-TEST-2";
           vevent.setEventClass(vEvent.k_eventClassPublic);
           // dtStart format: "yyyymmddThhmmssZ"
           vevent.setDtStart(dtStart);
           // Duration format: "PThhHmmM"
           vevent.setDuration(duration);
           vevent.setLocation("HQ");
           vevent.setSummary(title);
           vevent.setUid(uid);
           vevent.setXEventType(vEvent.k_eventTypeAppointment);
           vevent.setDescription(description);
           CreateCommand create = new CreateCommand();
           create.setCmdId("test");
           create.setiCalendar(ical);
           Calendarlet cws = new Calendarlet();      
           BasicAuth auth = new BasicAuth();
           auth.setName("username");
           auth.setPassword("password");
           cws.setEndPointURL("url");
           cws.setWantIOBuffers(true);
           cws.setAuthenticationHeader(auth.getElement());
           try {
              CalendaringResponse response = cws.Create(create.getElement());
           } catch (Exception ex)
             System.out.println("There was an error while retrieving a response from the Calendar server.");
           return 1;
    CREATE OR REPLACE FUNCTION addEvent (
       title IN VARCHAR2,
       description IN VARCHAR2,
       dtStart IN VARCHAR2,
       duration IN VARCHAR2)
       RETURN NUMBER
    AS LANGUAGE JAVA
       NAME 'CalendarInterface.addEvent (
                java.lang.String,
                java.lang.String,
                java.lang.String,
                java.lang.String)
                return int';
    declare
      retval   number;
    begin
      retval := addEvent('Title', 'Description', '20050817T100000Z', 'PT01H00M');
      htp.p(retval);
    end;

  • Report Script returns no data and "java.io.FileNotFoundException" error

    When attempting to write to a new file (Eg: C:\TEST.txt), Report Script returns no data and "java.io.FileNotFoundException" error occurs.
    This error occurs only in Essbase 9.3.1.3 release, however it works fine in release 9.3.1.0.
    After running the report the script, it pops up the follwing message:
    "java.io.FileNotFoundException: ..\temp\eas17109.tmp (The system cannot find the file specified): C:\TEST.txt"
    When checked the TEST.txt, it was empty.

    Sorry folks, I just found out the reason. Its because there was no data in the combination what I was extracting.
    but is this the right error message for that? It should have atleast create a blank file right?

  • "java.lang.NumberFormatException" error while running custom BIP report

    Hi,
    When we are running a custom BIP report, it is completing in ERROR at times and running Succesfully at times for the same set of parameters.
    Please let us know the solution if any one faced similar kind of an issue.
    Below is the log file when the program errors out:
    Calling XDO Data Engine...
    java.lang.NumberFormatException: For input string: "000</UIN><ACC>726030</ACC><ACC_N>Express Services - Mail and Courier</ACC_N><S_ACC_N>00000</S_ACC_N><S_ACC_NA>Default - Sub Account</S_ACC_NA><I_CO>000</I_CO><PROD>Term Life - GBL - Allocation Ind NQ NP BCLIC Direct</PROD><BAL>1126.47</BAL><A_L>9</A_L><P_ACC>GEN_EXP_POSTAGE_S</P_ACC><S_F>N</S_F><R_ID>3123</R_ID>ACC_N><S_ACC_NA>Default - Sub Account</S_ACC_NA><I_CO>000</I_CO><PROD>Annuities Dep Type - Allocation Ind NQ NP OCB</PROD><BAL>13.5</BAL><A_L>9</A_L><P_ACC>GEN_EXP_POSTAGE_S</P_ACC><S_F>N</S_F><R_ID>3124</R_ID>N><ACC>MGMT_ACCT_HIERARCHY</ACC><ACC_N/><S_ACC_N/><S_ACC_NA/><I_CO/><PROD>FPDA - Other Ind Q NP BCLIC Ind Agt</PROD><BAL>176028.27</BAL><A_L>0</A_L><P_ACC/><S_F>Y</S_F><R_ID>36</R_ID>_T>>726030</ACC><ACC_N>Express Services - Mail and Courier</ACC_N><S_ACC_N>00000</S_ACC_N><S_ACC_NA>Default - Sub Account</S_ACC_NA><I_CO>000</I_CO><PROD>Annuities Other - Allocation Ind NQ NP NON OCB</PROD><BAL>2.58</BAL><A_L>9</A_L><P_ACC>GEN_EXP_POSTAGE_S</P_ACC><S_F>N</S_F><R_ID>3127</R_ID>R_ID>3128</R_ID>S_F><R_ID>41</R_ID>ther - Allocation Ind NQ NP BCLIC Career</PROD><BAL>267.97</BAL><A_L>9</A_L><P_ACC>GEN_EXP_POSTAGE_S</P_ACC><S_F>N</S_F><R_ID>3131</R_ID>areer</PROD><BAL>53.31</BAL><A_L>9</A_L><P_ACC>GEN_EXP_POSTAGE_S</P_ACC><S_F>N</S_F><R_ID>3132</R_ID>o CV Ind NQ NP BCLIC Direct</PROD><BAL>-29963</BAL><A_L>0</A_L><P_ACC/><S_F>Y</S_F><R_ID>46</R_ID>N>Telecommunication/Online Services</ACC_N><S_ACC_N>00000</S_ACC_N><S_ACC_NA>Default - Sub Account</S_ACC_NA><I_CO>000</I_CO><PROD>Term Life - Other - Allocation Grp NQ NP BCLIC Career</PROD><BAL>.06</BAL><A_L>9</A_L><P_ACC>GEN_EXP_POSTAGE_S</P_ACC><S_F>N</S_F><R_ID>3135</R_ID>_ACC_NA><I_CO>000</I_CO><PROD>LTC - Allocation Ind Guar Ren NON OCB</PROD><BAL>22.05</BAL><A_L>9</A_L><P_ACC>GEN_EXP_POSTAGE_S</P_ACC><S_F>N</S_F><R_ID>3136</R_ID>ROD>Term Life - Other - Allocation Grp NQ NP BCLIC Career</PROD><BAL>1118.96</BAL><A_L>0</A_L><P_ACC/><S_F>Y</S_F><R_ID>51</R_ID>S_ACC_N>00000</S_ACC_N><S_ACC_NA>Default - Sub Account</S_ACC_NA><I_CO>000</I_CO><PROD>Annuities Other - Allocat"
         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:59)
         at java.lang.Integer.parseInt(Integer.java:467)
         at java.lang.Integer.parseInt(Integer.java:508)
         at oracle.apps.xdo.dataengine.ScalableStringList.get(ScalableStringList.java:162)
         at oracle.apps.xdo.dataengine.XMLPGEN.writeRowSetListToStream(XMLPGEN.java:1277)
         at oracle.apps.xdo.dataengine.XMLPGEN.processSQLDataSource(XMLPGEN.java:559)
         at oracle.apps.xdo.dataengine.XMLPGEN.writeData(XMLPGEN.java:445)
         at oracle.apps.xdo.dataengine.XMLPGEN.writeGroupStructure(XMLPGEN.java:308)
         at oracle.apps.xdo.dataengine.XMLPGEN.processData(XMLPGEN.java:273)
         at oracle.apps.xdo.dataengine.XMLPGEN.processXML(XMLPGEN.java:215)
         at oracle.apps.xdo.dataengine.XMLPGEN.writeXML(XMLPGEN.java:254)
         at oracle.apps.xdo.dataengine.DataProcessor.processDataStructre(DataProcessor.java:390)
         at oracle.apps.xdo.dataengine.DataProcessor.processData(DataProcessor.java:355)
         at oracle.apps.xdo.oa.util.DataTemplate.processData(DataTemplate.java:334)
         at oracle.apps.xdo.oa.cp.JCP4XDODataEngine.runProgram(JCP4XDODataEngine.java:294)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
    Oracle error 6502: java.sql.SQLException: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "APPS.FND_CONCURRENT", line 1331
    ORA-06512: at line 1
    has been detected in FND_CONCURRENT.SET_INTERIM_STATUS.+---------------------------------------------------------------------------+
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    Output file size:
    9662
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 970405 on node UXEBSCMP01 at 29-SEP-2012 21:02:30.
    Post-processing of request 970405 failed at 29-SEP-2012 21:02:30 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 29-SEP-2012 21:02:30
    Thanks.

    If you use parameters you can try playing with them to narrow down the values on which the error occurs. Anyway, need to get the output in XML (without template) and review it. If it's not too huge, post the XML here.

  • While generating the huge report getting Java Heap Space Error

    Hi All,
    We are using XML Publisher 5.6.2. we have to generate the huge report which contains more than 300 sql statements. Since our schema structure we can not reduce the queries. Now we are facing issue while generating the report. It takes lot of time and gives 'java heap space error'. We are using data template and RTF template for generating excel report.
    Can anybody help me to resolve the issue? or is there any other way to generate the huge reports?
    Thanks,

    Hi,
    I had seen the forum, but we had already adjusted the parameters in the oc4j "-XX:MaxPermSize=128m -Xmx512m" values to 4096. but still we are getting the java heap space error. since we increased the size of xmx value, XML Publisher occupies 61% of memory of the server. B'coz of this our other applications are getting affected.
    and also, since we are using XML Publisher 5.6.2, can you please assist us how to set the scalable property to 'true'.
    Thanks,
    Ramya.
    Edited by: user753355 on Aug 12, 2009 3:35 AM

  • Java.rmi.RemoteException: Protocol error reported by the card! why?

    Hello,
    I am currently trying to run the JCK 2.2.1 SecureRMIDemo using SmartCardIO instead of OCF, but getting an error:
    java.rmi.RemoteException: Protocol error reported by the card
    (in my last post I succesfully ran the RMIDemo using my SmartCardIO implementation, see http://forums.sun.com/thread.jspa?threadID=5405634&tstart=15)
    So here is what I did:
    - I succesfully loaded the server app (com.sun.javacard.samples.SecureRMIDemo) on the card without changes.
    - I created an new accessor class: public class PINCardAccessor extends SmartCardIOAccessor (I wrote SmartCardIOAccessor for the RMIDemo, it should work fine as an accessor)
    - The contents of PINCardAccessor class and SecureOCFCardAccessor are the same, just the class declration makes the difference
    - Here is the most important part of my main method:
                   ca = new PINCardAccessor(false);
                   JavaCardRMIConnect  jcRMI = new JavaCardRMIConnect(ca);                         
                   jcRMI.selectApplet(appAID);
                   // send PIN
                   System.out.println("Sending PIN...");
                if (! ((PINCardAccessor) ca).authenticateUser( PRINCIPAL_APP_PROVIDER_ID ))
                     System.out.println("Wrong PIN!");
                     System.exit(0);
                   Purse myServ = (Purse) jcRMI.getInitialReference();
                   if(myServ == null)
                      throw new Exception("Received null instead of the initial ref");
                   // print balance
                   System.out.println("Balance: "+myServ.getBalance());And finally here is the debug output:
    accessor: select command
    0 a4 4 0 a a0 0 0 0 62 3 1 c a 1 7f
    90 0 6f 42 6e 40 5e 3e 2 2 38 81 33 f1 0 26 63 6f 6d 2f 73 75 6e 2f 6a 61 76 61 63 61 72 64 2f 73 61 6d 70 6c 65 73 2f 53 65 63 75 72 65 52 4d 49 44 65 6d 6f f 53 65 63 75 72 65 50 75 72 73 65 49 6d 70 6c
    90 0 6f 42 6e 40 5e 3e 2 2 38 81 33 f1 0 26 63 6f 6d 2f 73 75 6e 2f 6a 61 76 61 63 61 72 64 2f 73 61 6d 70 6c 65 73 2f 53 65 63 75 72 65 52 4d 49 44 65 6d 6f f 53 65 63 75 72 65 50 75 72 73 65 49 6d 70 6c
    Sending PIN...
    80 39 0 0 4 12 34 0 46 7f
    90 0 0 0
    Le=2
    csum1=0
    csum2=0
    90 0
    80 38 2 2 6 33 f1 ec a8 ff b8 7f
    90 0 99 0 6 ff 9f
    Le=5
    csum1=-97
    csum2=-97
    90 0 99 0 6
    java.rmi.RemoteException: Protocol error reported by the card
         at com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory.throwError(Unknown Source)
         at com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory.throwException(Unknown Source)
         at com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory.getObject(Unknown Source)
         at com.sun.javacard.ocfrmiclientimpl.JCRemoteRefImpl.parseAPDU(Unknown Source)
         at com.sun.javacard.ocfrmiclientimpl.JCRemoteRefImpl.invoke(Unknown Source)
         at com.sun.javacard.samples.SecureRMIDemo.SecurePurseImpl_Stub.getBalance(Unknown Source)
         at SecureClient.main(SecureClient.java:60)Please help me, I cant find the reason for this exception.
    thank you
    sebastaian

    Oh, thanks for pointing at the JCRE Spec, it is very informative, but i still have not found the problem yet.
    If i understand everything right, the communication's flow is
    SecureClient <-> PINCardAccessor <-> SmartCardIOAccessor <-> MySecurityService <-> SecurePurseImpl (with help of SecurePurseApplet)
    probably i made a mistake in a protocol of one or more layers.
    - MySecurityService, SecurePurseImpl and SecurePurseApplet are EXACTLY the one's from com.sun.javacard.samples.SecureRMIDemo of JCDK 2.2.1, so there cant be any mistake (?).
    - SmartCardIOAccessor worked fine in my RMIDemo tests, see http://forums.sun.com/thread.jspa?threadID=5405634&tstart=15 - there is also the implementation)
    - SecureClient must be obviously correctly
    so maybe it's something about PINCardAccessor? hmm...i havent found anything, but here is the complete code:
    import javax.smartcardio.CardException;
    * Copyright © 2003 Sun Microsystems, Inc. All rights reserved.
    * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
    * @(#)SecureOCFCardAccessor.java     1.11 03/07/08
    public class PINCardAccessor extends SmartCardIOAccessor {
        public PINCardAccessor(boolean debug) throws CardException {
              super(debug);
         private static final byte INS_SELECT   = (byte)0xA4;
        private static final byte APDU_CMD_MASK = (byte)0xFC;
        private static final byte CLA_ISO7816 = (byte)0x00;
        private static final byte CLA_AUTH = (byte)0x80;
        private static final byte INS_AUTH = (byte)0x39;
        private static final boolean debug2 = false;
        /** Modifies the data and calls super.sendCommandAPDU to perform the actual send.
         * The data returned from the smart card is returned by this method within
         * the <CODE>ResponseAPDU</CODE> object
         * @param apdu The command APDU to be sent to the smart card
         * @return The response APDU returned from the card. <CODE>null</CODE> if none available.
         * @throws Exception if a communication error or timeout occurred
        public byte[] exchangeAPDU( byte[] sendData ) throws java.io.IOException{
            System.out.println("Send Data:"+SmartCardIOAccessor.getHexString(sendData));
            final boolean select = isSelect(sendData);
            byte[] dataWithChecksum;
            if(select) {
                dataWithChecksum = new byte[ sendData.length ];
                System.arraycopy(sendData, 0, dataWithChecksum, 0, sendData.length);
            else {
                dataWithChecksum = new byte[ sendData.length + 2];
                System.arraycopy(sendData, 0, dataWithChecksum, 0, sendData.length-1);
                dataWithChecksum[dataWithChecksum.length-1] = sendData[sendData.length-1];
                int Lc = dataWithChecksum[4];
                short csum = 0;
                for(short n = 5; n<Lc+5; ++n) {
                    csum += sendData[n];
                dataWithChecksum[Lc+5] = (byte) (csum>>8);
                dataWithChecksum[Lc+6] = (byte) (csum);
                dataWithChecksum[4] += 2;  // increase Lc
            if(debug2) {
                for(int i=0; i<dataWithChecksum.length;++i) {
                    System.out.print(Integer.toHexString(dataWithChecksum[i] & 0x00FF) + " ");
                System.out.println();
            byte[] receiveDataWithChecksum =  super.exchangeAPDU( dataWithChecksum );
            byte[] receiveData;
            if(debug2) {
                for(int i=0; i<receiveDataWithChecksum.length;++i) {
                    System.out.print(Integer.toHexString(receiveDataWithChecksum[i] & 0x00FF) + " ");
                System.out.println();
                System.out.println();
            if(!select)  // verify the checksum
                int Le = receiveDataWithChecksum.length - 2;   // 2 bytes reserved for SW
                if(debug2) {
                    System.out.println("Le=" + Le);
                short csum1 = 0;
                for(short n = 2; n<Le; ++n) {
                    csum1 += receiveDataWithChecksum[n];
                short csum2 = (short)
                (receiveDataWithChecksum[receiveDataWithChecksum.length - 2]<<8)
                |
                (receiveDataWithChecksum[receiveDataWithChecksum.length - 1] & 0x00FF)
                if(debug2) {
                    System.out.println("csum1=" + csum1);
                    System.out.println("csum2=" + csum2);
                System.out.println("csum1=" + Integer.toHexString(csum1));
                System.out.println("csum2=" + Integer.toHexString(csum2));
                if(csum1 != csum2) throw new java.io.IOException("Wrong checksum on returned data");
                receiveData = new byte[receiveDataWithChecksum.length-2];
                System.arraycopy(receiveDataWithChecksum, 0, receiveData, 0, receiveData.length);
            else {
                receiveData = new byte[receiveDataWithChecksum.length];
                System.arraycopy(receiveDataWithChecksum, 0, receiveData, 0, receiveData.length);
            if(debug2) {
                for(int i=0; i<receiveData.length;++i) {
                    System.out.print(Integer.toHexString(receiveData[i] & 0x00FF) + " ");
                System.out.println();
                System.out.println();
            System.out.println("Receive Data:"+SmartCardIOAccessor.getHexString(receiveData));
            return receiveData;
        boolean authenticateUser( short ID ){
            byte[] externalAuthCommand = new byte[8];
            externalAuthCommand[0] = CLA_AUTH;
            externalAuthCommand[1] = INS_AUTH;
            externalAuthCommand[4] = 2;  // Lc
            externalAuthCommand[5] = (byte)(ID>>8);
            externalAuthCommand[6] = (byte)ID;
            externalAuthCommand[7] = 0x7F;
            try {
                byte[] response = this.exchangeAPDU( externalAuthCommand );
                if(response[0] != (byte)0x90 || response[1] != 0x00) return false;
                else return true;
            }catch (Exception e){
                return false;
        private boolean isSelect(byte[] buffer) {
            if(buffer.length < 2) return false;
            if((buffer[0]&APDU_CMD_MASK)==CLA_ISO7816 && buffer[1]==INS_SELECT) {
                if(debug2) {
                    System.out.println("accessor: select command");
                return true;
            else {
                return false;
    }

  • Data Quality vendor-specific error: An error occurred when calling function 'sdq_init_connector ()' in connector ": "(-8) Exception!." Detailed error message: Exception thrown by Java: java.lang.UnsatisfiedLinkError: nio (Not found in com.ibm.oti.vm.boots

    When attempting to create a new Account in siebel integrated with OEDQ the following error occurs.
    ERROR
    Data Quality vendor-specific error: An error occurred when calling function 'sdq_init_connector ()' in connector ": "(-8) Exception!." Detailed error message: Exception thrown by Java: java.lang.UnsatisfiedLinkError: nio (Not found in com.ibm.oti.vm.bootstrap.library.path)(SBL-APS-00118)
    STEPS
    The issue can be reproduced at will with the following steps:
    1) from EDQ director we have imported the EDQ_CDS,EDQ-REFERENCE DATA & EDQ_HISTORICAl DATA packages sucessfully.
    2) Created dnd.param file in SIebel server SDQCOnnector folder.
    3) Copied the libdnd.so file to siebsrvr lib directory(32 bit)
    3) In dnd.param file we have mentioned the javalib file and instllation directory path(<Siebsrvr roo>/dnd/install)
    4) Unzipped the EDQ-Siebel Connector files in dnd/install folder
    5) Copied the dnd.properties file in dnd/install directory and modified it accordingly to point to installed EDQ instance.
    6) Configured the Siebel components for EDQ integration.
    7) Realtime EDQ jobs are running.
    8) Create a new Account
    Env details are
    On : 8.2.2.14 [IP2014] version, Client Functionality
    EDQ 11.1.1.7.4
    IBM JDK 1.7 32 bit
    Using Open UI
    Any Champ have faced this issue and overcame it please let me know the resolution steps. your help is
    Regards
    Monoj Dey
    9007554589

    Hi Monoj,
    A few questions:
    - What OS is Siebel running on?
    - What version of the Siebel connector are you using?
    - Which libdnd.so file are you using?
    - What's the contents of your dnd.parms file?
    thanks,
    Nick

  • Error Report when calling Java thru C

    Currently we have encountered some issues with our C code calling java module in NT- Itanium 64bit machine. We get the following error message (we don't get this on the 32 bit):
    Another exception has been detected while we were handling last error.
    Dumping information about last error:
    ERROR REPORT FILE = (N/A)
    PC = 0x0000000077f69684
    SIGNAL = -1073741819
    FUNCTION NAME = (N/A)
    OFFSET = 0xFFFFFFFF
    LIBRARY NAME = (N/A)
    Please check ERROR REPORT FILE for further information, if there is any.
    Good bye.
    Has anybody seen this and has any suggestions? using JDK 1.4
    Thanks

    I was thinking JVM should the classpath when it is invoked. But obviously it is not and we need to assign the classpath ourselves when invoking from native side. Thanks for pointing that out. For other people's benefit the following is the code piece I for initializing JVM.
    char* str1;
              char* str2;
              char* classpath;
              str1 = "-Djava.class.path=";
              str2 = std::getenv("CLASSPATH");
              classpath = (char*)malloc(strlen(str1) + strlen(str2) + 1);
              strcpy(classpath, str1);
              strcat(classpath, str2);
              if (str2 == NULL)     {
                   printf("CLASSPATH environment variable is not defined.");
                   exit(1);
              m_VmArgs.version = JNI_VERSION_1_4;
              m_options[0].optionString= classpath;
              m_VmArgs.options = m_options;
              m_VmArgs.nOptions = 1;
              m_VmArgs.ignoreUnrecognized = JNI_TRUE;
              JNI_GetDefaultJavaVMInitArgs(&m_VmArgs);
              /* Create the Java VM */
              m_Res = JNI_CreateJavaVM(&m_Jvm, (void**)&m_Env, &m_VmArgs);
              if (m_Res < 0) {
                   printf("Can't create JVM\n");
                   exit(1);
    thanks,
    chancellor

  • Report server failed service specific error 186

    Gurus!
    I am using oracle 9iAS enterprise,
    Report server failed service specific error 186
    Kindly help!

    I believe you'll need to edit your tnsnames.ora file located in \ORACLE\806\NET80\ADMIN. The last line of this file should read something like
    Rep60_SYSNAME, Rep60_SYSNAME.world = (ADDRESS=(PROTOCOL=tcp) (HOST=SYSNAME) (PORT=1949))
    where SYSNAME is the name of the PC Reports is installed on.
    I had this same error, and once I modified this file, everything seemd to work fine.
    Good Luck
    [email protected]

  • Java language unsatisfied link error how to fix

    i get a "java language unsatisfied link error" when trying to get my Weatherlink application to run on my new iMac.  It ran OK on my old one.  Whats up with this?

    Java for OS X 2014-001

Maybe you are looking for

  • How do I select multiple email address for a single person in my address book when creating a new email?

    I am coordinating a large group of people and created a group list of over one hunderd people.  The group is families and each person in the address book has several e-mail addresses. How do I select all the email address under each person in the add

  • How to use the AVMenuItemExecute() with an External Window

    Hello, I'm trying to use the AVMenuItemExecute() function in an External window. I mean that I have an opened document in another window (using AVDocOpenFromASFileWithParams or a function like that). Actually the problem is that the AVMenuItemExecute

  • Out of form forms!!

    I have set up a web form in BC  copied the code and pasted it into Adobe Muse page, needless to say the styling looks shocking. I then tried to add the form to my Muse page through the BC admin panel with even less success. Any suggestions?

  • Moving Custom Database to Native Sharepoint Database Node

    Hi, What are Microsoft recommendations on moving custom database from one SQL node to native node containing sharepoint content database. Are there any limitations or disadvantages of moving the custom database to content database server. Regards, Ke

  • Call a jsf from servelt

    hello and sorry for my bad English i am new in jsf and the web dev i have 2 question first my question is how can i receive in a jsf the parameter send from servlet (servlet send parameter to a jsf) 2end i want to use a table to display my results of