MIDP 2.0 reference Implementation Strange code

I' ve found a strange code in the http/Protocol.java of the Reference MIDP 2.0 Implementation.
Line 139 in the static initializer.
prop = Configuration.getProperty(
                            "com.sun.midp.io.http.max_persistent_connections");
        if (prop != null) {
            try {
                temp = Integer.parseInt(prop);
                if (temp <= 0) { //!!!!
                    maxNumberOfPersistentConnections = temp;
            } catch (NumberFormatException nfe) {
                // keep the default
        }Can somebody explain me, why it looks so? It must be ">".
Additionally, it looks like WTK22 emulator don't understands the property.

No ideas?

Similar Messages

  • MIDP 2.0 Reference Implementation building on the Win2k

    Hi
    I builded MIDP2.0 Reference Implementation in the environment following below,
    cygwin: 1.5.10_3
    MIDP_DIR c:\j2me\midp_2-0
    KVM_DIR c:\j2me\CLDC_1-0-4
    ALT_BOOTDIR c:\jdk1.3.1
    and I received error message.
    Microsoft (R) Incremental Linker Version 6.00.8447
    Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
    ... jcc_classes/JavaCodeCompact.class
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -deprecation for details.
    ... searching updated .java files
    ... compiling 256 .java files
    ... preverifying 298 .class files
    ... classes.zip
    Can't open perl script "c:\Program": No such file or directory
    make: *** [classes.zip] Error 2
    I think that the problem is cause by wrong PATH environment
    But I don't know solution.

    something is installed in a folder with a space in it. for example, it will be installed in "c:\program files\...". you may be able to surround the part of the path with quotes. without knowing the program thats causing the problem its gonna be tricky to figure out how to fit it. it could be a path thing (i have loads of development stuff installed with no path problems) or it could be another environment variable.
    it could be perl itself. i can't remember if i had problems with that - i might have done. i think i installed perl into c:\perl rather than c:\prorgam files\perl (for example) to get round problems. shrug, i can't remember now.

  • Support for SWF Verification in the reference implementation server

    The Server for Protected Streaming provides a way to configure a whitelist of allowed SWF hashes.  However, from what I can tell, the reference implementation server does not have this capability.  Any suggestions on how to implement SWF Verification in the reference implementation server ?

    To use SWF whitelists with the Reference Implementation, set the SWF  whitelist in a policy, and use that policy when packaging the content.  When issuing a license, the Reference Implementation will use whatever  restrictions were specified in the policy at packaging time.  Alternatively, since the Reference Implementation ships with source  code, you can modify the server so you can specify the SWF whitelist  information at the time the license is generated.

  • Inconsistency using SUN Rowset Reference Implementation

    I am Using the RowSet reference implemention with Oracle Database.
    I am having a class which takes a input in form of XML adhering to the webrowset format.
    The xml contains some records to be inserted , some records to be updated and some records to be deleted.
    This xml is then fed to a WebRowSet using the webRowSet.readXml method which takes a Reader as a parameter. I am using a StringReader here.
    Here is the code snippet:-
    public void executeUpdate(String webRowSetXML)throws SQLComponentException{
    System.out.println(" webRowSetXML "+webRowSetXML);
    StringReader sr = new StringReader(webRowSetXML);
    WebRowSet webRowSet = null;
    try {
    webRowSet = new WebRowSetImpl();
    webRowSet.readXml(sr);
    webRowSet.acceptChanges(connection);
    } catch (SQLException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    I found here that the insertion and updating works without any problem , but the deletion doesn't work.
    Then to study this problem , i wrote a program with two WebRowSets, one will be the producer of the data and the other will be the consumer.
    the first WebRowSet will read the data from the data source , delete a record using the following piece of code:-
    wrs1.absolute(6);
    wrs1.deleteRow();
    And then i generate a String XML using the writeXML method.
    Then i feed this xml to the readXML method of the second WebRowSet and i call the acceptChanges method of the second WebRowSet. But the record doesn't get deleted.Also after printing the xml from the second WebRowSet , the <deleteRow> tag is absent from the xml.
    The same condition works properly for the insert and update operation and the respective <insertRow> and <updateRow> methods appear in both the xml's generated from both the WebRowSet's.
    Is this a bug in the webRowSet implemention or is it a problem of Oracle? Or is it that something else needs to be done for the delete operation to work.
    I tried the same thing with Pervasive SQL instead of oracle. Here only the insert operation works.
    Any body please help me in solving this problem...

    http://java.sun.com/j2se/1.4.1/docs/api/javax/sql/RowSet.html
    From the sun desc above.
    The RowSet interface is unique in that it is intended to be implemented using the rest of the JDBC API. In other words, a RowSet implementation
    is a layer of software that executes "on top" of a JDBC driver.
    Implementations of the RowSet interface can be provided by anyone,
    including JDBC driver vendors who want to provide a RowSet
    implementation as part of their JDBC products.
    rykk

  • Reference Implementation: Cannot find flashaccess-refimpl.properties

    [ Problem ]
    I’ve just downloaded the latest drop of Flash Access. I have created a new project in Eclipse so that i can make changes to the reference implementation. When i access the following URL from a browser:
    http://localhost:8080/flashaccess/license/v1
    I get an error: "Could not find server properties". The following line of code in "RefImplAbstractReqHandlerServer.java" cannot find the server properties files:
    InputStream propsInputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream(propertiesFileName);
    I have added the "resources" directory that contains flashaccess-refimpl.properties to my classpath. But i still get the same error.
    I’m guessing i have missed something. Does anyone have any suggestions to how i can overcome this error?
    [ Solution ]
    I am assuming you were adding the "resource" directory into the "classpath" by
    project property -> Java Build Path -> add class folder. This way, the resource directory is just not with the web container’s classpath.
    With Eclipse IDE, when i go this way, it works.
    1. go to "Run" -> Run Configuration ->"Apache Tomcat"( I am using tomcat)
    2.  select the Server Instance you are running the refimpl
    3. click the "classpath" tab
    4. in the "User entries" add the resource folder by "advanced->add folder"
    Then, restart the refimpl.

    Hi 高麻雀,
    You can edit the properties of configuration baselines and configuration items only if they were created at the same Configuration Manager site. The icons will have a lock symbol, and you can view their properties but not edit them in the following circumstances:
    They have been imported from Microsoft System Center Configuration Manager 2007 Configuration Packs.
    They have been imported from an external source, such as the Configuration Manager 2007 communities.
    They have been imported from another Configuration Manager 2007 hierarchy.
    They have been authored externally and then imported.
    They have been inherited by a parent site in the same Configuration Manager 2007 hierarchy.
    Solution
    Although this behavior is by design, you can modify imported data in the following ways: Refer the below link for details:
    Problems Editing Configuration Data -->: http://technet.microsoft.com/en-us/library/bb633142.aspx
    Related post:
    http://social.technet.microsoft.com/Forums/en-US/configmgrdcm/thread/7ea89eea-00f4-436f-a055-b72ab14dfa97
    Rajeesh M | My Tech Blog: ScorpITs |
    LinkedIn Please take a moment to “Mark as Answer” and/or “Vote as Helpful” on the post that helps you. This helps other community members reading the thread and recognises useful contributions. Thanks!

  • Is there a reference document(example, code) for developing usb mini port driver?

    Hi:
    I studied Bus\USB document of WDK. This document forces on developing USB device driver.
    And there are some IOCTL Interfaces of usb bus driver exposed to usb device, like IOCTL_INTERNAL_USB_SUBMIT_URB.
    But those IOCTL Interfaces seem to belong to USB hub driver(usbhub.sys).
    My job is to developing a usb mini port driver, like usbehci.sys. That can work with usbport.sys.
    So I should know the communication interfaces(IOCTL...etc) between them and implement these interfaces.
    Is there a reference document(example, code) for developing usb mini port driver ?

    No there is no reference documents for this, Microsoft stated from the beginning that they own that layer.  You really don't want to go there.
    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com

  • Strange "code" in the Comments field when playing songs

    When I play some songs (probably 80% of my archive) iTunes generate some strange code in the Comments field. This is quite annoying, since I use the field to write additional info about the song, artist, location, whatever.
    Examples of such codes:
    " 00000244 00000000 000010B3 00000000 00022325 00000000 000057AD 00000000 00004E37 00000000"
    " 0000014C 00000151 00000551 00000580 0001119E 0001119E 00003C73 0000379B 0001D4D7 0001D4D7"
    and so on...
    How can I stop this generation of random numbers and letters in the comments field?
    null

    Ick.... Well, maybe you're right. I also turned off "let itunes keep things organized" at about the same time. Between turning off sound check, itunes organizing, and the WMP settings, I have never seen it happen again.
    I still think it was WMP, as I only open WMP rarely to listen to web clips and I noticed it had happened to some tracks I had not played in itunes for years, and it happened right after that WMP update. I'd had the sound check and itunes organization thing on for years.
    One thing we can agree on, it was totally random. No rhyme or reason to it, and I even noticed that it didn't even affect all the tracks on some albums.
    I just turned sound check back on, only on my Mac, because that is just my backup copy of files. We'll see if it hits again.
    edit-(it's determining sound volume on x of 393, weird, I have over 27000 tracks in my library)
    Message was edited by: Katrina S.

  • Best way to implement this code in labview

    Hi
    What is the best way to implement this code in labview programming.
    I have an analogue input which triggers a boolean light when it reaches a certain voltage. but at the same time i would like it to enable two other outputs one for a set period of time and the other stay on until another statement becomes true.
    For example
    case 1:
    Set output high
    Delay(2000ms)
    Set output low
    Case 2:
    Set output high
    If statement 2 is true
    then set out put low
    if not then repeat until statement is true
    Thanks for your help

    Hi David,
    The code you posted will work, although note that the front panel becomes 'unresponsive' - as changes in the controls are only read once per iteration.  The wait function is an example of an execution timing VI, however if we want to do software timing (like a 2 hour wait) - we should use software timing VIs.
    Check out the following example (note we can stop execution during run-time):
    Regards,
    Peter D
    Attachments:
    SoftwareTiming.vi ‏26 KB

  • I need to add a single field from with_item table . need to write select query with reference to company code , account doc no , fiscal year

    I need to add a single field from with_item table . need to write select query with reference to company code , account doc no , fiscal year

    Hi Arun ,
    Can you explain little bit more ??
    what is account doc no? 
    what are the transactions should be displayed in your output??
    -Rajesh N

  • How to implement bar code in Unix environment - EBS 11.5.8 ?

    Hi All,
    I need to implement bar codes in an AR Invoice in Unix environment. I have barcode.pfa that is the font file. Is the equivalent file from ttf file in windows environment.
    I have read different papers in metalink that say that for example the name of the directory is this /usr/lib/X11/fonts/type1, but in my AIX server I haven't found something similar like this.
    I wrote this statement in order to find the directory but I didn't find it.
    find . -name fonts -print (fonts is the name of the directory)
    Can you help me?
    Best Regards,
    Mariano.-

    Hi Hussein,
    I've read Note: 466531.1 - How To Implement An AFM / PFA Barcode or MICR Font Within A UTF8 EBS Instance. It says that I have to
    copy the Barcode.pfa to the ORACLE_HOME directory. However, in this directory I don't have another pfa or ttf file, so how can unix relate the font?
    Best Regards,
    Mariano.-

  • Why when I open the output.txt file, is strange code there, not 3.1

    i almost copy the example from "think in java book" chapter 11
    however, the result "output.txt file" when opened by notepad of windows xp, always only very strange code inside, not what i want
    do i need open the file, before i want to write?
    or i use a wrong api again?
    or the java code norm is very difference from ms windows?
    thanks
    import java.util.Random;
    import java.io.*;
    class CreatRandomFile
         public static void main(String args[])throws IOException
              File fileOutput=new File("output.txt");
              DataOutputStream out2=
                   new DataOutputStream(
                        new BufferedOutputStream(
                             new FileOutputStream(fileOutput)));
              out2.writeDouble(3.1);
              out2.close();
         }//end main
    }//end class

    There are basically two ways of IO:
    a) human readable format;
    b) machine readable format;
    What you've just done is writing a double value in machine readable
    format to a file. Some folks call it 'binary format'. I bet your file is eight
    byes long. A DataOutputStream writes data in machine readable
    format. You need a PrintStream instead if you (a being human I suppose)
    want to be able to read the contents of that file.
    kind regards,
    Jos

  • Connecting JMS to J2EE Reference Implementation 1.3 beta

    Is it possible to write JMS client talking with J2EE server without having in path j2ee.jar? Something like remote small client communicating with the server due JMS? Do I have to use some third party
    software (I have swiftMQ in mind) for this? If somebody have configuration for swift bridge to J2EE
    Refernce Implementation can you share it?

    The JMS service provider that comes with J2EE SDK 1.3 is only a reference implementation of the JMS API.
    In a real application system, one will be using a JMS service provider from some vendor. Preferably one that is certified to be J2EE compatible.
    In fact, this is true as such for anything in j2ee.jar Through j2ee.jar, Sun provides a reference implementation of J2EE APIs with its J2EE SDK and in a real application one will not have j2ee.jar in the client or server classpath. Instead one will use jar files specific to the vendor that one has chosen.
    Specifically about swiftMQ, as per Sun, it is not a J2EE licensee. swiftMQ is JMS 1.0.2 compliant. But it is not certified to be J2EE compatible.
    Refer http://java.sun.com/products/jms/nonlicensedvendors.html for more details.

  • Where can I get a reference implementation of XQJ

    Where can I get a reference implementation of XQJ
    - Raees Uzhunnan

    Reference implementation of XQJ is not available yet. When it becomes available, you can find it from the JSR XQJ page (http://jcp.org/en/jsr/detail?id=225).
    Regards,
    Geoff

  • Switchting from Reference implementation to MyFaces

    Hi,
    one year ago I developed a JSF-software using Tomcat 5.5.7 and SUNs reference implementation, which worked fine. Now I try to replace it by MyFaces and I get this error navigating to the first page:
    javax.faces.FacesException: org.apache.jasper.JasperException
    org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425)
    org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
    org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
    There is no protocol entry in the TOMCAT logs directory. The only thing I did was replacing the related jars, which should be the only thing to do, as I understand the concept ;-). Any idea what the reason could be?
    Thanks
    Thorsten

    Here's a decent discussion of listeners in TLDs. Ideally you should only put listeners relevant to a particular taglib in the associated TLD. So it would be wise to move the MyFaces Listener up to the web.xml, because it's not tied to any particular taglib. But in this case you're correct, the taglib listeners are being invoked in addition to any listeners you may have defined directly in the web.xml
    http://www.phptr.com/articles/article.asp?p=26118&seqNum=6&rl=1
    I generally think of TLDs as descriptor files that provide required definitions for a particular taglib (namespace, individual tag info), metadata info that may be useful for development and debugging tools (assorted optional meta-data for the tags), and any instructions for web-application global behavior that may be needed to support the individual tags (listeners)
    Regards,
    Peter

  • Why not porting CDC-PP reference implementation to PocketPC by ourself?

    Hi All,
    Seeing your open letter about Personal Profile for PocketPC, I have the question: Why not porting CDC-PP reference implementation to PocketPC by ourself? Or do you know any open source project on this topic?
    in Java world, we should DIY (eclipse, Junit, ANT......)
    Regards!
    Tiger

    Sorry, I missed the "reference implementation" in the subject. Can you even get the thing to compile? Taking a guess at which of the umpteen makefiles to use, I get pjt33@charis:/tmp/personal/build/share/$ make -f rules.mk
    rules.mk:289: /empty.mk: No such file or directory
    rules.mk:394: warning: overriding commands for target `/'
    rules.mk:20: warning: ignoring old commands for target `/'
    rules.mk:422: *** target file `/' has both : and :: entries.  Stop.There are also licencing issues with using the reference implementation - if you want to distribute it properly, it seems you have to pay Sun an annual fee for the Technology Compatibility Kit.

Maybe you are looking for

  • Creating a Separate Wireless Network With no Ethernet

    Hello- I am attempting to set-up my Airport Express with my receiver and speakers in order to play music wirelessly. I have successfully done so when I choose "Join an Existing Wireless network", but I have noticed that this bogs down my wi-fi networ

  • External Hard Drive does not mount

    My 2TB external hard drive does not mount and I cannot get it to.  Have tried turning the hard drive off and then back on.  No response.  Any thoughts as to how I can get it to be recognized?

  • My X2-01 IS IN TROUBLE...PLS HELP!!!!!!!!!!!!

    I was browsing in google one day then suddenly my phone light dimmed then i trying pressing the red decline button but nothing happened, then i kept pressing it continuosly and my phone switched off. After that I turned it back on and found everythin

  • Apple TV 2 does not accept my Apple ID and passcode to turn the home share on. Help me!!

    Apple TV 2 does not accept my Apple ID and passcode to turn the home share on. Help me!!

  • DECODE using in OWB 9i

    Hi, I want to use a Decode function inside the SELECT clause. How to do it from OWB. In the list of functions in Oracle Library its not present. I get the function in the Joining Operator or Filter i.e. that will come in the WHERE part. Then for DECO