HashTable keys() strange behaviour in JDK 1.3

Hi,
Has the behaviour of the keys()-method in HashTable changed from JDK 1.2.2 to JDK 1.3? I get this strange results:
I have a hashtable, and asks it for an enumration of the keys using the keys()-method. In JDK 1.2.2 (in the debugger of the Visual Age IDE) this works fine and I'm able to go through the enumeration and use all the keys.
However, when I run the same code in JDK 1.3, the enumeration returned does not contain all keys, and some keys are duplicated in the enumeration.
I was able to circumvent this by getting a key Set (with the keySet()-method), ask the set for its Iterator, go through the Iterator and putting the keys in a Vector and finally asking the Vector for its elements as an enumeration.
This way I got all the keys once, and it worked both in JDK 1.2.2 and in JDK 1.3.
I think only one thread is accessing the HashTable at the same time.
Have anyone experienced a similiar behaviour and/or knows the cause of it?
Regards,
Magnus Erkstam

I've run into several cases where what passes for Java 1.2 in Visual Age for Java does not behave in accordance with the JLS, or does not behave the same as other versions of Java 1.2. In my case the differences came up with regard to method invocation. VA4J resolved what should've been ambiguous method invocations entirely based on the signature of the method.
http://forum.java.sun.com/thread.jsp?forum=31&thread=322726
That thread talks about those problems, but also mentions an article I found which details diffences some researchers found between VA4J and several other compilers.
http://www.cis.nctu.edu.tw/~wuuyang/papers/CTHPC2002ambiguities.pdf
Wouldn't surprise me to hear there are ambiguities in the VA4J version of .equals() either.

