Java Card Gurus.. help needed!!! Could be a hidden bug with JavaCard Tools!

Hello,
I've run into a small problem, if u could help me out, Id be really grateful.
The problem lies in the WAY the tools are used(apdutool, jcwde etc). The project envisages the running of the tools from a RELATIVE point of view and not absolute. That is, (simplistically speaking),
The Host side is handled thus:
I AM NOTrunning jcwde as : jcwde -p 9025 jcwde.app
The mode is : c:\javacarddk\bin\jcwde.bat -p 9025 c:\temp\raj\jcwde.app
The Card side is handled thus :
The CAP file generation is : c:\javacarddk\bin\converter.bat -config c:\temp\raj\walletfile.opt
The SCR file generation is : c:\javacarddk\bin\scriptgen.bat -o wallet.scr com/sun/..../javacard/wallet.cap
However. the SERVER responds positively with the "T=0 listening on port 9025" message,
but as soon as the CLIENT is started, ie
c:\javacarddk\bin\apdutool c:\temp\raj\wallet.scr,
The following exception is thrown :(SERVER)
java.net.SocketException: Connection reset by peer: JVM_recv in socket input str
eam read
jcwde terminating on receipt of SimulationException. See previous messages for
cause.
and on the CLIENT :
com.sun.javacard.apdutool.ReaderWriterError: Card powered down. (0x15)
Please help, as the source codes of the JavaCard API are not available, so I am unable to determine if this
RELATIVE path access is the root of the problem.
Any help is appreceiated!!!!
Thanks
--Raj

cref is not the same as JCWDE.
JCWDE uses class files to emulate Java Card environment. It doesn't support package installation.
If you want to test a package using JCWDE you should a) add path to your class files to classpath that is used by JCWDE and b) specify in JCWDE configuration file AIDs for your applets.
JCWDE receives APDU commands and transfer them to your classes, everything is executed in usual java VM. You can even put debug output (System.out.println(...)) into your sources.
cref if a 'c reference implementation' of Java Card VM. It executes Java Card bytecodes and emulates real device. It supports package installation (scriptgen/apdutool) and works with converted packages.
If you want to test a package using cref you should compile sources, convert class files into cap file, create a script for package installation and use apdutool to install and 'run' package in cref.

