Is it a bug in JUCtrlListBinding.java

Hi,
I came across the following method in JUCtrlListBinding.java.
   protected Object findAndUpdateSelectedIndex(Object val, boolean flag)
      int selIndex = findListIndex(val);
      Object matchVal = null;
      if (selIndex >= 0)
         //this returns a value in the list.
         //this value can match the nullvalue set on the list as well.
         matchVal = mValueList[selIndex];
         if (flag)
            mSelectedIndex = selIndex;
      return matchVal;
   }This method is used to set the selected index, but if the 'selIndex' is less than 0 (which happens if the user has selected the blank or null row from the list), then this method does not update the member variable 'mSelectedIndex'.
The correct implementation should be like this --
   protected Object findAndUpdateSelectedIndex(Object val, boolean flag)
      int selIndex = findListIndex(val);
      Object matchVal = null;
       if (flag)
     mSelectedIndex = selIndex;
      if (selIndex >= 0)
         //this returns a value in the list.
         //this value can match the nullvalue set on the list as well.
         matchVal = mValueList[selIndex];
      return matchVal;
   }Can anybody please check with this?
Thanks

Programmer is a programmer whether writes in java
or cobol language.That's somewhat true, but it has nothing to do with this. Two different programming languages could use the same symbol in different ways. Things are different between languages.
It like that in many areas. 'die' is a verb in English, or 'the' in German. The same thought can require a different symbols in different languages. The thought is the same, but just because the words look similar doesn't mean they are
If you didn't need to know how to do things differently in one language vs. another, wouldn't that mean that if you can program in one, you can program in any language without knowing the differences in the two languages just because you are a 'programmer'
You can still apply the same logic to programs in different languages, but implementing that logic in the specific syntax of a particular programming language is programming.

