EJB 3.0 entity found within JDeveloper but not on OAS 10.1.3

I'm tearing my hair out with this!
Basically I have an entity bean with a primary key annotated with @Id, a stateful session bean facade which has an EntityManager injected through @Resource, and a java client in JDeveloper which calls this bean through a lookup.
In JDeveloper 10.1.3 it works fine, no problems. I deploy the app, along with a JSP version of this client, to Oracle AS 10.1.3.0 - the deploy goes through without a problem. Whenever I try to use the JSP to test that it's working, I get a NPE in the server logs - but it only points to the compiled JSP class, and therefore not corresponding to a line in the actual JSP!
Here is the error stack trace:
06/10/12 12:01:51 java.lang.NullPointerException
06/10/12 12:01:51 at usernametest.jspService(_usernametest.java:121)
06/10/12 12:01:51 at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
06/10/12 12:01:51 at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:416)
06/10/12 12:01:51 at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)
06/10/12 12:01:51 at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)
06/10/12 12:01:51 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
06/10/12 12:01:51 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)
06/10/12 12:01:51 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
06/10/12 12:01:51 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
06/10/12 12:01:51 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
06/10/12 12:01:51 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)
06/10/12 12:01:51 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)
06/10/12 12:01:51 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
06/10/12 12:01:51 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303
06/10/12 12:01:51 at java.lang.Thread.run(Thread.java:595)
Does this look obvious to anyone? All I am asking is a general idea to what the problem might be. I have been looking at this for 2 weeks and keep going round in circles. If anyone here has any idea that would be much appreciated.
I will supply other code (JSP, bean) if necessary, as this isn't a Java forum ;)
Thanks in advance
Paul