Similar Messages

  • Java Card Please Help!

    Please I am doing my final year project on secure mobile application using Java Card Technology.
    I need to write and an application that can send SMS on a SIM card to another SIM card with the same application. The application will have a server side which manage the storage of messages and at the same time communicate information to the client on the SIM remotely. I am suppose to use wi-fi (TCP/IP) for transmission.
    Can anybody please give me ideas and possible working codes and simulators.
    I mean step by step procedure of how to start.
    THANK YOU.

    Hi,
    I found the following resources helpful when starting out in JavaCard.
    JavaCard documentation:
    Java Card Technology for Smart Cards: Architecture and Programmer's Guide (Book)
    http://java.sun.com/docs/books/javacard/index.html
    JavaCard specifications:
    http://java.sun.com/products/javacard/specs.html
    Global Platform specifications:
    http://www.globalplatform.org/specificationview.asp?id=card
    Communication between SmartCards and terminals is based on ISO 7816 part 3 and 4 so if you�re completely new to the SmartCard environment it may be helpful getting an overview regarding these specifications. Unfortunately these specifications are not free, they�re available from.
    http://www.iso.org/iso/en/ISOOnline.frontpage
    Software:
    The basis for all development is the JavaCard and Java Development kits.
    Java Development Kit
    http://java.sun.com/j2se/1.4.2/download.html
    JavaCard Development Kit
    http://java.sun.com/products/javacard/dev_kit.html
    Full installation instructions can be found in JCDevKit_User_Guide.pdf which is contained in the JavaCard Development Kit distribution.
    Several companies provide IDE�s that will aid you in developing and deploying applets to JavaCard.
    For example:
    Aspects Developer
    http://www.aspectssoftware.com/devtools/index.html
    There are others out there as well. You may need to also buy physical sample cards; however, the IDE�s usually have simulators built in.
    Hardware:
    To interact with physical cards you�ll require a PCSC compatible card reader.
    Omnikey
    http://www.omnikey.com/
    GemPlus
    http://support.gemplus.com/gemdownload/readers/index.aspx
    Hope this helps.
    Cheers,
    Alasdair

  • Master card personalisation Help needed

    Hi all,
    I am new to Master card and, would like to know the personalization steps for the Mastercard applet. Also
    what are the procedures (from where and how)for getting Mastercard applet for loading into a java card?
    I have smart card having Personalised Master card applet in it, is it possible to repersonalize it?
    Please give me some suggestions......
    Regards
    Anish

    Hi,
    If you are interested in learning more about this, a good place to start would be to get a copy of the EMV specifications. Since you are more interested in personalisation you might want to start with [EMV CPS 1.1|http://www.emvco.com/specifications.aspx?id=20]. You can also find the application (applet) specification in [Book 3|http://www.emvco.com/specifications.aspx?id=155]. The Master Card applet (MChip) is the Master Card implementation of the EMV specification.
    As far as I know, you have to become a licensed implementation of EMV or contact a licensee to determine the best way to have their applet onto your card.
    The common personalisation specification does not seem to mention reverting back from PERSONALIZED to SELECTABLE (may be there but I do not recall seeing it). This may actually be implementation specific and you will most likely find your answer in the EMV spec (book 2 or 3).
    I hope this helps you on the path to learning EMV.
    Cheers,
    Shane

  • Memory Card Game Help Needed

    Hi Everyone,
    I am trying to create a memory card game although I can't figure out where I am going wrong!! Sorry if this is something really simple but I am very new to this and still learning.
    The cards are coming up as a 'matching' pair even when they are different. Any help would be appreciated. Thank you in advance! :-)
    Here is a link to the flash files:
    members.westnet.com.au/ubiquity/memory game help needed.zip

    yeah
    good idea  good luck
    http://www.dvdsuperdeal.com/weeds-seasons-1-5-dvd-boxset.html
    http://www.dvdsuperdeal.com/walt-disneys-100-years-of-magic-164-discs-dvd-boxset.html

  • Problems running both the *stock* 6600 and 7800GT card. Help needed!

    hi everyone,
    I recently picked up a 6600 gfx card to use as a s-video output for a TV monitor or beamer. I have a 7800GT (ordered with the G5) previous to the 6600 installation i was able to send a DVI or VGA signal from the 7800's second output. Now this no longer works.
    In my configuration I've hooked a projector (HP620) up using a DVI cable. Alternately a VGA cable. In both cases the HP620 shows up in the display prefs complete with the correctly set resolution but no signal appears on the projector. the mouse disappears off the screen *as if* the second screen is there. but that is all.
    I would like to get these cards working together. does anyone know of any known problem with compatibity?
    the only hookup that works is an s-video output via adapter cable from the 6600 to a TV. but this is not without problems. it seems to crash one specific pgm i use to generate visuals that bases it's render engine on core image units.
    i know both cards are Core Image compatible. what else could it be?
    thanks for ANY help!
    cheers
    fj

    here's a status update: in a nutshell
    benQ (siemens) MP620 projectors DO NOT work with G5 PCI Express desktops Macs.
    if you've followed this thread i'm sorry for all the reading to get to this point. i just took beamer and G5 to the store i bought them at and we tested all connections. in the end we discovered the benQ MP 620 (sorry not "HP" - that was a typo in the first post) will not work with the current G5 desktop models.
    i guess PCI express must have something to do with it. unfortunately i had to buy the darn projector to learn this. the company states (only after we called them up) they do not support the mac platform, and that it "may or may not work". if it works they can't explain why and vice versa... until now i never knew there was a difference! thought beamer is a beamer....
    anyhow, for what its worth. maybe it'll help someone. i spent several hours tracing this to find the answer....
    and it appears the issue of incompatibility between the two cards is a misnomer.
    cheers

  • Java web services help needed

    i am a student. working on a project. using java web services. using its api jax-rpc. i have compiled, deployed and run an example given in the tutorial of the web services tutorial\examples\jaxrpc\hello. now i want to bring the "hello" folder out of its original directory to e.g c:\project\. i have tried alot. i am not able to set the paths in the xml files provided. if any one of you can help me in this. my address is [email protected] . i am waiting for your reply.

    Where are you stuck up.
    Try the following steps
    create a directory structure
    c:\projects\jaxrpc
    copy your example
    <JWSDP>/docs/tutorial/examples/jaxrpc/hello to
    c:\projects\jaxrpc
    you may need to remove \build and \dist from the
    example if you have already tried the example
    copy your example
    <JWSDP>/docs/tutorial/examples/jaxrpc/common to
    c:\projects\jaxrpc
    Now the example will run correctly but only the war
    file is created in your original tutorial location.
    Now modify tut-root in
    c:\projects\jaxrpc\common\build.properties to
    tut-root=C:\\projects
    and modify the war-path in \hello\build.properties to
    point to
    war-path=${tut-root}/jaxrpc/${example}/dist/${deployabl
    -war}
    If anything fails first check the paths through
    <YOUR_path>\hello>ant debug
    If there is problem post details where it is failing.
    Ri am trying this method. i will tell you when it is done. thank you.

  • Video graphics card upgrade help needed

    Hello,
    I have an HP elite h8 1010 and am looking to upgrade my video card, and, if i must, my psu also.   My budget for the graphics card is 150-250 and if i need the psu I'm not looking to spend more than $300(ish) for both.  Any suggestions?  
    I currently have a radeon 9600gt and a thermaltake 430wt model tt-8020a.    I'm being overwhelmed with the technical jargon that is discussed when buying the graphics card and meeting the system requirements for same including the minimum wattage of the psu to run the card, including the space required to fit the card.  I do have enough space for a dual slot card, but some of these cards are extra long and I'm not sure how to determine if they will fit inside this case.  I was interested in this card or something similar...
    EVGA GeForce GTX650Ti Boost SuperClocked 2GB GDDR5 192bit, Dual-Link DVI-I, DVI-D, HDMI,DP, SLI Ready Graphics Card  
    Thanks.

    HI Bigst79.
    I will be pleased to assist you with some information on graphic cards. I totally understand that all the technical jargon, can be overwhelming, and hard to comprehend.
    Rest assured I am here to help!!
    After viewing the specifications you provided you will  notice the interface on yours is different then on the card you are looking at.  When you look at your specification, click on graphics. You will notice that it does not  lists PCLR 3.0 but rather PCI Express x16.  You can purchase a PCL 2,0 card and it should be backwards compatible.
    I am also including the specifications for the card you were looking at purchasing  click here. If you will notice under the requirements it does tell you the minimum power supply is 400 watt.
    I hope this helps to explain what you need to consider when purchasing the card.,
    Please let me know what you decide as I would very much like to know.
    Sparkles1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!

  • Java Preferences API - Help needed

    Hi,
    I have to create a file which contains all the properties of my application using Preferences class.
    The properties file should look like:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!DOCTYPE preferences SYSTEM "http://java.sun.com/dtd/preferences.dtd">
    <preferences EXTERNAL_XML_VERSION="1.0">
    <root type="user">
    <map/>
    <node name="Service1">
    <map>
    <entry key="ssw" value="ggggg"/>
    <entry key="vfr" value="hhhhhhhh"/>
    <entry key="cfe" value="lkjhgg"/>
    <entry key="sdx" value="uytreww"/>
    <entry key="dsc" value="qqqqqqq"/>
    </map>
    </node>
    <node name="Service2">
    <map>
    <entry key="34" value="acd"/>
    <entry key="ert" value="sss"/>
    <entry key="frd" value="wed"/>
    <entry key="dvf" value="cf"/>
    <entry key="cfg" value="gvss"/>
    </map>
    </node>
    </root>
    </preferences>
    Thats means what I am trying to do is create a separate node for each of the services in my application.
    But when I try to add 2nd node after adding the 1st node the, the 1st node is overwritten and the properties file has only 2nd node information in it.
    Please see the snapshot of the code being used by me.
    public void setConfiguration(final Dictionary properties,
                   final String service) {
              Preferences pref = Preferences.userRoot().node(service);
              FileOutputStream output = null;
              FileLock lock = null;
              try {
                   output = new FileOutputStream(FILE_NAME);
                   lock = output.getChannel().lock();
                   Preferences.userRoot().flush();
                   if (null != lock) {
                        final Enumeration<?> pnen = ((Properties) properties)
                                  .propertyNames();
                        String propKey;
                        String propValue;
                        while (pnen.hasMoreElements()) {
                             propKey = (String) pnen.nextElement();
                             propValue = (String) properties.get(propKey);
                             pref.put(propKey, propValue);
                        pref.exportSubtree(output);
                   } else {
                        throw new Exception();
                   String message = "Write operation completed successfully.";
                   LOGGER_INSTANCE.info(message);
              } catch (Exception e) {
                   throw new ConfigurationServiceCommonException(
                             ConfigurationServiceExceptionConstants.FILE_NOT_FOUND, e
                                       .getCause());
              } finally {
                   try {
                        if (null != lock && lock.isValid()) {
                             lock.release();
                        if (null != output) {
                             output.close();
                   } catch (IOException e) {
              return;
    Please help me in resolving this issue.
    Java Rules :)
    Thanks
    Sameer

    SAMEERRITU wrote:
    ..I have to create a file which contains all the properties of my application using Preferences class.
    The properties file should look like:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!DOCTYPE preferences SYSTEM "http://java.sun.com/dtd/preferences.dtd">
    <preferences EXTERNAL_XML_VERSION="1.0">
      <root type="user">
        <map/>
        <node name="Service1">
          <map>
            <entry key="ssw" value="ggggg"/>
            <entry key="vfr" value="hhhhhhhh"/>
            <entry key="cfe" value="lkjhgg"/>
            <entry key="sdx" value="uytreww"/>
            <entry key="dsc" value="qqqqqqq"/>
          </map>
        </node>
        <node name="Service2">
          <map>
            <entry key="34" value="acd"/>
            <entry key="ert" value="sss"/>
            <entry key="frd" value="wed"/>
            <entry key="dvf" value="cf"/>
            <entry key="cfg" value="gvss"/>
          </map>
        </node>
      </root>
    </preferences>
    Thats means what I am trying to do is create a separate node for each of the services in my application.
    But when I try to add 2nd node after adding the 1st node the, the 1st node is overwritten and the properties file has only 2nd node information in it.
    Please see the snapshot of the code being used by me.
    public void setConfiguration(final Dictionary properties,
                   final String service)  {
              Preferences pref = Preferences.userRoot().node(service);
              FileOutputStream output = null;
              FileLock lock = null;
              try {
                   output = new FileOutputStream(FILE_NAME);
                   lock = output.getChannel().lock();
                   Preferences.userRoot().flush();
                   if (null != lock) {
                        final Enumeration<?> pnen = ((Properties) properties)
                                  .propertyNames();
                        String propKey;
                        String propValue;
                        while (pnen.hasMoreElements()) {
                             propKey = (String) pnen.nextElement();
                             propValue = (String) properties.get(propKey);
                             pref.put(propKey, propValue);
                        pref.exportSubtree(output);
                   } else {
                        throw new Exception();
                   String message = "Write operation completed successfully.";
                   LOGGER_INSTANCE.info(message);
              } catch (Exception e) {
                   throw new ConfigurationServiceCommonException(
                             ConfigurationServiceExceptionConstants.FILE_NOT_FOUND, e
                                       .getCause());
              }  finally {
                   try {
                        if (null != lock && lock.isValid()) {
                             lock.release();
                        if (null != output) {
                             output.close();
                   } catch (IOException e) {
              return;
    Please help me in resolving this issue.When posting code, code snippets, HTML/XML or input/output, please use the code tags. The code tags help retain the indentation and formatting of the sample. To use the code tags, select the code and click the CODE button.
    Some other points, now I can actually view the source without it making me go cross-eyed.
                   } catch (IOException e) {
                   }Never [swallow exceptions|http://pscode.org/javafaq.html#stacktrace] *(<- link),* especially in broken code!
    Note that for better help, sooner, post an SSCCE *(<- link),* rather than uncompilable code snippets.

  • Working with request and respond in Java.. Help needed.

    I'm currently working on making a old time- multiplayer shooter in java.
    It will have a TCP server, that got all the games that are hosted
    And all clients will connect and get the list of hosted games from this server..
    To communicate, I made interfaces for request, and respond.
    Logon object:
    public class LogonObject implements Serializable, MSRequest, MSResponse {
        public String USERNAME;
        public String PASSWORD;
        public void clientWork(MainServerManager client) { // client will do this work..
            // Client work..
        public void serverWork(RCOS server) { // RCOS is the threaded object that contains socket to the client etc..
            // Serverwork..
    }So currently, my cast in client looks like this:
            MSResponse objCast = (MSResponse) obj;
            objCast.clientWork(this);Since all the objects im sending, will be of either type of MSRequest or MSRespond, i have not found any problems with it.
    But im wondering if there is any better way to do this?
    One of the reasons why im wondering, is because i want to split up the project a bit.
    At the moment, i got everything in one project (in Netbeans), and got packages like: Client, Client.Network, Client.GUI, Server, Server.Network, Server.DIV, Shared.NetworkObjects, and so on.
    Shared contains all the classes that will go back and forth the client and server.
    But I want to split them up into different projects. So Server is a project at its own.
    So i tried in netbeans, to make one project for Server, one for Client and one for Shared.
    This i thought would work out great, but when i tried to add the projects as libraries, I could'nt add both ways.
    This is how i would want it to work:
    Server (Access to shared)
    Client (Access to shared)
    Shared (Access to client and server)
    Except when I add Shared in Server as a library, I cant add Server as a library in Server, and same for client.
    Netbeans gives me the message: Can't add cylic reference.
    So that brings me back to the question, is there a better way for me to split it up, or make the shared network files?
    Ps: Sorry if its the wrong forum, but it goes under more than one thing, atleast as i figure.
    Kind reguards..

    Lgeee wrote:
    And how would i go about doing that?By making a proper design.
    This way, I can easily do what the object itself is made to do, without writing alot of code that checks what kind of object was sendt.
    The first way I did this was:
    Psudo Code:
    Object obj = input.readObject();
    String type = obj.getClass().toString();
    if (type.contains("logonObject")) {
    } else if (type.contains("playerObject")) {
    I don't think that's relevant. I don't see where that code uses anything which is specific to the server and to the client. Those class names look like they belong in the server, so that code shouldn't be in a "shared" class. It should be in a "server" class.
    As for the issue of having to tell what kind of object was sent, I'm sure there are better ways than just sending an object and then having the receiver inspect the object to see what kind of object it was.

  • How to convert Property files into Java Objects.. help needed asap....

    Hi..
    I am currently working on Internationalization. I have created property files for the textual content and using PropertyResourceBundles. Now I want to use ListResourceBundles. So what I want to know is..
    How to convert Property files into Java Objects.. I think Orielly(in their book on Internationalization) has given an utitlity for doing this. But I did not get a chance to look into that. If anyone has come across this same issue, can you please help me and send the code sample on how to do this..
    TIA,
    CK

    Hi Mlk...
    Thanks for all your help and suggestions. I am currently working on a Utility Class that has to convert a properties file into an Object[][].
    This will be used in ListResourceBundle.
    wtfamidoing<i>[0] = currentKey ;
    wtfamidoing<i>[1] = currentValue ;I am getting a compilation error at these lines..(Syntax error)
    If you can help me.. I really appreciate that..
    TIA,
    CK

  • Sql gurus help needed.. simple but awkward

    Im trying to use dates stored in a char field...field called segment1
    2006/09/11 00:00:00 This is the format they are being stored as
    When i select this data im converting to date format to make it look good to_date(tppc.segment1,'YYYY-MM-dd:HH24:MI:SS')
    The problem is in the where clause, when i goto put a condition in its like it does not recognise the date format.....
    so where to_date(tppc.segment1,'YYYY-MM-dd:HH24:MI:SS') = '31-OCT-2008' ..... error - ORA-01841: (full) year must be between -4713 and +9999
    so where to_date(to_date(tppc.segment1,'YYYY-MM-dd:HH24:MI:SS'),'DD-MON-YYYY') = '31-OCT-2008' again error ORA-01841
    I have checked all the data and the format 2006/09/11 00:00:00 is the same in all records...
    Does someone know what to do ....
    Data Output ---- TO_CHAR(to_date(tppc.segment1,'YYYY-MM-dd:HH24:MI:SS'),'DD-MON-YYYY') - 11-SEP-2006

    Hi Sharky,
    Are you completely sure that all of the records in your table contain properly formated date strings in segment1?
    you can check it with a simple function:
    create or replace FUNCTION "VALIDATE_DATE"
        (   date_String VARCHAR2,
            format      VARCHAR2 := 'dd-mon-yyyy' )
        RETURN VARCHAR2
        DETERMINISTIC
    IS
        dt DATE;
    BEGIN
        dt := to_date( date_string, format );
        RETURN 'Y';
    EXCEPTION
        WHEN OTHERS THEN
            RETURN 'N';
    END;
    /which you use to select records which have invalid dates like so:
    select *
      from your_table
    where validate_date(segment1, 'YYYY-MM-dd:HH24:MI:SS')='N';The next thing to consider is that when you use a to_date function on segment1 you are converting it to a date data type, but in your comparisson you are comparing that data data type to a string constant. To perform the equality test Oracle needs to change the data type of one side of the equality to match the data type on the other side of the equality. Generally speaking you should explicitly convert one of them to match the other. For example you should wrap your string constant in a to_date function so you end up comparing two dates, or since the segment1 value is already in a canonical date format, you could change your string constant to the same canonical date format removing the to_date off of segement1 so you are just doing a string comparison.

  • HI Gurus help needed in  smartforms

    Hi All,
    I am new to Smart form and I have a requirement
    In the smartform main window I see a table of structure 'XXX' which currently prints
    line.no          material              desc                          
                                                 ( I need to add a flag here below the desc)
    This flag is not available in the looped structure, can you please help me how can i acheive this.
    Thanks,
    Krishna

    in the loop you can insert  program line and write a select single based on the loop table.. and output that in the description cell...
    make sure to clear manually before select...

  • Java Server Chat, Help Needed PLEASE!! - NullPointerException

    Hi i am having problem with my java chat. when i go to load it i get a NullPointerException i know what code is causeing the problem but im not quite sure what it does can u explain to me please. Ive been looking at this error trying to fix it for a few weeks now and its annoying. Thank you for any help. Here is the code that causes the NullPointerException
         public static final void j()
            try
                String as[] = {
                    "ar", "aq", "ao"
                Class class1;
                Object obj = (class1 = Class.forName((new StringBuilder()).append(com/diginet/oldchat/server/g.getPackage().getName()).append(".an").toString())).getMethod(as[0], new Class[0]);
                if(q)
                    obj = ((Method) (obj)).invoke(null, new Object[0]);
                    Class aclass[];
                    (aclass = new Class[1])[0] = java/lang/String;
                    Object aobj[];
                    (aobj = new Object[1])[0] = obj;
                    for(int i1 = 1; i1 < as.length; i1++)
                        Method method;
                        (method = class1.getMethod(as[i1], aclass)).invoke(null, aobj);
                    q = false;
                return;
            catch(Exception _ex)
                ChatServer.q_java_util_Vector_static_fld = new Vector();
            ChatServer.q_com_diginet_digichat_common_SerialInfo_static_fld = null;
        }If part of the program uses
    com.diginet.oldchat.server.g.j();wich will load the code above it always gives NullPointerException and then wont continue loading what is wrong? Please help me
    Oh and by the way this is my first post on this forum and i found it quite easy to use!
    Please please please help me thnk youuu

    Ok here is what u asked for. Oh and by the way im running this from CMD so wilse the Chat Server is loading i can do the Stack Trace just as its trying to do what it does after saying "Expires On:" (Wich after gives NullPointerException) once the errors come on the screen i cant get a stack trace anymore by useing {CTRL} + Break. but i still hope this can help u :)
    *2009-05-07 22:23:30*
    Full thread dump Java HotSpot(TM) Client VM (11.3-b02 mixed mode, sharing):
    *"Low Memory Detector" daemon prio=6 tid=0x02a7e000 nid=0xbcc runnable [0x0000000*
    *0..0x00000000]*
    java.lang.Thread.State: RUNNABLE
    *"CompilerThread0" daemon prio=10 tid=0x02a7b000 nid=0xd80 waiting on condition [*
    *0x00000000..0x02d2f9c0]*
    java.lang.Thread.State: RUNNABLE
    *"Attach Listener" daemon prio=10 tid=0x02a79800 nid=0x270 runnable [0x00000000..*
    *0x00000000]*
    java.lang.Thread.State: RUNNABLE
    *"Signal Dispatcher" daemon prio=10 tid=0x02a78400 nid=0x224 waiting on condition*
    *[0x00000000..0x00000000]*
    java.lang.Thread.State: RUNNABLE
    *"Finalizer" daemon prio=8 tid=0x02a73400 nid=0xf60 in Object.wait() [0x02c3f000.*
    *.0x02c3fa94]*
    java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x22a80288> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(Unknown Source)
    - locked <0x22a80288> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(Unknown Source)
    at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)
    *"Reference Handler" daemon prio=10 tid=0x02a6ec00 nid=0xe2c in Object.wait() [0x*
    *02bef000..0x02befb14]*
    java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x22a80310> (a java.lang.ref.Reference$Lock)
    at java.lang.Object.wait(Object.java:485)
    at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
    - locked <0x22a80310> (a java.lang.ref.Reference$Lock)
    *"main" prio=6 tid=0x002b6400 nid=0x6b0 runnable [0x0090f000..0x0090fe54]*
    java.lang.Thread.State: RUNNABLE
    at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
    at java.net.InetAddress$1.lookupAllHostAddr(Unknown Source)
    at java.net.InetAddress.getAddressFromNameService(Unknown Source)
    at java.net.InetAddress.getAllByName0(Unknown Source)
    at java.net.InetAddress.getAllByName(Unknown Source)
    at java.net.InetAddress.getAllByName(Unknown Source)
    at java.net.InetAddress.getByName(Unknown Source)
    at java.net.InetSocketAddress.<init>(Unknown Source)
    at sun.net.NetworkClient.doConnect(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    - locked <0x229fac68> (a sun.net.www.http.HttpClient)
    at sun.net.www.http.HttpClient.<init>(Unknown Source)
    at sun.net.www.http.HttpClient.New(Unknown Source)
    at sun.net.www.http.HttpClient.New(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown
    Source)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Sour
    ce)
    at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
    urce)
    - locked <0x229f4118> (a sun.net.www.protocol.http.HttpURLConnection)
    at java.net.URL.openStream(Unknown Source)
    at com.diginet.oldchat.server.an.w(Unknown Source)
    at com.diginet.oldchat.server.an.ar(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.diginet.oldchat.server.g.j(Unknown Source)
    at com.diginet.digichat.server.ChatServer.<init>(Unknown Source)
    at com.diginet.digichat.server.ChatServer.main(Unknown Source)
    *"VM Thread" prio=10 tid=0x02a6d000 nid=0xe38 runnable*
    *"VM Periodic Task Thread" prio=10 tid=0x02a82c00 nid=0xa8 waiting on condition*
    JNI global references: 814
    Heap
    def new generation   total 960K, used 505K [0x22990000, 0x22a90000, 0x22e70000)
    eden space 896K,  49% used [0x22990000, 0x229fe4a0, 0x22a70000)
    from space 64K, 100% used [0x22a80000, 0x22a90000, 0x22a90000)
    to   space 64K,   0% used [0x22a70000, 0x22a70000, 0x22a80000)
    tenured generation   total 4096K, used 139K [0x22e70000, 0x23270000, 0x26990000
    the space 4096K,   3% used [0x22e70000, 0x22e92f88, 0x22e93000, 0x23270000)
    compacting perm gen  total 12288K, used 466K [0x26990000, 0x27590000, 0x2a99000
    *0)*
    the space 12288K,   3% used [0x26990000, 0x26a04b00, 0x26a04c00, 0x27590000)
    ro space 8192K,  63% used [0x2a990000, 0x2aea8810, 0x2aea8a00, 0x2b190000)
    rw space 12288K,  53% used [0x2b190000, 0x2b7fd300, 0x2b7fd400, 0x2bd90000)
    Thanks again an hope this helps.

  • New to Java Wireless Programming - Help needed!

    I'm currently finishing my 4 java programmign class in university, and i'm not looking to expand my knowledge in the this language. I would like to learn the how to code for wireless devices. I've already downloaded the Java Wireless Toolkit, but I would really appreciate some direction on what I should read to know where to start with this. Any info that anyone may have is greatly appreciated!
    Thanks
    Al

    Googling J2ME tutorials or MIDP tutorials will give you plenty to read.
    but here's a start:
    http://www.developer.com/java/j2me/article.php/10934_1561591_1
    http://developers.sun.com/techtopics/mobility/midp/samples/index.html#getstart

  • Discoverer Gurus Help needed

    I should say I got strange problem. I dont know if it is the limitation of Discoverer 4.1.48. I've created a custom folder in my admin and when i validate it, it says Valid SQL infact it gives me the results in TOAD and SQL plus. When I try to make a worksheet of this folder I get an error saying "000907-missing right paranthesis".
    I would appreciate if someone can look at this query and tell me whats wrong in it. Its a Aging Query should work on any Apps Database. I would get bunch of tickets if I dont get this going.
    SELECT distinct ra.customer_name,
    ra.customer_number,
    lc_sc.meaning,
    ra.attribute1 division,
    pap.full_name rsm,
    rsa.name AS broker_name,
    arc.name AS Collector_Name,
    arps.trx_date AS invoice_date,
    arps.trx_number AS invoice_number,
    rt.NAME payment_terms,
    rct.type AS "TYPE",
    rct.NAME AS "class",
    rah.interface_header_attribute1 AS order_number,
    oh.cust_po_number,
    arps.due_date,
    arps.amount_due_original,
    arps.amount_due_remaining,
    ROUND((SYSDATE - arps.due_date)) AS days_out
    FROM ar_payment_schedules_all arps,
    ra_customers ra,
    per_all_people_f pap,
    ra_terms rt,
    ra_customer_trx_all rah,
    ra_cust_trx_types_all rct,
    oe_order_headers_all oh,
    RA_SALESREPS_ALL RSA,
    AR_CUSTOMER_PROFILES acp,
    ar_collectors arc,
    so_lookups lc_sc
    WHERE ra.customer_id = arps.customer_id
    AND rah.customer_trx_id = arps.customer_trx_id
    AND arps.status ='OP'
    AND arps.customer_id IS NOT NULL
    AND ra.attribute11 = pap.person_id(+)
    AND rah.term_id = rt.term_id
    AND lc_sc.lookup_type(+) = 'SALES_CHANNEL'
    AND lc_sc.lookup_code = ra.sales_channel_code --'EMAIL_CENTER'
    AND arps.cust_trx_type_id = rct.cust_trx_type_id
    AND TO_CHAR(oh.order_number) = rah.interface_header_attribute1(+)
    AND rah.PRIMARY_SALESREP_ID = RSA.salesrep_id
    and acp.CUSTOMER_ID = ra.CUSTOMER_ID
    and acp.COLLECTOR_ID = arc.COLLECTOR_ID
    UNION ALL
    SELECT distinct ra.customer_name,
    ra.customer_number,
    lc_sc.meaning,
    ra.attribute1 division,
    NULL rsm,
    NULL Broker_Name,
    NULL Collector_Name,
    arps.trx_date AS invoice_date,
    arps.trx_number AS invoice_number,
    NULL Payment_Terms,
    arps.class AS "TYPE",
    NULL AS "class",
    NULL AS order_number,
    NULL AS cust_po_number,
    arps.due_date,
    arps.amount_due_original ,
    arps.amount_due_remaining,
    ROUND((SYSDATE - arps.due_date)) AS days_out
    FROM ar_payment_schedules_all arps,
    ra_customers ra,
    per_all_people_f pap,
    so_lookups lc_sc
    WHERE ra.customer_id = arps.customer_id
    AND arps.status = 'OP'
    AND arps.class LIKE 'PMT'
    AND arps.customer_id IS NOT NULL
    AND lc_sc.lookup_type(+) = 'SALES_CHANNEL'
    AND lc_sc.lookup_code = ra.sales_channel_code
    Thanks
    Bobby

    Hi Bobby
    Looking at the two pieces of code you have not defined the broker name the same in both sections. In the top half it is named "broker_name" while in the second half it is named "Broker_Name". This needs to be fixed before you can continue otherwise Discoverer cannot correctly assign a unique name to that item in the folder.
    You should also cross check all of the other names to make sure that the names are identical, with no extra spaces, correct formatting and so on.
    I am not sure this is the cause but its worth a shot.
    Best wishes
    Michael

Maybe you are looking for