CoA Session Context Not Found
Hello Guys,
I am using a Cisco 2951 with 15.3(3)M1, and when doing some tests with CoA i got the following error:
*Nov 7 10:34:24.780: COA: 1.1.1.1 request queued
*Nov 7 10:34:24.780: RADIUS: authenticator 52 CF BB 58 BB D5 69 4E - 59 3B 09 75 E9 83 54 4C
*Nov 7 10:34:24.780: RADIUS: User-Name [1] 2 ""
*Nov 7 10:34:24.780: RADIUS: Acct-Session-Id [44] 10 "0000002B"
*Nov 7 10:34:24.780: RADIUS: Vendor, Cisco [26] 42
*Nov 7 10:34:24.780: RADIUS: Cisco AVpair [1] 36 "subscriber:command=reauthenticate "
*Nov 7 10:34:24.780: RADIUS: Message-Authenticato[80] 18
*Nov 7 10:34:24.780: RADIUS: B6 78 8B EA DE 3B 73 26 57 53 C0 E7 47 89 2C 6D [ x;s&WSG,m]
*Nov 7 10:34:24.780: COA: Message Authenticator decode passed
*Nov 7 10:34:24.780: ++++++ CoA Attribute List ++++++
*Nov 7 10:34:24.780: 01EEAF6C 0 00000081 username(450) 0
*Nov 7 10:34:24.780: 01EEB7EC 0 00000001 session-id(408) 4 43(2B)
*Nov 7 10:34:24.780: 01EEB820 0 00000081 ssg-command-code(490) 1 32
*Nov 7 10:34:24.780:
*Nov 7 10:34:24.780: ++++++ Received CoA response Attribute List ++++++
*Nov 7 10:34:24.780: 01EEB7EC 0 00000082 reply-message(273) 16 No valid Session
*Nov 7 10:34:24.780: 01EEB820 0 00000002 error-cause(272) 4 Session Context Not Found
This is very strange, because the session-id is correct.
Can anyone advice me on this? Thanks!
David
Hello Manuel,
Thanks for all your help. Here is the show output
LNS#show subscriber session uid 47 detailed internal
Subscriber session handle: EC00005E, state: connected, service: Local Term
Unique Session ID: 47
Identifier: [email protected]
SIP subscriber access type(s): VPDN/PPP
Root SIP Handle: 5300005D, PID: 313
Child SIP Handle: 7900002F, PID: 318
Current SIP options: Req Fwding/Req Fwded
Session Up-time: 19:52:55, Last Changed: 19:52:55
Switch handle: 211E
Interface: Virtual-Access2.2
Policy information:
Context 10EC39C0: Handle 7B00002F
AAA_id 0000003B: Flow_handle 0
Authentication status: authen
Policy internals:
Policy state : wait-for-events
Authorization type : AAA service
Active key : apply-config-only
Authorization active key : Auth-User
Last top level rule type : session-service-found
Client : SM
Last message from client : Apply Config Success
Last message to client : Apply Config Success
Current key list from client :
Identifier: Auth-Domain = "xxx.xx"
Identifier: Protocol-Type = 0 (PPP Access Protocol)
Identifier: Session-Handle = 3959423070 (EC00005E)
Identifier: Tunnel-Name = "LNS"
Identifier: Media-Type = 2 (IP)
Identifier: Input Interface = "GigabitEthernet0/1.2000"
Identifier: AAA-Acct-Enbl = 1 (YES)
Identifier: Authen-Status = 0 (Authenticated)
Identifier: Nasport = Vty Terminal: port 47 IP 69.17.193.90
Identifier: Auth-User = "[email protected]"
Network plumbing done yet : Yes
Network plumbing directive proposed : None
AIE handle : 2B00002F
AIE user ID : 47
AAA user ID : 0000003B/59
Authorization index : 0
Authorization priority : 1
Context : 7B00002F
North handle : 00000000
North callback : 00000000
South handle : EC00005E
South callback : 06B898A8
Current access-type : PPP
All access-types : [0] VPDN
: [1] PPP
No more keys available from : PPP
Session activated : Yes
Session inbound features:
Feature: QoS Policy Map
Input Policy Map: INTERNET-15Mb-IN
Session outbound features:
Feature: QoS Policy Map
Output Policy Map: INTERNET-15Mb-OUT
Configuration sources associated with this session:
Interface: Virtual-Template1, Active Time = 19:52:55
Pending status associated with this session:
Bind status: Success, Delay delete: No, Pending mask: 0
And the debug output for a reauthenticate command
*Nov 8 10:21:58.367: RADIUS: COA received from id 1 x.x.x.x:60590, CoA Request, len 108
*Nov 8 10:21:58.367: COA: x.x.x.x request queued
*Nov 8 10:21:58.367: RADIUS: authenticator 1D 92 FF 04 43 EA 0E 11 - DE 49 2F AE 81 46 42 78
*Nov 8 10:21:58.367: RADIUS: User-Name [1] 18 [email protected]
*Nov 8 10:21:58.367: RADIUS: Acct-Session-Id [44] 10 "0000003B"
*Nov 8 10:21:58.367: RADIUS: Vendor, Cisco [26] 42
*Nov 8 10:21:58.367: RADIUS: Cisco AVpair [1] 36 "subscriber:command=reauthenticate "
*Nov 8 10:21:58.367: RADIUS: Message-Authenticato[80] 18
*Nov 8 10:21:58.367: RADIUS: 7F CA 0A 96 A7 4C 5F 05 57 33 4D 36 D6 7A 37 7E [ L_W3M6z7~]
*Nov 8 10:21:58.367: COA: Message Authenticator decode passed
*Nov 8 10:21:58.367: ++++++ CoA Attribute List ++++++
*Nov 8 10:21:58.367: 01FCE77C 0 00000081 username(450) 16 [email protected]
*Nov 8 10:21:58.367: 01FCFBAC 0 00000001 session-id(408) 4 59(3B)
*Nov 8 10:21:58.367: 01FCFBE0 0 00000081 ssg-command-code(490) 1 32
*Nov 8 10:21:58.367:
*Nov 8 10:21:58.367: RADIUS/ENCODE(00000000):Orig. component type = Invalid
*Nov 8 10:21:58.367: RADIUS(00000000): sending
*Nov 8 10:21:58.367: RADIUS(00000000): Send CoA Nack Response to 69.17.193.4:60590 id 1, len 62
*Nov 8 10:21:58.367: RADIUS: authenticator A3 EC 85 01 C3 31 E2 B3 - 25 22 38 79 DA 8E 95 46
*Nov 8 10:21:58.367: RADIUS: Reply-Message [18] 18
*Nov 8 10:21:58.367: RADIUS: 4E 6F 20 76 61 6C 69 64 20 53 65 73 73 69 6F 6E [ No valid Session]
*Nov 8 10:21:58.367: RADIUS: Dynamic-Author-Error[101] 6 Session Context Not Found [503]
*Nov 8 10:21:58.367: RADIUS: Message-Authenticato[80] 18
*Nov 8 10:21:58.367: RADIUS: AC 83 2A 7C DE 7D 78 8E B7 91 C9 F0 16 8B 86 D2 [ *|}x]
Even the PoA is not working
*Nov 8 10:24:04.022: RADIUS: POD received from id 4 x.x.x.x:57061, POD Request, len 66
*Nov 8 10:24:04.022: POD: 69.17.193.4 request queued
*Nov 8 10:24:04.022: ++++++ POD Attribute List ++++++
*Nov 8 10:24:04.022: 01FCFBAC 0 00000081 username(450) 16
[email protected]
*Nov 8 10:24:04.022: 01FCE77C 0 00000001 session-id(408) 4 59(3B)
*Nov 8 10:24:04.022: 01FCE7B0 0 00000081 Message-Authenticator(274) 16 20 2C D0 32 B2 B7 70 BC CE 0F 57 30 8A 0B 52 B7
*Nov 8 10:24:04.022:
*Nov 8 10:24:04.022: RADIUS/ENCODE(00000000):Orig. component type = Invalid
*Nov 8 10:24:04.022: RADIUS(00000000): sending
*Nov 8 10:24:04.022: RADIUS(00000000): Send Disconnect Nack Response to x.x.x.x:57061 id 4, len 44
*Nov 8 10:24:04.022: RADIUS: authenticator 86 6C A4 7E EC E6 D8 DA - 30 03 38 E7 51 03 78 86
*Nov 8 10:24:04.022: RADIUS: Reply-Message [18] 18
*Nov 8 10:24:04.022: RADIUS: 4E 6F 20 76 61 6C 69 64 20 53 65 73 73 69 6F 6E [ No valid Session]
*Nov 8 10:24:04.022: RADIUS: Dynamic-Author-Error[101] 6 Session Context Not Found [503] *Nov 8 10:24:04.022: RADIUS: POD received from id 4 x.x.x.x:57061, POD Request, len 66
*Nov 8 10:24:04.022: POD: x.x.x.x request queued
*Nov 8 10:24:04.022: ++++++ POD Attribute List ++++++
*Nov 8 10:24:04.022: 01FCFBAC 0 00000081 username(450) 16 [email protected]
*Nov 8 10:24:04.022: 01FCE77C 0 00000001 session-id(408) 4 59(3B)
*Nov 8 10:24:04.022: 01FCE7B0 0 00000081 Message-Authenticator(274) 16 20 2C D0 32 B2 B7 70 BC CE 0F 57 30 8A 0B 52 B7
*Nov 8 10:24:04.022:
*Nov 8 10:24:04.022: RADIUS/ENCODE(00000000):Orig. component type = Invalid
*Nov 8 10:24:04.022: RADIUS(00000000): sending
*Nov 8 10:24:04.022: RADIUS(00000000): Send Disconnect Nack Response to x.x.x.x:57061 id 4, len 44
*Nov 8 10:24:04.022: RADIUS: authenticator 86 6C A4 7E EC E6 D8 DA - 30 03 38 E7 51 03 78 86
*Nov 8 10:24:04.022: RADIUS: Reply-Message [18] 18
*Nov 8 10:24:04.022: RADIUS: 4E 6F 20 76 61 6C 69 64 20 53 65 73 73 69 6F 6E [ No valid Session]
*Nov 8 10:24:04.022: RADIUS: Dynamic-Author-Error[101] 6 Session Context Not Found [503]
Thanks!!
David
Similar Messages
-
Hello everyone,
I have the following scenario:
We're using "Oracle SOA Suite 11g 11.1.1.7.0" (Patched w/ 17893896) mainly for a BPM/Human workflow composite. Former, we were having the error bellow:
<Mar 16, 2015 1:13:03 PM BRT> <Error> <oracle.soa.services.workflow.query> <BEA-000000> <<.> Verification Service cannot resolve user identity. User weblogic cannot be found in the identity repository. Workflow Context token cannot be null in request.
ORABPEL-30511
When that error ocurred, no one was able to use the system (BPM/Human Workflow).
I opened an SR, and after some analysis from the support, it recommended me to set up "virtualize=true" in EM, and restarting the domain. Then it started logging the following:
connection to ldap://[10.200.10.57]:7001 as cn=Admin.
javax.naming.NamingException: No LDAP connection available to process request for DN: cn=Admin.
Looking up on support KB, I found this note Doc ID 1545680.1 and increased from Max size of Connection Pool 10 to 200. That did work successfully! Problem now is that the <SERVER>_diagnostic.log is being filled up with the following error:
[2015-03-31T16:03:46.421-03:00] [soa_server2] [ERROR] [] [oracle.soa.services.workflow.verification] [tid: [ACTIVE].ExecuteThread: '19' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: e0194e38aa6c9a2f:39fc1ff9:14c5def5247:-8000-00000000000a5653,0] [APP: soa-infra] <.> validateContextToken: workflow session was not found for given context. Create a new workflow session with token=51490173-e3d0-41dd-ae99-983915aa8454;;G;;Z+P7Oe9ABnoTUQD9ECryEW2l0/8yRcqPDyZsOWBCuzMmRgA3Qsj601TxmWQ87z2MjuwW5AH+KzgjIwkPmhJFdpc1FrE6Y/MrN1bxIDHJWu2/zP3iSNwKD07hRrh/U37Ea0TvaQyuaHJIog9y3Ptmzw==
One important point is that we're using only the embedded WLS ldap. So I am not 100% sure if we should be using the virtualize flag=true, once all docs I read point out that this should be done when using multi-ldap providers.
Also, I only got this error in the "diagnostic.log".
Although, no user has complained about using the system, I really want to work it out. Anyone has any suggestions?
Thanks in advance!I have moved your thread from Certification to SOA Suite to get proper assistance.
Thanks,
Lisa -
ORA-01023: Cursor context not found (Invalid cursor number)
hello guys.
when i'm trying to make a regular recover, i get this error:
RMAN> run
2> {
3> restore database;
4> recover database;
5> alter database open;
6> }
Starting restore at 09-MAR-07
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 03/09/2007 10:23:41
ORA-01023: Cursor context not found (Invalid cursor number)
what am i doing wrong and how could i open this cursor?
sorry, that i'm clueless.
thank you.TAF is not supported with RMAN according to Metalink note
-
Faces context not found (Form based authentication)
<security-constraint>
<display-name>Example Security Constraint</display-name>
<web-resource-collection>
<web-resource-name>Protected Area</web-resource-name>
<url-pattern>/jsp/WorkingZone.jsp</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>manager</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<realm-name>Example Form-Based Authentication Area</realm-name>
<form-login-config>
<form-login-page>/Login/login.jsp</form-login-page>
<form-error-page>/Login/error.jsp</form-error-page>
</form-login-config>
</login-config>
when i tried to login with valid user the the url shows
http://localhost:8080/FormAuth/jsp/WorkingZone.jsp
how to append faces context automatically.
I am not finding for this faces context.
Plz suggest me a solution soon.
Thanks
Raghavendra PattarThe FacesContext is created by FacesServlet which is
definied in the web.xml with an url-pattern.
If you just follow the url-pattern of this
FacesServlet, usually /faces/ or *.faces, or *.jsf,
then the FacesContext will be created.Hi balu,
this is the web.xml that i am using
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/navigation.xml,/WEB-INF/managed-beans.xml</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.validateXml</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.verifyObjects</param-name>
<param-value>false</param-value>
</context-param>
<filter>
<filter-name>UploadFilter</filter-name>
<filter-class>com.sun.rave.web.ui.util.UploadFilter</filter-class>
<init-param>
<description>
The maximum allowed upload size in bytes. If this is set
to a negative value, there is no maximum. The default
value is 1000000.
</description>
<param-name>maxSize</param-name>
<param-value>1000000</param-value>
</init-param>
<init-param>
<description>
The size (in bytes) of an uploaded file which, if it is
exceeded, will cause the file to be written directly to
disk instead of stored in memory. Files smaller than or
equal to this size will be stored in memory. The default
value is 4096.
</description>
<param-name>sizeThreshold</param-name>
<param-value>4096</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>UploadFilter</filter-name>
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>ThemeServlet</servlet-name>
<servlet-class>com.sun.rave.web.ui.theme.ThemeServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ThemeServlet</servlet-name>
<url-pattern>/theme/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file></welcome-file>
</welcome-file-list>
<jsp-config>
<jsp-property-group>
<url-pattern>*.jspf</url-pattern>
<is-xml>true</is-xml>
</jsp-property-group>
</jsp-config>
<security-constraint>
<display-name>Example Security Constraint</display-name>
<web-resource-collection>
<web-resource-name>Protected Area</web-resource-name>
<url-pattern>/secure/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>manager</role-name>
</auth-constraint>
</security-constraint>
<!-- Default a login configuration that uses form-based authentication -->
<login-config>
<auth-method>FORM</auth-method>
<realm-name>Example Form-Based Authentication Area</realm-name>
<form-login-config>
<form-login-page>/Login/login.jsp</form-login-page>
<form-error-page>/Login/error.jsp</form-error-page>
</form-login-config>
</login-config>
<!-- Define a logical role for this application, needs to be mapped to an actual role at deployment time -->
<security-role>
<role-name>manager</role-name>
</security-role>
</web-app>1)My requirement is Login page should be the first page
If enter the valid user and password
then i will get directory structure
when i click the secured JSF page inside secure
i got this URL
http://localhost/secure/WorkingZone.jsp
obiviously /faces is missing
and i am getting faces context not found.
If u need further clarification i will send u..
Plz reply me... -
Hi ,
im a begginer in OSM. i installed the PIP cartridges in my machine and i simply placed an order by using the Sample XML inside the Sales order Sample cartridges. i placed the order with the GoldCSalesOrder10010-V2EBM.xml...... the order taking around 10-12 minutes to complete though it has only automated tasks... i monitored the log and i found it is throwing some error... it is ORA-20502 Automation context Not Found....finally its getting completed but taking much time... im just installed PIP and submitted the order... what could be the issue...help me to sort out..
thanks,
JeevaThe trick is that OSM needs to initiate the communication. It is depicted in the diagrams in OSM Developer's Guide in the automation plugin section (however not very clear - in my opinion).
My experience is that you need to correlate messages to OSM by using the (JMS)correlation id sent by the initiating message from OSM. If this can't be sent directly to the external system, a component (e.g. JMS queue + MDB) needs to be placed between the systems and handle the correlation between the messages from the external systems and the OSM "request for reply". -
Displaying "ORA-20502: Automation context not found." error message
Hi all,
I am implementing functionality in OSM 7 to read jms message sent by external system.I am setting default jmscorrelationid as "test" in order to identify message.I have implemented an automated task as xslt automator and having external event receiver.but when i get the message on the queue from external system weblogic console start giving error message as -
"ORA-20502: Automation context not found.
Can you please tell me what could be the reason for this??The trick is that OSM needs to initiate the communication. It is depicted in the diagrams in OSM Developer's Guide in the automation plugin section (however not very clear - in my opinion).
My experience is that you need to correlate messages to OSM by using the (JMS)correlation id sent by the initiating message from OSM. If this can't be sent directly to the external system, a component (e.g. JMS queue + MDB) needs to be placed between the systems and handle the correlation between the messages from the external systems and the OSM "request for reply". -
Web Service session manager not found.
I'm trying to understand how to use the HTTP utilities, and I'm having trouble just creating a session. I get a Web Service session manager not found error. I've read where the client has to support cookies. My eventual client will be a labview VI that talks to a web server. I llooked at the Toolsptions, but don't see anything related to cookies. Not sure if that's what's causing this anyway, but I'm just digging. Also, I want to eventually send http messages across TCP/IP. Do I need to use the TCP/IP VIs (i.e. open connection, etc) or do I use the http utilities alone. If both are needed, how does the httpRequestID and the TCP/IP connection ID correlate.
Attachments:
htttGetSession.vi 9 KB
WebServerError.PNG 13 KBHi can you please let me know how you resolved this issue?
-
Hi,
I ran a scenario in ODI 11.1.1.5 and got the following error:
oracle.odi.runtime.agent.invocation.InvocationException: ODI-1221: Unable to restart session 5002: session is not found in work repository WORKREPIt could be the due to issue mentioned in support note
ODI-1221 Error When Executing Interface Or Package To Standalone Agent Running on OPMN (Doc ID 1482516.1) -
I'm new to EJB 3.0.
I have an application (example on internet), I try to run it but always fail.
My Application using Sun App Server 9. Development tool: Net Beans 6.
Here is message from console:
init:
init:
deps-jar:
compile:
library-inclusion-in-archive:
dist:
deps-jar:
compile:
library-inclusion-in-archive:
dist:
pre-run-deploy:
Distributing D:\SelfLearning\Java\CustomerCMP\CustomerCMP-app-client\dist\CustomerCMP-app-client.jar to [localhost:4848_server]
Prepare server resources for deployment
deployment started : 0%
deployment finished : 100%
Deploying application in domain completed successfully
Trying to create reference for application in target server completed successfully
Trying to start application in target server completed successfully
Deployment of application CustomerCMP-app-client completed successfully
Target module started
post-run-deploy:
run-deploy:
Copying 1 file to D:\SelfLearning\Java\CustomerCMP\CustomerCMP-app-client\dist
run-tool:
javax.naming.NameNotFoundException: enterprise.customer_cmp_ejb.ejb.session.CustomerSessionRemote not foundat com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.java:216) at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:188)
at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java: 74)
at com.sun.enterprise.naming.RemoteSerialContextProviderImpl.lookup(RemoteSerialContextProvid erImpl.java:129)
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:597)
at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:125)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaSer verRequestDispatcherImpl.java:658)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerReques tDispatcherImpl.java:198)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageM ediatorImpl.java:1820)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediator Impl.java:1680)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorIm pl.java:1062)
at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1 _2.java:194)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediator Impl.java:780)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl. java:537)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.ja va:2541)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.ja va:524)
run-jar:
run-display-browser:
run:
BUILD SUCCESSFUL (total time: 19 seconds)
The Structure directory of my app:
1. CustomerCMP-app-client (root)
++Configuration Files
+++MANIFEST.MF
+++application-client.xml
+++sun-application-client.xml
++Server Resources
++source Packages
++ +enterprise.customer_cmp_appclient
++Libraries
+++CustomerCMP-ejb-dist/CustomerCMP (this is EJB project reference)
2. CustomerCMP-ejb (root)
++Enterprise Beans
+++CustomerSession
++ Configuration Files
+++ MANIFEST.MF
+++ persistence.xml
+++ sun-ejb-jar.xml
++ Server Resources
++ Source Packages
+++ enterprise.customer_cmp_ejb.persistence
++++ Customer.java
++ Libararies
+++ JDK 1.6 (default)
+++ Sun Java System Application Server 9
Please help me.
Thanks in advance.
Message was edited by:
ThunnHi,
I would concentrate on
SEVERE: [DRPublicFacade:public java.util.List oracle.drat.datamodel.DRPublicFacadeBean.findAllSystemLov()] exception occurred during method invocation: javax.ejb.EJBException: java.lang.NullPointerException; nested exception is: java.lang.NullPointerException
Alternatively, there is TopLink forum
TopLink/JPA
Frank -
Toplink Warning: session name not found in session.xml file!!!!
Hi,
I have been trying to run a JSF page to see whether or not my toplink implementation has worked and it appears that it hasn't. I am trying to pull an LOV from my database and have it reflect on my page as a drop down list. When I run, the drop down list component shows but it is empty. Please help. Below is the following errors/warnings I receive.
BTW.. I am using JDeveloper V. 10.1.3.1
Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Short,null)
Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Short)
Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Byte,null)
Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Byte)
Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Integer,null)
Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Integer)
Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Long,null)
Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Long)
Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Float,null)
Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Float)
Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Double,null)
Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Double)
Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ValidatorRule end
WARNING: [ValidatorRule]{faces-config/validator} Merge(javax.faces.LongRange)
Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.DateTime,null)
Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Number,null)
Sep 26, 2007 1:07:02 PM oracle.adf.share.config.ADFConfigFactory findOrCreateADFConfig
INFO: oracle.adf.share.config.ADFConfigFactory No META-INF/adf-config.xml found
Sep 26, 2007 1:07:03 PM oracle.adf.share.security.providers.jazn.JAZNContextHelper setLoginConfigSystemProperty
FINE: Setting JAZN Config property ...
Sep 26, 2007 1:07:03 PM oracle.adf.share.security.providers.jazn.JAZNSecurityContext getUserPrincipal
INFO: ---- JAZNSecurityContext.getUserPrincipal(): NULL
Sep 26, 2007 1:07:04 PM oracle.adfinternal.view.faces.application.ViewHandlerImpl _checkTimestamp
INFO: ADF Faces is running with time-stamp checking enabled. This should not be used in a production environment. See the oracle.adf.view.faces.CHECK_FILE_MODIFICATION property in WEB-INF/web.xml
[TopLink Warning]: 2007.09.26 01:07:07.029--Could not find the session with the name [default] in the session.xml file [META-INF/sessions.xml]
Sep 26, 2007 1:07:07 PM com.evermind.server.ejb.logging.EJBMessages logException
SEVERE: [DRPublicFacade:public java.util.List oracle.drat.datamodel.DRPublicFacadeBean.findAllSystemLov()] exception occurred during method invocation: javax.ejb.EJBException: java.lang.NullPointerException; nested exception is: java.lang.NullPointerException
javax.ejb.EJBException: java.lang.NullPointerException; nested exception is: java.lang.NullPointerException
java.lang.NullPointerException
at oracle.toplink.util.SessionFactory.acquireSession(SessionFactory.java:158)
at oracle.drat.datamodel.DRPublicFacadeBean.findAllSystemLov(DRPublicFacadeBean.java:570)
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.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at DRPublicFacade_LocalProxy_6mgkpk6.findAllSystemLov(Unknown Source)
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 oracle.adf.model.binding.DCInvokeMethod.invokeMethod(DCInvokeMethod.java:507)
at oracle.adf.model.binding.DCDataControl.invokeMethod(DCDataControl.java:1795)
at oracle.adf.model.generic.DCGenericDataControl.invokeMethod(DCGenericDataControl.java:248)
at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:219)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1289)
at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:1802)
at oracle.adf.model.generic.DCGenericDataControl.invokeOperation(DCGenericDataControl.java:266)
at oracle.adf.model.adapter.AdapterDCService.invokeOperation(AdapterDCService.java:318)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:627)
at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.invokeMethodAction(JUMethodIteratorDef.java:160)
at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.initSourceRSI(JUMethodIteratorDef.java:542)
at oracle.adf.model.binding.DCIteratorBinding.callInitSourceRSI(DCIteratorBinding.java:1421)
at oracle.adf.model.binding.DCIteratorBinding.getRowSetIterator(DCIteratorBinding.java:1404)
at oracle.adf.model.binding.DCIteratorBinding.setRangeSize(DCIteratorBinding.java:2642)
at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:2487)
at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2260)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:99)
at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareModel(FacesPageLifecycle.java:73)
at oracle.adf.controller.v2.lifecycle.Lifecycle$8.execute(Lifecycle.java:210)
at oracle.adf.controller.v2.lifecycle.Lifecycle.executePhase(Lifecycle.java:116)
at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.mav$executePhase(ADFPhaseListener.java:33)
at oracle.adf.controller.faces.lifecycle.ADFPhaseListener$4.after(ADFPhaseListener.java:331)
at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:94)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:254)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:231)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:200)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:122)
at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:106)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
at java.lang.Thread.run(Thread.java:595)
javax.ejb.EJBException: java.lang.NullPointerException; nested exception is: java.lang.NullPointerException
at com.evermind.server.ejb.EJBUtils.getLocalUserException(EJBUtils.java:317)
at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:67)
at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at DRPublicFacade_LocalProxy_6mgkpk6.findAllSystemLov(Unknown Source)
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 oracle.adf.model.binding.DCInvokeMethod.invokeMethod(DCInvokeMethod.java:507)
at oracle.adf.model.binding.DCDataControl.invokeMethod(DCDataControl.java:1795)
at oracle.adf.model.generic.DCGenericDataControl.invokeMethod(DCGenericDataControl.java:248)
at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:219)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1289)
at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:1802)
at oracle.adf.model.generic.DCGenericDataControl.invokeOperation(DCGenericDataControl.java:266)
at oracle.adf.model.adapter.AdapterDCService.invokeOperation(AdapterDCService.java:318)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:627)
at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.invokeMethodAction(JUMethodIteratorDef.java:160)
at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.initSourceRSI(JUMethodIteratorDef.java:542)
at oracle.adf.model.binding.DCIteratorBinding.callInitSourceRSI(DCIteratorBinding.java:1421)
at oracle.adf.model.binding.DCIteratorBinding.getRowSetIterator(DCIteratorBinding.java:1404)
at oracle.adf.model.binding.DCIteratorBinding.setRangeSize(DCIteratorBinding.java:2642)
at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:2487)
at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2260)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:99)
at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareModel(FacesPageLifecycle.java:73)
at oracle.adf.controller.v2.lifecycle.Lifecycle$8.execute(Lifecycle.java:210)
at oracle.adf.controller.v2.lifecycle.Lifecycle.executePhase(Lifecycle.java:116)
at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.mav$executePhase(ADFPhaseListener.java:33)
at oracle.adf.controller.faces.lifecycle.ADFPhaseListener$4.after(ADFPhaseListener.java:331)
at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:94)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:254)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:231)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:200)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:122)
at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:106)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at oracle.toplink.util.SessionFactory.acquireSession(SessionFactory.java:158)
at oracle.drat.datamodel.DRPublicFacadeBean.findAllSystemLov(DRPublicFacadeBean.java:570)
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.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
... 56 moreHi,
I would concentrate on
SEVERE: [DRPublicFacade:public java.util.List oracle.drat.datamodel.DRPublicFacadeBean.findAllSystemLov()] exception occurred during method invocation: javax.ejb.EJBException: java.lang.NullPointerException; nested exception is: java.lang.NullPointerException
Alternatively, there is TopLink forum
TopLink/JPA
Frank -
JSF context not found...
I created a web application with Java Server Faces framework selected in Netbeans.
IDE gives two pages at first. one is index.jsp and other is welcomeJSF.jsp. When I cut some jsf related code from welcomeJSF.jsp page and paste it into index.jsp and run the applicationI get this error:
"org.apache.jasper.JasperException: java.lang.RuntimeException: Cannot find FacesContext"
what is the difference between index.jsp and welcomeJSF.jsp..?
here is my web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<context-param>
<param-name>com.sun.faces.verifyObjects</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.validateXml</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>
index.jsp
</welcome-file>
</welcome-file-list>
</web-app>No difference. You will got the same error message if you try to type welcomeJSF.jsp in the browser URL directly. Any request to the JSF page (page that contains JSF tags) should pass the Faces servlet. In your case, you have to add "/faces/" prefix before the page name.
I.e. something like:
http://localhost:8080/myapp/faces/index.jsp
instead of just:
http://localhost:8080/myapp/index.jsp -
hi,
Created a sample application with struts-faces integration.i am providing the <welcome-file-list> tag entry in the web.xml.Now when i try to hit the deployed application, i get error "Cannot find FacesContext".I guess i am not supposed to provide the path "faces/index.jsp" in a html file(the way it is done in a pure faces app),since the <welcome-file-list> should take care of it.The sample app provided also does not go thru a html file.
plz help.
Thanks in advance.
Kshitijok...i got the solution. Was trying to acces the jsp page without a "/faces" prefix.Thought it wae not necessary since you can give a <welcome-file-list> entry.but you have to.
kshitij. -
Handling no_Data_found and handling the cursor context not found exceptions
hi all,
when the value is not there in table, we will get the no_data_found exception.
im sending the sample procedure.
check that one.
create or replace procedure registration.P_GetPatientDetails(in_UHID in Patient.Uhid%Type,
ocursor_Component1 OUT SYS_REFCURSOR,
---ocursor_Component2 OUT SYS_REFCURSOR,
ocursor_Component3 OUT SYS_REFCURSOR,
ocursor_Component4 OUT SYS_REFCURSOR
AS
in_RegistrationID varchar2(50);
ln_genderLovID NUMBER(10);
ln_rhfactorLovID NUMBER(10);
BEGIN
SELECT RegistrationId
into in_RegistrationID
from Patient
where (Upper(UHID) = Upper(in_UHID)) ;
/* COMMIT;*/
/*dbms_output.put_line(in_RegistrationID);*/
OPEN ocursor_Component1 FOR
SELECT RegistrationID,PreRegistrationNo,EmergencyNo,UHID
FROM patient p LEFT OUTER JOIN EHIS.Titlemaster TM ON p.title = tm.titlecode LEFT OUTER JOIN EHIS.SuffixMaster SM on p.sufix = SM.SUFFIXCODE LEFT OUTER JOIN EHIS.Maritalstatusmaster MSM ON MSM.MARITALSTATUSID = p.maritalstatus LEFT OUTER JOIN EHIS.Bloodgroupmaster BGM ON BGM.BLOODGROUPID = p.bloodgroup LEFT OUTER JOIN EHIS.LovDetail LD ON(LD.LOVDETAILID = p.gender AND LD.LOVID = ln_genderLovID) LEFT OUTER JOIN EHIS.LovDetail rf ON(rf.LOVDETAILID = p.rhfactor AND rf.LOVID = ln_rhfactorLovID)
WHERE RegistrationID = in_RegistrationID AND p.Status = 1 ;
OPEN ocursor_Component3 FOR
SELECT RegistrationID,ResidenceNumber,MobileNumber,PrimaryEmail
FROM AddressMaster
WHERE UPPER(RegistrationID) = UPPER(in_RegistrationID) AND Status = 1 AND
AddressTypeID =
(SELECT AddressTypeID
FROM AddressTypeMaster
WHERE AddressTypeName = 'PermanentAddress');
/* COMMIT;*/
OPEN ocursor_Component4 FOR
SELECT ResidenceNumber, MobileNumber,EmergencyNumber,PrimaryEmail
FROM AddressMaster am LEFT OUTER JOIN EHIS.Countrymaster CM ON CM.COUNTRYID = am.country LEFT OUTER JOIN EHIS.Statemaster SM ON SM.STATEID = am.state LEFT OUTER JOIN EHIS.Districtmaster DM ON DM.DISTRICTID = am.district LEFT OUTER JOIN EHIS.Citymaster CM1 ON CM1.CITYID = am.city
WHERE UPPER(RegistrationID) = UPPER(in_RegistrationID) AND Status = 1 AND
AddressTypeID =
(SELECT AddressTypeID
FROM AddressTypeMaster
WHERE AddressTypeName = 'CurrentAddress');
/* COMMIT;*/
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE(TO_CHAR(SQLCODE) || SQLERRM);
END;
if the data is not there for teh given uhid,
we are displaying the err msg in exception block
but from .net environment ,
they will define the cursors as out params.
if they wont get the data,
in .net environment, the exception is raised.
how to handle these situations.Implicit cursors are prone to both the NO_DATA_FOUND and TOO_MANY_ROWS errors. They MUST return precisely one row or you get to do extra coding in the form of exception handlers. Using explicit cursors (declared in the DECLARE SECTION) will avoid both errors, though they have their own considerations. When an explict cursor doesn't find something it doens't put NULL into the destination variable(s); it leaves them alone so its a good idea to null out variables and records before fetching into them.
-
Xfce4-session-helper NOT FOUND
After upgrading xfce4-session the other day,
[PACMAN] upgraded xfce4-session (4.10.0-6 -> 4.10.0-7)
These errors appear in syslog:
Apr 29 13:27:56 arch-top slim[342]: (xfce4-session:397): xfce4-session-WARNING **: Unable to launch "xfce4-settings-helper": Failed to execute child process "xfce4-settings-helper" (No such file or directory)
Apr 29 13:27:56 arch-top slim[342]: (xfce4-session:397): xfce4-session-WARNING **: Unable to launch "xfce4-settings-helper": Failed to execute child process "xfce4-settings-helper" (No such file or directory)
They appear twice, together, like above (on startup).According to http://www.xfce.org/about/tour (one of the first hits for xfce4-session-helper), this helper was merged into a settings daemon in 4.10. Either it's a bug or you have some leftover bits from 4.8.
-
Dear Experts,
We are using Cisco 7301 as our NAS for our DSL users and a third party software as Radius
We configured PoD radius server for our DSL . But it seems that radius can't remove the users from the NAS .
The following is the error
Dec 7 20:33:27.547: POD: Added Reply Message: No Matching Session
Dec 7 20:33:27.547: POD: Added NACK Error Cause: Session Context Not Found
The following is my config
aaa server radius dynamic-author
client <radius ip address>
server-key cisco
auth-type any
ignore session-key
ignore server-key
aaa pod server auth-type any server-key cisco
Regards
HarisMy Issue is fixed now
The "aaa session-id common" command was enabled already . But my Issue was different
I got two interfaces from NAS going to two different switches and both were seeing as two different NAS by radius . So sometimes the radius request go from one interface and comes from another interface and it was conflicting the session .
As per Cisco , For a call to be disconnected, all parameters must match their expected values at the gateway. If the parameters do not match, the gateway discards the packet of disconnect packet and sends a NACK (negative acknowledgement message) to the agent
http://www.faqs.org/rfcs/rfc2882.html
Regards
Haris
Maybe you are looking for
-
Camera roll is no longer being copied to my computer.
Up until last week, my computer would copy my iPhones camera roll when I plugged in my phone to my computer using the USB cord. My computer used to see my phone as apple iPhone in "my computer". I haven't changed any settings in autoplay. I uninstall
-
Problem previewing files in browser
Hi, I have no idea what has happened but for some reason, when I select 'save for web and devices' and try to preview my images in the browser, sometimes it works and sometimes it doesn't. The problem has only recently started though I've never chang
-
How to identify column name in ALV tree when user clicks a particular field
Hi All, In My requirement i am displaying ALV Tree. In Which When the user clicks on a particular header column it should navigate to other transaction. Now the issue is it is navigating to other transaction when we click on any column of the header
-
Title says it all! How do I select all instances of a clip in the timeline at once without manually shift+clicking each instance? The reason I want to do this is because I have a music video with MANY quick cuts. So clips are cut up and splattered al
-
There is no glass replacement in india .
I bought my iPhone 6 one month ago , and it fall from about 1 feet height and the glass is broken , apple says that it will cost around 108$ to fix iPhone 6 glass , but in India when i contact the customer care they say that there is no glass replace