Joins with Toplink  : Strange Problem!

Hi!
I'm trying get the data from EMP table where the column mgr (ValueHolderInterface instance in Toplink POJO) is a self referential key to the empno.
Now I want to execute a query like this :
SELECT t0.EMPNO, t0.ENAME, t0.JOB , t0.MGR FROM EMP t0, EMP t1 WHERE (t1.EMPNO = t0.MGR);
And I used ReportQuery to get this ;
see the following code
Session session = getSessionFactory().acquireSession();
ExpressionBuilder builder = new ExpressionBuilder();
Expression expression = builder.get("mgr").get("empno").equal(builder.get("empno") );;
ReportQuery query = new ReportQuery(Emp.class,builder);
query.addAttribute("empno");
query.addAttribute("ename");
query.addAttribute("job");
query.addAttribute("mgr",builder.get("mgr").get("empno"));
query.addAttribute("mgr",expression);
query.dontMaintainCache();
List<ReportQueryResult> results = (List<ReportQueryResult> )
session.executeQuery(query);
And the Toplink Generated SQL is :
SELECT t0.EMPNO, t0.ENAME, t0.JOB, t1.EMPNO FROM EMP t0, EMP t1 WHERE (t1.EMPNO = t0.MGR)
which is almost similar.
But I'm getting an exception as below:
Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: ORA-00904: "T0"."MGR": invalid identifier
Error Code: 904
Further ,
I tried to get the data from multile tables as below:
The intended SQL :
SELECT E.EMPNO,E.ENAME,E.JOB,E.MGR,E.SAL,E.DEPTNO,D.DNAME,D.LOC FROM EMP E, DEPT D WHERE E.DEPTNO=D.DEPTNO;
And for this I wrote the code as below :
ExpressionBuilder builder = new ExpressionBuilder();
Expression expression = builder.get("dept").get("deptno").equal( builder.get("dept").get("deptno"));;
ReportQuery query = new ReportQuery(Emp.class,builder);
query.addAttribute("empno");
query.addAttribute("ename");
query.addAttribute("job");
//query.addAttribute("mgr",builder.get("mgr").get("empno"));
// query.addAttribute("mgr");
query.addAttribute("ename");
query.addAttribute("sal");
query.addAttribute("deptno",builder.get("dept").get("deptno"));
//query.addAttribute("dept",expression);
query.addAttribute("dname",builder.get("dept").get("dname"));
query.addAttribute("loc",builder.get("dept").get("loc"));
query.dontMaintainCache();
//query.addAttribute("mgr",expression);
List<ReportQueryResult> results = (List<ReportQueryResult> ) session.executeQuery(query);
And the Query Generated by the Toplink is :
SELECT t0.EMPNO, t0.ENAME, t0.JOB, t0.ENAME, t0.SAL, t1.DEPTNO, t1.DNAME, t1.LOC FROM EMP t0, DEPT t1 WHERE (t1.DEPTNO = t0.DEPTNO);
which is perfect .
But the Toplink error message is :Internal Exception: java.sql.SQLException: ORA-00904: "T0"."SAL": invalid identifier
Error Code: 904
And I tried to do this using ReadAll Query as below :
The code I wrote is :
ExpressionBuilder builder =new ExpressionBuilder();
// Expression expression = builder.get("");
ReadAllQuery query = new ReadAllQuery(Emp.class,builder);
query.addJoinedAttribute("dept");
query.dontMaintainCache();
List results = (List) session.executeQuery(query);
The Toplink Generated SQL is :
SELECT t1.EMPNO, t1.ENAME, t1.JOB, t1.HIREDATE, t1.EMPDET, t1.SAL, t1.COMM, t1.DEPTNO, t1.MGR, t0.DEPTNO, t0.DNAME, t0.LOC FROM DEPT t0, EMP t1 WHERE (t0.DEPTNO = t1.DEPTNO)
And the error is :
Internal Exception: java.sql.SQLException: ORA-00904: "T1"."MGR": invalid identifier
Error Code: 904
What mistake am I making ?
The generated SQL from the Toplink is working fine, I tested it.. but the Strange error message given are puzzling me..
Could anyone point me where I'm wrong ?
Thanks in advance,
Samba.

Looks like you were trying to use the attributes being returned to define the query's selection criteria.
To find self-reference manager's in our shipped Employee example I can use:
        ExpressionBuilder eb = new ExpressionBuilder();
        ReportQuery rq = new ReportQuery(Employee.class, eb);
        rq.addAttribute("id");
        rq.addAttribute("firstName");
        rq.addAttribute("lastName");
        rq.setSelectionCriteria(eb.get("manager").get("id").equal(eb.get("id")));
        List<ReportQueryResult> results = (List<ReportQueryResult> ) session.executeQuery(rq);
    }and the generated SQL is: (note: multi-table mapping sith SALARY in use)
