JAPEXample01 published in sdn:error Could not get a value to be injected

HI friends ,
I am  trying to replicate the example JPAEXample01 using JPA in CE1 from  the blogs written by
Sabine Heider/Adrian Görler.
During the testing of the method create employee i am getting the following error.
"Could not get a value to be injected from the factory."
I tried couple of examples using the above process, still held up with same error.
Any pointers to trouble shoot this ?
Thanks in advance
Chandra Dasari.

HI Pritya Ranjan,
Let me know the entities  and their relations ships you are using for quicker response.
To know the proper error, use the path as mentioned
nwa->problem management ->logs & traces->locks.
Email the error code,
The issue might be because of some many probabilities mentioned below.
Point no 1
Are you using Named queries  : If so check the queries syntax, the syntax used here is different from regulat sql queries.
Point no 2:
Are you using Java DIctionary  or generic  db and connecting to max db?
check this part also
Point no 3:
Check your connection profile parameters:
Point no 4 :
Check the data-source-alias,persistence.xml and data-source.xml parameters..
Beacuse i trouble shooted a lot on JPA's and found why the typical error's occurs.
Regards
chandra dasari

Similar Messages

  • JPA Error:Could not get a value to be injected from the factory

    HI friends ,
    I am  trying to replicate the example JPAEXample01 using JPA in CE1 from  the blogs written by
    Sabine Heider/Adrian Görler.
    During the testing of the method create employee i am getting the following error.
    "Could not get a value to be injected from the factory."
    I tried couple of examples using the above process, still held up with same error.
    Any pointers to trouble shoot this ?
    Thanks in advance
    Chandra Dasari

    HI Isaias Cristiano Barroso,
    There are lot of enries most of them pertaining to properties set to yes or no.
    out of which therre are tow errors. the log is as follows
    Message Info: Failed (javax.management.MBeanPermission,#[:j2eeType=trace,name=EndToEndCentralMBean,],isActive,getGuidByName,getTraceLevelByName,getTraceLevelByName,importTrace,isFileExistsLocally,removeTraceFile)java.lang.reflect.InvocationTargetException
    Failed (javax.management.MBeanPermission,*,DISPLAY)java.lang.reflect.InvocationTargetException
    category: com.sap.security.core.role.PermissionData
    Location:com.sap.security.core.role.PermissionData.get(ClassLoader)
    Frankly the above log is above my understanding ,Prob it may help to you undertand my the issue
    Thanks once again

  • Error: Could not get markup. The cookie or session is invalid or ...

    When I run the portlet getting the below error:
    Error: Could not get markup. The cookie or session is invalid or there is a runtime exception.
    I have gone through the log, it's processing the request.
    Any help on this ...

    first can you give us some idea about which product/component/platform/version are you working with. and how did you edit the 'portal prefs'.
    thanks!

  • Could not getting field values from form

    hi,
    hellow, can you help me for solving the bellow problem
    i have form its enctype attribute of form tag is setted as multipart/form-data. when i am submiting this form, i call a request.getParameter(); in the submitting jsp file. But for any controls such as text,checkbox,select box etc could not get its corresponding value.

    Its obvious why its not picking up the change in the second action.
    Lets see...
    Here is your case I
    You get the populated form which is also put in the request with updated value from the JSP....
    (1)
    protected Forward updateGoalObjective(GoalsForm form)
    form.setGoalId(44); //int field set to 44
    return new Forward("success");
    You set one of the fields some other value....in one but how will the second action know about it???
    You try to execute the second action and the action grabs the form from the request again. This is the original form submitted by the JSP so you still see that value...
    You will have to pass in the customized or processed form for the form to be able to get it...
    protected Forward showGoal(GoalsForm form)
    System.out.println(form.getGoalId()); //prints 68
    return new Forward("success");
    In your second case you create a new form...why would you want to do that if you have a form value being set in JSP??
    The answer is you should be doing something Like this:
    * @jpf:action form="goalsForm"
    * @jpf:forward name="success" path="showGoal.do"
    protected Forward updateGoalObjective(GoalsForm form)
    //other code
    form.setGoalId(44); //int field set to 44
    return new Forward("success", form);
    * @jpf:action form="goalsForm"
    * @jpf:forward name="success" path="Goal.jsp"
    protected Forward showGoal(GoalsForm form)
    System.out.println(form.getGoalId()); //prints 68
    return new Forward("success");
    }

  • I have a message: "Could not get session for the OEM Repository."

    Dear Sir,
    I browsed reports that has been published in OEM. But I received an error:
    "Could not get session for the OEM Repository. Check to ensure that the OEM Repository is up."
    What can I do?
    Thank a lot

    You will need to go into your Files and locate the song.  By default, iTunes saves songs in the iTunes Media Folder which can be found in the following locations:
    Mac OS X: /Users/username/Music
    Windows XP: \Documents and Settings\username\My Documents\My Music\
    Windows Vista: \Users\username\Music\iTunes
    Windows 7 and Windows 8: \Users\username\My Music\iTunes
    If you locate your song file, when you try to play it in iTunes, you will be given an option to locate.  Navigate to the file in the pop up window and iTunes will re-path the file location.
    Most people encounter this issue when moving to a new computer or if you have your music saved on an external drive or folder that you have since moved or removed.  The imperative part is finding the song so you can re-map it.

  • Could not get metamodel for project

    Hallo
    Something strange happened...
    I developed ein Composited Application under SAP Netweaver 7.1 SP 3.
    Today I changed some code and run build.. And I get the error could not get metamodel for project.
    And furthmore illegal reference to a non-used resource found.
    Any Hints to resolve this problem?
    Thanks in advance
    Kind Regards!
    Ping

    Hallo
    Thanks for your reply!
    The stacktrace I dont' have. Because I had the problem before the build. Thus I cannot have any trace on the server... I don't know where I can find the trace in Devstudio.
    I closed all the project and Reopened again. Now I only have the problem as followed: (in the problem tab)
    Severity and Description     Path     Resource     Location     Creation Time     Id
    Could not get metamodel for project LocalDevelopmentLocalDevelopmentzukoprototyp(2fdictionarych.post.it.sap          LocalDevelopmentLocalDevelopmentzukoprototyp(2fdictionarych.post.it.sap     Unknown     1200043648781     35143
    But I can build the projekt and redeploy it.
    Thanks anyway and have a nice day!
    Ping

  • Could not get response for challenge?

    I could succefully use podcast capture to post video to groupblog.
    But when I used command line "pcastaction groupblog", it always said that
    "ERROR: could not get response for challenge"
    But "pcast_post2groupblog" works well for me. I wonder why this happened?
    P.S:
    I've updated my server to the latest version.

    If you look at the workflow, there is probably something in there like this:
    <string>--otp=##Groups Administrator Username:Groups Administrator Password##</string>
    That's a one time pad. I ran into this when troubleshooting our iTunes U workflow from the command line. To get my iTunes U stuff to work from the command line I had to generate a OTP each time, like so:
    $sudo pcastconfig --add_access "token" --properties "iTunes U Shared Secret"
    Except yours will be different because it's for group blog.... if indeed this is your problem. I only guessed this looking at the stock blog workflow, it uses an OTP.
    Hope that was helpful and not way off the mark.

  • Could not get controller

    Hey Guys,
    In other compnents the Migration-Tool to upgrade from 7.0 to 7.3 for Web-Dynpro didn´t work on the first, but on the second time.
    I hoped on the same effect when I tryed to migrate the same Web-Dynpro component meanwhile the third time. But the Frameword always stops me with the same error: "Could not get controller".
    The Migration Tool dosn´t reach a controller in the sap-component "com.sap.ide.webdynpro.componentmigration" belonging to the eclipse-pluging of the Developer Studio from SAP. The error occurs by trying to delete the dependenies to a obsolete interface controller automaticaly by the migration tool. If I ty to delete the dependencies manually, I retrieve the same error and can´t proceed the migration with the migration tool.
    Has anyone experiance with handling this error?
    Best Regards
    Günther Mönius

    Hi Alex,
    thanks for your answer.
    We updated our NWDS. We are now on SAP NetWeaver 7.3 SP07. We even imported the project again. But we still get the error.
    EDIT: We were able to delete the usage manually.
    King regards
    Sarah

  • Could not get server configuration in ldap

    for months my server is ok.
    but, today it happened the following error
    Could not get server configuration in ldap, using cached configuration information
    Please help me. What to do?

    I have verified that ldap is running
    The error log shows like this:
    [26/Sep/2005:16:36:39 -0500] - slapd started.
    [26/Sep/2005:16:38:46 -0500] - cos_cache_build_definition_list: Found n
    initions, cos disabled while waiting for updates
    [26/Sep/2005:16:38:46 -0500] - cos_cache_create: failed to build cache
    [26/Sep/2005:16:38:46 -0500] - cos_cache_getref: no cos cache created
    And the access log:
    [26/Sep/2005:16:38:52 -0500] conn=8 op=0 BIND dn="uid=admi
    =TopologyManagement,o=NetscapeRoot" method=128 version=3
    [26/Sep/2005:16:38:52 -0500] conn=8 op=0 RESULT err=0 tag=
    [26/Sep/2005:16:39:04 -0500] conn=0 op=1 UNBIND
    [26/Sep/2005:16:39:04 -0500] conn=0 op=1 fd=24 closed - U1
    [26/Sep/2005:16:39:04 -0500] conn=1 op=1 UNBIND
    [26/Sep/2005:16:39:04 -0500] conn=1 op=1 fd=25 closed - U1
    [26/Sep/2005:16:39:04 -0500] conn=7 op=1 UNBIND
    [26/Sep/2005:16:39:04 -0500] conn=7 op=1 fd=32 closed - U1
    [26/Sep/2005:16:39:04 -0500] conn=8 op=1 UNBIND
    [26/Sep/2005:16:39:04 -0500] conn=8 op=1 fd=33 closed - U1

  • Could not get DeploymentManager during SOA install

    I am getting the following error:
    *Could not get DeploymentManager
    This is typically the result of an invalid deployer URI format being supplied, the target server not being in a started state or incorrect authentication details being supplied. More information is available by enabling logging -- please see the Oracle Containers for J2EE Configuration and Administration Guide for details.*
    during the SOA install. I am installing 10.1.3.1 and then I was going to patch it to 10.1.3.3. I am installing it on a Windows XP and ironic thing is it has been installed once on this machine without any errors. I started tinkering with some configuration files so I can process large ESB input files and the metadata repository got hosed. I then went to install it again but started getting this error. I am not doing anything differently from the previous successful installation. Issues like these and others in Oracle SOA is forcing our company to seriously start looking at alternatives.
    Thanks for any help.

    Are you sure you have setup the connectivity correctly in JDev. If you have not removed the previous install correctly it could have held on to the ports, therefore the second install does not use the default.
    Things to check is the oc4j container, and the port. Also perform a test to ensure all things are connecting correctly.
    cheers
    James

  • I keep getting this message from Imovie: Unable to prepare project for publishing. The project could not be prepared for publishing because an error occurred. (Error in user parameter list)

    I keep getting this message from Imovie:
    Unable to prepare project for publishing. The project could not be prepared for publishing because an error occurred. (Error in user parameter list)

    Bartirn,
    I called Apple under my Mac support contract.  They were completely unfamiliar with the error you and I were encountering.   Updating to 10.8.5 didn't help.
    I'm stopping my TimeCapsule while I perform these tasks, but I don't know yet if I have a consistent work-around.
    B

  • In iMovie I am getting this message...Unable to prepare project for publishing. The project could not be prepared for publishing because an error occurred.m file already open with write permission.

    In iMovie I am getting this message...Unable to prepare project for publishing.  The project could not be prepared for publishing because an error occurred. File already open with write permission. 
    How do I resolve this?

    Hi
    Most often it helps by - Turning Off the TimeMachine application - during work in iMovie.
    Yours Bengt W

  • When I go to download my iMovie to iTunes I get the following message "Unable to prepare project for publishing.  That project could not be prepared for publishing because a error occurred"(disk full).  What do I need to do?

    When I go to share my Imovie to Itunes after a couple of hours I get the following message.  "Unable to prepare project for publishing.  That project could not be prepared for publishing because a error occurred(disk full)".  What does this mean and how do I fix it?

    This is the forum for iOS (iPhones and iPads),
    I have refered it to get moved to the correct forum.
    But my guess is that you have to clear space on your harddrive.
    The video gets rendered when you out put it, so you will need lots of space to do so.

  • An error occured while creating the new dataset Could not get type informat

    Uses: Windows XP Pro SP3+; OracleXE; Oracle 8i Client; ODP.NET; Visual Studio 2005 PRO;
    I had OracleXE and was using OracleXE's Oracle.DataAccess Version 10.2.0.100 which was located in C:\oraclexe\app\oracle\product\10.2.0\server\BIN. Then to use Oracle Developer Tools for VS, I installed ODAC where the Oracle.DataAccess's version was 2.111.6.20.
    Everything connected via SqlPlus and even was able to Oracle XE Home page and was able to loginto it. Further, was even able to create connection with Oracle Dot Net Provider. The problem was created when I tried to create a datasource from DataSource Menu in VS.2005. It was giving an error saying "An error occured while creating the new dataset Could not get type information for dataset". However I wittnessed that Dataset is been created in Solutions Explorer but not in Data Source Tab. Further researching I was able to create Datasets with Microsofts Oracle Data provider with out any issue.
    My Path variable list the following:
    C:\app\Administrator\product\11.1.0\client_1;
    C:\app\Administrator\product\11.1.0\client_1\bin;
    C:\oraclexe\app\oracle\product\10.2.0\server\bin;
    C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\;
    C:\Program Files\Borland\BDS\4.0\Bin;
    C:\PROGRA~1\Borland\Delphi5\Projects\Bpl;
    C:\PROGRA~1\Borland\vbroker\jre\Bin;
    C:\PROGRA~1\Borland\vbroker\Bin;
    C:\PROGRA~1\Borland\Delphi5\Bin;C:\orant\bin;
    C:\WINDOWS\system32;C:\WINDOWS;
    C:\WINDOWS\System32\Wbem;
    c:\Program Files\Microsoft SQL Server\90\Tools\binn\;
    C:\Program Files\Microsoft SQL Server\80\Tools\BINN;
    C:\Program Files\java\jdk1.6.0_07\bin.
    Further I got 2 Oracle Homes one which C:\orant and other is located in C:\app\Administrator\product\11.1.0\client_1.
    Also noted that while deploying at client site I started gett'n this error:
    "Unable to install or run the application. The application requires that assembly Oracle.DataAcces version be installed in Global Assembly Cache First."
    Is it due to change in the production machine? Any help in this regard is greatly appreciated.

    Hi Pushpa,
    Which enhancement package are you on currently? This is observed in cases where originals in DIR's are invisible and sometimes error message 26296 occurs in transaction CV01n. Hence,please check your entries in the table SDOKPROP to avoid such a problem in your system.
    Further,suggest you explore if the below resolutions can be adopted in your case.
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=10321987
    http://wiki.sdn.sap.com/wiki/display/PLM/OriginalsinvisibleafterEHP3or+EHP4
    Regards,
    Pradeepkumar haragoldavar

  • I could not get ExportPDF to work. Something about a network error when trying to sign in.

    I could not get ExportPDF to work. Trying to convert a pdf to a Word document. Got an error message. Something about a network error when attempting to sign in.

    Try the following:
    1. Reset
    Hold the Sleep and Home button down until you see the Apple logo
    2. Restore:
    http://support.apple.com/kb/HT1414
    3. Recovery:
    http://support.apple.com/kb/HT1808

Maybe you are looking for