Intermittent oracle.security.jazn.spi.xml.XMLJAZNPolicy null pointer excep
hi,
in my application I am using container and ADF security. Sometimes I get following exception but not always!? What could be the cause?
(I added a new role with three members - 1 user and two sub-roles. I configured these sub-roles in web.xml as regular roles and also configured ADF security for the role and its subroles)
java.lang.NullPointerException
at oracle.security.jazn.spi.xml.XMLJAZNPolicy.getPermissions(XMLJAZNPolicy.java:593)
at oracle.security.jazn.spi.xml.XMLJAZNPolicy.getPermissions(XMLJAZNPolicy.java:574)
at oracle.security.jazn.spi.Java2PolicyProvider.getPermissions(Java2PolicyProvider.java:313)
at oracle.security.jazn.spi.PolicyProvider.getPermissions(PolicyProvider.java:202)
at javax.security.auth.SubjectDomainCombiner$3.run(SubjectDomainCombiner.java:357)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.SubjectDomainCombiner.combineJavaxPolicy(SubjectDomainCombiner.java:353)
at javax.security.auth.SubjectDomainCombiner.combine(SubjectDomainCombiner.java:191)
at java.security.AccessControlContext.goCombiner(AccessControlContext.java:390)
at java.security.AccessControlContext.optimize(AccessControlContext.java:304)
at java.security.AccessController.getContext(AccessController.java:385)
at java.lang.Thread.init(Thread.java:332)
at java.lang.Thread.<init>(Thread.java:416)
at oracle.webcache.adf.cache.basiccache.BasicCacheImpl$VGCThread.<init>(BasicCacheImpl.java:1439)
at oracle.webcache.adf.cache.basiccache.BasicCacheImpl.<init>(BasicCacheImpl.java:121)
at oracle.webcache.adf.cache.basiccache.BasicCacheManager.createBasicCacheInstance(BasicCacheManager.java:71)
at oracle.webcache.adf.cache.httpcache.HTTPCacheImpl.<init>(HTTPCacheImpl.java:96)
at oracle.webcache.adf.cache.httpcache.HTTPCacheFactory.createHTTPCache(HTTPCacheFactory.java:66)
at oracle.webcache.adf.cache.httpcache.HTTPCacheFactory.createHTTPCache(HTTPCacheFactory.java:47)
at oracle.webcache.adf.filter.PageCache.<init>(PageCache.java:218)
at oracle.webcache.adf.filter.PageCache.getInstance(PageCache.java:255)
at oracle.webcache.adf.filter.PageCache.getInstance(PageCache.java:276)
at oracle.adf.view.faces.webcache.component.UICache.getFragmentFromCache(UICache.java:514)
at oracle.adf.view.faces.webcache.component.UICache.encodeBegin(UICache.java:170)
at oracle.adfinternal.view.faces.uinode.UIComponentUINode._renderComponent(UIComponentUINode.java:297)
at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:262)
at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:239)
at oracle.adfinternal.view.faces.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(ContextPoppingUINode.java:224)
at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderNamedChild(BaseRenderer.java:384)
at oracle.adfinternal.view.faces.ui.laf.base.desktop.PageHeaderLayoutRenderer.renderContent(PageHeaderLayoutRenderer.java:404)
at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222)
at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129)
at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
at oracle.adfinternal.view.faces.ui.composite.UINodeRenderer.renderWithNode(UINodeRenderer.java:90)
at oracle.adfinternal.view.faces.ui.composite.UINodeRenderer.render(UINodeRenderer.java:36)
at oracle.adfinternal.view.faces.ui.laf.oracle.desktop.PageLayoutRenderer.render(PageLayoutRenderer.java:76)
at oracle.adfinternal.view.faces.uinode.UIXComponentUINode.renderInternal(UIXComponentUINode.java:177)
at oracle.adfinternal.view.faces.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:53)
at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
at oracle.adfinternal.view.faces.renderkit.RenderUtils.encodeRecursive(RenderUtils.java:54)
at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeChild(CoreRenderer.java:242)
at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeAllChildren(CoreRenderer.java:265)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:65)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:117)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:147)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:60)
at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.delegateRenderer(CoreRenderer.java:281)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.DocumentRenderer.encodeAll(DocumentRenderer.java:60)
at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:169)
at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:645)
at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:568)
at oracle.adf.view.faces.webapp.UIXComponentTag.doEndTag(UIXComponentTag.java:100)
...
Hi,
ADF Security configures with permissions and thus doesn't need the roles to be available in web.xml (unless the roles are used for container managed authorization as well). Note that the default behavior of OC4J is that changes in the configuration files are picked up upon restart (for performance reasons you don' want to change this setting). So just make sure OC4J is stopped before re-running an application.
Frank
Similar Messages
-
Bug in oracle.security.jazn.spi.LoginConfigProvider?
I recently wrote my own LoginModule to handle x509 cert authentication. I instantiate a LoginContext (and pass Subject or CallbackHandler etc) and call login(). This issue is that only one instance of the LoginModule is ever instantiated - therefore it always authenticates the original subject that was passed in.
Through logging, I have verified that the LoginModule's constructor and initialize() method are called only once.
I checked sun's java forum for information and found the following:
http://forum.java.sun.com/thread.jsp?forum=60&thread=209219&start=0&range=15#1417789
That thread indicates that the issue is with the Configuration subclass (in this case, Oracle's LoginConfigProvider). I was able to verify this - I wrote my own Configuration subclass, pointed to in (in the java.security file) and my code works properly now. A new LoginModule is instantiated each time.
Does anyone have any additional information/comments on this? Is it something that I am doing incorrectly? If this is indeed a bug, is it fixed in newer versions of the app server? I don't suppose Oracle is interested in posting their code for LoginConfigProvider so that I can make the necessary change maintain the rest of the functionality?
no[i]Long postings are being truncated to ~1 kB at this time.ah, yes. the 1k limit again. fantastic...
code (note: this is hardcoded and terribly unpolished...but it works...):
import javax.security.auth.login.Configuration;
import javax.security.auth.login.AppConfigurationEntry;
import java.util.ArrayList;
import java.util.StringTokenizer;
import java.util.HashMap;
import java.util.Map;
public class CITestAuthenticationConfiguration extends Configuration {
private static ArrayList appConfigurationList = new ArrayList();
public CITestAuthenticationConfiguration(){}
public AppConfigurationEntry[] getAppConfigurationEntry(String applicationName){
Map map = new HashMap();
AppConfigurationEntry ace = new AppConfigurationEntry(
"CITestLoginModule",
AppConfigurationEntry.LoginModuleControlFlag.REQUIRED,
map
AppConfigurationEntry[] aceArray = new AppConfigurationEntry[1];
aceArray[0] = ace;
return aceArray;
public void refresh()
// Right now this is a load once scheme and we will not implement the
// refresh method
public static boolean addAppConfigurationEntry ( String flag, String module, String options )
// REMOVED FOR BREV[i]Long postings are being truncated to ~1 kB at this time. -
JAAS, jazn.xml, & oracle.security.jazn.config
I have a swing application using LDAP to authenticate users that will typically be launched via Java Web Start, thus the application is deploy using a jar file.
I can run this application from JDev or from the command-line when the jazn.xml file is located in the root (start-in) directory.
Unfortunately, when the jazn.xml file is only in the jar file (as it would be when launched via JWS) the application cannot find it and throws an exception:
oracle.security.jazn.JAZNInitException: d:\path\.\jazn-data.xml (The system cannot find the file specified).
I found some documentation that indicates that I can specify the path to the jazn.xml file with
System.setProperty("oracle.security.jazn.config", "path/to/jazn/xml/file");
If I set it to a relative path without the filename on the end (ex. "./my/path" or "my/path") I get the above exception.
If I set it to a relative path with the filename (ex. "./my/path/jazn.xml" or "my/path/jazn.xml") it works.
What I can't figure out is how to tell it that it is in a jar file that is in my classpath. It doesn't find it from the path examples above. I've tried things like "client.jar/jazn.xml", "d:/my/path/client.jar/jazn.xml", and a host of other things with the jazn.xml filename on the end.
Oddly enough, when I set it to "d:/my/path/client.jar" I get a different exception:
Caused by: oracle.security.jazn.JAZNInitException: no protocol: "ldap://hostname.com:389">
at oracle.security.jazn.spi.xml.FSXMLStore.<init>(FSXMLStore.java:128)
... 59 more
Caused by: java.net.MalformedURLException: no protocol: "ldap://hostname.com:389">
at java.net.URL.<init>(URL.java:537)
at java.net.URL.<init>(URL.java:434)
at java.net.URL.<init>(URL.java:383)
So it seems like it read the file but parsed it incorrectly. Any ideas?Thanks for the reply Yvonne. Sorry I haven't updated this after my testing. I think you're close to correct.
I did some more testing and figured out that any time the protocol is included in a path (protocol://d:/my/path/client.jar) that jazn does not understand. When the referenced file (jazn.xml) is in a jar file, it includes the protocol in the path. For example the path to the jazn.xml file (the value that the java.security.auth.policy property needs to be set to) would be jar:file://my/path/client.jar!/my/path/jazn.xml
I think the oracle.security.jazn.spi.PolicyProvider (the value of the java.security.auth.policy.provider property) causes the jazn.xml file to be read. That class is, I think, what fails to find that file because it doesn't understand when the protocol (jar:file:) is included in the path to the file. That's my guess anyway.
I did figure out a work around and it goes like this:
1. create a new jazn.xml file
File tmp = new File ("jazn.xml");
2. and set it to be deleted on exit
tmp.deleteOnExit();
3. get a ByteArrayInputStream for the jazn.xml file and read it out of the jar file.
4. then write the stream to the tmp file
5. then set the system property
System.setProperty("java.security.auth.policy", tmp.toURL().getPath());
It is kind of a pain since I have to check to see if the property I'm setting is "jazn.xml", but it seems to work.
I think the oracle.security.jazn.spi.PolicyProvider problem is a defect, which I'll report on meta-link.
tcoker -
We are testing the JAZN callInfo sample. I have OID version 3.0.1.0, and Oracle9iAS (9.0.3.0.0) Containers for J2EE. We setup the jazn to use LDAP.
When starting oc4j we get the following:
java -jar oc4j.jar Error instantiating application 'callerInfo' at file:/u01/app/oracle/products/9iAS/j2ee/home/jazn/demo/callerInfo/callerInfo.ear: Error initializing userManager 'oracle.security.jazn.oc4j.JAZNUserManager': java.lang.StringIndexOutOfBoundsException (String index out of range: 32)
Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
We see it this connect to ldap and get a reply. I feel the string back is larger than jazn is expecting.
We check the tcp traffic and see it connecting:
09:10:57.377851 buckwheat.jxn.wcom.com.389 > buckwheat.jxn.wcom.com.35082: P 15:2641(2626) ack 131 win 32767 <nop,nop,timestamp 26118724 26118721> (DF)
0x0000 4500 0a76 8468 4000 4006 6450 9f62 8482 E..v.h@[email protected]..
0x0010 9f62 8482 0185 890a 1594 0e68 15e8 7584 .b.........h..u.
0x0020 8018 7fff 37d6 0000 0101 080a 018e 8a44 ....7..........D
0x0030 018e 8a41 3082 0a3e 0201 0264 820a 3704 ...A0..>...d..7.
0x0040 1063 6e3d 4f72 6163 6c65 436f 6e74 6578 .cn=OracleContex
0x0050 7430 820a 2130 1504 0263 6e31 0f04 0d4f t0..!0...cn1...O
0x0060 7261 636c 6543 6f6e 7465 7874 3044 040b racleContext0D..
0x0070 6f62 6a65 6374 636c 6173 7331 3504 0374 objectclass15..t
0x0080 6f70 040b 6f72 636c 436f 6e74 6578 7404 op..orclContext.
0x0090 106f 7263 6c43 6f6e 7465 7874 4175 7838 .orclContextAux8
0x00a0 3204 0f6f 7263 6c52 6f6f 7443 6f6e 7465 2..orclRootConte
0x00b0 7874 3016 040b 6f72 636c 7665 7273 696f xt0...orclversio
0x00c0 6e31 0704 0539 3030 3030 3081 9104 116f n1...900000....o
0x00d0 7263 6c65 6e74 7279 6c65 7665 6c61 6369 rclentrylevelaci
0x00e0 317c 047a 6163 6365 7373 2074 6f20 656e 1|.zaccess.to.en
0x00f0 7472 7920 6279 2067 726f 7570 3d22 636e try.by.group="cn
0x0100 3d4f 7261 636c 654e 6574 4164 6d69 6e73 =OracleNetAdmins
0x0110 2c63 6e3d 4f72 6163 6c65 436f 6e74 6578 ,cn=OracleContex
0x0120 7422 2028 6164 6429 2062 7920 6772 6f75 t".(add).by.grou
0x0130 703d 2263 6e3d 4f72 6163 6c65 4442 4372 p="cn=OracleDBCr
0x0140 6561 746f 7273 2c63 6e3d 4f72 6163 6c65 eators,cn=Oracle
0x0150 436f 6e74 6578 7422 2028 6164 6429 3082 Context".(add)0.
0x0160 0914 0407 6f72 636c 6163 6931 8209 0704 ....orclaci1....
0x0170 7d61 6363 6573 7320 746f 2065 6e74 7279 }access.to.entry
0x0180 2062 7920 6772 6f75 703d 2263 6e3d 4f72 .by.group="cn=Or
0x0190 6163 6c65 436f 6e74 6578 7441 646d 696e acleContextAdmin
0x01a0 732c 636e 3d47 726f 7570 732c 636e 3d4f s,cn=Groups,cn=O
0x01b0 7261 636c 6543 6f6e 7465 7874 2220 2862 racleContext".(b
0x01c0 726f 7773 652c 6164 642c 6465 6c65 7465 rowse,add,delete
0x01d0 2920 6279 202a 2028 6272 6f77 7365 2c6e ).by.*.(browse,n
0x01e0 6f61 6464 2c6e 6f64 656c 6574 6529 0481 oadd,nodelete)..
0x01f0 a461 6363 6573 7320 746f 2061 7474 723d .access.to.attr=
0x0200 282a 2920 6279 2067 726f 7570 3d22 636e (*).by.group="cn
0x0210 3d4f 7261 636c 6543 6f6e 7465 7874 4164 =OracleContextAd
0x0220 6d69 6e73 2c63 6e3d 4772 6f75 7073 2c63 mins,cn=Groups,c
0x0230 6e3d 4f72 6163 6c65 436f 6e74 6578 7422 n=OracleContext"
0x0240 2028 7265 6164 2c73 6561 7263 682c 7772 .(read,search,wr
0x0250 6974 652c 7365 6c66 7772 6974 652c 636f ite,selfwrite,co
0x0260 6d70 6172 6529 2062 7920 2a20 2872 6561 mpare).by.*.(rea
0x0270 642c 7365 6172 6368 2c6e 6f77 7269 7465 d,search,nowrite
0x0280 2c6e 6f73 656c 6677 7269 7465 2c63 6f6d ,noselfwrite,com
0x0290 7061 7265 2904 81dd 6163 6365 7373 2074 pare)...access.t
0x02a0 6f20 656e 7472 7920 6669 6c74 6572 3d28 o.entry.filter=(
0x02b0 6f62 6a65 6374 636c 6173 733d 6f72 636c objectclass=orcl
0x02c0 4e65 7453 6572 7669 6365 2920 6279 2067 NetService).by.g
0x02d0 726f 7570 3d22 636e 3d4f 7261 636c 6544 roup="cn=OracleD
0x02e0 4253 6563 7572 6974 7941 646d 696e 732c BSecurityAdmins,
0x02f0 636e 3d4f 7261 636c 6543 6f6e 7465 7874 cn=OracleContext
0x0300 2220 2862 726f 7773 652c 6164 642c 6465 ".(browse,add,de
0x0310 6c65 7465 2920 6279 2067 726f 7570 3d22 lete).by.group="
0x0320 636e 3d4f 7261 636c 654e 6574 4164 6d69 cn=OracleNetAdmi
0x0330 6e73 2c63 6e3d 4f72 6163 6c65 436f 6e74 ns,cn=OracleCont
0x0340 6578 7422 2028 6272 6f77 7365 2c61 6464 ext".(browse,add
0x0350 2c64 656c 6574 6529 2062 7920 2a20 2862 ,delete).by.*.(b
0x0360 726f 7773 652c 6e6f 6164 642c 6e6f 6465 rowse,noadd,node
0x0370 6c65 7465 2904 81ec 6163 6365 7373 2074 lete)...access.t
0x0380 6f20 656e 7472 7920 6669 6c74 6572 3d28 o.entry.filter=(
0x0390 6f62 6a65 6374 636c 6173 733d 6f72 636c objectclass=orcl
0x03a0 4e65 7444 6573 6372 6970 7469 6f6e 4c69 NetDescriptionLi
0x03b0 7374 2920 6279 2067 726f 7570 3d22 636e st).by.group="cn
0x03c0 3d4f 7261 636c 6543 6f6e 7465 7874 4164 =OracleContextAd
0x03d0 6d69 6e73 2c63 6e3d 4772 6f75 7073 2c63 mins,cn=Groups,c
0x03e0 6e3d 4f72 6163 6c65 436f 6e74 6578 7422 n=OracleContext"
0x03f0 2028 6272 6f77 7365 2c61 6464 2c64 656c .(browse,add,del
0x0400 6574 6529 2062 7920 6772 6f75 703d 2263 ete).by.group="c
0x0410 6e3d 4f72 6163 6c65 4e65 7441 646d 696e n=OracleNetAdmin
0x0420 732c 636e 3d4f 7261 636c 6543 6f6e 7465 s,cn=OracleConte
0x0430 7874 2220 2862 726f 7773 652c 6164 642c xt".(browse,add,
0x0440 6465 6c65 7465 2920 6279 202a 2028 6272 delete).by.*.(br
0x0450 6f77 7365 2c6e 6f61 6464 2c6e 6f64 656c owse,noadd,nodel
0x0460 6574 6529 0481 e861 6363 6573 7320 746f ete)...access.to
0x0470 2065 6e74 7279 2066 696c 7465 723d 286f .entry.filter=(o
0x0480 626a 6563 7463 6c61 7373 3d6f 7263 6c4e bjectclass=orclN
0x0490 6574 4465 7363 7269 7074 696f 6e29 2062 etDescription).b
0x04a0 7920 6772 6f75 703d 2263 6e3d 4f72 6163 y.group="cn=Orac
0x04b0 6c65 436f 6e74 6578 7441 646d 696e 732c leContextAdmins,
0x04c0 636e 3d47 726f 7570 732c 636e 3d4f 7261 cn=Groups,cn=Ora
0x04d0 636c 6543 6f6e 7465 7874 2220 2862 726f cleContext".(bro
0x04e0 7773 652c 6164 642c 6465 6c65 7465 2920 wse,add,delete).
0x04f0 6279 2067 726f 7570 3d22 636e 3d4f 7261 by.group="cn=Ora
0x0500 636c 654e 6574 4164 6d69 6e73 2c63 6e3d cleNetAdmins,cn=
0x0510 4f72 6163 6c65 436f 6e74 6578 7422 2028 OracleContext".(
0x0520 6272 6f77 7365 2c61 6464 2c64 656c 6574 browse,add,delet
0x0530 6529 2062 7920 2a20 2862 726f 7773 652c e).by.*.(browse,
0x0540 6e6f 6164 642c 6e6f 6465 6c65 7465 2904 noadd,nodelete).
0x0550 81e8 6163 6365 7373 2074 6f20 656e 7472 ..access.to.entr
0x0560 7920 6669 6c74 6572 3d28 6f62 6a65 6374 y.filter=(object
0x0570 636c 6173 733d 6f72 636c 4e65 7441 6464 class=orclNetAdd
0x0580 7265 7373 4c69 7374 2920 6279 2067 726f ressList).by.gro
0x0590 7570 3d22 636e 3d4f 7261 636c 6543 6f6e up="cn=OracleCon
0x05a0 7465 7874 4164 6d69 6e73 2c63 6e3d 4772 textAdmins,cn=Gr
0x05b0 6f75 7073 2c63 6e3d 4f72 6163 6c65 436f oups,cn=OracleCo
0x05c0 6e74 6578 7422 2028 6272 6f77 7365 2c61 ntext".(browse,a
0x05d0 6464 2c64 656c 6574 6529 2062 7920 6772 dd,delete).by.gr
0x05e0 6f75 703d 2263 6e3d 4f72 6163 6c65 4e65 oup="cn=OracleNe
0x05f0 7441 646d 696e 732c 636e 3d4f 7261 636c tAdmins,cn=Oracl
0x0600 6543 6f6e 7465 7874 2220 2862 726f 7773 eContext".(brows
0x0610 652c 6164 642c 6465 6c65 7465 2920 6279 e,add,delete).by
0x0620 202a 2028 6272 6f77 7365 2c6e 6f61 6464 .*.(browse,noadd
0x0630 2c6e 6f64 656c 6574 6529 0481 e461 6363 ,nodelete)...acc
0x0640 6573 7320 746f 2065 6e74 7279 2066 696c ess.to.entry.fil
0x0650 7465 723d 286f 626a 6563 7463 6c61 7373 ter=(objectclass
0x0660 3d6f 7263 6c4e 6574 4164 6472 6573 7329 =orclNetAddress)
0x0670 2062 7920 6772 6f75 703d 2263 6e3d 4f72 .by.group="cn=Or
0x0680 6163 6c65 436f 6e74 6578 7441 646d 696e acleContextAdmin
0x0690 732c 636e 3d47 726f 7570 732c 636e 3d4f s,cn=Groups,cn=O
0x06a0 7261 636c 6543 6f6e 7465 7874 2220 2862 racleContext".(b
0x06b0 726f 7773 652c 6164 642c 6465 6c65 7465 rowse,add,delete
0x06c0 2920 6279 2067 726f 7570 3d22 636e 3d4f ).by.group="cn=O
0x06d0 7261 636c 654e 6574 4164 6d69 6e73 2c63 racleNetAdmins,c
0x06e0 6e3d 4f72 6163 6c65 436f 6e74 6578 7422 n=OracleContext"
0x06f0 2028 6272 6f77 7365 2c61 6464 2c64 656c .(browse,add,del
0x0700 6574 6529 2062 7920 2a20 2862 726f 7773 ete).by.*.(brows
0x0710 652c 6e6f 6164 642c 6e6f 6465 6c65 7465 e,noadd,nodelete
0x0720 2904 8201 1461 6363 6573 7320 746f 2061 )....access.to.a
0x0730 7474 723d 282a 2920 2066 696c 7465 723d ttr=(*)..filter=
0x0740 286f 626a 6563 7463 6c61 7373 3d6f 7263 (objectclass=orc
0x0750 6c4e 6574 5365 7276 6963 6529 2062 7920 lNetService).by.
0x0760 6772 6f75 703d 2263 6e3d 4f72 6163 6c65 group="cn=Oracle
0x0770 436f 6e74 6578 7441 646d 696e 732c 636e ContextAdmins,cn
0x0780 3d47 726f 7570 732c 636e 3d4f 7261 636c =Groups,cn=Oracl
0x0790 6543 6f6e 7465 7874 2220 2872 6561 642c eContext".(read,
0x07a0 7365 6172 6368 2c77 7269 7465 2c73 656c search,write,sel
0x07b0 6677 7269 7465 2c63 6f6d 7061 7265 2920 fwrite,compare).
0x07c0 6279 2067 726f 7570 3d22 636e 3d4f 7261 by.group="cn=Ora
0x07d0 636c 654e 6574 4164 6d69 6e73 2c63 6e3d cleNetAdmins,cn=
0x07e0 4f72 6163 6c65 436f 6e74 6578 7422 2028 OracleContext".(
0x07f0 636f 6d70 6172 652c 7365 6172 6368 2c72 compare,search,r
0x0800 6561 642c 7772 6974 6529 2062 7920 2a20 ead,write).by.*.
0x0810 2872 6561 642c 7365 6172 6368 2c63 6f6d (read,search,com
0x0820 7061 7265 2c6e 6f77 7269 7465 2c6e 6f73 pare,nowrite,nos
0x0830 656c 6677 7269 7465 2904 8201 1c61 6363 elfwrite)....acc
0x0840 6573 7320 746f 2061 7474 723d 282a 2920 ess.to.attr=(*).
0x0850 2066 696c 7465 723d 286f 626a 6563 7463 .filter=(objectc
0x0860 6c61 7373 3d6f 7263 6c4e 6574 4465 7363 lass=orclNetDesc
0x0870 7269 7074 696f 6e4c 6973 7429 2062 7920 riptionList).by.
0x0880 6772 6f75 703d 2263 6e3d 4f72 6163 6c65 group="cn=Oracle
0x0890 436f 6e74 6578 7441 646d 696e 732c 636e ContextAdmins,cn
0x08a0 3d47 726f 7570 732c 636e 3d4f 7261 636c =Groups,cn=Oracl
0x08b0 6543 6f6e 7465 7874 2220 2872 6561 642c eContext".(read,
0x08c0 7365 6172 6368 2c77 7269 7465 2c73 656c search,write,sel
0x08d0 6677 7269 7465 2c63 6f6d 7061 7265 2920 fwrite,compare).
0x08e0 6279 2067 726f 7570 3d22 636e 3d4f 7261 by.group="cn=Ora
0x08f0 636c 654e 6574 4164 6d69 6e73 2c63 6e3d cleNetAdmins,cn=
0x0900 4f72 6163 6c65 436f 6e74 6578 7422 2028 OracleContext".(
0x0910 636f 6d70 6172 652c 7365 6172 6368 2c72 compare,search,r
0x0920 6561 642c 7772 6974 6529 2062 7920 2a20 ead,write).by.*.
0x0930 2872 6561 642c 7365 6172 6368 2c63 6f6d (read,search,com
0x0940 7061 7265 2c6e 6f77 7269 7465 2c6e 6f73 pare,nowrite,nos
0x0950 656c 6677 7269 7465 2904 8201 1961 6363 elfwrite)....acc
0x0960 6573 7320 746f 2061 7474 723d 282a 2920 ess.to.attr=(*).
0x0970 2066 696c 7465 723d 286f 626a 6563 7463 .filter=(objectc
0x0980 6c61 7373 3d6f 7263 6c4e 6574 4465 7363 lass=orclNetDesc
0x0990 7269 7074 696f 6e29 2062 7920 6772 6f75 ription).by.grou
0x09a0 703d 2263 6e3d 4f72 6163 6c65 436f 6e74 p="cn=OracleCont
0x09b0 6578 7441 646d 696e 732c 636e 3d47 726f extAdmins,cn=Gro
0x09c0 7570 732c 636e 3d4f 7261 636c 6543 6f6e ups,cn=OracleCon
0x09d0 7465 7874 2220 2872 6561 642c 7365 6172 text".(read,sear
0x09e0 6368 2c77 7269 7465 2c73 656c 6677 7269 ch,write,selfwri
0x09f0 7465 2c63 6f6d 7061 7265 2920 6279 2067 te,compare).by.g
0x0a00 726f 7570 3d22 636e 3d4f 7261 636c 654e roup="cn=OracleN
0x0a10 6574 4164 6d69 6e73 2c63 6e3d 4f72 6163 etAdmins,cn=Orac
0x0a20 6c65 436f 6e74 6578 7422 2028 636f 6d70 leContext".(comp
0x0a30 6172 652c 7365 6172 6368 2c72 6561 642c are,search,read,
0x0a40 7772 6974 6529 2020 6279 202a 2028 7265 write)..by.*.(re
0x0a50 6164 2c73 6561 7263 682c 636f 6d70 6172 ad,search,compar
0x0a60 652c 6e6f 7772 6974 652c 6e6f 7365 6c66 e,nowrite,noself
0x0a70 7772 6974 6529 write)
JAZN is setup as following
java -jar jazn.jar -getconfig
<jazn provider="LDAP" location="ldap://buckwheat:389" default-realm="sample_subrealm" />
oracle@buckwheat:/u01/app/oracle/products/9iAS/j2ee/home> java -jar jazn.jar -getconfig sample_subrealm
<jazn provider="LDAP" location="ldap://buckwheat:389" default-realm="sample_subrealm" />
<OC4J_HOME>/config/jazn.xml
<?xml version="1.0" encoding="UTF-8" standalone='yes'?>
<!--
<!DOCTYPE jazn PUBLIC "JAZN Config" "http://xmlns.oracle.com/ias/dtds/jazn.dtd">
<jazn provider="XML" location="./jazn-data.xml" />
-->
<jazn provider="LDAP"
default-realm="sample_subrealm"
location="ldap://buckwheat:389" />
<OC4J_HOME>/j2ee/home/jazn/demo/callerInfo/etc/orion-application.xml
<?xml version="1.0"?>
<!DOCTYPE orion-application PUBLIC "-//Evermind//DTD J2EE Application runtime 1.2//EN" "http://xmlns.oracle.com/ias/dtds/orion-application.dtd">
<orion-application deployment-version="1.0.2.2" default-data-source="jdbc/OracleDS">
<web-module id="callerInfo-web" path="callerInfo-web.war" />
<persistence path="persistence" />
<!-- mapping for realm "jazn.com"
<security-role-mapping name="sr_manager">
<group name="administrators" />
</security-role-mapping>
<security-role-mapping name="sr_developer">
<group name="users" />
</security-role-mapping>
-->
<!-- mapping for realm "sample_subrealm" -->
<security-role-mapping name="sr_manager">
<group name="manager" />
</security-role-mapping>
<security-role-mapping name="sr_developer">
<group name="developer" />
</security-role-mapping>
<!-- h -->
<!-- use JAZN-XML by default
<jazn provider="XML" location="./jazn-data.xml" />
-->
<!-- use JAZN-LDAP instead -->
<jazn provider="LDAP" default-realm="sample_subrealm" location="ldap://buckwheat.jxn.wcom.com:389" />
<!-- -->
<log>
<file path="application.log" />
</log>
<namespace-access>
<read-access>
<namespace-resource root="">
<security-role-mapping name="<jndi-user-role>">
<group name="administrators" />
</security-role-mapping>
</namespace-resource>
</read-access>
<write-access>
<namespace-resource root="">
<security-role-mapping name="<jndi-user-role>">
<group name="administrators" />
</security-role-mapping>
</namespace-resource>
</write-access>
</namespace-access>
</orion-application>
<OC4J_HOME>/j2ee/home/jazn/demo/callerInfo/etc/web.xml
<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>JAZN Demo: CallerInfo</display-name>
<servlet>
<servlet-name>callerInfo</servlet-name>
<description>Servlet retrieves remote user info</description>
<servlet-class>oracle.security.jazn.samples.http.CallerInfo</servlet-class>
<!-- role name used in code -->
<security-role-ref>
<role-name>FOO</role-name>
<role-link>sr_manager</role-link>
</security-role-ref>
<security-role-ref>
<role-name>ar_manager</role-name>
<role-link>sr_manager</role-link>
</security-role-ref>
<security-role-ref>
<role-name>ar_developer</role-name>
<role-link>sr_developer</role-link>
</security-role-ref>
</servlet>
<servlet-mapping>
<servlet-name>callerInfo</servlet-name>
<url-pattern>/callerInfo/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>callerInfo</servlet-name>
<url-pattern>/callerInfoA</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>callerInfo</servlet-name>
<url-pattern>/callerInfoB</url-pattern>
</servlet-mapping>
<!-- security roles -->
<security-role>
<role-name>sr_manager</role-name>
</security-role>
<security-role>
<role-name>sr_developer</role-name>
</security-role>
<!-- security constraints -->
<security-constraint>
<web-resource-collection>
<web-resource-name>CallerInfoA</web-resource-name>
<url-pattern>/callerInfoA</url-pattern>
</web-resource-collection>
<!-- authorization -->
<auth-constraint>
<role-name>sr_developer</role-name>
</auth-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>CallerInfoB</web-resource-name>
<url-pattern>/callerInfoB</url-pattern>
</web-resource-collection>
<!-- authorization -->
<auth-constraint>
<role-name>sr_manager</role-name>
</auth-constraint>
</security-constraint>
<!-- authentication -->
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
</web-app>OID 3.0.1.0 is the latest product release to public. I did add the Install data to allow it to work. I see the data in OID but when I connect with jazn I get error.
java -jar jazn.jar -shell
JAZN:> ls
realms policy
JAZN:> cd realms
JAZN:> ls
String index out of range: 32
JAZN:> cd ../policy
JAZN:> ls
JAZN:> exit
JAZN:>
It does not error on policy dirictory but it does on the realm side. If I watch the tcp packets it is working. -
Dear Forum,
we are developing portlets for Portal 3.0.9.8. We use the default JPDK version, that comes with the standalone Oracle OC4J 9.0.4 bundled with PDK.
We want to improve our portlet by check the userid of the portal user. Therefore, we want to use oracle.portal.provider.v2.ProviderUser.getUser().getName()
in a JSP.
First - even before the method call - we included
<%@ page import="oracle.portal.provider.v2.http.ServletProviderUser" %>
But even this 1 statement gives in JDeveloper 9.0.4 with the libs pdkjava and ptlshare from the OC4J the following error:
Error: cannot access class oracle.security.jazn.realm.RealmUser; file oracle\security\jazn\realm\RealmUser.class not found
What is wrong here? What missing library we must include?
Thank You in advanceProblem solved. Need to include jazn.jar in project's lib-paths.
-
Hi,
I managed to configure Oracle's DBTableOraDataSourceLoginModule together with JavaSSO to access two tables which reside on a 9i database. One is the user's table and the other a roles table. The only problem is that the user's passwords should be encripted in this table.
I followed the instructions in the Oracle Containers for J2EE Security Guide page 9-10 - Implementing DBLoginModuleEncodingInterface for Password Encryption, and specified in the pw_encoding_class parameter
the DBLoginModuleSHA1Encoder class provided in the oracle.security.jazn.login.module.db.util package.
I also wrote a small program to do the encryption in the table, using a getKeyDigestString method found in DBLoginModuleSHA1Encoder class of a sample dblogin module downloaded from a link in Lucas Jellema's article on how to secure an application developed with JDeveloper and deployed in OC4J. I used this class because I could not find the one mentioned in the Oracle documentation.
Now the DBTableOraDataSourceLoginModule rejects the login with an invalid password message. It seems the encoding is calculated differently in the two classes. I tried to use the sample dblogin module in the javasso specification, and got a - no class found - message. I tried to locate the oracle.security.jazn.login.module.db.util package to use in the password encoding program, but I couldn't find it anywhere in either OC4J nor JDeveloper directories.
Can you tell me where to find the oracle.security.jazn.login.module.db.util package ?
Thanks for help.
GustavoHi
As I am also tried the same and found the encryption module working fine for me.
This I could do only on JDeveloper 10g whereas while attempted on the same on JDeveloper 11g, I got lots of problems.
Will you please help out in this regard, if you had already able to acheive the same on JDeveloper 11g TP3, please let me know the steps or any relevant URL which I can refer.
Thanks in advance
Kind Rgds
Krishnamurthy. R -
Hi All.
I am calling the getIdentityStoreFactory() method in the IdentityStoreFactoryBuilder class and I am getting the following error:
oracle.security.idm.ConfigurationException: java.security.AccessControlException: access denied (oracle.security.jazn.JAZNPermission getOC4JIntegrationData)
Any ideas what is going on and any possible fixes?
thanks
jamesI will move it to the OC4j and J2ee forum.
Thanks for bring it to my attention.
Message was edited by:
user480263 -
Where to find tutorial for oracle.security.jazn , specially role granting?
Hi
Thank you for reading my post
where i can find references about oracle.security.jazn and its classes and interfaces ?
i am stucked with granting roles that i created in admin console or from within my application to users ?
where is this package javadocs ?
thanksThanks for giving the link
is there any way that i add this javadocs to Jdeveloper IDE for quick javadoc facilities ?
where i can download its zip/jar package for offline IDE use ?
which jdeveloper predefined library contains oracle.security.jazn ?
thank you again -
Hello!
I need to create a function that could allow Application users to change their passwords.I use a JAZN authentication in the application. So, I decided to analyze contents of the CreateJaznUser application first. But compilation of this application breaks by the next error:
import oracle.security.jazn.oc4j.JAZNUserManager not found
Could you advise me, what an additional libraries I must add to the CreateJaznUser application and where can I download them from?
Thanks in advance.OID 3.0.1.0 is the latest product release to public. I did add the Install data to allow it to work. I see the data in OID but when I connect with jazn I get error.
java -jar jazn.jar -shell
JAZN:> ls
realms policy
JAZN:> cd realms
JAZN:> ls
String index out of range: 32
JAZN:> cd ../policy
JAZN:> ls
JAZN:> exit
JAZN:>
It does not error on policy dirictory but it does on the realm side. If I watch the tcp packets it is working. -
Oracle.security.jazn.JAZNRuntimeException: Invalid index
Hi all,
I'm getting this exception very often:
oracle.security.jazn.JAZNRuntimeException: Invalid index
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:480)
at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:583)
at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:334)
at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.doDispatchRequest(HttpRequestHandler.java:942)
at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:843)
at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:658)
at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:626)
at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:417)
at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)
at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:163)
at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:237)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:29)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:877)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalStateException: Invalid index
at org.apache.myfaces.trinidad.bean.util.StateUtils.restoreKey(StateUtils.java:68)
at org.apache.myfaces.trinidad.bean.util.StateUtils.restoreState(StateUtils.java:142)
at org.apache.myfaces.trinidad.bean.util.FlaggedPropertyMap.restoreState(FlaggedPropertyMap.java:194)
at org.apache.myfaces.trinidad.bean.FacesBeanImpl.restoreState(FacesBeanImpl.java:342)
at org.apache.myfaces.trinidad.component.UIXComponentBase.restoreState(UIXComponentBase.java:898)
at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeState.java:57)
at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:872)
at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeState.java:96)
at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:872)
at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeState.java:96)
at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:872)
at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeState.java:96)...{code}
Usualy when I click on refresh button on browser and in many other cases that I can't recognize as some rule...
Thanks in advance,
s o v i e tHi Frank!
This error occur for me when I have "pending" PPR and I start a new one (e.g. fast clicking same button twice). Also, it may happen when I have pending lazy fetching of some table or graph and I hit some action button, or when I refresh a page using browser refresh button (while PPR is still not finished).
And I notice that it doesn't occur when I don't use ADF Controller.
I have not found cause nor workaround, expect to keep users patient until the PPR is finished (blocking attribute is not working in TP4, and your very nice glasspane trick is not appropriate for each and every button click).
Regards,
PaKo -
Error: cannot access class oracle.security.jazn.realm.RealmUser
Hi,
I try to compile this simple jsp, which use jpdkv2, with jdeveloper 9i.
But I obtain this error:
Error: cannot access class oracle.security.jazn.realm.RealmUser; file oracle\security\jazn\realm\RealmUser.class not found
Someone has an idea ?
Source code of my jsp:
<%@ page contentType="text/html;charset=windows-1252"%>
<%@page import = "oracle.portal.provider.v2.render.PortletRenderRequest" %>
<%@page import = "oracle.portal.provider.v2.http.HttpCommonConstants" %>
<%
PortletRenderRequest portletRequest = (PortletRenderRequest)
request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
%>
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<TITLE>
Hello World
</TITLE>
</HEAD>
<BODY>
<H2>
The current time is:
</H2>
<P>
<% out.println((new java.util.Date()).toString()); %>
</P>
<P>Hello: <%= portletRequest.getUser().getName() %></P>
</BODY>
</HTML>Please check if jazn.jar is available under your <YOUR_OC4J_PATH>\j2ee\home folder.
This library files contains all the security related classes required by jpdkv2 providers. -
Use of Bind Variable in the Query of view object giving null pointer excep
I am using this code in the backing bean of my page to set the value of the bind variable 'cmdID' in the view object.
String AM = "model.UnixCommandsAppMod";
String CF = "UnixCommandsAppModLocal";
ApplicationModule am = Configuration.createRootApplicationModule(AM, CF);
ViewObject vo = am.findViewObject("Command_options_view");
vo.setNamedWhereClauseParam("cmdID", 1);
vo.executeQuery();
On the fifth line it is giving NullPointer exception.
I am not being able to figure out the reason.User,
a). Don't keep posting new questions in the same thread. It really does decrease the usability of the forum. Now, if someone searches for "INFO: ADF Faces is running with time-stamp checking enabled," they will find a post about null pointer exception in a bind variable and think, "oh, that doesn't apply to me." If your question is answered, mark the answer as correct. New questions go into a new thread. Kind of funny that the thread I pointed you to with the answer to your question also has this same admonishment.. ;)
b). I'll relent and answer your new question. Ignore that INFO message. It is not an error. It will ALWAYS ALWAYS appear when you run your application in the embedded OC4J with JDeveloper. Had you searched the forum for "INFO: ADF Faces is running with time-stamp checking enabled" you would find that the first hit (among some others) has this same answer
John -
Java XML Parser:Null Pointer exception in EntityReader
I got NullPointer Exception when trying to parse a XML file which
is pointed by a net URL, (say "http://www..."). The code causing
problem is like:
parser.parse(new URL("http://www.../demo.xml"));
the exception I got is:
java.lang.NullPointerException
java.lang.NullPointerException
at oracle.xml.parser.EntityReader.initXMLInput(Compiled
Code)
at
oracle.xml.parser.EntityReader.<init>(EntityReader.java:64)
at oracle.xml.parser.XMLParser.parse(XMLParser.java:245)
at DemoXML.main(DemoXML.java:47)
The very same code works fine with a simple local file URL and we
also know that the URL exists in correct in XML format because we
can open the URL with IE5.
Another question - where can we get the source for the Java XML
Parser.
nullThis bug has already been reported and will be fixed in our next
release.
Oracle XML Team
http://technet.oracle.com
Oracle Technology Network
Fiona Lu (guest) wrote:
: I got NullPointer Exception when trying to parse a XML file
which
: is pointed by a net URL, (say "http://www..."). The code
causing
: problem is like:
: parser.parse(new URL("http://www.../demo.xml"));
: the exception I got is:
: java.lang.NullPointerException
: java.lang.NullPointerException
: at oracle.xml.parser.EntityReader.initXMLInput
(Compiled
: Code)
: at
: oracle.xml.parser.EntityReader.<init>(EntityReader.java:64)
: at oracle.xml.parser.XMLParser.parse
(XMLParser.java:245)
: at DemoXML.main(DemoXML.java:47)
: The very same code works fine with a simple local file URL and
we
: also know that the URL exists in correct in XML format because
we
: can open the URL with IE5.
: Another question - where can we get the source for the Java
XML
: Parser.
null -
On screen diagnostic logs are not displayed when there NULL pointer excep
I am trying to debug a java.lang.NullPointerException on the web page in EBS under "Demand Planning System Administrator Self Service" responsibility. I have enabled the On screen log at statement level but still am not getting any logs on the screen.
Please help me as soon as possible.Complete exception stack trace...
UNEXPECTED_OA_EXCEPTION: user name = GCSSMC.TEST239: responsibility name = GCSS-MC Logistics Chain Planning Administrator â APS roo
t region = /oracle/apps/msd/plans/webui/DemandPlansPG transaction id = 1319982722
oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.lang.NullPointerE
xception;
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:912)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:620)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1182)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:976)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:943)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:663)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:976)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:943)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:663)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2629)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1949)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:549)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:437)
at OA.jspService(_OA.java:212)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:280)
at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:68)
at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:214)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:219)
at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
at RF.jspService(_RF.java:225)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
UNEXPECTED_OA_EXCEPTION: user name = GCSSMC.TEST239: responsibility name = GCSS-MC Logistics Chain Planning Administrator â APS roo
t region = /oracle/apps/msd/plans/webui/DemandPlansPG transaction id = 1319982722
vletRequestDispatcher.java:391)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:911)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:662)
## Detail 0 ##
java.lang.NullPointerException
at java.io.Reader.<init>(Reader.java:61)
at java.io.InputStreamReader.<init>(InputStreamReader.java:80)
at oracle.apps.msd.plans.webui.DemandPlansCO.getPluginInfoFromHTML(DemandPlansCO.java:190)
at oracle.apps.msd.plans.webui.DemandPlansCO.PluginVersion(DemandPlansCO.java:301)
at oracle.apps.msd.plans.webui.DemandPlansCO.processRequest(DemandPlansCO.java:80)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:604)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1182)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:976)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:943)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:663)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:976)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:943)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:663)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2629)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1949)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:549)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:437)
at OA.jspService(_OA.java:212)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:280)
at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:68)
at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:214)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:219)
at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
at RF.jspService(_RF.java:225)
at com.orionserver.http.OrionHttpJspPage.se
UNEXPECTED_OA_EXCEPTION: user name = GCSSMC.TEST239: responsibility name = GCSS-MC Logistics Chain Planning Administrator â APS roo
t region = /oracle/apps/msd/plans/webui/DemandPlansPG transaction id = 1319982722
rvice(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:911)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:662)
fnd.framework.OAException
java.lang.NullPointerException
Edited by: Manikanda Prabhu on Mar 13, 2013 10:23 PM
Edited by: Manikanda Prabhu on Mar 13, 2013 10:24 PM -
Deploying jazn-data.xml
I'm trying to set up container managed security from JDev (10.1.2) into an Oracle AS (10.1.2.0.0) all on the same Windows 2k box. The application is named cms and updating the cms-jazn-data.xml file + web.xml served to set up security in the stand-alone OC4j that runs from jdev. What I want to do is put those users and roles into the app server without going to OEM and setting up everything again.
the cms-jazn-data.xml file doesn't get assembled into the ear or the war so I created an orion-application.xml and jazn-data.xml in my META-INF directory for the project. When I try using jdev to deploy it tells me it deployed but nothing seems to exist on the app server. When I use OEM to deploy the EAR I get this error:
Deployment failed: Nested exception
Resolution:
Base Exception:
java.rmi.RemoteException
deploy failed!: ; nested exception is:
oracle.oc4j.admin.internal.DeployerException: Constructing UserManager for cms:caught oracle.security.jazn.JAZNInitException: C:\oracle\oraAS\j2ee\home\application-deployments\cms\jazn-data.xml (The system cannot find the file specified). deploy failed!: ; nested exception is:
oracle.oc4j.admin.internal.DeployerException: Constructing UserManager for cms:caught oracle.security.jazn.JAZNInitException: C:\oracle\oraAS\j2ee\home\application-deployments\cms\jazn-data.xml (The system cannot find the file specified)
The file is in the ear, I checked it via winzip. Its under the meta-inf directory just where it appears to belong. What's the missing piece of the puzzle here?Jason,
to get the jazn-data.xml file deployed, you need to add it to your project. You do this by choosing the jazn-data.xml file from the New Gallery in JDeveloper. After that you can use a similar dialog that you use to populate teh embedded OC4J's jazn-data.xml file to create all entries.
Please have a look at: http://www.oracle.com/technology/products/jdev/collateral/papers/10g/adfstrutsj2eesec.pdf
This paper is in the collateral section on otn.oracle.com/products/jdev
Frank
Maybe you are looking for
-
When I am on a phone call and I double click the button to go to my home screen, then open another application (usually my calendar program, Calengoo), my screen goes blank and I am not able to return to either the app, the phone, or the home screen.
-
How to load .jar files when not specified in the .jnlp file
Hello, We are deploying an application with JWS but due to the nature of this app, we need to download additional jar file only when the user has been authenticated. The jar file(s) we need to download can hardly be predicted (in term of name) and th
-
how do i fix this?
-
Use External phone Number mask * Calling party Transform Mask @ Route patt
Having an issue with CLID at RP level. Lets say I have two phones. One phone is configured with an External phone number mask of 1112223333 and the other one does not have an external number mask set. When a call is placed to the PSTN, Phone one need
-
Reg: LDB& Selection screen
Hello All, I have a question reg. selection screen associated with LDB. Iam developing a LDB for Hedge where there are nodes which have the same selection opt but they are disjunct. But in LDB static slection screen , we associate Sel Opt with a node