Similar Messages

  • Nokia X6-8GB Music Key strange behaviour

    Hi, In my X6-8GB phone, music key is not working if no headphone is attached. If i attach headphone, the music key is working normally but in other case it is not working at all. I have tried following to resolve but still facing the same problem: 1) Restarted 2) Factory Default Setting.

    There are no viruses that can infect S60 phones unless you explicitly install and run them yourself, in which case they're not viruses but trojans.
    You can reformat the phone's memory by dialling *#7370# and supplying your security code. That security code will be 12345 unless you've changed it (note that updating the N73's firmware resets the security code to 12345).
    If the problem persists then it's not a virus/trojan but corrupt firmware (perhaps the latest update didn't take 100%). If the firmware is still on your computer from when you did the update last then you can re-run NSU and have it re-flash the firmware in your phone. If not, you'll have to take the phone to a Nokia Care Point for them to re-flash it.
    Was this post helpful? If so, please click on the white "Kudos!" star below. Thank you!

  • LR 1.3.1 strange behaviour: L key adds keywords and removes pictures from collection

    After updating to LR 1.3.1 yesterday I found a very strange behaviour that I cannot explain: While in the Library module and looking at a picture from a collection (in loupe mode) I cycle through the different light modes using the L key. Then suddenly (after several hits of the L key) a keyword is added (not always the same keyword) and at the same time an unknown number of pictures is removed from the collection. The keyword is not added to the picture I was currently viewing, but to another one from the same collection. This has not happened before and I have no idea what is going on. I can restore the collection by relaunching an older catalog but of course this does not solve the problem. Can anybody help?
    (PC, Win XP prof SP 2, 4 Gig RAM)

    It is possible that instead of hitting the l key, or perhaps within the same sequence of hits your are in fact accidentally hitting the k key.
    K is the shortcut for "Add shortcut keyword"
    Of course you would have had to set that particular keyword at some point and it does not explain the different keywords being assigned.
    Unless the alt key was involved somehow and you were rating the images with 1-9 numbers. That would account for different keywords being assigned and would seem arbitrary.
    To check: look at one or two of the images that you may have rated using a number key and then look at the keyword set the keyword came from. Press the alt key and a number from 1-9 will appear next to the keyword. If they match then thats the answer.
    If you weren't rating the images this way then.....??
    Perhaps there is a fault with the keyboard itself rather than the program.
    David

  • Strange behaviour BOXI R2

    Post Author: Ermakov Alexey
    CA Forum: .NET
    using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using CrystalDecisions.Enterprise;using BusinessObjects.ReportEngine;using BusinessObjects.Enterprise.Desktop;using System.IO;using System.Runtime.InteropServices;using System.Collections;namespace BusinessObjectsInteroperation{     public class BusinessObjectsInterop     {          public void GetBinaryReportByName(string NameOfTheReport, Stream StreamForDataBeWritten, BOConfigs BOCfg, OutputFormatType OutputFormat, Hashtable PromptValues)          {               EnterpriseSession enterpriseSession = null;               ReportEngines reportEngines = null;               SessionMgr sessionMgr = new SessionMgr();               try               {                    enterpriseSession = sessionMgr.Logon(BOCfg.BO_LoginName, BOCfg.BO_Password, BOCfg.BO_MachineToConnect, BOCfg.BO_LoginType);               }               catch (COMException exc)               {                    int HRESULT = exc.ErrorCode;                    switch (HRESULT)                    {                         case -2147210751:                              throw new ArgumentException(" BO_MachineToConnect");                         case -2147211005:                              throw new ArgumentException(" BO_LoginName");                         case -2147211006:                              throw new ArgumentException(" BO_Password");                         case -2147210653:                              throw new ArgumentException(" BO_LoginType");                         default:                              throw new ArgumentException("");                    }               }               InfoStore iStore = (InfoStore)enterpriseSession.GetService("InfoStore");               UserInfo userInfo = enterpriseSession.UserInfo;               if (enterpriseSession != null)               {                    if (reportEngines == null)                    {                         int iMinuteNumber = 1;                         int iLogonNumber = 1;                          string strToken = enterpriseSession.LogonTokenMgr.CreateWCAToken("", iMinuteNumber, iLogonNumber);                         reportEngines =  new ReportEngines(strToken);                    }               }                              IReportEngine reportEngine = reportEngines.getService(ReportEngineType.FC_ReportEngine);               FullClient ReportToPrint = (FullClient)getReport(iStore, NameOfTheReport, CrystalDecisions.Enterprise.InfoStore.CeKind.FullClient);               IDocumentInstance doc = null;               try               {                    doc = reportEngine.OpenDocument(ReportToPrint.ID); //ERROR Happens here               }               catch(Exception e)               {                    Console.Write(e.StackTrace);               }                              doc.Refresh();               IPrompts prompts = doc.GetPrompts();               foreach (IPrompt ip in prompts)               {                    string OnlyOneValue="";                    try                    {                         OnlyOneValue = (string)PromptValues[ip.Name];                    }                    catch(IndexOutOfRangeException exc)                    {                         throw new ArgumentException(String.Format("Отчет {0} имеет необходимый параметр , который не был предоставлен.", NameOfTheReport, ip.Name), exc);                    }                    string[] vlArr = ; //Почему одному IPrompt надо передавать массив значений остается загадкой.                    ip.EnterValues(vlArr);               }               doc.SetPrompts();               IBinaryView docBinaryView = (IBinaryView)doc.GetView(OutputFormat);               docBinaryView.WriteContent(StreamForDataBeWritten);               doc.CloseDocument();                              reportEngine.Close();               reportEngines.Close();               iStore.Dispose();               enterpriseSession.Logoff();               enterpriseSession.Dispose();                                        }                    private InfoObject getReport(InfoStore iStore, string Name, string Kind)          {               InfoObjects list = null;               string query = String.Format(@"                SELECT                     SI_ID,                     SI_NAME,                          SI_PARENTID,                         SI_KIND,                          SI_INSTANCE,                          SI_DESCRIPTION                     FROM                         CI_INFOOBJECTS                     WHERE                          SI_KIND='{0}' AND                         SI_NAME=''", Kind, Name);                list = iStore.Query(query);               if (list.Count == 0)               {                    throw new Exception(String.Format("На сервере не существует отчета с именем {0}, его необходимо создать. Либо у вас нет на него прав.", Name));               }               if (list.Count > 1)               {                    throw new Exception(String.Format("На сервере существует более одного отчета с именем {0}, удалите неверный.", Name));               }               foreach (InfoObject obj in list)               {                    return obj;               }               return null;          }          public void ReportInPdfToHTTPResponse(string NameOfTheReport, params Par[] Prompts)          {               Hashtable PromptValues = new Hashtable();               foreach (Par p in Prompts)               {                    PromptValues.Add(p.Key, p.Value);               }               HttpResponse Response = HttpContext.Current.Response;               Response.Clear();               Response.ContentType = "application/pdf";               Response.AddHeader("Content-Type", "application/pdf");               Response.Expires = 0;               GetBinaryReportByName(NameOfTheReport, Response.OutputStream, new BOConfigs(), OutputFormatType.Pdf, PromptValues);               Response.Flush();               Response.End();          }          public void ReportInXlsToHTTPResponse(string NameOfTheReport, params Par[] Prompts)          {               Hashtable PromptValues = new Hashtable();               foreach (Par p in Prompts)               {                    PromptValues.Add(p.Key, p.Value);               }               HttpResponse Response = HttpContext.Current.Response;               Response.Clear();               Response.ContentType = "application/vnd.ms-excel";               Response.AddHeader( "Content-Type", "application/vnd.ms-excel");               Response.Expires = 0;               GetBinaryReportByName(NameOfTheReport, Response.OutputStream, new BOConfigs(), OutputFormatType.Xls, PromptValues);               Response.Flush();               Response.End();          }               }     } I have this code, but it has strange behaviour.When I restart IIS and run this function first time, I get an ArgumentOutOfRangeException in reportEngine.OpenDocument(ReportToPrint.ID);But the most strange thing is that Visual Studia shows me exception dialog and if I press Continue, then it works good.On more strange thing I get about this Code. From time to time server shows me such error:An unhandled exception of type 'BusinessObjects.ThirdParty.OOC.OB.AssertionFailed' occurred in businessobjects.enterprise.sdk.netmodule Additional information: ORBacus encountered an internal error

    Post Author: Ermakov Alexey
    CA Forum: .NET
         mscorlib.dll!System.String.LastIndexOf(char value, int startIndex) + 0x13 bytes           log4net.dll!log4net.Repository.Hierarchy.Hierarchy.UpdateParents(log4net.Repository.Hierarchy.Logger log = {log4net.Repository.Hierarchy.DefaultLoggerFactory.LoggerImpl}) + 0x1cf bytes           log4net.dll!log4net.Repository.Hierarchy.Hierarchy.GetLogger(string name = ".cctor", log4net.Repository.Hierarchy.ILoggerFactory factory = {log4net.Repository.Hierarchy.DefaultLoggerFactory}) + 0x12b bytes           log4net.dll!log4net.Repository.Hierarchy.Hierarchy.GetLogger(string name = ".cctor") + 0x46 bytes           log4net.dll!log4net.Core.LoggerManager.GetLogger(System.Reflection.Assembly repositoryAssembly = {System.Reflection.Assembly}, string name = ".cctor") + 0x94 bytes           log4net.dll!log4net.LogManager.GetLogger(System.Reflection.Assembly repositoryAssembly = {System.Reflection.Assembly}, string name = ".cctor") + 0x1b bytes           log4net.dll!log4net.LogManager.GetLogger(string name = ".cctor") + 0x1e bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Lib.Tracing.CELogger.CELogger(string name = ".cctor") + 0x20 bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Lib.Tracing.TraceManager.LoggerFactoryHelper.makeLogger(string name = ".cctor") + 0x35 bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Lib.Tracing.TraceManager.getLogger(string name = ".cctor") + 0x4a bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Infostore.Internal.AbstractSchedulableObject..cctor() + 0x23 bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Infostore.Internal.SchedulableInfoObject.SchedulableInfoObject() + 0xf bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Infostore.Internal.InfoObjects.newInfoObject(System.Object plgKey = ) + 0xbb bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Infostore.Internal.InfoObjects.continueUnpack(BusinessObjects.Enterprise.OcaFramework.Oca.InfoStore.info_wire_ob3&#91;&#93; wireObjs = {Length=0x1}) + 0x40a bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Infostore.Internal.InfoObjects.startUnpack(BusinessObjects.Enterprise.Security.Internal.ISecuritySession session = {BusinessObjects.Enterprise.Security.Internal.SecuritySession}, BusinessObjects.Enterprise.Infostore.IInfoStore infoStore = {BusinessObjects.Enterprise.Infostore.Internal.InfoStore}, BusinessObjects.Enterprise.OcaFramework.Oca.InfoStore.info_wire_ob3&#91;&#93; wireObjs = {Length=0x1}) + 0x9b bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Infostore.Internal.InfoStore.queryHelper(string query = "SELECT SI_MACHINE, SI_MACHINECHOICE from CI_INFOOBJECTS WHERE SI_ID=2762", BusinessObjects.Enterprise.Infostore.Internal.InfoObjects objs = {BusinessObjects.Enterprise.Infostore.Internal.InfoObjects}) + 0x149 bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Infostore.Internal.InfoStore.Query(string query = "SELECT SI_MACHINE, SI_MACHINECHOICE from CI_INFOOBJECTS WHERE SI_ID=2762") + 0x2f bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Ras21.RASConnection.initServerSpec(BusinessObjects.Enterprise.OcaFramework.ServerSpec serverSpec = {BusinessObjects.Enterprise.OcaFramework.ServerSpec}) + 0x30d bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Ras21.RASConnection.init(BusinessObjects.Enterprise.Ras21.IRASConnectionInitService i_initService = <undefined value>) + 0x422 bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Ras21.RASConnection.RASConnection(string i_sServerKind = "dpscacheFullClient", BusinessObjects.Enterprise.Ras21.Messages.GetConnection i_getConnection = {BusinessObjects.Enterprise.Ras21.Messages.GetConnection}, System.IO.Stream i_documentStream = <undefined value>, BusinessObjects.Enterprise.Ras21.IRASConnectionInitService i_initService = <undefined value>, BusinessObjects.Enterprise.Ras21.Serialization.IServerDeserializerFactory i_deserializerFactory = {BusinessObjects.Enterprise.Ras21.RASConnectionFactory.RASConnectionServerSerializationFactory}, BusinessObjects.Enterprise.Ras21.Serialization.IServerSerializerFactory i_serializerFactory = {BusinessObjects.Enterprise.Ras21.RASConnectionFactory.RASConnectionServerSerializationFactory}) + 0x18a bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Ras21.RASConnectionFactory.getRASConnection(string i_sServerKind = "CrystalEnterprise.FullClient", System.Globalization.CultureInfo i_locale = {System.Globalization.CultureInfo}, BusinessObjects.Enterprise.Security.Internal.ISecuritySession i_secSession = {BusinessObjects.Enterprise.Security.Internal.SecuritySession}, BusinessObjects.Enterprise.Ras21.Messages.GetConnection.DocumentId i_documentId = {BusinessObjects.Enterprise.Ras21.Messages.GetConnection.DocumentId}, System.IO.Stream i_documentStream = <undefined value>, BusinessObjects.Enterprise.Ras21.IRASConnectionInitService i_initService = <undefined value>) + 0x156 bytes           businessobjects.enterprise.sdk.netmodule!BusinessObjects.Enterprise.Ras21.RASConnectionFactory.getRASConnectionObjectId(string i_sServerKind = "CrystalEnterprise.FullClient", System.Globalization.CultureInfo i_locale = {System.Globalization.CultureInfo}, BusinessObjects.Enterprise.Security.Internal.ISecuritySession i_secSession = {BusinessObjects.Enterprise.Security.Internal.SecuritySession}, int i_nObjectId = 0xaca) + 0x108 bytes           businessobjects.reportengine.fc.dll!BusinessObjects.ReportEngine.FC.ras21.XMLviaRAS21Encode.newSession(BusinessObjects.ReportEngine.FC.ras21.RAS21SessionID i_occaSession = {BusinessObjects.ReportEngine.FC.ras21.RAS21SessionID}, string i_sLocale = "en-US", int i_nDocId = 0xaca, string s_iConnID = "1") + 0x107 bytes           businessobjects.reportengine.fc.dll!BusinessObjects.ReportEngine.FC.ras21.RAS21ReportEngineComAdapter.InitRAS21Connection(BusinessObjects.ReportEngine.FC.ras21.RAS21SessionID i_occaSession = {BusinessObjects.ReportEngine.FC.ras21.RAS21SessionID}, string i_sLocale = "", bool i_bNewDoc = false, int i_nDocId = 0xaca, string i_sConnID = "1") + 0x1d bytes           businessobjects.reportengine.fc.dll!BusinessObjects.ReportEngine.FC.ras21.RAS21ReportEngineComAdapter.openDocument(BusinessObjects.ReportEngine.Internal.Utilities.Storage.IStorageManager storageManager = {BusinessObjects.ReportEngine.Internal.Utilities.Storage.ClusterStorageManager}, string sLocale = "", int docID = 0xaca) + 0xde bytes           businessobjects.reportengine.fc.dll!BusinessObjects.ReportEngine.FC.ReportEngineImpl.OpenDocument(int docID = 0xaca) + 0x107 bytes     >     businessobjectinteroperation.dll!BusinessObjectsInteroperation.BusinessObjectsInterop.GetBinaryReportByName(string NameOfTheReport = "DO_Raport", System.IO.Stream StreamForDataBeWritten = {System.Web.HttpResponseStream}, BusinessObjectsInteroperation.BOConfigs BOCfg = {BusinessObjectsInteroperation.BOConfigs}, BusinessObjects.ReportEngine.OutputFormatType OutputFormat = Pdf, System.Collections.Hashtable PromptValues = {Count=0x3}) Line 80 + 0x22 bytes     C#

  • APEX Listener and EPG - strange behaviour

    Hi
    For some years, I've used EPG for APEX but have struggled with performance particularly as I can have up to 150 student developers using at any one time.
    I do a fair amount of work using ORDImage and have successfully developed APEX applications to upload image files and display full-size and thumbnail images.
    After upgrading to APEX 4.1 (from 4.0), I decided to install APEX Listener standalone.
    Before I did so I checked that my applications still worked in 4.1 and they did.
    However, just installing APEX Listener but not configuring it (yet) has meant that my image display in a report using a procedure based on wpg_docload.download_file( l_ordimage_image.source.localData ) no longer works in EPG - the images are not displayed.
    Configuring APEX Listener and running the same application through that DOES display the images.
    So this part of the application works under APEX Listener but not under EPG.
    My application also allows users to upload images from APEX_APPLICATION_FILES using standard code. Under APEX Listener after uploading, I'm left with a blank page with a wwv_flow.accept URL although the image does indeed upload. Under EPG it works as expected and I get a success confirmation.
    So this part of the application works under EPG but not under APEX Listener.
    Has anyone else come across different behaviour depending on the mode of connection?
    Thanks
    Brian
    [Oracle EE 11gR2, Windows Server 2008R2, APEX 4.1, APEX Listener 1.1.3]

    Hi Brian,
    it sounds like you have both EPG and APEX Listener running on the same machine, so your problem might result from a port conflict. Note that both services use TCP port 8080 as default.
    At least a port conflict would explain the strange behaviour in your case, some things working on one web server and some on the other.
    Some parts of your initial post hint to that direction, e.g.
    However, just installing APEX Listener but not configuring it (yet) has meant that my image display in a report using a procedure based on >wpg_docload.download_file( l_ordimage_image.source.localData ) no longer works in EPG - the images are not displayed.... because the APEX Listener only interfere with the EPG if it is at least running on the same machine as your database and furthermore, if it is unconfigured in terms of ist database connection, a port conflict might be the only way it could cause anything like that.
    However, if you are sure that's not the issue, please check if you see any error in the APEX Listener's log for the following action you performed:
    My application also allows users to upload images from APEX_APPLICATION_FILES using standard code. Under APEX Listener after uploading, I'm left with a blank >page with a wwv_flow.accept URL although the image does indeed uploadIf you actually see just a blank screen, something very bad must have happened and you should see some kind of stack trace there.
    For further investigations, if necessary, it would be helpful to know how you deployed or started your APEX Listener and which JDK version you use.
    For the moment, I still think the port conflict is my best guess.
    You could avoid it by either changing the port for EPG (I'd not recommend that if you have other users still using it) or by changing the port for your APEX Listener.
    -Udo

  • Strange behaviour of Runtime.getRuntime().exec(command)

    hello guys,
    i wrote a program which executes some commands in commandline (actually tried multiple stuff.)
    what did i try?
    open "cmd.exe" manually (administrator)
    type "echo %PROCESSOR_ARCHITECTURE%" and hit enter, which returns me
    "AMD64"
    type "java -version" and hit enter, which returns me:
    "java version "1.6.0_10-beta"
    Java(TM) SE Runtime Environment (build 1.6.0_10-beta-b25)
    Java HotSpot(TM) 64-Bit Server VM (build 11.0-b12, mixed mode)"
    type "reg query "HKLM\SOFTWARE\7-zip"" returns me:
    HKEY_LOCAL_MACHINE\SOFTWARE\7-zip
    Path REG_SZ C:\Program Files\7-Zip\
    i wrote two functions to execute an command
    1) simply calls exec and reads errin and stdout from the process started:
    public static String execute(String command) {
              String result = "";
              try {
                   // Execute a command
                   Process child = Runtime.getRuntime().exec(command);
                   // Read from an input stream
                   InputStream in = child.getInputStream();
                   int c;
                   while ((c = in.read()) != -1) {
                        result += ((char) c);
                   in.close();
                   in = child.getErrorStream();
                   while ((c = in.read()) != -1) {
                        result += ((char) c);
                   in.close();
              } catch (IOException e) {
              return result;
         }the second function allows me to send multiple commands to the cmd
    public static String exec(String[] commands) {
              String line;
              String result = "";
              OutputStream stdin = null;
              InputStream stderr = null;
              InputStream stdout = null;
              // launch EXE and grab stdin/stdout and stderr
              try {
                   Process process;
                   process = Runtime.getRuntime().exec("cmd.exe");
                   stdin = process.getOutputStream();
                   stderr = process.getErrorStream();
                   stdout = process.getInputStream();
                   // "write" the parms into stdin
                   for (int i = 0; i < commands.length; i++) {
                        line = commands[i] + "\n";
                        stdin.write(line.getBytes());
                        stdin.flush();
                   stdin.close();
                   // clean up if any output in stdout
                   BufferedReader brCleanUp = new BufferedReader(
                             new InputStreamReader(stdout));
                   while ((line = brCleanUp.readLine()) != null) {
                        result += line + "\n";
                   brCleanUp.close();
                   // clean up if any output in stderr
                   brCleanUp = new BufferedReader(new InputStreamReader(stderr));
                   while ((line = brCleanUp.readLine()) != null) {
                        result += "ERR: " + line + "\n";
                   brCleanUp.close();
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              return result;
         }so i try to execute the commands from above (yes, i am using \\ and \" in java)
    (1) "echo %PROCESSOR_ARCHITECTURE%"
    (2) "java -version"
    (3) "reg query "HKLM\SOFTWARE\7-zip""
    the first function returns me (note that ALL results are different from the stuff above!):
    (1) "" <-- empty ?!
    (2) java version "1.6.0_11"
    Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
    Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing)
    (3) ERROR: The system was unable to find the specified registry key or value.
    the second function returns me:
    (1) x86 <-- huh? i have AMD64
    (2) java version "1.6.0_11"
    Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
    Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing)
    (3) ERROR: The system was unable to find the specified registry key or value.
    horray! in this version the java version is correct! processor architecture is not empty but totally incorrect and the reg query is still err.
    any help is wellcome
    note: i only put stuff here, which returns me strange behaviour, most things are working correct with my functions (using the Runtime.getRuntime().exec(command); code)
    note2: "reg query "HKLM\HARDWARE\DESCRIPTION\System\CentralProcessor\0" /t REG_SZ" IS working, so why are "some" queries result in ERR, while they are working if typed by hand in cmd.exe?

    ok, i exported a jar file and execute it from cmd:
    java -jar myjar.jar
    now the output is:
    (1) "" if called by version 1, possible to retrieve by version 2 (no clue why!)
    (2) "java version "1.6.0_10-beta"
    Java(TM) SE Runtime Environment (build 1.6.0_10-beta-b25)
    Java HotSpot(TM) 64-Bit Server VM (build 11.0-b12, mixed mode)"
    (3) C:\Program Files\7-Zip\
    so all three problems are gone! (but its a hard way, as i need both functions and parse a lot of text... :/ )
    thanks for the tip, that eclipse changes variables (i really did not knew this one...)

  • Strange behaviour of Removal of Alpha for Info object in Quality system

    Strange behaviour of Removal of Alpha for Info object in Quality system as compared to Development system.
    Hi,
    The data for an info object Key in the DSO was 00000000000000000000000000123. I removed Alpha for the info object and data was corrected to 123 in the DSO in development system.
    Now, when i transported the info object without alpha to quality and loaded data into DSO, the data is still the same with leading zeros.
    I dont want to write routine to remove leading zeros, as I have values as 0. If i write routine, all zeros will be removed and this will be blank.
    Both development and quality have same patches applied and are on same level.
    Why is this strange behaviour in quality system...
    Any inputs?? please suggest.
    Thanks.
    Lavanya

    Hi,
      Did you drop and reload the data after changing the conversion?
    Regards,
    Raghavendra.

  • [SOLVED] French Canadian keyboard strange behaviour

    Hello!
    I just upgraded to Gnome 2.30 in [testing] and my keyboard has a strange behaviour. With Gnome 2.28, my keyboard layout was set to Canadian French (legacy), and still is, though some of the keys do not behave the same. For instance, the accents "`", "¸" and ^ do not behave as usual, but rather give me some letter with that accent on it, rather than letting me choose the letter on which put the accent.
    Moreover, the SHIFT+3 combination gives me a # instead of a /, but not in all software. Google Chrome has the good behaviour, but gnome-terminal gives me a #.
    Do you understand any of this?
    I'll post the packages I have upgraded.
    [2010-04-05 01:09] upgraded openssl (0.9.8n-1 -> 1.0.0-2)
    [2010-04-05 01:09] upgraded python (2.6.5-2 -> 2.6.5-3)
    [2010-04-05 01:09] upgraded pygobject (2.20.0-1 -> 2.21.1-1)
    [2010-04-05 01:09] upgraded pygtk (2.16.0-2 -> 2.17.0-1)
    [2010-04-05 01:09] upgraded gnome-menus (2.28.0.1-1 -> 2.30.0-1)
    [2010-04-05 01:09] upgraded libsoup (2.28.2-1 -> 2.30.0-1)
    [2010-04-05 01:09] upgraded libldap (2.4.21-1 -> 2.4.21-2)
    [2010-04-05 01:09] upgraded libidl2 (0.8.13-1 -> 0.8.14-1)
    [2010-04-05 01:09] upgraded orbit2 (2.14.17-1 -> 2.14.18-1)
    [2010-04-05 01:09] upgraded gconf (2.28.0-1 -> 2.28.1-1)
    [2010-04-05 01:09] upgraded gnome-keyring (2.28.2-1 -> 2.30.0-1)
    [2010-04-05 01:09] upgraded heimdal (1.3.1-3 -> 1.3.2-1)
    [2010-04-05 01:09] upgraded libsoup-gnome (2.28.2-1 -> 2.30.0-1)
    [2010-04-05 01:10] upgraded gnome-icon-theme (2.28.0-1 -> 2.30.0-1)
    [2010-04-05 01:10] upgraded libgweather (2.28.0-1 -> 2.30.0-1)
    [2010-04-05 01:10] upgraded evolution-data-server (2.28.3.1-1 -> 2.30.0-2)
    [2010-04-05 01:10] upgraded gnome-desktop (2.28.2-1 -> 2.30.0-1)
    [2010-04-05 01:10] upgraded libwnck (2.28.0-1 -> 2.30.0-1)
    [2010-04-05 01:10] upgraded libunique (1.1.6-1 -> 1.1.6-2)
    [2010-04-05 01:10] upgraded gnome-disk-utility (2.28.1-1 -> 2.30.1-1)
    [2010-04-05 01:11] upgraded libarchive (2.8.3-1 -> 2.8.3-3)
    [2010-04-05 01:11] upgraded smbclient (3.5.1-1 -> 3.5.1-2)
    [2010-04-05 01:11] upgraded gvfs (1.4.3-1 -> 1.6.0-1)
    [2010-04-05 01:11] upgraded gnome-vfs (2.24.2-2 -> 2.24.3-2)
    [2010-04-05 01:11] upgraded libbonobo (2.24.2-1 -> 2.24.3-1)
    [2010-04-05 01:11] upgraded libgnome (2.28.0-2 -> 2.30.0-1)
    [2010-04-05 01:11] upgraded libart-lgpl (2.3.20-1 -> 2.3.21-1)
    [2010-04-05 01:11] upgraded libgnomecanvas (2.26.0-1 -> 2.30.1-1)
    [2010-04-05 01:11] upgraded libbonoboui (2.24.2-1 -> 2.24.3-1)
    [2010-04-05 01:11] upgraded librsvg (2.26.0-2 -> 2.26.2-1)
    [2010-04-05 01:11] upgraded gnome-panel (2.28.0-2 -> 2.30.0-1)
    [2010-04-05 01:11] upgraded libgnomeui (2.24.2-1 -> 2.24.3-1)
    [2010-04-05 01:11] upgraded gnome-python (2.28.0-1 -> 2.28.1-1)
    [2010-04-05 01:11] upgraded alacarte (0.12.4-2 -> 0.13.1-1)
    [2010-04-05 01:11] upgraded apache (2.2.15-1 -> 2.2.15-2)
    [2010-04-05 01:11] upgraded at-spi (1.28.1-1 -> 1.30.0-1)
    [2010-04-05 01:11] upgraded totem-plparser (2.28.2-1 -> 2.30.0-1)
    [2010-04-05 01:12] upgraded brasero (2.28.3-2 -> 2.30.0-1)
    [2010-04-05 01:12] upgraded icu (4.2.1-1 -> 4.4-1)
    [2010-04-05 01:12] upgraded brltty (4.1-2 -> 4.1-3)
    [2010-04-05 01:12] upgraded libgtop (2.28.0-1 -> 2.28.1-1)
    [2010-04-05 01:12] upgraded bug-buddy (2.28.0-1 -> 2.30.0-1)
    [2010-04-05 01:12] upgraded cheese (2.28.1-1 -> 2.30.0-1)
    [2010-04-05 01:12] upgraded clutter (1.0.10-1 -> 1.2.4-1)
    [2010-04-05 01:12] upgraded clutter-gtk (0.10.2-1 -> 0.10.2-2)
    [2010-04-05 01:12] upgraded libxklavier (4.0-1 -> 5.0-1)
    [2010-04-05 01:12] upgraded libgnomekbd (2.28.2-1 -> 2.30.0-1)
    [2010-04-05 01:12] upgraded gnome-settings-daemon (2.28.2-1 -> 2.30.0-1)
    [2010-04-05 01:12] upgraded zenity (2.28.0-1 -> 2.30.0-1)
    [2010-04-05 01:13] upgraded metacity (2.28.1-1 -> 2.30.0-2)
    [2010-04-05 01:13] upgraded gnome-control-center (2.28.1-1 -> 2.30.0-1)
    [2010-04-05 01:13] upgraded compiz-decorator-gtk (0.8.4-2 -> 0.8.4-3)
    [2010-04-05 01:13] upgraded libcups (1.4.2-5 -> 1.4.3-2)
    [2010-04-05 01:13] upgraded openslp (1.2.1-2 -> 1.2.1-3)
    [2010-04-05 01:13] upgraded cups (1.4.2-5 -> 1.4.3-2)
    [2010-04-05 01:13] upgraded curl (7.20.0-1 -> 7.20.0-2)
    [2010-04-05 01:13] upgraded cvs (1.11.23-4 -> 1.11.23-5)
    [2010-04-05 01:13] upgraded postgresql-libs (8.4.3-1 -> 8.4.3-2)
    [2010-04-05 01:13] upgraded cyrus-sasl-plugins (2.1.23-1 -> 2.1.23-2)
    [2010-04-05 01:13] upgraded cyrus-sasl (2.1.23-3 -> 2.1.23-4)
    [2010-04-05 01:13] upgraded dbus-python (0.83.0-2.1 -> 0.83.1-1)
    [2010-04-05 01:13] upgraded gnome-python-desktop (2.28.0-3 -> 2.30.0-1)
    [2010-04-05 01:13] upgraded deskbar-applet (2.28.0-3 -> 2.30.0-1)
    [2010-04-05 01:13] upgraded dnsutils (9.6.1-2 -> 9.6.1-3)
    [2010-04-05 01:14] upgraded eog (2.28.2-2 -> 2.30.0-1)
    [2010-04-05 01:14] upgraded libwebkit (1.1.15.4-3 -> 1.1.90-2)
    [2010-04-05 01:14] upgraded gobject-introspection (0.6.6-1 -> 0.6.9-1)
    [2010-04-05 01:14] upgraded epiphany (2.28.2-2 -> 2.30.0-1)
    [2010-04-05 01:14] upgraded evince (2.28.2-1 -> 2.30.0-1)
    [2010-04-05 01:14] upgraded gtkhtml (3.28.3-1 -> 3.30.0-1)
    [2010-04-05 01:14] upgraded evolution-exchange (2.28.3-1 -> 2.30.0-2)
    [2010-04-05 01:14] upgraded evolution-webcal (2.28.0-1 -> 2.28.1-1)
    [2010-04-05 01:14] upgraded file-roller (2.28.2-1 -> 2.30.0-1)
    [2010-04-05 01:15] upgraded gcalctool (5.28.2-1 -> 5.30.0-1)
    [2010-04-05 01:15] upgraded gconf-editor (2.28.0-1 -> 2.30.0-1)
    [2010-04-05 01:15] upgraded gnome-session (2.28.0-1 -> 2.30.0-1)
    [2010-04-05 01:15] upgraded gdm (2.28.2-1 -> 2.30.0-1)
    [2010-04-05 01:15] upgraded gtksourceview2 (2.8.2-1 -> 2.10.0-1)
    [2010-04-05 01:15] upgraded pygtksourceview2 (2.8.0-1 -> 2.10.0-1)
    [2010-04-05 01:15] upgraded gedit (2.28.3-1 -> 2.30.0-1)
    [2010-04-05 01:15] upgraded git (1.7.0.3-1 -> 1.7.0.4-1)
    [2010-04-05 01:15] upgraded libsigc++2.0 (2.2.4.2-1 -> 2.2.5-1)
    [2010-04-05 01:15] upgraded glibmm (2.22.1-1 -> 2.24.0-1)
    [2010-04-05 01:15] upgraded gucharmap (2.28.2-1 -> 2.30.0-1)
    [2010-04-05 01:16] upgraded gnome-applets (2.28.0-2 -> 2.30.0-1)
    [2010-04-05 01:16] upgraded gnome-backgrounds (2.28.0-1 -> 2.30.0-1)
    [2010-04-05 01:16] upgraded gnome-bluetooth (2.28.6-1 -> 2.30.0-1)
    [2010-04-05 01:16] upgraded vte (0.22.5-1 -> 0.24.0-2)
    [2010-04-05 01:16] upgraded gnome-desktop-sharp (2.26.0-3 -> 2.26.0-5)
    [2010-04-05 01:16] upgraded gnome-doc-utils (0.18.1-1 -> 0.20.0-1)
    [2010-04-05 01:17] upgraded gnome-games (2.28.2-1 -> 2.30.0-1)
    [2010-04-05 01:17] upgraded gnome-games-extra-data (2.28.0-1 -> 2.30.0-1)
    [2010-04-05 01:17] upgraded gnome-mag (0.15.9-1 -> 0.16.1-1)
    [2010-04-05 01:17] upgraded gnome-media (2.28.5-1 -> 2.30.0-2)
    [2010-04-05 01:17] upgraded gnome-netstatus (2.28.0-1 -> 2.28.1-1)
    [2010-04-05 01:17] upgraded gnome-nettool (2.28.0-1 -> 2.30.0-1)
    [2010-04-05 01:17] upgraded gnome-power-manager (2.28.3-1 -> 2.30.0-1)
    [2010-04-05 01:17] upgraded gnome-screensaver (2.28.3-1 -> 2.30.0-1)
    [2010-04-05 01:17] upgraded gtkmm (2.18.2-1 -> 2.20.0-1)
    [2010-04-05 01:17] upgraded gnome-system-monitor (2.28.0-1 -> 2.28.1-1)
    [2010-04-05 01:18] upgraded system-tools-backends (2.8.3-1 -> 2.10.0-1)
    [2010-04-05 01:18] upgraded liboobs (2.22.2-1 -> 2.30.0-1)
    [2010-04-05 01:18] upgraded nautilus (2.28.4-1 -> 2.30.0-1)
    [2010-04-05 01:18] upgraded gnome-system-tools (2.28.2-1 -> 2.30.0-2)
    [2010-04-05 01:18] upgraded gnome-terminal (2.28.2-1 -> 2.30.0-1)
    [2010-04-05 01:18] upgraded gtk-engines (2.18.5-1 -> 2.20.0-1)
    [2010-04-05 01:18] upgraded gnome-themes (2.28.1-1 -> 2.30.0-1)
    [2010-04-05 01:18] upgraded gnome-user-share (2.28.2-1 -> 2.30.0-1)
    [2010-04-05 01:18] upgraded gnome-utils (2.28.3-1 -> 2.30.0-1)
    [2010-04-05 01:19] upgraded xulrunner (1.9.2.2-2 -> 1.9.2.3-1)
    [2010-04-05 01:19] upgraded yelp (2.28.1-2 -> 2.30.0-1)
    [2010-04-05 01:19] upgraded gnome2-user-docs (2.28.2-1 -> 2.30.0-1)
    [2010-04-05 01:19] upgraded gok (2.28.1-1 -> 2.30.0-1)
    [2010-04-05 01:19] upgraded grep (2.6.2-1 -> 2.6.3-1)
    [2010-04-05 01:19] upgraded gstreamer0.10-bad (0.10.18-2 -> 0.10.18-3)
    [2010-04-05 01:19] upgraded neon (0.28.6-2 -> 0.28.6-4)
    [2010-04-05 01:19] upgraded gstreamer0.10-bad-plugins (0.10.18-2 -> 0.10.18-3)
    [2010-04-05 01:19] upgraded hamster-applet (2.28.2-1 -> 2.30.0.1-1)
    [2010-04-05 01:19] upgraded net-snmp (5.5-2 -> 5.5-3)
    [2010-04-05 01:19] upgraded hplip (3.9.12-5 -> 3.10.2-1)
    [2010-04-05 01:20] upgraded imap (2007e-1 -> 2007e-2)
    [2010-04-05 01:20] upgraded jre (6u18-2 -> 6u19-2)
    [2010-04-05 01:21] upgraded kdebase-workspace (4.4.2-1 -> 4.4.2-2)
    [2010-04-05 01:21] upgraded kernel26-firmware (2.6.33.1-1 -> 2.6.33.2-1)
    [2010-04-05 01:24] upgraded kernel26 (2.6.33.1-1 -> 2.6.33.2-1)
    [2010-04-05 01:24] upgraded kernel26-headers (2.6.33.1-1 -> 2.6.33.2-1)
    [2010-04-05 01:24] upgraded lib32-glib2 (2.22.5-1 -> 2.24.0-1)
    [2010-04-05 01:24] upgraded lib32-atk (1.28.0-1 -> 1.30.0-1)
    [2010-04-05 01:24] upgraded lib32-e2fsprogs (1.41.10-1 -> 1.41.11-1)
    [2010-04-05 01:24] upgraded lib32-openssl (0.9.8n-1 -> 1.0.0-2)
    [2010-04-05 01:24] upgraded lib32-heimdal (1.3.1-3 -> 1.3.2-1)
    [2010-04-05 01:24] upgraded lib32-libcups (1.4.2-5 -> 1.4.3-2)
    [2010-04-05 01:24] upgraded lib32-pango (1.26.2-1 -> 1.28.0-1)
    [2010-04-05 01:24] upgraded lib32-gtk2 (2.18.9-2 -> 2.20.0-2)
    [2010-04-05 01:24] upgraded lib32-libgl (7.7-1 -> 7.7.1-0.1)
    [2010-04-05 01:24] upgraded lib32-libxml2 (2.7.6-2 -> 2.7.7-1)
    [2010-04-05 01:24] upgraded lib32-mesa (7.7-1 -> 7.7.1-0.1)
    [2010-04-05 01:24] upgraded lib32-qt (4.6.2-2 -> 4.6.2-3)
    [2010-04-05 01:24] upgraded libepc (0.3.10-1 -> 0.3.11-1)
    [2010-04-05 01:24] upgraded libfetch (2.30-1 -> 2.30-3)
    [2010-04-05 01:24] upgraded libgail-gnome (1.20.1-1 -> 1.20.2-1)
    [2010-04-05 01:24] upgraded libgdata (0.4.0-1 -> 0.6.4-1)
    [2010-04-05 01:24] upgraded libgnomecups (0.2.3-6 -> 0.2.3-7)
    [2010-04-05 01:24] upgraded libgnomeprint (2.18.6-2 -> 2.18.7-2)
    [2010-04-05 01:24] upgraded libgnomeprintui (2.18.4-1 -> 2.18.5-1)
    [2010-04-05 01:24] upgraded librpcsecgss (0.19-2 -> 0.19-3)
    [2010-04-05 01:24] upgraded libssh (0.4.1-1 -> 0.4.1-3)
    [2010-04-05 01:25] upgraded libxml++ (2.26.0-1 -> 2.30.0-1)
    [2010-04-05 01:25] upgraded links (2.2-3 -> 2.2-4)
    [2010-04-05 01:25] upgraded lynx (2.8.7-1 -> 2.8.7-2)
    [2010-04-05 01:25] upgraded sbcl (1.0.35-1 -> 1.0.37-1)
    [2010-04-05 01:25] upgraded maxima (5.20.1-2 -> 5.20.1-3)
    [2010-04-05 01:25] upgraded mercurial (1.5-1 -> 1.5.1-1)
    [2010-04-05 01:26] upgraded miro (2.5.4-4 -> 3.0-1)
    [2010-04-05 01:26] upgraded mousetweaks (2.28.2-1 -> 2.30.0-1)
    [2010-04-05 01:26] upgraded nasm (2.07-1 -> 2.08.01-1)
    [2010-04-05 01:26] upgraded nautilus-actions (1.12.2-1 -> 2.30.0-1)
    [2010-04-05 01:26] upgraded nautilus-open-terminal (0.18-1 -> 0.18-2)
    [2010-04-05 01:26] upgraded nautilus-sendto (2.28.2-1 -> 2.28.4-1)
    [2010-04-05 01:26] upgraded samba (3.5.1-1 -> 3.5.1-2)
    [2010-04-05 01:26] upgraded nautilus-share (0.7.2-4 -> 0.7.2-5)
    [2010-04-05 01:26] upgraded network-manager-applet (0.8-2 -> 0.8-3)
    [2010-04-05 01:26] upgraded nfs-utils (1.2.2-1 -> 1.2.2-2)
    [2010-04-05 01:26] upgraded nmap (5.21-1 -> 5.21-2)
    [2010-04-05 01:26] upgraded ptlib (2.6.5-1 -> 2.6.5-2)
    [2010-04-05 01:27] upgraded opal (3.6.6-1 -> 3.6.6-2)
    [2010-04-05 01:27] upgraded openntpd (3.9p1-10 -> 3.9p1-11)
    [2010-04-05 01:28] upgraded openoffice-base (3.2.0-1 -> 3.2.0-3)
    [2010-04-05 01:28] upgraded openssh (5.4p1-3 -> 5.4p1-4)
    [2010-04-05 01:28] upgraded openvpn (2.1.1-1 -> 2.1.1-2)
    [2010-04-05 01:28] upgraded orca (2.28.3-1 -> 2.30.0-1)
    [2010-04-05 01:28] upgraded perl-crypt-ssleay (0.57-3 -> 0.57-4)
    [2010-04-05 01:28] upgraded perl-uri (1.52-1 -> 1.54-1)
    [2010-04-05 01:28] upgraded php (5.3.2-4 -> 5.3.2-6)
    [2010-04-05 01:28] upgraded php-apache (5.3.2-4 -> 5.3.2-6)
    [2010-04-05 01:28] upgraded pixman (0.16.6-1 -> 0.18.0-1)
    [2010-04-05 01:28] upgraded postfix (2.7.0-1 -> 2.7.0-2)
    [2010-04-05 01:28] upgraded qt (4.6.2-2 -> 4.6.2-3)
    [2010-04-05 01:28] upgraded qtscriptgenerator (0.1.0-3 -> 0.1.0-4)
    [2010-04-05 01:29] upgraded rhythmbox (0.12.7-1 -> 0.12.8-1)
    [2010-04-05 01:29] upgraded ruby (1.9.1_p378-1 -> 1.9.1_p378-2)
    [2010-04-05 01:29] upgraded seahorse (2.28.1-1 -> 2.30.0-1)
    [2010-04-05 01:29] upgraded seahorse-plugins (2.28.1-1 -> 2.30.0-1)
    [2010-04-05 01:29] upgraded sound-juicer (2.28.1-2 -> 2.28.2-1)
    [2010-04-05 01:29] upgraded subversion (1.6.9-2 -> 1.6.9-4)
    [2010-04-05 01:29] upgraded syslog-ng (3.0.4-3 -> 3.0.4-4)
    [2010-04-05 01:29] upgraded telepathy-glib (0.10.1-1 -> 0.10.2-1)
    [2010-04-05 01:29] upgraded tomboy (1.1.0-1 -> 1.2.0-2)
    [2010-04-05 01:29] upgraded totem (2.28.5-2 -> 2.30.0-1)
    [2010-04-05 01:29] upgraded transmission-gtk (1.92-1 -> 1.92-2)
    [2010-04-05 01:30] upgraded vala (0.7.10-1 -> 0.8.0-1)
    [2010-04-05 01:30] upgraded vinagre (2.28.1-2 -> 2.30.0-1)
    [2010-04-05 01:30] upgraded vino (2.28.1-3 -> 2.28.2-1)
    [2010-04-05 01:30] upgraded virtuoso (6.1.0-1 -> 6.1.0-2)
    [2010-04-05 01:30] upgraded wget (1.12-1 -> 1.12-2)
    [2010-04-05 01:30] upgraded wpa_supplicant (0.6.10-1 -> 0.6.10-2)
    [2010-04-05 01:30] upgraded xorg-server (1.7.6-2 -> 1.7.6-3)
    [2010-04-05 01:30] upgraded xorg-xinit (1.2.0-1 -> 1.2.1-1)
    [2010-04-05 01:30] upgraded xterm (255-1 -> 256-1)
    [2010-04-05 09:21] upgraded fofix-svn (1991-1 -> 2038-1)
    [2010-04-05 12:31] upgraded gloobus-preview-bzr (212-1 -> 214-1)
    Last edited by valandil (2010-04-06 16:52:28)

    Problem solved!
    I remembered I once configured my keyboard with HAL and /etc/hal/fdi/policy/10-keymap.fdi was set to xkb.layout=ca and xkd.variant=fr. I changed the GDM layout to Canada and removed the xkb.variant=fr from the .fdi file and everything was fixed!

  • IPhoto: strange behaviour with preview thumbnails

    Is there a simple way in iPhoto 8 to rebuild the thumbnail database?
    I recently noticed a strange behaviour iPhoto 8 has with previews: In some of my event categories, iPhoto does not display the correct preview thumbnail of the picture, but a preview thumbnail of another event. When I click on the thumbnail, it reloads the appropriate preview and it does not happen again - with that picture. Also, if I double click an event to open it, the small thumbnail of the event's key photo that is to be displayed in the title bar (next to the All Events button) is not always correct.
    Thank you for your help!
    Stefan

    I have similar problems (lately) with iPhoto 6.0.6 -- thumbnails do not equal the images they 'thumbnail' of.
    Sometimes when it opens, it (recently) asked me to rebuild the thumbnails, but not always.
    Can I force a thumbnail rebuild using the command you gave - Apple-option while opening iPhoto? In iPhoto 6.0.6 this primarily forces a new selection of a library.

  • Strange behaviour whit custom JTextField and JToolTip

    Hello everyone. I hope I'm writing in the right section and sorry if I did not search for this issue but I really don't know which keywords I should use.
    I'm using NetBeans 6.1 on WinXP and JDK 1.6.0_07, I have a custom JTextField with regex validation: when you type something that don't mach regex it shows a JToolTip. This JToolTip should disappear when the text typed is finally correct, or when the textfield loses focus (see code below).
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.Point;
    import javax.swing.JToolTip;
    import javax.swing.Popup;
    import javax.swing.PopupFactory;
    public class MyJTextField extends javax.swing.JTextField implements FormComponent
    private static Popup popUpToolTip;
    private static PopupFactory popUpFactory = PopupFactory.getSharedInstance();
    private boolean isValidated = false;
    private String regEx = "a regex";
    public MyJTextField()
    this.addKeyListener(new java.awt.event.KeyAdapter()
    public void keyReleased(java.awt.event.KeyEvent evt)
    if(evt.getKeyCode()!=java.awt.event.KeyEvent.VK_ENTER)
    validateComponent();
    else if(evt.getKeyCode()==java.awt.event.KeyEvent.VK_ENTER)
    if(isValidated)
    ((Component)evt.getSource()).transferFocus();
    this.addFocusListener(new java.awt.event.FocusAdapter()
    public void focusLost(java.awt.event.FocusEvent evt)
    if(popUpToolTip!=null){popUpToolTip.hide();}
    public void validateComponent()
    if(text.matches(regex))
    isValidated = true;
    if(popUpToolTip!=null){popUpToolTip.hide();}
    else
    isValidated = false;
    if(popUpToolTip!=null){popUpToolTip.hide();}
    String error = "C'&egrave; un errore nella validazione di questo campo";
    JToolTip toolTip = createToolTip();
    toolTip.setTipText(error);
    popUpToolTip = null;
    popUpToolTip = popUpFactory.getPopup(
    this,
    toolTip,
    getLocationOnScreen().x,
    getLocationOnScreen().y - this.getPreferredSize().height -1
    popUpToolTip.show();
    }(I've cut it a bit, here's only the lines that involve JToolTip use)
    I have many of them in a form, and when the first tooltip appears (on the first textfield I type in) it never disappears, while nex textfields work just fine.It seems the first tooltip appearing can't be overwritten or something similar. If I use this same component on any other NetBeans project, everithing works without issues.
    I have some other custom components working the same way (JComboBox, JXDatePicker), and they had this "not disappearing tooltip" issue since I changed this
    popUpToolTip = popUpFactory.getPopup(this, toolTip, getLocationOnScreen().x, getLocationOnScreen().y - this.getPreferredSize().height -1);
    whit this
    popUpToolTip = popUpFactory.getPopup(null, toolTip, getLocationOnScreen().x, getLocationOnScreen().y - this.getPreferredSize().height -1);
    but if I try it on the JTextField all textfield's tooltips stay stuck there, not only the first one appeared (while other components still works fine).
    This thing is really driving me crazy. Someone has an hint (or a link to another thread) which could explain this strange behaviour?
    Thanks in advance.

    BoBear2681 wrote:
    Note that an SSCCE wouldn't require you to post any proprietary code.Hmmm... well, I'll try again to reproduce the issue and post an SSCCE.
    BoBear2681 wrote:
    That probably indicates that the problem is somewhere other than where you're currently looking.Yes, I suppose so. Maybe it's some interference between all the custom components I created, or maybe something else that apparently doesn't conern at all. If I cannot reproduce it in an SSCCE and I'll figure out what's the cause of this mess I'll post it here for future knowledge.
    Many thanks for your advices. :)

  • KYF exhibits strange behaviour with decimals

    Hi everybody,
    a DEC-key figure (IOBJ maintenance: additional properties->BEx->decimal places: Nothing Defined) exhibits strange behaviour regarding the treatment of decimals.
    When looking at the data in the cube (InfoCube maintenance->content) the value is 2,086.
    In the query the result is 2.0900000000 (%).
    Now comes the problem: in BPS (in the buffer) the value is 2,08. The system simply truncates the figure!  This is the value which is also used in the FOX and produces the wrong result.
    I need the system to sensibly round the values correctly to 2 decimals OR work with an additional decimal place.  How can this be done?
    Thanks for any input,
    Martin

    Hi,
    In the manual planning, while designing the layout, there is a setting in data columns tab called decimals. You have to insert 2 under this. Then in the layout data will be displayed with 2 decimal places.
    Hope this helps.
    Regards,
    Isha

  • The strange behaviour of the notification

    Coherence 3.3.1/389
         .Net API 3.3.1.2
         I have C++ GUI client with grid. It shows in the grid all updates from Coherence.
         I have also the 'server' application, which inserts objects into Coherence (1 - 2 per second).
         I use 'near-scheme' with front set to local-scheme and back set to remote-cache-scheme.
         I have 3 GUI clients connected to the Coherence and i have the strange behaviour of the clients. The insert comes to one of them three times instead of one. I've checked in the debugger and it's true. The insert really comes three times. But when i've restarted the client all became to work fine.
         It's bad that i can't repeat this situation, it happens from time to time.
         Does anybody get the same situation?
         I've masked it by the checking key and version of object, but it's really strangely.
         Thanks.

    I think it's depended on the situation described in thread CacheEventFilter: Where does the filter part apply?
         Many thanks.

  • Strange Behaviour after re-installing the OS

    Hi people.
    Basically, i've been experiencing some strange behaviour with Safari since re-installing my OS. I'm running Safari 3.0.4, and i'm on a G4 iBook running 10.4.11.
    Firstly, it's not remembering passwords and user names to a few sites. My homepage is set to a Auto Forum i use daily. Now, when putting your password in you can check a little box that says 'Automatically log me in each time i visit'. I tick the box, when Safari ask's if i want the password to remembered i say yes. log-in as normal. If i then go away from the page and come back to it without quitting Safari, it's asking me to log in again. It remembers my password details etc, but doesn't perform the auto login like it used to. I've reset Safari, cleared Cookies, Cache etc, but to no avail. It's becoming quite annoying!
    Secondly-the scroll bar on the right side of the screen keeps disappearing-and when it does, i can't manually scroll down the pages with the arrow keys either. Any thoughts? If manually moving from site to site, it's ok-it's when i access my bookmarks page and the scrollbar disappears, that it seems to remove it for good. I then have to quit Safari and re-launch it. But then i'm back to square one! If i need the favourites, i'm stuffed!
    Any help appreciated...
    Dan

    Hi!
    Thanks for the reply! I've started to download the update, got Pacifist already so it's just a case of the download finishing. I'm a bit worried though, i ran disk utility earlier and it came up with 2 errors, one of which couldn't be repaired. I hope it's not the HD on it's way out and causing problems as the new HD isn't even a year old yet...
    I get a bold red message when using Disk Utility, which reads:
    "Invalid Leaf record count
    (Should be 2 instead of 46)
    1 Volume could not be repaired"
    I guess i'll give the Safari thing a go, then go for Disk Utility as per the other thread. Don't really want to wipe the HD and do another install-only done one 2 weeks ago!

  • One to many mapping - strange behaviour

    I noticed a strange behaviour which happens when working with 1 to n
    relationships. Maybe the behaviour is intended by the JDO specification or
    maybe I haven't set the proper kodo properties to make it work.
    Here's the problem:
    I have the following two classes wich I map to a database table each (using
    datastore identity):
    class Person
    private String name;
    private Collection cars;
    // setters and getters
    class Car
    private String model;
    private Person owner;
    // setters and getters
    When I have a persistent car object and I assign it to a persistent person
    like this:
    car.setOwner(person);
    and I immediately retrieve all cars of the person by calling:
    Collection c = person.getCars()
    the car ist not in the collection as I would expect it to be. In my opinion
    JDO should make sure the car is added to the collection.
    Even after I commit the whole transaction the car is still not in the
    collection.
    To make the car appear in the collection I have to create a new
    PersistentManager (when using javax.jdo.option.Optimistic=true) and refetch
    the person object again.
    Can anyone enlighten me on this problem?
    Thank you!
    Donat Hauser
    [email protected]
    mapping.jdo
    <class name="Person">
    <extension vendor-name="kodo" key="table" value="PERSON"/>
    <extension vendor-name="kodo" key="pk-column" value="ID"/>
    <extension vendor-name="kodo" key="lock-column" value="none"/>
    <extension vendor-name="kodo" key="class-column" value="none"/>
    <field name="name">
    <extension vendor-name="kodo" key="data-column"
    value="NAME"/>
    </field>
    <field name="cars">
    <collection element-type="Car"/>
    <extension vendor-name="kodo" key="inverse" value="owner"/>
    </field>
    </class>
    <class name="Car">
    <extension vendor-name="kodo" key="table" value="CAR"/>
    <extension vendor-name="kodo" key="pk-column" value="ID"/>
    <extension vendor-name="kodo" key="lock-column" value="none"/>
    <extension vendor-name="kodo" key="class-column" value="none"/>
    <field name="model">
    <extension vendor-name="kodo" key="data-column"
    value="MODEL"/>
    </field>
    <field name="owner">
    <extension vendor-name="kodo" key="data-column"
    value="OWNER"/>
    </field>
    </class>

    Donat,
    This is a bit of a philosophical question. One of the goals of JDO is to
    be as closely aligned to the Java language as possible, and Java has no
    concept of a shared relation. So, we do not perform any work to ensure
    that relations get 'magically' set on both sides. Instead, you must set
    both sides of the business relation yourself in Java code.
    The result of this is that code that you write will behave the same
    regardless of whether or not the objects are persistent. So, you can write
    test cases or non-persistent parts of your application and trust that the
    code will behave the same in both instances.
    -Fred
    In article <[email protected]>, M__ller Alfons wrote:
    >
    I noticed a strange behaviour which happens when working with 1 to n
    relationships. Maybe the behaviour is intended by the JDO specification or
    maybe I haven't set the proper kodo properties to make it work.
    Here's the problem:
    I have the following two classes wich I map to a database table each (using
    datastore identity):
    class Person
    private String name;
    private Collection cars;
    // setters and getters
    class Car
    private String model;
    private Person owner;
    // setters and getters
    When I have a persistent car object and I assign it to a persistent person
    like this:
    car.setOwner(person);
    and I immediately retrieve all cars of the person by calling:
    Collection c = person.getCars()
    the car ist not in the collection as I would expect it to be. In my opinion
    JDO should make sure the car is added to the collection.
    Even after I commit the whole transaction the car is still not in the
    collection.
    To make the car appear in the collection I have to create a new
    PersistentManager (when using javax.jdo.option.Optimistic=true) and refetch
    the person object again.
    Can anyone enlighten me on this problem?
    Thank you!
    Donat Hauser
    [email protected]
    mapping.jdo
    <class name="Person">
    <extension vendor-name="kodo" key="table" value="PERSON"/>
    <extension vendor-name="kodo" key="pk-column" value="ID"/>
    <extension vendor-name="kodo" key="lock-column" value="none"/>
    <extension vendor-name="kodo" key="class-column" value="none"/>
    <field name="name">
    <extension vendor-name="kodo" key="data-column"
    value="NAME"/>
    </field>
    <field name="cars">
    <collection element-type="Car"/>
    <extension vendor-name="kodo" key="inverse" value="owner"/>
    </field>
    </class>
    <class name="Car">
    <extension vendor-name="kodo" key="table" value="CAR"/>
    <extension vendor-name="kodo" key="pk-column" value="ID"/>
    <extension vendor-name="kodo" key="lock-column" value="none"/>
    <extension vendor-name="kodo" key="class-column" value="none"/>
    <field name="model">
    <extension vendor-name="kodo" key="data-column"
    value="MODEL"/>
    </field>
    <field name="owner">
    <extension vendor-name="kodo" key="data-column"
    value="OWNER"/>
    </field>
    </class>
    Fred Lucas
    SolarMetric Inc.
    202-595-2064 x1122
    http://www.solarmetric.com

  • Report S_ALR_87013542 strange behaviour

    Hi All,
    Report S_ALR_87013542 - Actual/Comm/Total/Plan in COAr crcy -  is showing up cross signs in some of the columns.When the cross sign (like any other column value) is clicked the line item detail are sown correctly.
    Has anybody encountered this kind of issue before ?
    I googled and searched various forums but all in vain.
    Please provide inputs to correct this strange behaviour of Report S_ALR_87013542. Thanks!
    Regards
    Dev

    Hello Dev,
    Did you execute report RKACOR04 for the affected object number and checked if this still happens ?
    Suresh Jayanthi.

Maybe you are looking for

  • Word Headings- ALL become bookmarks in the PDF

    Just started using Acrobat X Pro. (bought with TCS4) When I make a Word 2010 document into a pdf, ALL the Word headings seem to become bookmarks visible in the left pane of Acrobat or the Reader, and of the main chapter hedaings, every subsection is

  • Blue Ray DVD Burner - Which one should I buy?

    I have a video camera that records Blue Ray quality video and i would like to buy an external Blue Ray DVD burner to burn these movies. Can anyone recommend a good one to buy?

  • Duplicate Entries in Internal Tables

    Hallo Friends, It Would be nice if some one let me know, if there is a way in ABAP to select the duplicates records in an internal tables. Lets say I have two internal tabels, itabA have following structure: BNAME  |          WORKAREA   |   ROLES abc

  • IOS 7 rifiutare chiamate in stand by

    Da quando ho aggiornato il mio iPhone 5 a iOS 7, quando il telefono è in lock mode ( inserire codice x sbloccare ), e ricevo una telefonata sparisce il tasto rifiuta e appare un slide to responde, invece del consueto tasto rispondi... E anche rifiuta

  • -1202 error in iTunes with Purchased

    I'm on a Macbook Pro 15" runnning thae latest OS, patches, and Itunes.  Whenever I'm in Itunes and I click on Purchased I get the following; I have fully removed (no kidding) Itunes and reinstalled but still have this problem.  While I imagine I may