Similar Messages

  • How to find my submitted bug report in Java bug database

    I just submitted a bug report in Java bug database and it told me that the submission is successful without its bug ID and no email notification is received from Oracle.
    And I cannot find the bug in bug database with the title I submitted.
    The bug's product/category is Java Plug-in in JRE7
    So how could I get the bug status? Will it be fixed and how is it going on?

    I just submitted a bug report in Java bug database and it told me that the submission is successful without its bug ID and no email notification is received from Oracle.Last time I did that it also said it wouldn't appear straight away. They have to qualify bugs you know.
    And I cannot find the bug in bug database with the title I submitted.How long ago?
    So how could I get the bug status?Wait till it turns up?
    Will it be fixed and how is it going on?How would anyone on this forum know?

  • Bug in Oracle Java Compiler???

    Hello!
    I think I found a bug in OJC. Take a look in these files:
    ------ File MyInterface1.java -------
    public interface MyInterface1
    public void aMethod1();
    public void aMethod2();
    ------ File MyInterface2.java -------
    public interface MyInterface2 extends MyInterface1
    public void aMethod1(String s1);
    public void aMethod2(String s2);
    ------ File MyAbstractClass.java -------
    abstract public class MyAbstractClass implements MyInterface2
    public void aMethod1()
    ------ File MyImplClass.java -------
    public class MyImplClass extends MyAbstractClass
    public void aMethod2()
    public void aMethod1(String s)
    When compiling these files, the following error should be found:
    "javac MyImplClass.java
    MyImplClass.java:1: MyImplClass should be declared abstract; it does not define
    aMethod2(java.lang.String) in MyAbstractClass
    public class MyImplClass extends MyAbstractClass
    ^
    1 error"
    This is the error found by javac (J2SE 1.3), as expected.
    But when I compile using OJC 9.0.2.579 (JDeveloper 9.0.2.829) no error is found, and the compiler generates MyImplClass.class. This should not happen!!!
    Even if I implement aMethod2(String s) in MyImplClass, how can I trust that OJC is generating the bytecode, so that the method invocation is occuring correctly during runtime?
    I have a component library based on class hierarchy like the one in the example, and I would not like to modify it because of this possible bug in OJC.
    Thanks
    Gleber/Daniel/Augusto

    Gleber,
    As per current plans the 903 release is expected to be on OTN in the next 5-7 weeks. Feel free to ping me at [email protected] if this bug is preventing you from moving forward. I'll try to resolve your issue with a workaround.
    Regards,
    Arun

  • Ojc bug compiling simple java class

    Hi,
    I am trying to compile some very old Java code with JDeveloper 10.1.2.1.0 (Build 1913) and running into a very strange problem.
    I cannot use the "import" statement to import classes, which are stored in root without a package name specification.
    I think that the simple example will describe it better:
    Class1
    public class Class1
      public Class1()
      public String myGetClassName()
        return "Class1";
    }Class2
    import Class1;
    public class Class2
      public Class2()
      public static void main(String[] args)
        Class2 class2 = new Class2();
        Class1 cl1 = new Class1();
        System.out.println(cl1.myGetClassName());
    }The error message I am getting is pointing to the line 1 in the Class2.java, complaining that it needs a dot (.) after the Class1
    If I compile these classes with javac - it works fine
    Is it a bug or am I doing something wrong?
    Thank you,
    Vitaliy
    [2005-09-27] Logged a TAR with Oracle on Metalink
    Message was edited by:
    c001803

    yes, you are right, but then if I import the Class1 into, lets say, mypackage.Class3, I am having the same issue.
    Actually I received the problem resolution from Oracle. Here it is
    27-SEP-05 16:43:41 GMT
    Hello,
    There is no problem with your java source: no problem using your javac
    command (I think older than 1.4.x).
    You meet here the new JAVA feature which says something like "each
    class should belong to a package for the security problem". Please go to
    the sun site for more information on the new JDK feature.I was using JDK1.3.1_13 to compile the code with javac

  • How to vote, add to watch list or comment on a bug in the Java Bug Database

    Sorry, could not fine a better place where to post this question.
    I'm successfully logged-in but I cannot add a particular bug to my bug watch list, comment on it or vote for it (ok, here I may have already used all my 3 votes but I could also not find where to check this in my profile).
    I am particular interested in this bug #4787931:
    http://bugs.sun.com/view_bug.do?bug_id=4787931
    Thanks for you support!

    The Java bug DB was a Sun-time idea. Oracle hasn't put much effort into it since the merger:
    - the performance has been horrible, see e.g. {thread:id=2173553}), and it is not clear whether they intend to keep maintaining it as such (open, vote-able,...)
    - the "recently closed bugs" page (http://bugs.sun.com/recently_closed.do) seems out of date
    - At the time of this writing, I cannot even find a link to log on it from the welcome page http://bugs.sun.com/ :(
    Until Oracle openly declares that they will maintain this resource, I wouldn't put much hope nor effort into it...
    Much luck,
    J.
    Edited by: jduprez on Sep 17, 2012 11:59 AM

  • JCE Verifier - a bug in the Java Docs?

    When implementing a new JCE Provider, one should follow the special docs, such as http://java.sun.com/j2se/1.4.2/docs/guide/security/jce/HowToImplAJCEProvider.html
    In the section "Creating a JarFile Referring to the JAR File", there's this code snippet proposed to get the jar to verify:
    // Always get a fresh copy, so we don't have to
    // worry about the stale file handle when the
    // cached jar is closed by some other application.
    conn.setUseCaches(false);
    jf = conn.getJarFile();
    My question: is it still necessary to switch off using the jar caches before trying to get the file? My impression is that this is related to the old bug 4271671 which is a duplicate of 4211817 which has been closed four years ago (see:http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4211817) . Isn't this just some leftover from those times in the documentation?
    This is an issue for us as switching the cache off forces the Java Plugin to always download a fresh copy of an applet jar during the initiation phase, thus slowing down the applet start time very considerably, especially over slow lines.
    Thanks everybody!

    When implementing a new JCE Provider, one should follow the special docs, such as http://java.sun.com/j2se/1.4.2/docs/guide/security/jce/HowToImplAJCEProvider.html
    In the section "Creating a JarFile Referring to the JAR File", there's this code snippet proposed to get the jar to verify:
    // Always get a fresh copy, so we don't have to
    // worry about the stale file handle when the
    // cached jar is closed by some other application.
    conn.setUseCaches(false);
    jf = conn.getJarFile();
    My question: is it still necessary to switch off using the jar caches before trying to get the file? My impression is that this is related to the old bug 4271671 which is a duplicate of 4211817 which has been closed four years ago (see:http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4211817) . Isn't this just some leftover from those times in the documentation?
    This is an issue for us as switching the cache off forces the Java Plugin to always download a fresh copy of an applet jar during the initiation phase, thus slowing down the applet start time very considerably, especially over slow lines.
    Thanks everybody!

  • Bug fix for "Java Hangs When Converting 2.2250738585072012e-308" for SAPJVM

    Hi All,
    There is a new java runtime security alert found (see URL below) :
    Java Hangs When Converting 2.2250738585072012e-308
    http://www.exploringbinary.com/java-hangs-when-converting-2-2250738585072012e-308/
    I'm wondering if any of you noticed this bug ? Does SAP JVM (various versions) also exsibit this
    bug too ?
    Thanks,
    Ying-Jie Chen

    Just to add:
    Note 1556366 - Java Runtime hangs when converting a certain number
    Markus

  • Bug in JFileChooser (Java 1.6.0_03 running on Windows XP)?

    Hello All,
    I tried to display a JFileChooser dialog for file selection. It opens in the "My Documents" directory.
    This directory contained a big (400 megs) ZIP file.
    The JFileChooser dialog tooked a very long time to be displayed (I didn't selected this big zip file).
    If I remove the ZIP file, the JFIleChooser displays fast.
    I did the test with the JFileChooser demo from sun (http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html), and I find the same result.
    I think that's really a bug in the implementation of JFileChooser. Can you tell me if it is possible to let sun know this problem?
    Kind regards.
    Michael Hooreman

    JFileChooser has always had a problem with Windows XP's insistence on treating Zip files as folders. That's a stupid feature anyway, and I'm surprised JFileChooser doesn't automatically bypass it. You can disable the feature by running the following command: regsvr32 /u zipfldr Note that you'll be disabling the feature in Windows, not just in Java. You can re-enable it by running the same command without the /u.

  • Is this bugs for Sun Java System Portal Server 6 2005Q4 (errorStoreDP) ?

    Hi,
    I installed Sun Java System Portal Server 6 2005Q4 under window xp environment.
    I used the following command to deploy war file, it worked for me (because I setup enough services and role for amadmin user), deploy/undeploy was worked very well for me.
    pdeploy deploy -u amadmin -w amAdminPassword -g -p
    amAdminPassword -v portletsamples.war
    Two months later, I did not change anything (configuration) within the two months.
    I use the same deploy/undeploy command to deploy war file again, I got the following error =>
    errorStoreDP (sms-UNKNOWN_EXCEPTION_OCCURRED)
    Message:The user does not have permission to perform the operation.
    Why this condition happened ? is this bugs for sun portal server ?
    I uninstall this sun portal server and reinstall it again, I still got
    the same error message. why ?
    But funny thing is that I format my machine, then install window xp and
    install System Portal Server 6 2005Q4 again, then it works for me again.
    is this reasonable ?
    I really don't know why ?
    Can someone help me ?
    Thanks!

    Hello,
    It seems you are really asking how you should design your application to use portlets.
    Your approach now seems to be that you would just copy your servlets to portlets. You can use the PortletRequestDispatcher to include content from your servlet. See http://portals.apache.org/pluto/multiproject/portlet-api/apidocs/javax/portlet/PortletRequestDispatcher.html
    I also found the following discussion on this topic http://www.mail-archive.com/[email protected]/msg00481.html
    But I don't think I'd recommend that approach for your application. How would you maintain the application going forward? You will have both servlets and portlets to maintain when you change the applicaiton. I assume you will be keeping the servlet application and using it also? Do you want the portlet content to match the servlet content always, or will they display differently?
    Instead, what you might consider an model-view-controller approach and designing a web service (the model) for both applications (servlet and portlet, views) to consume.
    As for the basics of porlet applications, the JSPPortlet will use JSPs for presentation of hte portlet content. GenericPortlet is the default implementation of the Portlet interface. Implementing the portlet interface means you must write the implementation yourself. Here are a couple of good tutorials to get you started on the Portlet spec:
    http://www.javaworld.com/javaworld/jw-08-2003/jw-0801-portlet.html
    http://www.javaworld.com/javaworld/jw-09-2003/jw-0905-portlet2.html
    Also there is this JSE tutorial, but I don't know how current it is:
    http://developers.sun.com/prodtech/portalserver/reference/techart/portlets.html
    Hope that helps.

  • [BUG] a phantom Java Plug-in 1.6.0._07 remains installed in IE8

    a phantom Java Plug-in 1.6.0._07 remains installed in IE8 although the new version 1.6.0._19 is also installed.
    Look this screenshot: http://i40.tinypic.com/11mfhj6.png
    Windows Vista SP2
    Edited by: vistoso on Apr 9, 2010 12:04 PM

    The same thing can happen to firefox/linux depending on how you install it. However applets automatically registered with the updated vm. To update firefox to test and use the update, open ~/.mozilla/firefox/fooo.default/mimeTypes.rdf and change or remove the jnlp section.

  • Bug in EWS Java API 1.2: Does not support namespace prefix "s" as in "s:Envelope".. Expects "soap:Envelope"

    It can NOT parse ....
    <?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:ServerVersionInfo MajorVersion="14" MinorVersion="2" MajorBuildNumber="309
    " MinorBuildNumber="3" Version="Exchange2010_SP2" xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns="http://schemas.microsoft.com/exchange/services/2006/types" xmlns
    :xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/></s:Header><s:Body><m:GetFolderResponse xmlns:m="http://schemas.microsoft.com/exchange/service
    s/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><m:ResponseMessages><m:GetFolderResponseMessage ResponseClass="Success"><m:ResponseCode>NoError</m:Respo
    nseCode><m:Folders><t:CalendarFolder><t:FolderId Id="AAMkADExNjY4ZWRmLWIwN2YtNDAxMS05ZjEzLTg3YTRiMjQ0ZGY3ZQAuAAAAAADU0n/e4OgzQYvxnEFT1sxPAQA1LVqe3bVEQ6g4HVLTxYapAFiIzwa6AAA=" ChangeKey="AgA
    AABYAAACUAPkRiik5TYV1B0n4GmWXAAAAAj0P"/><t:ParentFolderId Id="AAMkADExNjY4ZWRmLWIwN2YtNDAxMS05ZjEzLTg3YTRiMjQ0ZGY3ZQAuAAAAAADU0n/e4OgzQYvxnEFT1sxPAQA1LVqe3bVEQ6g4HVLTxYapAFiI0lHWAAA=" Chang
    eKey="AQAAAA=="/><t:FolderClass>IPF.Appointment</t:FolderClass><t:DisplayName>Calendar</t:DisplayName><t:TotalCount>2</t:TotalCount><t:ChildFolderCount>0</t:ChildFolderCount><t:EffectiveRig
    hts><t:CreateAssociated>true</t:CreateAssociated><t:CreateContents>true</t:CreateContents><t:CreateHierarchy>true</t:CreateHierarchy><t:Delete>true</t:Delete><t:Modify>true</t:Modify><t:Rea
    d>true</t:Read><t:ViewPrivateItems>true</t:ViewPrivateItems></t:EffectiveRights><t:PermissionSet><t:CalendarPermissions><t:CalendarPermission><t:UserId><t:DistinguishedUser>Default</t:Disti
    nguishedUser></t:UserId><t:CanCreateItems>false</t:CanCreateItems><t:CanCreateSubFolders>false</t:CanCreateSubFolders><t:IsFolderOwner>false</t:IsFolderOwner><t:IsFolderVisible>false</t:IsF
    olderVisible><t:IsFolderContact>false</t:IsFolderContact><t:EditItems>None</t:EditItems><t:DeleteItems>None</t:DeleteItems><t:ReadItems>TimeOnly</t:ReadItems><t:CalendarPermissionLevel>Free
    BusyTimeOnly</t:CalendarPermissionLevel></t:CalendarPermission><t:CalendarPermission><t:UserId><t:DistinguishedUser>Anonymous</t:DistinguishedUser></t:UserId><t:CanCreateItems>false</t:CanC
    reateItems><t:CanCreateSubFolders>false</t:CanCreateSubFolders><t:IsFolderOwner>false</t:IsFolderOwner><t:IsFolderVisible>false</t:IsFolderVisible><t:IsFolderContact>false</t:IsFolderContac
    t><t:EditItems>None</t:EditItems><t:DeleteItems>None</t:DeleteItems><t:ReadItems>None</t:ReadItems><t:CalendarPermissionLevel>None</t:CalendarPermissionLevel></t:CalendarPermission></t:Cale
    ndarPermissions></t:PermissionSet></t:CalendarFolder></m:Folders></m:GetFolderResponseMessage></m:ResponseMessages></m:GetFolderResponse></s:Body></s:Envelope>
    microsoft.exchange.webservices.data.ServiceRequestException: The request failed. An element node 'soap:Envelope' of the type START_ELEMENT was expected, but node '{http://schemas.xmlsoap.or
    g/soap/envelope/}Envelope' of type START_ELEMENT was found.
            at microsoft.exchange.webservices.data.SimpleServiceRequestBase.internalExecute(SimpleServiceRequestBase.java:51)
            at microsoft.exchange.webservices.data.MultiResponseServiceRequest.execute(MultiResponseServiceRequest.java:142)
            at microsoft.exchange.webservices.data.ExchangeService.bindToFolder(ExchangeService.java:346)
            at microsoft.exchange.webservices.data.ExchangeService.bindToFolder(ExchangeService.java:370)
            at microsoft.exchange.webservices.data.Folder.bind(Folder.java:50)
            at microsoft.exchange.webservices.data.Folder.bind(Folder.java:69)
            at com.tsg.ews.GetItemWorker.run(GetItemWorker.java:252)
            at java.lang.Thread.run(Thread.java:662)
    Caused by: microsoft.exchange.webservices.data.ServiceXmlDeserializationException: An element node 'soap:Envelope' of the type START_ELEMENT was expected, but node '{http://schemas.xmlsoap.
    org/soap/envelope/}Envelope' of type START_ELEMENT was found.
            at microsoft.exchange.webservices.data.EwsXmlReader.internalReadElement(EwsXmlReader.java:114)
            at microsoft.exchange.webservices.data.EwsXmlReader.readStartElement(EwsXmlReader.java:618)
            at microsoft.exchange.webservices.data.ServiceRequestBase.readResponse(ServiceRequestBase.java:450)
            at microsoft.exchange.webservices.data.SimpleServiceRequestBase.readResponse(SimpleServiceRequestBase.java:101)
            at microsoft.exchange.webservices.data.SimpleServiceRequestBase.internalExecute(SimpleServiceRequestBase.java:38)

    After these change still I am getting this kind of Error:
    microsoft.exchange.webservices.data.ServiceRequestException
        at microsoft.exchange.webservices.data.SimpleServiceRequestBase.internalExecute(SimpleServiceRequestBase.java:63)
        at microsoft.exchange.webservices.data.MultiResponseServiceRequest.execute(MultiResponseServiceRequest.java:142)
        at microsoft.exchange.webservices.data.ExchangeService.internalFindFolders(ExchangeService.java:202)
        at microsoft.exchange.webservices.data.ExchangeService.findFolders(ExchangeService.java:257)
        at ci.cryoserver.ews.EWSUtils.testEWSWebService(Unknown Source)
        at org.apache.jsp.save_005fimap_005fmailbox_005freader_005fuserinfo_jsp._jspService(save_005fimap_005fmailbox_005freader_005fuserinfo_jsp.java:453)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at ci.cryoserver.frontend.filter.CompanyTagFilter.doFilter(CompanyTagFilter.java:69)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at ci.cryoserver.ntlm.CryoHttpSecurityFilter.doFilter(CryoHttpSecurityFilter.java:105)
        at ci.cryoserver.ntlm.SSOFilter.doFilter(SSOFilter.java:66)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at ci.cryoserver.ntlm.NTLMPostFilter.doFilter(NTLMPostFilter.java:39)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at ci.cryoserver.frontend.filter.CharsetFilter.doFilter(CharsetFilter.java:152)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
    Caused by: microsoft.exchange.webservices.data.ServiceXmlDeserializationException: An element node 'soap:Header' of the type START_ELEMENT was expected, but node '{http://schemas.xmlsoap.org/soap/envelope/}Body' of type START_ELEMENT was found.
        at microsoft.exchange.webservices.data.EwsXmlReader.internalReadElement(EwsXmlReader.java:121)
        at microsoft.exchange.webservices.data.EwsXmlReader.readStartElement(EwsXmlReader.java:625)
        at microsoft.exchange.webservices.data.ServiceRequestBase.readSoapHeader(ServiceRequestBase.java:565)
        at microsoft.exchange.webservices.data.ServiceRequestBase.readResponse(ServiceRequestBase.java:525)
        at microsoft.exchange.webservices.data.SimpleServiceRequestBase.readResponse(SimpleServiceRequestBase.java:171)
        at microsoft.exchange.webservices.data.SimpleServiceRequestBase.internalExecute(SimpleServiceRequestBase.java:49)
        ... 40 more
    This Account is working perfectly with autodiscovery mode. any fix for this ?

  • Bug in XML Java parser v2.0.2.8

    Hi, XML Team:
    When i try to transform some documents ( about 39Kb ) they not gets correctly parsed.
    At some point in the document a numeric entity reference get uncorrectly parsed.
    It parses a word like "relaci&#243;n" to "relacion&38;#243" and from that point part of the document is badly parsed, to some point in that the parses get resynchronized newly, and from this point to the end, the rest of the document get correctly parsed.
    When i say badly parsed i want to say that the "<" & ">" get parsed as entity references and not as part of an element,it seems to parse all that follows the badly parsed word as text() and not as elements.
    In the other hand, i discovered a very simple workaround: delete a single char from a point in the part of the file preceding the dangerous word, with this measure everything goes well, but it's not very good because my files are static ( not sql generated ) and i can do that, when i use the parser trought XSQL how can i prevent some query to have the dangerous lenth?.
    It seems that this bug is related to boundaries detection inside the code that reads from file, when the "&" character is read in the last byte of the buffer, it's not detected as part of entity reference and the entity reference is not readed as a whole but as a 2 things a "&" and after a "#243" that follows...
    I can send you a test bed that reproduces the bug, cleanly and consistetly.
    Saludos, Ignacio J. Ortega
    null

    Please email me test cases of both problems
    and we'll look into it ASAP. Thanks.
    The Jit one looks especially interesting.
    null

  • Things that bug me about Java: MalformedURLException

    Anyone else think it's funny that when I call
    File f = ...
    URL url = f.toURL()
    I've got to catch a MalformedURLException? When could this exception EVER happen? Can anyone answer that?
    Why is MalformedURLException not a RuntimeException? Of all the exceptions out in java land, this is one that has almost never come up for me, and in any case should be totally preventable by the programmer just as NullPointer or ArrayOutOfBounds exceptions are

    I was under the impression that a File was not directly linked to a physical file. In effect you can create a File instance with almost any gibberish. That gibberish could possibly be invalid when converted to a URL or may not be parasble into a url. (relative file paths may be a source of this (Im not sure though). I belive you can also create an "empty" path
    File f = new File("");There may be senible ways of handling conversion of this to a URL but I don't think it does.
    Even if toURL does succed it does not necessarily produce a valid URL (It does not escape special characters)
    matfud

  • Network.addNode (arg1,arg2,arg3) is there a bug in Spatial Java API ?

    Hi
    when I try to add a Node on a Link to the Network - I'm really confused. I have a LinearLineString {0 0 10 0). When I try to add a Node on the position (2,0) my first new Link have the right coordinates (0,0,2,0) but the second new link have the coordinates (2,0,8,0) when I expected (2,0,10,0)?
    maybe somebody have any idea?
    Thanks Jens
    //new SDONetwork
    Network net = NetworkFactory.createSDONetwork("myNetwork", 0, false, 0,
                        2);
    Node start = NetworkFactory.createSDONode(1, "start", 0, 0);
    Node end = NetworkFactory.createSDONode(2, "end", 10, 0);
    // LinkGeometry x=0 y=0 x=10 y=0
    JGeometry linkGeom = JGeometry.createLinearLineString(new double[] { 0,0,10, 0 }, 2, 0);
    try {
    net.addNode(start);
    net.addNode(end);
    net.addLink(NetworkFactory.createSDOLink(1, "firstLink", start,end, 1, linkGeom));
    //add new SDONode to Link
    Node n = net.addNode(net.getLink(1), 0.2, false);
    //all new Links on Node
    for (int i = 0; i < net.getNode(n.getID()).getIncidentLinks().length; i++) {
    for (int j = 0; j < net.getNode(n.getID()).getIncidentLinks()
    .getGeometry().getOrdinatesArray().length; j++) {
    System.out.println(net.getNode(n.getID())
    .getIncidentLinks()[i].getGeometry()
    .getOrdinatesArray()[j]);
    System.out.println("----");
    } catch (NetworkDataException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();

    Hi,
    This has been verified as a bug in 10203.
    You can track this bug in Oracle bug database.
    The bug number is 6070333.
    Regards,
    -Jack

  • Bug in Netbeans Java compiler?

    I think Netbeans (or Java itself?) has a major flaw in its compiler design.
    Explain to me why the following code is not compilable. Specifically, why it should complain about line 8:
    cannot find symbol
    symbol : variable Selected
    When I clearly declared it a couple lines above it!
    Now the fact that it was declared in an "If" clause is a lame excuse, because there is an unconditional Else clause which ALSO declares the same Object array. So either way, the Object array gets declared exactly ONCE. Not zero, not twice. In
    EVERY SINGLE LOGICAL CASE.
    So why was someone on crack when they designed Java/Netbeans? This is a BS error.
    1     if (president.compareTo("Bush") == 0) {
    2           Object Selected[] = listWarCriminals.getSelectedValues();
    3       }
    4       else {
    5           Object Selected[] = listPresidents.getSelectedValues();
    6       }
    7
    8       for (int n=0; n<Selected.length; n++) {
    9           name = Selected[n].toString();
    10          JOptionPane.showMessageDialog(frame, name, "Result", JOptionPane.INFORMATION_MESSAGE);
    11      }

    Please don't
    [url=http://forum.java.sun.com/thread.jspa?threadID=51
    76269&messageID=9681394#9681394]crosspost!Although for a topic this stupid it can't be bad to share the love.

Maybe you are looking for

  • Lost everything on my 3G, after I tried to sync from a new computer

    A while back my laptop crashed, so I am now using my dads laptop. I downloaded iTunes 10, then plugged in my phone. It started a backup but froze. I updaated the software on the iPhone to iPhone1,24.1_8B117Restore I started to sync some new podcast a

  • Apply Automation to assets already in catalog

    Hi, it seems I missed something in the manual. I can't find a way how to do this. 1. I have a device 'D', let's say network volume. 2. When I upload asset 'A' to the FCS, my automation copy this file to the network device 'D' and also move it to the

  • Gmail mail will not print using default printer.

    When I click on "print" to print out an email, I must reset the printer to be used each time as Gmail is not recognizing the printer that is set as my default printer.

  • Multiple VLAN?

    Hi all, I'm not familiar with Cisco new AP and have a question for all. Is it possible to have one access point authenticate domain users on one vlan and then outside users on another vlan without authentication? For example, if i am as a domain user

  • The AS in my MC's won't work

    I am building a navigation system for my companies website and the way i want it to work is theres a list of products and then when you mouse over a product name then a sub-menu appears with the different styles of that product and when you click on