SELECT t0.EMP_ID, t0.F_NAME, t0.L_NAME FROM SALARY t3, EMPLOYEE t2, SALARY t1, EMPLOYEE t0 WHERE (((t2.EMP_ID = t0.EMP_ID) AND (t1.EMP_ID = t0.EMP_ID)) AND ((t2.EMP_ID = t0.MANAGER_ID) AND (t3.EMP_ID = t2.EMP_ID)))If you also add a direct query-key for the manager's id ('managerId') we can avoid the self join:
        ExpressionBuilder eb = new ExpressionBuilder();
        ReportQuery rq = new ReportQuery(Employee.class, eb);
        rq.addAttribute("id");
        rq.addAttribute("firstName");
        rq.addAttribute("lastName");
        rq.setSelectionCriteria(eb.get("managerId").equal(eb.get("id")));
        List<ReportQueryResult> results = (List<ReportQueryResult> ) session.executeQuery(rq);And the SQL looks like:
SELECT t0.EMP_ID, t0.F_NAME, t0.L_NAME FROM EMPLOYEE t0, SALARY t1 WHERE ((t0.MANAGER_ID = t0.EMP_ID) AND (t1.EMP_ID = t0.EMP_ID))Cheers,
Doug

Similar Messages

  • Weblogic 9.1 with toplink JPA - Problem creating entityManagerFactory

    I am using weblogic 9.1 with toplink jpa provider.
    I am getting the error while creating entityManagerFactory.
    Exception stack trace
    faces.FacesException: #{LogonMB.authenticateLogin}: javax.faces.el.EvaluationException: java.lang.ExceptionInInitializerError
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:98)
         at javax.faces.component.UICommand.broadcast(UICommand.java:332)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:287)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:401)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:268)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3153)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
    Caused by: javax.faces.el.EvaluationException: java.lang.ExceptionInInitializerError
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:150)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:92)
         ... 19 more
    Caused by: java.lang.ExceptionInInitializerError
         at com.arisglobal.cc.service.impl.PreferencesServiceImpl.getEntityManager(PreferencesServiceImpl.java:45)
         at com.arisglobal.framework.service.AbstractBusinessService.(AbstractBusinessService.java:24)
         at com.arisglobal.cc.service.impl.PreferencesServiceImpl.(PreferencesServiceImpl.java:36)
         at com.arisglobal.cc.factory.BusinessServiceFactory.createPreferencesService(BusinessServiceFactory.java:113)
         at com.arisglobal.cc.mb.LogonManagedBean.authenticateLogin(LogonManagedBean.java:51)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
         ... 20 more
    Caused by: Exception [TOPLINK-34002] (Oracle TopLink Essentials - 2006.7 (Build 060720)): oracle.toplink.essentials.exceptions.XMLParseException
    Exception Description: An exception occurred while processing persistence.xml from URL: file:/D:/ClinicalConnect/4. CODING/web/WEB-INF/classes/META-INF/persistence.xml. A SAXParser instance could not be created.
    Internal Exception: org.xml.sax.SAXNotRecognizedException: http://java.sun.com/xml/jaxp/properties/schemaLanguage
         at oracle.toplink.essentials.exceptions.XMLParseException.getXMLParseException(XMLParseException.java:101)
         at oracle.toplink.essentials.exceptions.XMLParseException.exceptionCreatingSAXParser(XMLParseException.java:73)
         at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processPersistenceXML(PersistenceUnitProcessor.java:315)
         at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processPersistenceArchveFromUnconvertableURL(PersistenceUnitProcessor.java:90)
         at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processPersistenceArchive(PersistenceUnitProcessor.java:202)
         at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.getPersistenceUnits(PersistenceUnitProcessor.java:77)
         at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initPersistenceUnits(JavaSECMPInitializer.java:222)
         at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initialize(JavaSECMPInitializer.java:240)
         at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initializeFromMain(JavaSECMPInitializer.java:277)
         at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.getJavaSECMPInitializer(JavaSECMPInitializer.java:80)
         at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:118)
         at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
         at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:60)
         at com.arisglobal.cc.helper.ResourceManager.(ResourceManager.java:8)

    hi JavaCrazyLover
    u got why u getting the error i ma getting similar error its running fine in 8.1 but in web9.1 it is giving errors in some jsp pages may be due to versions or name spacing ie we write in top of the page DTD schema am not sure but i think , there is no jars to add on as such web 9.1 is upgraded one and it supports all files some where there will be conflicts between versions example JDK 1.5and 1.4 enum is a keyword in 9.1 but in normal in 8.1 if u get the solution for this error please mail me to [email protected]
    rgds
    Mohammed Mansoor

  • Please help with very strange problem,Am I the only one......

    I am running Photoshop CS5 on a Q6600, 6 gigs of ram 3 Tbytes HD space and a 8600GT 512 video card. CS5 runs great until I add a configurator 2 panel, then strange things happen. When I select a tool using a keyboard shortcut, is changes very slowly and then reverts back to the original tool. Switching between layers in the layers panel is very slow. None of this happens untill I open a custom CF2 panel. I used custom configurator panels in CS4 with no problems and my workflow now almost depends on them.
    I have tried everything I can think of, I turned off open GL, changed all the advanced options in open GL, removed all plugins etc.
    Any suggestions would be greatly appreciated.
    Tom

    You are not alone.  There are other post where those with custom configurator panels are having delay problems.  No fix that I have seen yet.
    Hope you have not uninstalled CS4.

  • Novice user needs help with associations (strange problem)

    Background
    =======
    I am in the process of updating several Hyperion reports from version 8.3 to 9.3.
    Each reports contains a number of sections/frames (eg. Home, Segments, Basic, Location, etc), and each frame contains several items - tables, pivot tables and charts.
    Three out of the four reports are working perfectly, and when I connect to each using Dashboard Studio (DS) I can see that the associations for all the items are assigned correctly.
    The problem
    ========
    Report 4 only has associations assigned to two of the sections, but the basic functionality (selecting stuff to update charts and tables etc) is working.
    I now need to enable the "export" and "sort" buttons in the remaining sections and the only way to do this is to associate the remaining sections using DS. After doing this via the "make a best-guess association" button, the basic functionality is now broken - many charts, pivots and tables have had their visible properties turned off.
    Observations
    =========
    All four reports have the following lines of code at the top of each section:
    if (ActiveDocument.Qiq_blnTemplateInitialized)
    { ActiveDocument.Qiq_clsGlobals.Qiq_base_Frame_OnActivate(this) }
    If I remove this code in report 4 the basic functionality is restored but there are now issues with the drop-down lists not returning to their initial (unselected) states.
    So I think the issue is related to associations and frames. Any thoughts?
    Thankyou
    Jon

    I would suggest you try a fresh installation of Leopard on your computer. Make sure you back-up your files that you want to keep before proceeding.
    Use the install disc that came with your computer, either by inserting the disc in your disc drive and restarting the computer while holding down the c key, or by initiating the installer from the window that opens automatically when the disc is inserted.
    Follow the prompts once presented with the installation environment, but watch for an "Options" button in the lower-left corner of the window. When presented with this, choose "Erase & Install" and select "Mac OS Extended (Journaling)". Continue to the next screen.
    Look for the "Customize" button in the lower-left corner. With this screen, you're allowed to select what's installed on your computer. You likely don't need all the printer drivers, and you may or may not need the extra languages packs. X11 is your choice, but I choose to have it installed despite never using it.
    Start the installation, and when the installer starts "verifying" your install disc, click the Skip button. Don't interfere with the installation process, and the computer will restart on its own when finished.
    Setup your computer as before, and then use the Tiger install disc to re-install your iLife applications. You may contact me directly if you'd like to ask questions (alter the following address): spam [at] emoore [dot] org

  • Please help me with this strange problem again!

    Hi gurus,
    I can't, for the life of me, figure out why this does not work in a procedure but works in an anonimous block.
    The XML is like this (part of it),
    <CaseNotification messageProducedDateTime="2005-07-20T13:58:11-05:00" xmlns="http://www.courts.state.mn.us/CourtXML/2.0.0">
                   <NotificationAdminHeader caseNumberKey="87CR0569" xmlns="http://www.courts.state.mn.us/CourtXML/2.0.0">
                        <CaseCountyIdentifier>87</CaseCountyIdentifier>
                        <CaseLocationText>Yellow Medicine County</CaseLocationText>
                        <BaseCaseTypeText>Adult</BaseCaseTypeText>
                        <CaseCategoryText>Criminal</CaseCategoryText>
                        <PartyIdentifier partyKey="854">
                             <PartyCaseAssociationText>Jurisdiction</PartyCaseAssociationText>
                        </PartyIdentifier>
                        <PartyIdentifier partyKey="123637">
                             <PartyCaseAssociationText>Defendant</PartyCaseAssociationText>
                        </PartyIdentifier>
                   </NotificationAdminHeader>
                   <InterimConditionsNotification>
                        <TriggeredDateTime>2005-07-20T13:57:53-05:00</TriggeredDateTime>
                        <NotificationEvent>InterimConditionsDeleted</NotificationEvent>
                        <InterimConditionsOrder orderEventKey="1760110">
                             <OrderDate>2005-07-20</OrderDate>
                             <OrderedBy judgeKey="00001J">
                                  <JudgeName>
                                       <PersonGivenName>John</PersonGivenName>
                                       <PersonMiddleName>P.</PersonMiddleName>
                                       <PersonSurName>Smith</PersonSurName>
                                       <PersonFullName>Smith, John P.</PersonFullName>
                                  </JudgeName>
                                  <JudicialAgencyIdentifier>MN011015J</JudicialAgencyIdentifier>
                             </OrderedBy>
                             <CourtCaseNumber documentVersion="1" effectiveDateTime="2005-06-06T00:00:00-06:00">
                                  <MNCISCaseNumber>
                                       <CountyNumber>87</CountyNumber>
                                       <CaseType>CR</CaseType>
                                       <YearFiled>05</YearFiled>
                                       <SequenceNumber>69</SequenceNumber>
                                  </MNCISCaseNumber>
                                  <CaseNumberIdentifier caseNumberKey="87CR0569">87-CR-05-69</CaseNumberIdentifier>
                             </CourtCaseNumber>
                             <ConditionSubject>
                                  <Party partyKey="123637" currentNameIndicator="true">
                                       <StandardName>
                                            <PersonGivenName>Clanry</PersonGivenName>
                                            <PersonSurName>Ogavitz</PersonSurName>
                                            <PersonFullName>Ogavitz, Clanry</PersonFullName>
                                       </StandardName>
                                       <PartyCaseAssociationText>Defendant</PartyCaseAssociationText>
                                  </Party>
                             </ConditionSubject>
                             <InterimConditions>
                                  <InterimConditionText>Anger management</InterimConditionText>
                                  <InterimConditionAmount>0</InterimConditionAmount>
                             </InterimConditions>
                             <InterimConditions>
                                  <InterimConditionText>Attend AA (Alcoholics Anonymous)</InterimConditionText>
                                  <InterimConditionAmount>5000</InterimConditionAmount>
                             </InterimConditions>
                        </InterimConditionsOrder>
                   </InterimConditionsNotification>
              </CaseNotification>
    The code is basically the same except that in the procedure the passing clause gets a differnt param, which is the passed in param from the procedure.
    xmltable
                             xmlnamespaces
                             ---     'http://schemas.xmlsoap.org/soap/envelope/' as "saop",
                                  'http://www.courts.state.mn.us/CourtXML/2.0.0' as "ic"
                             'for $ics in //ic:CaseNotification/ic:InterimConditionsNotification/ic:InterimConditionsOrder[@orderEventKey = $val/oeKey]/ic:InterimConditions
                             return
                             <ic:ICS>                    
                                  <ic:ICSText>{$ics/ic:InterimConditionText}</ic:ICSText>
                                  <ic:ICSAmount>{$ics/ic:InterimConditionAmount}</ic:ICSAmount>
                             </ic:ICS>'
                             passing p_XMLDoc, xmlelement("oeKey", v_OEKey) as "val"
                             columns               
                             ICSText          varchar2(100)      path '/ic:ICS/ic:ICSText',
                             ICSAmount     number           path '/ic:ICS/ic:ICSAmount'
    The strange thing is the procedure gets the ic:ICSText with the namespace value, which is http://www.courts.state.mn.us/CourtXML/2.0.0, so the finaly result is
    the whole thing: <InterimConditionText xmlns="http://www.courts.state.mn.us/CourtXML/2.0.0">Anger management</InterimConditionText>.
    I get the correct values when testing with the anonimous code!
    What did I do wrong? Please help!
    Thank you.
    Ben

    Hi gurus,
    OK, I did another test. I ran the same PL/SQL anonymous block that gets the correct element value in 10.2.0.3.0 and it gets the same wrong value: the element name plus the namespace value and the data itself. It gets the correct element value in 10.2.0.1.0 (my local database).
    Could anyone help me with this?
    Thanks!
    Ben

  • Please, help with this strange problem

    Hi,
    I'm trying to get the serial value of a informix serial column after inserting a record. I'm using the ifxjdbc driver for Informix (v 2.2).
    I've written the code below:
    Connection conn = null;
    PreparedStatement st = null;
    try
    conn = ds.getConnection();
    st = conn.prepareStatement("INSERT INTO Comunicats (vchTitle) "+
    "VALUES (?)");
    st.setString(1,vchTitle);
    if (st.executeUpdate() != 1) throw new EJBException();
    /** Now getting the Primary key inserted **/
    long sCodCom = ((IfmxStatement)st).getSerial();
    st.close();
    conn.close();
    where I'm getting the connection from a datasource (ds) connected to a Informix pool using that driver (com.informix.jdbc.ifxDriver)
    This code inserts the row but fails getting the serial value. The error message is:
    "java.lang.ClassCastException: weblogic.jdbc.rmi.SerialPreparedStatement (...) "
    Obviously, the cast ((IfmxStatement)st) doesn't work.
    If I change how to get the connection, and I use the DriverManager and declare a Statement st variable (instead of a preparedStatement variable):
    conn = DriverManager.getConnection(Informix_Url);
    Statement st = conn.createStatement();
    int nRet = st.executeUpdate("INSERT INTO ...");
    Then it works.
    But I don't wanna use the DriverManager. I wanna use my pool and datasource to get the connection.
    Has anybody tried something similar successfully?
    Thanks a lot.
    Joan.

    Hello jbalaguero,
    We are now facing the same problem ie. it works with DriverManager connection but not with Weblogic Connection Pool connection!
    Where you able to solve this problem? If yes please tell how!
    Thanks.
    Hi,
    I'm trying to get the serial value of a informix
    serial column after inserting a record. I'm using the
    ifxjdbc driver for Informix (v 2.2).
    I've written the code below:
    Connection conn = null;
    PreparedStatement st = null;
    try
    conn = ds.getConnection();
    st = conn.prepareStatement("INSERT INTO Comunicats
    (vchTitle) "+
    "VALUES (?)");
    st.setString(1,vchTitle);
    if (st.executeUpdate() != 1) throw new
    EJBException();
    /** Now getting the Primary key inserted **/
    long sCodCom = ((IfmxStatement)st).getSerial();
    st.close();
    conn.close();
    where I'm getting the connection from a datasource
    (ds) connected to a Informix pool using that driver
    (com.informix.jdbc.ifxDriver)
    This code inserts the row but fails getting the serial
    value. The error message is:
    "java.lang.ClassCastException:
    weblogic.jdbc.rmi.SerialPreparedStatement (...) "
    Obviously, the cast ((IfmxStatement)st) doesn't work.
    If I change how to get the connection, and I use the
    DriverManager and declare a Statement st variable
    (instead of a preparedStatement variable):
    conn = DriverManager.getConnection(Informix_Url);
    Statement st = conn.createStatement();
    int nRet = st.executeUpdate("INSERT INTO ...");
    Then it works.
    But I don't wanna use the DriverManager. I wanna use
    my pool and datasource to get the connection.
    Has anybody tried something similar successfully?
    Thanks a lot.
    Joan.

  • Searching word docs with verity - strange problem

    I am searching word documents using cfsearch. These documents
    are basically forms.
    Some of the fields such as name etc. are with back fill
    enable for user input. So if I search the names in this field with
    back fill I get 0 records.
    If it's a plain text it's can be searched.
    Can anyone please help!
    Thanks

    pr_coldfusion-
    You can grab the updater here:
    http://www.adobe.com/support/coldfusion/downloads_updates.html#mx7
    -Courtney

  • Help me with a strange problem-itunes wont re-install

    Hi there. I recently went to open my iTunes, and instead of opening, the windows installer started. Apparently it thinks iTunes was never on my computer. I try it again, and let it install. I then get an error message that reads,
    "Error writing to file C:\Program Files\iTunes\iTunes.Resources\nb.lproj\Localizable.strings. Verify that you have access to that directory."
    Now I've never gotten that error before, and I have access to that directory, because I have administrator rights on my computer. Can anyone please help me out?

    "Error writing to file C:\Program Files\iTunes\iTunes.Resources\nb.lproj\Localizable.strings. Verify that you have access to that directory."
    error messages like that (especially citing files in the lproj folders) are often associated with file damage or disk damage in the vicinity of the files.
    so let's try running a chkdsk over your C drive:
    How to perform disk error checking in Windows XP
    does the chkdsk find/repair any damage? if so, does an itunes install go through properly afterwards?

  • Urgent help need with a strange problem. Thank you.

    Hi.
    I'm trying to help a friend.
    When she downloads pictures from her camera into Lightroom and selects her external drive and picture folder the pictures always end up in her /user/documents folder. I've seen this myself.
    They do not go to the selected drive/folder but always to her documents folder. Any idea what could be going on PLEASE.
    Thank you much.
    Tom

    Try dpreview. com
    They have a mac forum and very smart group of folks.

  • Strange problem with SQL query in toad.

    Guys,
    My colleague is up with a strange problem with an SQL query that if it is run in toad encounters the "ORA-03113: end-of-file on communication channel" problem,but if run in SQL plus executes just fine.
    Do anyone have thoughts about this strange error in toad?
    Thanks!!!!
    Regards,
    Bhagat

    Not sure what version of TOAD you have but it may have shipped with SQLMonitor which montiors SQL sent from Windows apps . Navigation should be similar to;
    Start~Programs~Quest Software~TOAD for Oracle~Tools~SQLMonitor
    or
    C:\Program Files\Quest Software\Toad for Oracle\SQLMonitor.exe
    To use it, start TOAD and connect, start SQLMonitor and click the checkbox for TOAD.exe, then execute the query. SQLMonitor will show you the actual query that TOAD sent to the client. It may be exactly what you sent or it may contain some extras.

  • Strange Problem with PAR deployment.

    Hi Everybody,
    I am undergoing with the strange problem with PAR deployment. When I am deploying any Par file its going successful but when again If I am changing this same PAR file in NWDS and deploying it ... its deploying but not showing the updated deployment version. To see the updated version, every time, I have to go Portal->System Admin->Support->Admin Console and DELETE the existing PAR file. But this procedure takes too time to work on each and every time. Can you help me with some new concept where the new deployed version will get updated on previous one without any manual process or if this something related to cache problem then how to work out?
    Thanks,
    Roshan Gupta

    Hi,
    If it saves you time you can also deploy from here:
    .../irj/servlet/prt/portal/prtroot/com.sap.portal.runtime.system.console.ClusterAdminConsole
    In some cases (rarely) I observed the behavior you described above.
    In thoes cases after deploying the file I click the "clean" button on the bottom, since after the deployment it contains the name of the par you just uploaded it'll save you the time of looking for that par to earase.
    After that you have to deploy the par again, but again it's allready in the browse console box.
    Best Regards,
    Nadav.

  • WLI strange problem - Urgent!

    Hi there,!!!
    I hope somebody can help me with this strange problem
    We are getting this error when we use ToString(XPath("....")) in the workflow.
    funny thing here is that class that is not found is located in the wlpi-ejb.jar
    Enviroment
    WLS6.1 sp3 - WLI2.1 sp2 on linux Red Hat 7.2
    BPMDomain
    javax.transaction.TransactionRolledbackException: EJB Exception: : java.lang.NoClassDefFoundError:
    com/bea/wlpi/server/common/DataConversions
    at com.bea.wlpi.common.ClassInvocationDescriptor.invokeConstructor(Unknown
    Source)
    at com.bea.wlpi.server.workflow.action.ActionBusinessOperation.execute(Unknown
    Source)
    at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.executeActions(Unknown
    Source)
    at com.bea.wlpi.server.workflow.Task.executeActions(Unknown Source)
    at com.bea.wlpi.server.workflow.Task.activate(Unknown Source)
    at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccessors(Unknown
    Source)
    at com.bea.wlpi.server.workflow.Decision.activate(Unknown Source)
    at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateS
    uccessors(Unknown Source)
    at com.bea.wlpi.server.workflow.Start.activate(Unknown Source)
    at com.bea.wlpi.server.workflow.Workflow.start(Unknown Source)
    at com.bea.wlpi.server.workflow.Workflow.instantiate(Unknown Source)
    at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean$1.invoke(
    Unknown Source)
    at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.performWi
    thErrorHandling(Unknown Source)
    at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.instantia
    te(Unknown Source)
    at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean_h7kt4j_EO
    Impl.instantiate(WorkflowProcessorBean_h7kt4j_EOImpl.java:736)
    at com.bea.wlpi.server.eventprocessor.EventProcessor.checkTrigger(Unknow
    n Source)
    at com.bea.wlpi.server.eventprocessor.EventProcessor.onEvent(Unknown Sou
    rce)
    at com.bea.wlpi.server.eventlistener.EventListenerBean.onMessage(Unknown
    Source)

    Hi Carl
    What does the log say?
    Here's some link to some dsl- Troubleshooting:
    http://www.cisco.com/en/US/products/hw/routers/ps380/products_configuration_guide_chapter09186a0080118d1c.html
    Cheers
    Stephan

  • Problems with Toplink integration with JTS and WSAD

    We have a very strange problem.
    Description:
         We are attempting to integrate with JTS, insuring that TopLink does its transactional activity within the scope of a JTS transaction, as described in the Foundation Library Guide.
         We have a stateless session bean, a method of which implements a simple "insert" on a database table registerObject() on a unit of work). This bean is configured to use bean-managed transactions, but with a default resolver of rollback.
         The bean is launched in the WSAD test environment.
         When the bean method is invoked from the WSAD Universal Test Client (web app that runs in the same app server allowing discovery and unit test of bean methods), the code works. A row is inserted into the table, etc.
         Same code, same method, same (stateless) bean, same instance of the WSAD test environment, if the bean method is invoked from outside the application server (via a JUnit test driver that discovers the session bean via JNDI), the code breaks. The final JTS commit catches a javax.transaction.RollbackException, apparently without any sort of stack trace tacked to the exception printStackTrace() doesn't result in anything). No row is inserted.
         We can call the bean alternately, via these two approaches, under the same instance of test environment, and get different behavior.
         We don't understand. All (hopefully) of the relevant details follow.
    We are using:
         WSAD Version: 5.0.1 Build id: 20030423_1316
         TopLink - 9.0.3.3 (Build 430)
         Oracle 9i
    From our sessions.xml:
         <login>
              <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
              <datasource>project</datasource>
              <platform-class>oracle.toplink.internal.databaseaccess.OraclePlatform</platform-class>
              <uses-external-connection-pool>true</uses-external-connection-pool>
              <uses-external-transaction-controller>true</uses-external-transaction-controller>
         </login>
         <external-transaction-controller-class>oracle.toplink.jts.was.JTSExternalTransactionController_5_0</external-transaction-controller-class>
    From our project XML:
         <uses-external-connection-pooling>true</uses-external-connection-pooling>
         <uses-external-transaction-controller>true</uses-external-transaction-controller>
    The code that breaks:
         SessionManager sm = SessionManager.getManager();
         Server ss = (Server) sm.getSession("project", TestBean.class.getClassLoader());
         ClientSession cs = ss.acquireClientSession();
         Context c = new InitialContext();
         UserTransaction t = (UserTransaction) c.lookup("java:comp/UserTransaction");
         t.begin();
         UnitOfWork u = ss.getActiveUnitOfWork();
         u.registerObject(value);
         u.commit();
         t.commit(); /* this throws javax.transaction.RollbackException */
    Thanks.

    Strange problem, could be a Websphere issue, or an issue with the JTSExternalTransactionController_5_0.
    Try configuring TopLink to not use JTS and see if the same problem still occurs. Also turn on TopLink logging and exception logging and your Websphere server logging to see if you can get the real exception and stack that is causing the RollbackException.
    This could be an issue with the JTSExternalTransactionController_5_0 as the original version of the controller did have a JTS issue. Make sure you are no the latest patch and check with support to see if they have a patch for this problem.

  • Strange problem when joining two tables

    Hi,
    I have recently encountered a strange problem on an Oracle 11gR2 database which is optimized for Datawarehouse usage.
    I am using two tables that have a relationship enforced by two fields of type NUMBER(10).
    The problem is that when I am joining these two tables very often I get strange results and when I re-execute the query I get a different result. I saw in the explain plan that the Hash Join is used for joining these two tables.
    select count(*)
    from recharge_history rh, recharge_history_balance rhb
    where rh.recharge_id = rhb.recharge_id
    and rh.recharge_id2 = rhb.recharge_id2
    and trunc(rh.recharge_date_time) between '30-Dec-2012' and '31-Dec-2012'
    If I explicitly set the Join method to some other type through SQL Hints, or if I use to_number function when joining (even though the two fields used for join in both tables are of NUMBER(10) type), I get the correct result, like for example below:
    select /*+ USE_MERGE (rh rhb) */
    count(*)
    from recharge_history rh, recharge_history_balance rhb
    where rh.recharge_id = rhb.recharge_id
    and rh.recharge_id2 = rhb.recharge_id2
    and trunc(rh.recharge_date_time) between '30-Dec-2012' and '31-Dec-2012'
    select
    count(*)
    from recharge_history rh, recharge_history_balance rhb
    where to_number(rh.recharge_id) = t_number(rhb.recharge_id)
    and to_number(rh.recharge_id2) = (to_number)rhb.recharge_id2)
    and trunc(rh.recharge_date_time) between '30-Dec-2012' and '31-Dec-2012'
    Thank you for your time.
    Edrin

    Hi, Edrin,
    961841 wrote:
    Hi,
    I have recently encountered a strange problem on an Oracle 11gR2 database which is optimized for Datawarehouse usage.
    I am using two tables that have a relationship enforced by two fields of type NUMBER(10).
    The problem is that when I am joining these two tables very often I get strange results and when I re-execute the query I get a different result. I saw in the explain plan that the Hash Join is used for joining these two tables.
    select count(*)
    from recharge_history rh, recharge_history_balance rhb
    where rh.recharge_id = rhb.recharge_id
    and rh.recharge_id2 = rhb.recharge_id2
    and trunc(rh.recharge_date_time) between '30-Dec-2012' and '31-Dec-2012'
    Don't try to compare DATEs with VARCHAR2s, such as '30-Dec-2012'. The VARCHAR2 '31-Aug-2012' is between '30-Dec-2012' and '31-Dec-2012'; so are '31-Aug-2013' and '30-Mar-1999'.
    That may not be your only problem, but it's still a problem.
    If you're getting incosistent results, then it sounds like a bug. Start a service request with Oracle support.

  • Problem with outer join with filter on join column

    Hi,
    In physical layer I have one dimension and two facts, and there's an outer join between the facts.
    dim_DATE ,
    fact_1 ,
    fact_2
    Joins:
    dim_DATE inner join fact_1 on dim_DATE.DATE = fact_1.DATE
    fact_1 left outer join fact_2 on fact_1.DATE = fact_2.DATE and fact_1.SOME_ID = fact_2.SOME_ID
    When I run a report with a date as a filter, OBIEE executes "optimized" physical SQL:
    select fact1.X, fact2.Y
    from
    Fact_1 left outer join on fact_1.DATE = fact_2.DATE and fact_1.SOME_ID = fact_2.SOME_ID
    where Fact_1.DATE = TO_DATE('2009-05-28' , 'YYYY-MM-DD' )
    and  Fact_2.DATE = TO_DATE('2009-05-28' , 'YYYY-MM-DD')
    The filter on Fact_2.DATE effectively replaces outer join with inner.
    Is there a way to disable this "optimization", which is actually very good for inner joins, but doesn't allow outer joins?
    Thanks in advance,
    Alex
    Edited by: AM_1 on Aug 11, 2009 8:20 AM

    If you want to perform a Fact-based partitioning with OBIEE (two fact with the same dimension), you have to :
    * create in your physical layer for each fact table the joins with the dimension
    * create in the Business Model layer ONE star schema with ONE logical fact table containing the columns of your two physical fact table
    In this way when you choose minimal one column of your fact1 and one column of your fact2, OBIEE will perform two query against each fact table/dimension, join them with an OUTER JOIN and your problem will disappear.
    Cheers
    Nico

