Error in Location Descriptive Flexfield
Hello All
When i am trying to create a Location DFF i am facing the following Error:
APP-FND-00874: Routine FDFBDF found no rows in table FND_DESCRIPTIVE_FLEXS. Please contact your system administrator or support representative.
I would be glad if any one can solve this.
Thanks
Srujana
This is an odd error for something as 'stable' as the Location DFF.
At the risk of sounding like Oracle Support, can you go through your precise steps to reproduce this error?
Similar Messages
-
Error when use descriptive flexfield for locale of German
Reports will work in English but changing locale to German causes report to get error when a flexfield used as a numeric is in the view.
The error is: Es werden Keine Daten angezeight,weil wahrend der Ausfuhrung der Abfrage ein Fehler aufgetreten ist.,, which basically means an error occured.
Any recommendations on how to get the Discoverer report to run for both languages... The flexfield values are entered as numeric and we want to be able to use them in Discoverer as numbers.
AmyHi,
Flexfields are stored as text in the database but you must be converting them into numbers somewhere. My guess is that Oracle is using an implicit TO_NUMBER to convert the text field to a number in the view.
Now by default, when the locale is set to German Discoverer will set the NLS_LANGUAGE and NLS_NUMERIC_CHARACTERS parameters for the database session to German. You can check by including USERENV('LANG') as a calculation in one of your reports or check the v$nls_parameters view for a full list. With the US language the text string 1.5 will be converted to a number but with the German numeric characters this could fail because German uses "," as the decimal point.
Also if you are using the VL flexfield language translation views then when the NLSLANGUAGE is set a different results (the translated flexfield) is returned in the view. This could be another cause of the differences you are seeing.
The easiest way to fix this is to find where the number is being converted and specify the format of the number explicitly. So if you flexfields used the number format 9999.9 then you would use:
TO_NUMBER(col, '9999.9')
Rod West -
Descriptive FlexField error in R12.1.3
Hi All
We are facing one error as shown below when updating suppliers
Application : R12.1.3
The descriptive flexfield with application name receivables (AR) and name Party site information (HZ_PARTY_SITES) is not compiled . Please contact your system administrator
The descriptive flexfield with application name receivables (AR) and name Address (Remit Address HZ) is not compiled . Please contact your system administrator
Please suggest
RegardsPlease see the solution in these MOS docs.
The Descriptive Flexfield With Application Name Receivables (AR) and Name Party Site Information (HZ_PARTY_SITES) Is Not Frozen [ID 743262.1]
OCO - Update Existing Contact Point Errors With "The descriptive flexfield with application name Receivables (AR) and name Telephone Number Information (RA_PHONES_HZ) is not frozen" [ID 386851.1]
Thanks,
Hussein -
Error : Severity and Description Path Resource Location Creation Time Id
i have this error :
Severity and Description Path Resource Location Creation Time Id
invalid character or markup found in script block. Try surrounding your code with a CDATA block. essai/src essai.mxml Unknown 1236103965593 182
my source is attach code
Many thanks for your help ,
Lionceau,look my source :
<![CDATA[
import mx.controls.Alert;
import com.adobe.rtc.events.SessionEvent; //utilisé
pour les trois blocs
import com.adobe.rtc.messaging.UserRoles; //utilisé
pour les trois blocs
import com.adobe.rtc.collaboration.AudioPublisher; //
AudioPublisher me sert pour la gestion du microphone
import com.adobe.rtc.collaboration.AudioSubscriber; // me
sert pour choisr l' aboné écouté
//import com.adobe.rtc.collaboration; // me sert pour la
gestion du microphone
//import com.adobe.rtc.clientManagers;// me sert pour la
gestion du microphone
import com.adobe.rtc.events.StreamEvent;// pour le son
(audio xml)
import mx.events.ItemClickEvent; //pour le son ( audio xml)
import mx.controls.Label;
import mx.core.UIComponent; // me sert pour la gestion du
microphone
import flash.events.EventDispatcher;// me sert pour la
gestion du microphone
// import com.adobe.rtc.components:ResizableCanvas; amettre?
//debut bloc share
import
com.adobe.rtc.sharedManagers.descriptors.FileDescriptor;
import mx.utils.UIDUtil;
import mx.collections.ArrayCollection;
import com.adobe.rtc.collaboration.FileSubscriber;
import com.adobe.rtc.sharedManagers.UserManager;
import com.adobe.rtc.messaging.NodeConfiguration;
import com.adobe.rtc.events.CollectionNodeEvent;
import com.adobe.rtc.collaboration.FilePublisher;
import com.adobe.rtc.sharedManagers.FileManager;
[Bindable]
private var applicationTitle:String = "File Publisher
Example";
// list of managers
private var _fileManager:FileManager;
private var _filePublisher:FilePublisher;
private var _fileSubscriber:FileSubscriber;
private var _userManager:UserManager;
// our datagrid dataprovider will use this collection
[Bindable]
private var _fileDescriptors:ArrayCollection = new
ArrayCollection();
// file sharing group id, it is similiar to that of folder
concept
private var _groupid:String = "_filePublisherExample";
//fin bloc share
//debut bloc camera
import com.adobe.rtc.events.UserEvent;
import com.adobe.rtc.events.SharedPropertyEvent;
import com.adobe.rtc.events.ConnectSessionEvent;
import mx.controls.Button;
import com.adobe.coreUI.controls.CameraUserBar;
import mx.core.UITextField;
import com.adobe.rtc.events.SharedPropertyEvent;
import com.adobe.rtc.sharedModel.SharedProperty;
import com.adobe.rtc.collaboration.WebcamSubscriber;
import mx.containers.VBox;
import com.adobe.rtc.events.UserEvent;
import com.adobe.rtc.sharedManagers.StreamManager ;
import
com.adobe.rtc.sharedManagers.descriptors.StreamDescriptor ;
private var currentSubscriber:WebcamSubscriber ;
private var sharedProperty:SharedProperty ;
* This example shows how the camera component can be used
with a publisher and a
* number of subscribers. The publisher has a big view while
subscribers have a small view.
* A shared property is used to pass the stream to the
publisher's user interface.
* Every user is provided with play and pause handlers.
private function onCreationComplete():void
sessionManager.roomManager.autoPromote = true ;
sessionManager.roomManager.guestsHaveToKnock = false ;
sharedProperty = new SharedProperty();
sharedProperty.isSessionDependent = true ;
sharedProperty.sharedID = "webcamShare2" ;
sharedProperty.connectSession = sessionManager ;
sharedProperty.subscribe();
sharedProperty.addEventListener(SharedPropertyEvent.CHANGE,onChange);
sessionManager.userManager.addEventListener(UserEvent.USER_REMOVE,onUserRemove)
* @private
protected function onUserRemove(p_event:UserEvent):void
if ( sharedProperty.value &&
p_event.userDescriptor.userID == sharedProperty.value[0]) {
sharedProperty.value = [] ;
* When the main big stream changes, all users can view it
via the sharedProperty.
private function onChange(p_evt:SharedPropertyEvent):void
if ( currentSubscriber != null ) {
clickedContainer.removeChild(currentSubscriber);
currentSubscriber.close();
currentSubscriber = null ;
if ( sharedProperty.value == null ||
sharedProperty.value.length == 0 ) {
return ;
currentSubscriber = new WebcamSubscriber();
currentSubscriber.connectSession = sessionManager ;
currentSubscriber.subscribe();
currentSubscriber.webcamPublisher = webCamPub ;
currentSubscriber.publisherIDs = sharedProperty.value ;
currentSubscriber.addEventListener(UserEvent.USER_BOOTED,onCleared);
currentSubscriber.addEventListener(UserEvent.STREAM_CHANGE,onCameraPause);
clickedContainer.addChild(currentSubscriber);
invalidateDisplayList();
* If the big image is stopped, clear it.
private function onCleared(p_evt:UserEvent):void
if ( sessionManager.userManager.myUserRole ==
UserRoles.OWNER ) {
sharedProperty.value = [] ;
* Clicking on the small image below makes it large.
private function onClick(p_evt:MouseEvent):void
if ( (p_evt.currentTarget is WebcamSubscriber) &&
!(p_evt.target.parent is CameraUserBar)) {
sharedProperty.value = (p_evt.currentTarget as
WebcamSubscriber).publisherIDs;
* Handler for a user pausing the camera.
protected function onCameraPause(p_evt:UserEvent):void
var userStreams:Array =
sessionManager.streamManager.getStreamsForPublisher(p_evt.userDescriptor.userID,StreamMan ager.CAMERA_STREAM);
if (userStreams.length == 0) {
trace("onCameraPause: no userStreams");
return;
for (var i:int = 0; i< userStreams.length ; i++ ) {
if (userStreams
.type == StreamManager.CAMERA_STREAM ) {
break;
var streamDescriptor:StreamDescriptor = userStreams;
if ( streamDescriptor.streamPublisherID ==
sessionManager.userManager.myUserID ) {
sessionManager.streamManager.pauseStream(StreamManager.CAMERA_STREAM,!streamDescriptor.pa use,streamDescriptor.streamPublisherID);
* Handler for a user stopping the camera.
private function onBooted(p_evt:UserEvent):void
if ( (p_evt.currentTarget is WebcamSubscriber) &&
(p_evt.userDescriptor.userID == sessionManager.userManager.myUserID
|| sessionManager.userManager.myUserRole == UserRoles.OWNER)) {
webCamPub.stop();
if ( (p_evt.currentTarget.parent as VBox).getChildAt(1) is
Button ){
((p_evt.currentTarget.parent as VBox).getChildAt(1) as
Button).label = "Start" ;
if ( sharedProperty.value && (sharedProperty.value
as Array)[0] == p_evt.userDescriptor.userID ) {
sharedProperty.value = [] ;
]]>
</mx:Script> -
Hi ,
We have enabled context sensitive DFF in Bank Branch Page for HZ_PARTIES DFF , We have created Flex Map so that only bank branch context fields are only displayed in the bank branch page and as we know party information DFF is shared by supplier and Customer Page so we dint want to see any Bank Branch fields or context information in those pages.
We have achieved the requirement but when open existing branches bank branch update is throwing below error message :
"The value in flexfield context reference web bean does not match with the value in the context of the Descriptive flexfield web bean BranchDescFlex. If this in not intended, please go back to correct the data or contact your Systems Administrator for assistance."
this error is thrown only when we open existing branches, if we save existing branch and open then it is not throwing any error message.
Please let us know reason behind this error message.
Thanks,
MrudualaYou are kidding? It took me about 3 minutes to scroll down on my tab to get to the triplex button!
Habe you read the error message?
Quote:
java.sql.SQLSyntaxErrorException: ORA-04098: trigger 'PMS.PROJECT_SEQ' is invalid and failed re-validation
Check the trigger and it should work again.
Timo -
Send Error Type or Description of failed messgaes in body of mail using SMTP adapter
Hi,
I want to send failed messages error type or description to admin to notify him for error occurs in BizTalk, with Error description in body part.
I have set Send port option for "Enable routing of failed messages" and created a send port having SMTP adapter. Now in body I want to send error description.
Pls advise how can I achieve this.
-- Kind Regards SandeepWhen failed message routing is enabled, BizTalk Server does not suspend the message—it routes the message instead.
When a failed message is generated, BizTalk Server promotes error-report-related message context properties and demotes regular message context properties before publishing the failed message. Compare this to the default behavior when
failed message routing is not enabled: Messages that fail are suspended. --------
MSDN
So if i were in this situation i would prefer to route the failed message to SMTP as well as to some kind of transport from which i can again receive the message ( like MSMQ or File).
I mean create a send port group and bind 2 send port to this group (SMTP and MSMQ) and bind this group to that orchestration (specified in previous post) which subscribe the Failed Messages. Then bind the MSMQ location to your receive
location to retry.
I am not sure wheather it is the optimal solution or not ..... but it will work. Kindly let me know if you are not clear with what i said.
Regards -
Journal Import - Import Descriptive Flexfield = Yes
Hi Gurus,
If i run the Journal Import - Program with Import Descriptive Flexfield parameter = 'Yes'.
Will it allow if a descriptive flex field is null.
I do not want to import the Journals if the Attribute1 is NULL. Kindly help me with the best way of doing this..
Thanks,
GenooI wont be able to comment on it with certainity.
You can perform a trial and error run by doing the following:
1st case: i would recommend you to run the Jounral Import by setting the Descriptive Flexfield Import as Yes and with validations and without making the changes in the code.
2nd case: i would recommend you to run the Jounral Import by setting the Descriptive Flexfield Import as Yes and with validations and by making the changes in the code.
Compare the results of the two scenario above and make changes accordingly if required, However prior to making the changes please consult it with a technical resource to get his thoughts on the same.
Also you can evaluate what validations are provided by Oracle while importing the DFF since may be that you dont have to anything else apart from your side and Oracle standard code can take care of the same.
Hope this helps
Thanks and Regards
Manish Jain. -
Create Descriptive Flexfield Structure
All,
I am wondering if it is possbile to create a descriptive flexfield structure to be added to a form flexfield instead of having the flexfields segments added seperately.
Example:
Currently:
Flexfield 1 Yes
Flexfield 2 Yes
Flexfield 3 Yes
Flexfield 4 No
Desired:
Flexfield 1 Yes
Flexfield 2 Yes.Yes.No
Thanks in advanced!
BrendaTry specifying a view name in the structure and see what information it gives You after compiling. I tried a while back, I guess with 11.5.7 but it gave me an error regarding the application at which the base table was registered and DFV view creation failed.
-
DESCRIPTIVE FLEXFIELD의 REFERENCE FIELD추가방법
제품 : AOL
작성날짜 : 2004-05-20
DESCRIPTIVE FLEXFIELD의 REFERENCE FIELD추가방법
==========================================
PURPOSE
Descriptive Flexfield의 기능 중 Reference Field를 사용하기 위해서는
원하는 Form Block의 Field를 Reference Field로 등록해야 한다.
Explanation
1. Place cursor in the form field which you want to use as a Reference field.
2. Select Help > Tools > Examine from the menu in order to obtain the <
Value>.
3. The (N) Setup > Flexfields > Descriptive > Segments form Context
Field
Value Code for the DFF must = <Value>
4. Register the <Block>.<Field> as a Reference Field in the
(N)Setup > Flexfields > Descriptive > Register form.
5. Pick registered Reference Field from the LOV in the
relevant (N) Setup > Flexfields > Descriptive > Segments form.
즉, 원하는 Form의 Field에 마우스를 가져다 놓고,
Help -> Tools -> Examine화면의 Block과 Field이름을 확인한 후
Reference Field등록하는 화면에 그 Block.Field를 등록하면 된다.
Reference Documents
Note : 144227.1Thanks Sandeep,
Can you tell me what values does this context field hold? Someone have defined it in the location you specified but whats the value which it holds? For example In the DFF "Add'l Periods of Service Information" the Reference Field was defined as "C_LEGISLATION_CODE". Whats it doing exactly over here?
Thanks
J -
Non-enabled or non-existent descriptive flexfield segment
hi m getting this Error when m trying to Save Text Field value in DFF segment
A value has been provided for a non-enabled or non-existent descriptive flexfield segment. (SEGMENT=ATTRIBUTE17) (VALUE=Y)
regards,
VivekAre you trying to use a DFF segment which is not used in the current context. This means you also have the DFF segments being used on the Page.
-
No concatenated descriptive flexfield value to validate.
After adding another Descriptive Flexfield, pointing to ATTRIBUTE19 in GL JE LINES ('Enter Journals:Lines'), the ADI Templates are giving me Warnings as 'No concatenated descriptive flexfield value to validate.', with a YELLOW face on all the ADI rows.
It never gave any kind of Warning before these changes (Adding / Enabling ATTRIBUTE19 length 50 in the Descriptive Flex field of GL Lines ).
Users are not happy with these messages.
Please advice me why am I getting the error and what I can do to fix this Warning.
Thank you so much,
Kiran KesariHi Nel,
use a Pair type value set to achieve this. This value set should be attached to both the DFF Item Low and DFF Item High DFF attributes.
You can refer to seeded value set CST_SRS_ITEM_PAIR.
For this Pair value set the functions are define dlike this:
Event: Edit
Function
FND POPIDR CODE="MSTK" APPL_SHORT_NAME="INV"
VALIDATE="NONE" SEG=:!VALUE NAVIGATE="!DIR" REQUIRED="N"
ALLOWNULLS="Y"
Event: Validate
Function
FND VALIDR CODE="MSTK" APPL_SHORT_NAME="INV"
VALIDATE="NONE" SEG=:!VALUE REQUIRED="N" ALLOWNULLS="Y"
Hope this helps!
-Supro -
Item categories descriptive flexfield
Hi,
I want to change item categories descriptive flexfield on production system and add two more segments.
Should I do it after no user would be working on inventory or there would be no problem in adding or chnaging descriptive flexfield in live systen?
/ZThere is always a small chance that a user who happens to be updating the category may get an error if you do it during day-time.
So try it in off-hours.
You said "descriptive" but I assume you mean the "key" flexfield for categories.
If you add 2 segments, it is important that you update existing categories and make sure they are valid with the new structure.
Also, if those old categories were used in Purchasing, you may get errors.
Sandeep Gandhi -
Oracle error code and description
Gurus,
Is there a distinct list of oracle error code with description(in excel or txt,csv format) , the requirement is to convert most of generic oracle messages into user defined messages and store it in a XML.
Regards
R
Edited by: Darthvader-647181 on Aug 11, 2010 8:00 AMHareeshGhanta wrote:
Hi,
Thank you.I am looking for some additional information like Cause and Action also to be printed out.Is there any way we can achieve this.
Regards
Sounds like you are trying to re-invent the wheel.
What's wrong with the message text as supplied by oracle? Those messages are universally known and understood -- well, at least by people who actually read them vs. simply dumping them to a forum. Why would you want to obfuscate them with your own text?
As for "cause and action", if one has the error code emitted by oracle, there are boat load of web sites that already replicate the same information that oracle itself supplies:
oracle:dwdev$ oerr ora 12154
12154, 00000, "TNS:could not resolve the connect identifier specified"
// *Cause: A connection to a database or other service was requested using
// a connect identifier, and the connect identifier specified could not
// be resolved into a connect descriptor using one of the naming methods
// configured. For example, if the type of connect identifier used was a
// net service name then the net service name could not be found in a
// naming method repository, or the repository could not be
// located or reached.
// *Action:
// - If you are using local naming (TNSNAMES.ORA file):
// - Make sure that "TNSNAMES" is listed as one of the values of the
// NAMES.DIRECTORY_PATH parameter in the Oracle Net profile
// (SQLNET.ORA)
// - Verify that a TNSNAMES.ORA file exists and is in the proper
// directory and is accessible.
// - Check that the net service name used as the connect identifier
// exists in the TNSNAMES.ORA file.
// - Make sure there are no syntax errors anywhere in the TNSNAMES.ORA
// file. Look for unmatched parentheses or stray characters. Errors
// in a TNSNAMES.ORA file may make it unusable.
// - If you are using directory naming:
// - Verify that "LDAP" is listed as one of the values of the
// NAMES.DIRETORY_PATH parameter in the Oracle Net profile
// (SQLNET.ORA).
// - Verify that the LDAP directory server is up and that it is
// accessible.
// - Verify that the net service name or database name used as the
// connect identifier is configured in the directory.
// - Verify that the default context being used is correct by
// specifying a fully qualified net service name or a full LDAP DN
// as the connect identifier
// - If you are using easy connect naming:
// - Verify that "EZCONNECT" is listed as one of the values of the
// NAMES.DIRETORY_PATH parameter in the Oracle Net profile
// (SQLNET.ORA).
// - Make sure the host, port and service name specified
// are correct.
// - Try enclosing the connect identifier in quote marks.
// See the Oracle Net Services Administrators Guide or the Oracle
// operating system specific guide for more information on naming. -
Is it possible to delete a Descriptive Flexfield?
Hi,
Is it possible to delete a Descriptive Flexfield?
If yes, how?
Thanks,
RaviThank you Fadi. I am trying to reload DFFs using FNDLOAD utility from DEV instance to TEST instance. As the flexfields are already there, it does not appear to be reloading them (no error messages in the FNDLOAD log though), because I don't see the DFFs being updated with the latest changes.
So, I was thinking if I delete the existing ones, maybe it will reload correctly. But, if I cannot delete the existing DFFs, there is no way to get them corrected, other than manually doing it on the TEST environment. -
Hi
when i tested my first session bean by IBM websphere Universal Test Client , i got the following error when execute getBookForPlatform(String workPlatform) saying error in locating entity bean Book_catalog and i tried to test Book_catalog entity bean and it's working successfuly but i do not know why seesion bean could not locate it ? :
========== the Error ===========
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: ; nested exception is:
javax.ejb.EJBException: Error getting TechLibBook_catalogLocalHome from findByPlatform method:Error locating TechLibBook_catalogLocalHome: Context: localhost/nodes/localhost/servers/server1, name: ejb/Book_catalog: First component in name Book_catalog not found.
at com.ibm.CORBA.iiop.UtilDelegateImpl.mapSystemException(UtilDelegateImpl.java:156)
at com.ibm.CORBA.iiop.UtilDelegateImpl.wrapException(UtilDelegateImpl.java:684)
at javax.rmi.CORBA.Util.wrapException(Util.java:295)
at apress.wsad.techlib._TechLibFacade_Stub.getBookForPlatform(_TechLibFacade_Stub.java:267)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at com.ibm.etools.utc.model.ReflectionMethodModel.invoke(ReflectionMethodModel.java:68)
at com.ibm.etools.utc.servlet.InvokeServlet.invoke(InvokeServlet.java:110)
at com.ibm.etools.utc.servlet.InvokeServlet.doPost(InvokeServlet.java:366)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
Caused by: java.rmi.RemoteException: ; nested exception is:
javax.ejb.EJBException: Error getting TechLibBook_catalogLocalHome from findByPlatform method:Error locating TechLibBook_catalogLocalHome: Context: localhost/nodes/localhost/servers/server1, name: ejb/Book_catalog: First component in name Book_catalog not found.
at com.ibm.ejs.container.RemoteExceptionMappingStrategy.mapEJBException(RemoteExceptionMappingStrategy.java:379)
at com.ibm.ejs.container.RemoteExceptionMappingStrategy.mapException(RemoteExceptionMappingStrategy.java:112)
at com.ibm.ejs.container.RemoteExceptionMappingStrategy.setUncheckedException(RemoteExceptionMappingStrategy.java:202)
at com.ibm.ejs.container.EJSDeployedSupport.setUncheckedException(EJSDeployedSupport.java:296)
at apress.wsad.techlib.EJSRemoteStatelessTechLibFacade_3526fe64.getBookForPlatform(EJSRemoteStatelessTechLibFacade_3526fe64.java:32)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.rmi.util.ProxyUtil.invokeWithClassLoaders(ProxyUtil.java:701)
at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1084)
at $Proxy1.getBookForPlatform(Unknown Source)
at apress.wsad.techlib._TechLibFacade_Stub.getBookForPlatform(_TechLibFacade_Stub.java:260)
... 29 more
Caused by: javax.ejb.EJBException: Error getting TechLibBook_catalogLocalHome from findByPlatform method:Error locating TechLibBook_catalogLocalHome: Context: localhost/nodes/localhost/servers/server1, name: ejb/Book_catalog: First component in name Book_catalog not found.
at apress.wsad.techlib.TechLibFacadeBean.getBookForPlatform(TechLibFacadeBean.java:92)
at apress.wsad.techlib.EJSRemoteStatelessTechLibFacade_3526fe64.getBookForPlatform(EJSRemoteStatelessTechLibFacade_3526fe64.java:22)
... 39 more
===== End of Error ======
====== the source code of session bean=======
package apress.wsad.techlib;
import javax.ejb.*;
import javax.naming.*;
import javax.rmi.*;
import java.rmi.*;
import java.lang.*;
import java.util.*;
public class TechLibFacadeBean implements javax.ejb.SessionBean
private javax.ejb.SessionContext mySessionCtx;
// Variable to keep the Home Local refernce to TechLibBook_catalog object
private TechLibBook_catalogLocalHome catalogLocalHome = null ;
// Method to get the Home Interface of the Book_catalog entity bean.
private TechLibBook_catalogLocalHome getCatalogLocalHome()
throws RemoteException
try
if (catalogLocalHome == null)
InitialContext initContext = new InitialContext();
Object objRef =initContext.lookup("ejb/Book_catalog");
catalogLocalHome = (TechLibBook_catalogLocalHome) objRef;
return (TechLibBook_catalogLocalHome) objRef;
else
return catalogLocalHome;
catch (NamingException ne)
System.out.println("Error locating TechLibBook_catalogLocalHome: " +
ne.getMessage());
throw
new RemoteException("Error locating TechLibBook_catalogLocalHome: " +
ne.getMessage());
// This business method must be promoted to the remote interface
public Vector getBookForPlatform(String workPlatform)
throws FinderException
Vector bookVector = new Vector();
TransportBean transObject;
TechLibBook_catalogLocal bookCatalogLocal = null;
Collection collBookRecords;
try
collBookRecords =
getCatalogLocalHome().findByPlatform(workPlatform);
Iterator iterator = collBookRecords.iterator();
while (iterator.hasNext())
bookCatalogLocal =
(TechLibBook_catalogLocal) iterator.next();
transObject = new TransportBean();
transObject.catalogNumber = bookCatalogLocal.getCatalog_number();
transObject.author = bookCatalogLocal.getAuthor();
transObject.bookTitle = bookCatalogLocal.getBook_title();
transObject.location = bookCatalogLocal.getLocation();
transObject.platform = bookCatalogLocal.getPlatform();
transObject.txnDate = bookCatalogLocal.getLanguage();
bookVector.addElement(transObject);
} // End of while
} // End of try
catch(FinderException fe)
System.out.println("Error executing findByPlatform method: " +
fe.getMessage());
throw
new EJBException("Error executing findByPlatform method: " +
fe.getMessage());
catch(Exception e)
System.out.println("Error getting TechLibBook_catalogLocalHome from findByPlatform method:" + e.getMessage());
throw
new EJBException("Error getting TechLibBook_catalogLocalHome from findByPlatform method:" + e.getMessage());
return bookVector;
public javax.ejb.SessionContext getSessionContext()
return mySessionCtx;
public void setSessionContext(javax.ejb.SessionContext ctx)
mySessionCtx = ctx;
* ejbCreate
public void ejbCreate() throws javax.ejb.CreateException
public void ejbActivate()
public void ejbPassivate()
public void ejbRemove()
==== End if source code =========
Please tell me what's the problem ?
with regardsi found what's the problem i made the url for lookup as the following:
lookup("java:comp/env/Book_catalog")
instead of
lookup("ejb/Book_catalog")
could anyone tell me what's the difference between 'java:comp/env/' and without it
by the way i used for lookup Datasource the following and it's working
DataSource dataSource = (DataSource)jndiContext.lookup("jdbc/TECHBOOK");
thanks
Maybe you are looking for
-
Error after downloading a rental film
Have rented films successfully, but have downloaded 2 films today and when they are ready to watch they come up with the message 'there is an error, please try later'. They have been downloaded cos it is stating how many days left to view. Any idea
-
Failed to create Salience object and java.lang.NoClassDefFoundError
We are getting the below error while trying to use the text enrichment component in Endeca integrator clover server. 2015-01-26 10:11:59,880 INFO 1343495 [pool-7-thread-1] Creating new Salience object from data paths: '/app/oracle/ofm/TextEnrichment/
-
Implementing two cisco CSS 11154's in an ISP environment.
Hi All, My boss has asked me to implement CSS11154's as redundant loadbalancers in our network. We are an ISP that hosts client machines. My initial plan is as follows: A quick example: clientA has 3 webservers clientB has 2 webservers Both clients w
-
Installing Flash Player, any version
I've tried installing Flash Player 13 on my iMac. I'm running OS X 10.9.2. I've tried the installation on both Safari and Firefox. I've read the notice that Adobe is working on the problem and followed the suggestion that I uninstall Flash Player and
-
RMBP randomly shuts down - now with red battery indicator at 52%
For the past few days, my mid 2012 15" rMBP has been powering down or sleeping while in the middle of performing tasks, and more importantly when it's ABOVE 15% charge. Just today however, I now have a red battery indication at 52% and holding. The o