Hi Lonneke,
Here is the bean class:
import java.util.List;
import javax.annotation.Resource;
import javax.ejb.Stateful;
import javax.persistence.EntityManager;
import javax.persistence.Query;
@Stateful(name="cart")
public class CartBean implements CartRemote, CartLocal {
@Resource
protected EntityManager manager;
public CartBean() {
public User getUser(String username){
User user = manager.find(User.class, username);
return user;
public List<Ereq> getEreqs(String username) {
Query query = manager.createNativeQuery("SELECT p.BAAN_ACTIVITY_CODE, p.CLIENT_REF_NO, p.DELIVERY_SITE, p.EREQ_MESSAGE, p.EREQ_REF_NO, p.EREQ_STATUS, " +
"p.LAB_REF_NO, p.ORDER_DATE, p.PROJECT_CODE, p.PURCHASED_ORDER_NUMBER, p.REQUIRED_DATE, p.USER_FULLNAME " +
"FROM Processed_Ereq p, Ereq_User_Link e, Users u " +
"WHERE p.ereq_ref_no = e.ereq_ref_no " +
"AND e.user_id = u.user_id " +
"AND u.username= '" + username + "'", Ereq.class);
return query.getResultList();
Here is the JSP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ page import="sun.misc.BASE64Encoder,java.util.regex.*" %>
<%@ page import="com.evotec.ereq.CartLocal" %>
<%@ page import="com.evotec.ereq.User" %>
<%@ page import="javax.naming.InitialContext" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%!String m_username = "pbarrett";%>
<%!String emailAddress = "";%>
<%
try {
InitialContext ctx = new InitialContext();
//CartLocal cart = (CartLocal) session.getAttribute("Cart");
//if (cart==null) {
CartLocal cart = (CartLocal) ctx.lookup("java:comp/env/cart");
//session.setAttribute("Cart", cart);
//ereqs = cart.getEreqs(m_username);
User user = cart.getUser(m_username);
emailAddress = user.getEmailAddress();
%>
<html>
<body>
you are: <%= m_username %><BR>
your email address is: <%= emailAddress %><BR>
</body>
</html>
<%
catch (NullPointerException e){
e.printStackTrace();
%>
Any help is welcome
Thanks
Paul

Similar Messages

  • Newbie: XML/Java - The entity "rsquo" was referenced, but not declared.

    I get the following error when I try to run my java program(it's supposed to read an xml file and print out some of the content).
    How can I fix this problem?
    Thanks,
    [Fatal Error] subject.xml:4:233: The entity "rsquo" was referenced, but not declared.
    org.xml.sax.SAXParseException: The entity "rsquo" was referenced, but not declared.
    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
    at DomParserExample2.parseXmlFile(DomParserExample2.java:42)
    at DomParserExample2.runExample(DomParserExample2.java:24)
    at DomParserExample2.main(DomParserExample2.java:115)
    Exception in thread "main" java.lang.NullPointerException
    at DomParserExample2.parseDocument(DomParserExample2.java:54)
    at DomParserExample2.runExample(DomParserExample2.java:27)
    at DomParserExample2.main(DomParserExample2.java:115)

    The easiest way to fix your problem is to not put unreferenced entities into the document. That just makes the document be not well-formed. If somebody else gave you that document, send it back to them and tell them to fix it. If you made it yourself, then you did it wrong. It's hard to say how you did it wrong because you didn't say anything about that.
    If you were hoping for some Java code, there isn't any. If you get an XML document which isn't well-formed, all you can do is to reject it. And that's what happened there. It's the correct thing to do.
    That tutorial you linked to is correct as far as it goes, but in your case you've just got some HTML which somebody carelessly reformatted into XML. You don't want to write an EntityResolver for HTML entities, you either want them to not be there, or for there to be a DTD at the beginning which points to something declaring them.

  • Help! iPad found in Windows but not in iTunes. What do I do?

    Help! iPad found in Windows but not in iTunes. What do I do?

    Device not recognized
    http://support.apple.com/kb/TS1538

  • Problem creating EJB 3.0 Entity bean in JDeveloper

    Hello all,
    I trying to create my first entity bean in JDeveloper.
    JDevelper create the entity bean with the code below:
    package model;
    import java.io.Serializable;
    import javax.persistence.Entity;
    @Entity
    public class BatchSettlementT implements Serializable {
    public BatchSettlementT() {
    The problem is that JDeveloper don't find the import command import javax.persistence.Entity;
    What am I doing wrong?
    I'm using JDeveloper Studio Edition Version 10.1.3.1.0.3914.
    My libraries are:
    - TopLink
    - Oracle XML Parser 2
    - EJB 3.0
    - Toplink Essentials JPA
    - J2EE
    Thanks in advance.

    It's very strange, when I type import.javax. in my class there is no persistence package available, do you have any idea what's wrong.
    I did set the technology scope to EJB either.
    Thanks!

  • Bootcamp partition fully bootable within VMWare, but not showing up in startup with option key - nor does it work when selecting target startup disk

    Hey all,
    Today I resized my OSX partition with the intention of leaving it blank for my new SSD to use as over provisioning space. This resulted in me having 5 partitions on the drive for a short while (which may have caused the issue?). Hereafter, the Windows 8 partition was stopped showing up when pressing option on startup. I opened my bootcamp partition in VMWare Fusion and could was told the drive was unbootable. I used the Windows 8 cd in through VMWare Fusion to run the Auto Repair from the installation CD (probably MBR records and BCD records etc). Then VMWare was able to fully boot my Windows 8 installation without any problem. However, I am still not able to actually boot into my Windows 8 installation as it doesn't show up at startup, and when chosen as target start disk within OSX the computer just hangs on startup before it reboots.
    I am considering the possibility of some mis-sync between the GPT tables OSX is using and the MBR records used by Windows 8... I have run a few commands and gotten the following response:
    sudo fdisk /dev/disk0:
    Disk: /dev/disk0
    geometry: 62260/255/63 [1000215216 sectors]
    Signature: 0xAA55
             Starting       Ending
    #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
    1: EE 1023 254  63 - 1023 254  63 [         1 -     409639] <Unknown ID>
    2: AF 1023 254  63 - 1023 254  63 [    409640 -  725443856] HFS+       
    3: AB 1023 254  63 - 1023 254  63 [ 725853496 -    1269536] Darwin Boot
    4: 0C 1023 254  63 - 1023 254  63 [ 840058920 -  159894112] Win95 FAT32L
    sudo gpt -r -vv show /dev/rdisk0
    gpt show: /dev/rdisk0: mediasize=512110190592; sectorsize=512; blocks=1000215216
    gpt show: /dev/rdisk0: Suspicious MBR at sector 0
    gpt show: /dev/rdisk0: Pri GPT at sector 1
    gpt show: /dev/rdisk0: Sec GPT at sector 1000215215
           start        size  index  contents
               0           1         MBR
               1           1         Pri GPT header
               2          32         Pri GPT table
              34           6        
              40      409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
          409640   725443856      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
       725853496     1269536      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
       727123032   112935888        
       840058920   159894112      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
       999953032      262151        
      1000215183          32         Sec GPT table
      1000215215           1         Sec GPT header
    I can confirm that partition 4 is indeed my windows 8 installation.
    When I run the validation test within gdisk i get:
    Warning: Devices opened with shared lock will not have their
    partition table automatically reloaded!
    Partition table scan:
      MBR: hybrid
      BSD: not present
      APM: not present
      GPT: present
    Found valid GPT with hybrid MBR; using GPT.
    No problems found. 113198045 free sectors (54.0 GiB) available in 3
    segments, the largest of which is 112935888 (53.9 GiB) in size.
    I am have hit a wall in regards to this issue. Why can I boot from my bootcamp partition using VMWare, but not directly from it like when I restart my computer?

    Okay solution found found a solution finally... i followed the steps outlined in this article: https://discussions.apple.com/thread/4144252?start=0&tstart=0 . After i did this my windows bootcamp partition showed up again, but my osx and osx recovery disks became unbootable. Luckily I have an extra enternal harddrive with osx installed on, so ran disk utility and repaired the affected disk where osx had become unavailable. Then rebooted and all disks now shows up and work perfectly again.

  • IPod found under diagnostics but not in iTunes

    I have a reoccuring problem using iTunes 7.02.16
    From time to time the iPod is not visible in iTunes, but when I choose "help" and "iPod diagnostics" there are 4 green buttons. "iPod connection" status green.
    Usualy this problem is fixed by reinstalling iTunes and rebooting. But not anymore.
    If I format the player in a DOS window (FAT32) the player is recognized and I have to "Restore system". When the player reboots and the firmware should be installed, it's no longer found in iTunes.
    I have rebooted twize and reinstalled iTunes but no matter what, I can't reconnect and transfer any music.
    In this case it's a 1GB nano, but I have had the same problem with the 2GB and the 4GB and the 8GB version. I think this may be a Nano problem.
    Anyone else experienced this problem and how is it fixed?
    P4 3Ghz   Windows XP  

    Yes, that doesn't see to be the problem.
    My iPod has reset itself now, wiping out all the music, and still it isn't showing up in iTunes. When I plug it in, it shows up on the desktop and opens iTunes, but does not update.
    Message was edited by: kmich87

  • Embeded OC4J server within JDeveloper does not pick latest JAR files.

    Hi,
    Currently OC4J seems to be using an older version of JAXB1.0. Hence I created a shared library in my standalone OC4J server and imported the shared library while deploying my applicatoin in the ClassLoader task.I am trying to replicate the same in
    my embeded OC4J server within JDeveloper.
    I followed as indicated in readme.txt file in the \j2ee\home\shared-lib\ folder.
    1) I created a folder called "jaxb" within /j2ee/home/shared-lib/. I then created a folder with the name "2.0" indicating the version number of the API.
    2) I then added the relevant jaxb JARS to the jaxb/2.0 folder.
    3) In the server.xml file available under /j2ee/home/config/ , I added the following entries.
    <shared-library name="jaxb" version="2.0">
              <code-source path="jaxb-api.jar"/>
              <code-source path="activation.jar"/>
              <code-source path="jaxb1-impl.jar"/>
              <code-source path="jaxb-impl.jar"/>
              <code-source path="jsr173_1.0_api.jar"/>
              <code-source path="jaxb-xjc.jar"/>
         </shared-library>
    I am still facing the issue where my embedded OC4J server is picking up the jaxb version 1.0.
    What are the steps that needs to be taken to ensure that the embeded OC4J
    takes in the jaxb2.0 version.

    Refer
    Re: SUN Jaxb2.0 incompatible with OC4J included in JDEV/OC4J ??

  • MQ Series JCA Connector run in Standalone OC4J but not in OAS on Linux

    Hi all,
    My problem is my application run in a Standalone OC4J in Windows and Linux and
    in a Oracle Application Server 10.1.3 in Windows but not run in a Oracle
    Application Server 10.1.3 on Linux why ?
    When i try deploy my application in Oracle Application Server on linux the
    error is throw:MQJMS2005: failed to create MQQueueManager for
    'ms009.queue.manager'
    In Standalone container in linux and windows and in a Oracle Application Server on Windows the deploy is fine.
    I use the same configurations in all containers and only in a OAS 10.1.3 on
    linux my app not run.
    I thank any suggestions!
    Message was edited by:
    Carlos Lacerda

    The JCA Connector to MQ Series run in Oracle Application Server on Linux ??
    Standalone is OK i test but in OAS this run ??
    The only difference entire OC4J configuration used in Standalone and OAS is in opmn.xml, that it is its necessary add a <enviroment> to found the MQ Libraries. Have another difference ??
    tanks

  • Application works in jdeveloper but not as standalone jar file

    Hi All
    We have developed an application using BI Publisher APIs,it works as expected through JDevelper,however when I try to deploy it to a jar file a run it through command line it gives me No class found exception for
    javax/xml/rpc/Service class factory.. thinking that the class is not present.I have extracted the jar file but could find the class file in the expected directory........anyhelp would greatly be appreciated.
    Regards
    Venkatesh

    Hi Venkatesh,
    Few questions.
    1. What is your JDeveloper version? (Always better to post your JDev version along with the question, which would help us to help you better).
    2. Did you try adding webserviceclient.jar to the classpath? (Search in your JDev installation directory for the location of this jar file).
    -Arun

  • Applet works in JDeveloper, but not when deployed to OC4J

    I am working on an applet version of the BI Beans java client application. It works fine when running in JDeveloper (applet viewer), but fails when deployed to OC4J. The applet shows a red X, with a message in the status bar saying "Loading Java Applet Failed...". Contents of java console are as follows:
    java.lang.NoClassDefFoundError: oracle/dss/selection/step/Step
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
         at java.lang.Class.getConstructor0(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Any one have any ideas how to chase this one down?
    Here is the message that JDeveloper shows when it runs the applet. I have gone thru this and ensured that all these references are selected in my .deploy settings:
    C:\JDeveloper\jdk\bin\javaw.exe -ojvm -Xbootclasspath/a:C:\dev\jdev\Workspace1\TestClientApp\classes;
    C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\biaddinsrt.jar;
    C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\biamlocal.jar;
    C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bicmn.jar;
    C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bidataclt.jar;
    C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bidatacmn.jar;
    C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bidatasvr.jar;
    C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\biext.jar;
    C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bipres.jar;
    C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bidata-nls.zip;
    C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bipres-nls.zip;
    C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bicmn-nls.zip;
    C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\biaddins-nls.zip;
    C:\JDeveloper\jdev\lib\ext\..\..\..\jlib\LW_PfjBean.jar;
    C:\JDeveloper\jdev\lib\ext\..\..\..\jlib\share.jar;
    C:\JDeveloper\jdev\lib\ext\..\..\..\jlib\jewt4.jar;
    C:\JDeveloper\jdev\lib\ext\..\..\..\jlib\jewt4-nls.jar;
    C:\JDeveloper\jdev\lib\ext\..\..\infobus\lib\infobus.jar;
    C:\JDeveloper\BC4J\lib\bc4jmt.jar;C:\JDeveloper\BC4J\lib\collections.jar;
    C:\JDeveloper\BC4J\lib\bc4jct.jar;
    C:\JDeveloper\lib\xmlparserv2.jar;
    C:\JDeveloper\jlib\jdev-cm.jar;
    C:\JDeveloper\j2ee\home\lib\jndi.jar;
    C:\JDeveloper\jlib\regexp.jar;
    C:\JDeveloper\jlib\share.jar;
    C:\JDeveloper\jlib\uix2.jar;
    C:\JDeveloper\jdbc\lib\classes12.jar;
    C:\JDeveloper\jdbc\lib\nls_charset12.jar;
    C:\JDeveloper\j2ee\home\lib\ojsp.jar;
    C:\JDeveloper\j2ee\home\jsp\lib\taglib\ojsputil.jar;
    C:\JDeveloper\j2ee\home\oc4j.jar;
    C:\JDeveloper\j2ee\home\lib\servlet.jar;
    C:\JDeveloper\jdev\lib\ojc.jar;
    C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\olap_api_92.jar;
    C:\JDeveloper\jdev\lib\jdev-rt.jar;
    C:\JDeveloper\BC4J\lib\bc4jhtml.jar;
    C:\JDeveloper\BC4J\lib\datatags.jar;
    C:\JDeveloper\BC4J\lib\bc4juixtags.jar;
    C:\JDeveloper\BC4J\lib\bc4j_jclient_common.jar
    Any assistance would be appreciated.
    s.l.

    i have the same problem
    i cant load my applet on OC4J , i am wondering know how Oracle canot solve this problem

  • Solution found- messages sent but not received

    For those that have had the problem of sending texts on your iPhone, but they are not being received at particular numbers, a friend of mine had success with the following procedure:
    1.  delete all contacts
    2.  initiate a message to a problem receipient using xxx-xxx-xxxx within messages itself. Do not make a new contact yet. Do not include a 1 as a preface in the number.
    3.  If successful, choose "add to contacts", and rebuild your "contacts"
    Let me know if this works for you.
    Jim C

    Hello Dom_Guy,
    Thank you for the details of the issue you are experiencing with iMessage.  I recommend the following steps for the issue you described:
    To resolve issues with sending and receiving iMessages, follow these steps first
    Check iMessage system status for current service issues.
    Go to Settings > Messages > Send & Receive and make sure that you have registered iMessage with your phone number or Apple ID and that you have selected iMessage for use. Learn more abouttroubleshooting iMessage registration if the phone number or Apple ID isn't available for use.
    Open Safari and navigate to www.apple.com to verify data connectivity. Learn more about troubleshootingcellular data or a Wi-Fi connection if a data connection isn't available.
    iMessage over cellular data might not be available while on a call. Only 3G and faster GSM networks support simultaneous data and voice calls. Learn more about which network your phone supports. Go to Settings > Wi-Fi and turn Wi-Fi on to use iMessage while on a call if your network doesn't support simultaneous data and voice calls.
    Restart your device.
    Tap Settings > General > Reset > Reset Network Settings on your iPhone.
    If you are still unable to send or receive an iMessage, follow these steps
    Make sure that the contact trying to message you isn't blocked in Settings > Messages > Blocked.
    Verify that the contact you are attempting to send a message to is registered with iMessage.
    If the issue occurs with a specific contact or contacts, back up orforward important messages and delete your current messaging threads with the contact. Create a new message to the contact and try again.
    If the issue occurs with a specific contact or contacts, delete and re-create the contact in the Contacts application. Create a new message to the newly created contact and try again.
    Back up and restore your device as new.
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Attribute key cannot be found : Data present but not processed

    Hi there,
    I know this question has been ask several time and I went through a lot of proposed solution but none were successful in my case. My cube processed successfully for month but now I have the following error :
    Errors in the OLAP storage engine: The attribute key cannot be found when processing: Table: 'EventMember', Column: 'Id', Value: '22560966'. The attribute is 'Id'.
    To explain my case here what I've got.
    A dimension [Member Unique] where there is a bigint Id and some attributes. The only defined attribute in the dimension is Id.
    When I process fully this dimension the query issued by SSAS to SQL (using the profiler) is the following :
    SELECT
    DISTINCT
    [dbo_Member].[Id] AS [dbo_MemberId0_0]
    FROM [dbo].[Member] AS [dbo_Member]
    I verified that the Id 22560966 is present in the table and in the resulting set and that is the case.
    Then I have the measure group EventMember based on a named query doing the following :
    SELECT Id
    FROM dbo.Member AS m
    WHERE EXISTS
    SELECT 1 AS Expr1
    FROM dbo.Event AS g INNER JOIN
    dbo.MemberHistory AS h ON h.Id = g.MemberId INNER JOIN
    dbo.MemberVersion AS v ON v.HistoryId = h.Id
    WHERE (v.AntvoiceMemberId = m.Id)
    This query returns also the row 22560966.
    When I process fully the measure group EventMember the query issued by SSAS is :
    SELECT [EventMember].[EventMember0_0] AS [EventMember0_0],[EventMember].[EventMemberId0_1] AS [EventMemberId0_1]
    FROM
    SELECT 1 AS [EventMember0_0],[Id] AS [EventMemberId0_1]
    FROM
    SELECT Id
    FROM dbo.Member AS m
    WHERE EXISTS
    SELECT 1 AS Expr1
    FROM dbo.Event AS g INNER JOIN
    dbo.MemberHistory AS h ON h.Id = g.MemberId INNER JOIN
    dbo.MemberVersion AS v ON v.HistoryId = h.Id
    WHERE (v.AntvoiceMemberId = m.Id)
    AS [EventMember]
    AS [EventMember]
    And it crashes during the process giving me the above error.
    I did try to allow missing key attribute error in the process option, and it ran successfully. It allowed me to issue an MDX statement on my cube to check if the dimension member was present. And it was not the case. Hence the error I think. The MDX statement
    was :
    SELECT [Member Unique].[Id].&[22560966] on 0
    FROM MyCube
    The the final question would be : Why this member which is returned by the SQL query is not present in my dimension ?
    I tried deletiong my cube it did not changed a thing. A noticeable thing is that the faulty attributes key are the same every time.

    Hi RodolpheAV,
    The error means SSAS could not find a record in the dimension table [table name] where column [column name] contained value [value]. For more information, you can look into the following articles:
    Error messages when you try to process a database or a cube in SQL Server 2005 Analysis Services: "The attribute key cannot be found" and "The record was skipped because the attribute key was not found:
    http://support.microsoft.com/kb/922673
    SSAS Quick Reference: Attribute Key Cannot Be Found:
    http://www.ssas-info.com/analysis-services-articles/66-mgmt/1963-ssas-quick-reference-attribute-key-cannot-be-found
    TechNet Subscriber Support
    If you are TechNet Subscription user and have
    any feedback on our support quality, please send your feedback here.
    Regards,
    Bin Long
    TechNet Community Support

  • SWFloader loads SWF movie within Flex but not when compiled

    When I run my app in Flex, SWFLoader loads the SWF okay as a movie clip but as soon as I Export/Release Build, the new app SWF that is generated won't show the movie clip anymore.  If I take another SWF that is an app (not a movie clip) and give it the movie swf name, my compiled app will show the sub app in a frame.  Why would running something within Flex be any different than running a compiled version?
    Here is some of the code:
    button1 loads the swf.
    button2 loads a sound and when the sound is loaded, the sound is played and the swf is played in onSoundLoaded();
    public  function onSoundLoaded(event:Event):void{
    var localSound:Sound = event.target as Sound;localSound.play();
    var clip:MovieClip = MovieClip(swflodr.content);
    clip.play();
    private  
    function button1Handler(event:Event):void {Alert.show("test 1");swflodr.load(
    "dog.swf");Alert.show(
    "test 2");}
    private  
    function button2Handler(event:Event):void
    var s:Sound = new
    Sound();s.addEventListener(Event.COMPLETE, onSoundLoaded);
    var  
    req:URLRequest = new URLRequest("test.mp3");
    s.load(req);
     private function SwfLodrEventHandler(event:Event):void { 
    var clip:MovieClip = MovieClip(swflodr.content);clip.gotoAndStop(1);
    Alert.show(
    "The event loader is ready");}
    thanks, Mike

    Maybe timing?  The child SWF may not be fully loaded.  Sounds and SWFs are asynchronously loaded.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • EJB/JPA Session/Entity Bean: Back Reference Id not set

    Hello All,
    I m using JPA as a persist tool. I have an entity Account and in Account there is a collection of entity AccountDetail. In Account entity relation for AccountDetail is One-To-Many and in AccountDetail the relation for Account is Many-To-One. When i save the Account, object of Account and AccountDetail are saved correctly. But the problem is that in AccountDetail the Id of Account is not saved in Database table. I have AccountId in AccountDetail table. plz help me??
    Second thing is that how to generate automatically primary keys when entity saved in database ???

    define the column you want to auto increment as an Integer with Identity attribute set to True (using the sql server management tool for example) and then put
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    in front of the ID declaration in the mapping file, it should generate the IDs automatically.

  • I need a script that can delete duplicate songs within iTunesMedia but not shown on iTunes GUI

    I copied entire music in itunes library A and paste it in itunes library B. I subsequently experimented with import playlist and import .XML files of itunes library A to itunes library B. I notice songs in music folder have been duplicated i.e. the gigabyte of music folder greated than gigabyte shown on itunes GUI.
    Wow, I never knew importing .XML file (through import playlist) will import the songs, the metadata, the artwork and the entire playlist which i never created in the first place (I dont know what else had been imported).
    Anyway, the songs are not duplicated on the iTunes GUI. They are duplicated within iTunesMedia\Music... folders. Can someone provide me a Script to delete these approx. 100GB duplicates. The DeDuper Script I have can only delete duplicate songs displayed on iTunes GUI.
    Thanks for your help as usual.

    The script is only intended to work on things that iTunes would treat as "Exact Duplicates" and it only works on files that are connected to the iTunes library. Before starting all files in your media folders should be added to the iTunes library.
    In the context of the earlier thread, type 1 or logical duplicates are multiple entries to the same file and type 2 or physical duplicates are multiple copies of the same file. Type 2 dupes will have identical tag information (at least they will unless you edit one of them) and the same file size so will thus display as "Exact Duplicates" if present.
    The script avoids the more complex problem of trying to detect and selectively remove what I called type 3 duplicates, that is alternate recordings or rips of the same tune, principally because that is a much harder problem to automate, but also because "best track to keep" from a set of potential candiates will be a subjective matter.
    The current version of the DeDuper script is 1.0.1.2 dated 2nd December 2011. I've just downloaded and run it on a test library. I had 35 tracks that I first duplicated by copying the Music folder into Automatically Add to iTunes. I then renamed Music as Music1, selected each file in turn so that iTunes would "know" the files were missing, renamed the folder back to Music and then dragged & dropped the folder into the library. This created a library of 140 tracks, 35 originals, 35 physical dupes and 70 logical dupes . The script ran as designed and reduced the library back down to 35 tracks with the 35 physical dupes being sent to the recycle bin.
    tt2

Maybe you are looking for

  • How to avoid using bapi_commit inside a loop .

    Hi , Need a help. This is a program for uploading business partners in CRM. The basic logic of the program is as below: -         There are two types of records in the upload file – new/ old ones to be updated -         A new record is identified by

  • PROFIT CENTER ACCOUNTING-BALANCE SHEET ITEMS TRANSFER

    Dear all. SAP describe as forllows about set up the opening balance for materials: In this activity, you set up the opening balance for materials. The system determines the material stock balance from Materials Management and posts it to Profit Cente

  • Arno's firewall - blocking ICMP?

    Hey all, I'm trying to block my computer from responding to ping requests. I've found what appears to be the relevant syntax for iptables, but I can't use it with Arno' firewall script, which obviously is what I'm using for the rest of the firewall.

  • Customize Data Manager Package

    Hi m new to sap bpc nw version.Can anybody help me for the following issue 1)I want to copy data from one sorce member to multiple destination members. I have used Copy Data Manager Package  in BPC NW Version,but its not allowing me to select multipl

  • Quicktime MIDI API for scripting?

    I'd like to experiment with scripting music - ideally, writing in Perl and/or Bash (not Applescript) to drive some Quicktime MIDI events. Does anyone know of APIs to do that? Thanks, Chap