Maybe you are looking for

  • How to provide h ref dynamically plz help me its urgent

    Hello all String fno=null; ServletContext context=getServletContext(); context.setAttribute("fno",""); PreparedStatement st=dbcon.prepareStatement("select * from student where name=?"); st.setString(1,name); ResultSet rs=st.executeQuery(); while(rs.n

  • Preview video jagged in CS3 (after system upgrade)

    My production company just upgraded our production machines: Intel Core i7 870 chips 16 GB DDR3 ram GeForce GTX 465 graphics cards Windows 7 Pro 64-bit OS ... so these machines should have no problem running anything. We are still using CS 3 though,

  • Issue syncing Aperture library to iPhone/iPad using iTunes

    I have about 23,000 images in my Aperture library (currently running v.3.6), with the images sorted into projects, with the title of each project beginning with a date in this convention: yyyy-mm-dd.   I have about 800 projects in my Aperture library

  • WPA2 configuration on Aironet 1042N

    Just started at a new job and had three new Cisco Aironet 1042Ns thrown at me and asked to configure them.  They are running the latest software; C1040 Software (C1140-K9W7-M), Version 12.4(25d)JA1.  I had no issues configuring them with no security

  • Cost center planning data-Plan Variable Costs in Object Currency

    Dear All: I have copied a standard planning layout and for the field, 'Planned Fixed Cost' and 'Planned Variable Cost', I have selected 'Plan Variable Costs in Object Currency' and 'Plan Fixed Costs in Object Currency' as the Key Figure. I am doing t