the use of exceptions to differentiate static/instance fields
I want to identify the instance fields of a class I know nothing about.This example does this:
public class Main {
public static void main(String args[]) {
test();
}
static void test() {
try {
Field[] fields = Foo.class.getFields();
for(int i = 0; i < fields.length; i++) {
System.out.print(fields.getName());
try {
fields[i].get(null);
} catch(NullPointerException e) {
System.out.println(" <-- instance");
continue;
}
System.out.println(" <-- static");
}
} catch(Exception e) {
e.printStackTrace();
}
}
static class Foo {
public static int staticInt = 5;
public static String staticString = "five";
public int instInt = 10;
public String instString = "ten";
}
}I am using NullPointerException throwing to control the flow of my method. I am sure a good programmer would never do this, right?
So, is there any other way to determine if a field is a class's instance, or static, field?
thank you.
http://download.Oracle.com/javase/6/docs/API/Java/lang/class.html#getModifiers)
Tags: Java
Similar Questions
-
The use of Exception in function
Hi I want to know which is the standard practice of exception handling in a stored function?
EXCEPTION
WHILE OTHERS THEN
sp_log_error (...);
LIFT;
or
EXCEPTION
WHILE OTHERS THEN
RETURNS A NULL VALUE. If the function has no exception handler, and the function throws an exception, then the INSERT statement throws this exception. Depending on the version of Oracle and requirements, you can potentially use the clause of ERRORS in the LOG so that the lines that do not cause an exception get inserted and lines that cause an exception get connected in a separate table.
Justin
-
The use of some characters in a text field in another text box?
Hello
I try to carry out a project of the University in which I have to create a fully functional PDF form. I would like to know if it is possible to create two text fields in an acrobat document and have some characters of the first textfield inserted in the second.
For example:
If 'B12345678-COM123' has been inserted in the first text field, I want only the first 9 characters (B12345678) of this text automatically inserted in the second textfield and make it read-only. Therefore, the user didn't repeat itself and enter the same data/codes twice.
A solution to this problem/question would be much appreciated as I'm a complete amateur when it comes to acrobat.
Detailed explanation please
So let's say the name of the other field is "Text1". You can then use this code as the custom for the second field calculation script:
get the value of Text1
Text1 = this.getField("Text1").value;
first of all make sure that the length of the value in Text1 is at least 7 characters
If {(text1.length>=7)}
apply the first 7 characters of Text1 to the value of this field
Event.Value = text1.substr (0.7);
} else event.value = ""; Otherwise, leave this field empty
-
Using a stand-alone WebLogic Server instance - ADF Insider issue
Hello
I just watched the [use a stand-alone WebLogic Server instance - ADF Insider | http://www.youtube.com/watch?v=yGSR6dwd3nw] video and I gave a try installing the WLS in my dev machine.
Unfortunately I can't see how to do a run/debug jspx page right click in the WLS newly installed and configured.
Note that the wizard will create a server connection Application under the radio button in the built-in Server displays "a built-in server can be started and stopped by JDeveloper. That applications can be deployed automatically to the server with the command run or Debug ... "but running a jspx always begin it pre-configured"IntegretedWebLogicServer"and there is no option to choose where to run from nor I see any configuration in the project properties.
Could you please give me the missing indication?
Yiannis Hello.
First of all, thanks for watching the video. To specify the server of an application will run on, simply open the application properties and go the the Run category. Then select the appropriate drop down list WLS forum link to the built-in application server .
Best regards
Frédéric.
-
Hello, im a student in England, student of architecture. I have the pack student for 12 months and I really need to know my limits with the use, (copyright licensing). I am allowed, except by using my home application to show works which I have already done (as portfolios) to architectural firms, I intend to request a placement to? also can I post my stuff (already did the work) on my blog or tumblr? I intend not to use for profit/money at all well (if I was I wouldn't ask you this lol). Thank you.
Hi,
Please see Licensing FAQ: where can I find the terms of membership and the terms of use?
Hope that helps!
Kind regards
Sheena
-
You want to clarify the whole picture except for a small area - using a MAC PS thanks CC!
You want to clarify the whole picture except for a small area - using a MAC PS thanks CC!
The target of the layer mask.
Use the paint brush tool
Use black paint
paint over the area you want to return the origanal look.
-
Using CS4 Flach and action script 2.0 how to move a specific frame in the main timeline when a movie clip instance come at the end of his chronology?
code on the last frame of your movieclip instance:
_root.gotoAndStop ('whatever_frame'); will work unless this swf is loaded into another swf. in this case, you must use a relative path to the main timeline (for example, _parent or _parent._parent etc.).
-
The use of eventhandler to create on trusted reconcile
Hey guys,.
I try to use an event handler to create the user an event recon trust.
So, I wrote a post process event handler and personalized to my BulkEventResult method. the structure is as below
public BulkEventResult run (long processId, long eventId,
{BulkOrchestration bulkOrchestration)
HashMap < String, Serializable > [] bulkParams = bulkOrchestration
. getBulkParameters();
for (int i = 0; i < bulkParams.length; i ++) {}
Code update bulkParams [i] using bulkParams.put (field, value);
}
return new BulkEventResult();
}
When I print mybulkParams, it shows all my updates. But when the task is complete, it will not refresh changes. The user is created but only with the values that were pulled out of the resource, but not the changes that I made to bulkParams [i].
I saw the other posts and I think I'm doing the same thing mentioned in other posts, however, my changes get through. Am I missing something?
Thanks in advance for any help In the bulkEvent, you can use the following code to get the user being modified as well as the type of event:
>
String operation = .trim m:System.NET.SocketAddress.ToString () () () bulkOrchestration.getOperation;
String [] entityIds = bulkOrchestration.getTarget () .getAllEntityId ();
>
Then later, as you have completed your entries, entityIds [ii] will give you the entityId which you can spend like the take.
When I do updates in the majority, I store all the values that I intend to update as follows:
>
Vector of values
-
I'm trying to debug a java application on the Blackberry Pearl, using Eclipse v3.4.1. After the break on a line of code, I chose a variable in the 'Variables' tab and the following message appeared:
"evaluations thread jdi" has encountered a problem.
Queue of the async thread exception handling. java.lang.NullPointerException.
java.lang.NullPointerException
What kind of message is this, she comes from - and knowledge where I even begin to determine why this is happening. Perhaps can someone point me in the right direction.
Thank you
Steve
Object that you are trying in this instance is Null.
-
Hi all!
I use Jdeveloper 11.1.1.7 Release 1, and I develop a POC sample to call with the merger application.
When I run the application in my local environment on the launch of the page I am confronted with the below exception.
< oracle.security.jps.internal.idstore.util.IdentityStoreUtil > < IdentityStoreUtil > < getIdentityStoreFactory > < JPS-01520 >
< oracle.security.jps.internal.idstore.util.IdentityStoreUtil > < IdentityStoreUtil > < getIdentityStoreFactory > < JPS-01520 >
< oracle.security.jps.internal.idstore.util.IdentityStoreUtil > < IdentityStoreUtil > < getIdentityStoreFactory > < JPS-01520 >
< oracle.security.jps.internal.idstore.util.IdentityStoreUtil > < IdentityStoreUtil > < getIdentityStoreFactory > < JPS-01520 >
< oracle.adf.controller > < Utils > < buildFacesMessage > < ADF: addition of the following JSF error message: oracle.jbo.JboException: storage of identity is null. >
- javax.el.ELException: oracle.jbo.JboException: storage of identity is null.
at javax.el.BeanELResolver.getValue(BeanELResolver.java:266)
at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)
at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)
to oracle.adf.share.el.VariableResolverELContext$ 1.getValue(VariableResolverELContext.java:53)
at com.sun.el.parser.AstValue.getValue (unknown Source)
at com.sun.el.ValueExpressionImpl.getValue (unknown Source)
at oracle.adf.share.el.OracleExpressionEvaluatorImpl.evaluate(OracleExpressionEvaluatorImpl.java:150)
at oracle.adf.share.el.OracleExpressionEvaluatorImpl.evaluate(OracleExpressionEvaluatorImpl.java:105)
at oracle.adf.share.el.OracleExpressionEvaluatorImpl.evaluateHandleNull(OracleExpressionEvaluatorImpl.java:86)
at oracle.adf.model.binding.DCUtil.elEvaluate(DCUtil.java:777)
at oracle.adf.controller.internal.binding.DCTaskFlowBinding.getConditionalActivationValue(DCTaskFlowBinding.java:979)
at oracle.adf.controller.internal.binding.TaskFlowRegionController.refreshRegion(TaskFlowRegionController.java:93)
at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3202)
at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2876)
at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3193)
at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2876)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareRender(PageLifecycleImpl.java:545)
at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareRender(FacesPageLifecycle.java:82)
to oracle.adf.controller.v2.lifecycle.Lifecycle$ 9.execute(Lifecycle.java:224)
at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:197)
to oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.access$ 400 (ADFPhaseListener.java:34)
to oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$ 5.before(ADFPhaseListener.java:508)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.beforePhase(ADFPhaseListener.java:76)
at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.beforePhase(ADFLifecyclePhaseListener.java:44)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:390)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:249)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:211)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:128)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.wcps.client.PersonalizationFilter.doFilter(PersonalizationFilter.java:75)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.webcenter.content.integration.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:168)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged (Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused by: oracle.jbo.JboException: storage of identity is null.
at oracle.apps.fnd.applcore.pref.model.util.PreferencesUtil.getImpersonateeList(PreferencesUtil.java:832)
at oracle.apps.fnd.applcore.patterns.uishell.ui.bean.GlobalAreaBackingBean.isImpersonateeListAvailable(GlobalAreaBackingBean.java:1650)
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 javax.el.BeanELResolver.getValue(BeanELResolver.java:261)
... more than 68
< oracle.adf.controller > < Utils > < buildFacesMessage > < ADF: addition of the following JSF error: storage of identity is null. >
- oracle.jbo.JboException: storage of identity is null.
at oracle.apps.fnd.applcore.pref.model.util.PreferencesUtil.getImpersonateeList(PreferencesUtil.java:832)
at oracle.apps.fnd.applcore.patterns.uishell.ui.bean.GlobalAreaBackingBean.isImpersonateeListAvailable(GlobalAreaBackingBean.java:1650)
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 javax.el.BeanELResolver.getValue(BeanELResolver.java:261)
at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)
at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)
to oracle.adf.share.el.VariableResolverELContext$ 1.getValue(VariableResolverELContext.java:53)
at com.sun.el.parser.AstValue.getValue (unknown Source)
at com.sun.el.ValueExpressionImpl.getValue (unknown Source)
at oracle.adf.share.el.OracleExpressionEvaluatorImpl.evaluate(OracleExpressionEvaluatorImpl.java:150)
at oracle.adf.share.el.OracleExpressionEvaluatorImpl.evaluate(OracleExpressionEvaluatorImpl.java:105)
at oracle.adf.share.el.OracleExpressionEvaluatorImpl.evaluateHandleNull(OracleExpressionEvaluatorImpl.java:86)
at oracle.adf.model.binding.DCUtil.elEvaluate(DCUtil.java:777)
at oracle.adf.controller.internal.binding.DCTaskFlowBinding.getConditionalActivationValue(DCTaskFlowBinding.java:979)
at oracle.adf.controller.internal.binding.TaskFlowRegionController.refreshRegion(TaskFlowRegionController.java:93)
at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3202)
at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2876)
at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3193)
at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2876)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareRender(PageLifecycleImpl.java:545)
at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareRender(FacesPageLifecycle.java:82)
to oracle.adf.controller.v2.lifecycle.Lifecycle$ 9.execute(Lifecycle.java:224)
at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:197)
to oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.access$ 400 (ADFPhaseListener.java:34)
to oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$ 5.before(ADFPhaseListener.java:508)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.beforePhase(ADFPhaseListener.java:76)
at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.beforePhase(ADFLifecyclePhaseListener.java:44)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:390)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:249)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:211)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:128)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.wcps.client.PersonalizationFilter.doFilter(PersonalizationFilter.java:75)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.webcenter.content.integration.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:168)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged (Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
< oracle.adf.controller > < Utils > < buildFacesMessage > < ADF: addition of the following JSF error message: oracle.jbo.JboException: storage of identity is null. >
- javax.el.ELException: oracle.jbo.JboException: storage of identity is null.
at javax.el.BeanELResolver.getValue(BeanELResolver.java:266)
at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)
at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)
to oracle.adf.share.el.VariableResolverELContext$ 1.getValue(VariableResolverELContext.java:53)
at com.sun.el.parser.AstValue.getValue (unknown Source)
at com.sun.el.ValueExpressionImpl.getValue (unknown Source)
at oracle.adf.share.el.OracleExpressionEvaluatorImpl.evaluate(OracleExpressionEvaluatorImpl.java:150)
at oracle.adf.share.el.OracleExpressionEvaluatorImpl.evaluate(OracleExpressionEvaluatorImpl.java:105)
at oracle.adf.share.el.OracleExpressionEvaluatorImpl.evaluateHandleNull(OracleExpressionEvaluatorImpl.java:86)
at oracle.adf.model.binding.DCUtil.elEvaluate(DCUtil.java:777)
at oracle.adf.controller.internal.binding.DCTaskFlowBinding.getConditionalActivationValue(DCTaskFlowBinding.java:979)
at oracle.adf.controller.internal.binding.TaskFlowRegionController.refreshRegion(TaskFlowRegionController.java:93)
at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3202)
at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2876)
at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3193)
at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2876)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareRender(PageLifecycleImpl.java:545)
at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareRender(FacesPageLifecycle.java:82)
to oracle.adf.controller.v2.lifecycle.Lifecycle$ 9.execute(Lifecycle.java:224)
at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:197)
to oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.access$ 400 (ADFPhaseListener.java:34)
to oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$ 5.before(ADFPhaseListener.java:508)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.beforePhase(ADFPhaseListener.java:76)
at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.beforePhase(ADFLifecyclePhaseListener.java:44)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:390)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:249)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:211)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:128)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.wcps.client.PersonalizationFilter.doFilter(PersonalizationFilter.java:75)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.webcenter.content.integration.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:168)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged (Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused by: oracle.jbo.JboException: storage of identity is null.
at oracle.apps.fnd.applcore.pref.model.util.PreferencesUtil.getImpersonateeList(PreferencesUtil.java:832)
at oracle.apps.fnd.applcore.patterns.uishell.ui.bean.GlobalAreaBackingBean.isImpersonateeListAvailable(GlobalAreaBackingBean.java:1650)
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 javax.el.BeanELResolver.getValue(BeanELResolver.java:261)
... more than 68
Any kind of index will be appreciated...
Kind regards
Miko Auntie
Thanks Timo, for your quick reply.
I found the root cause of this problems. I develop page that contains the table of adf coming from static ViewObject, for this I chose connection with merger Applications DB schema and it is a part of the evolution of the merger application, I must add Application Core and Core Application (model Attachmenet) pots in the model project. After the addition of these jars, the problem is resolved.
Thank you best regards &,.
Miko Auntie
-
Hello, I used an array in a class
private var freeIDs:Array = new Array();
And then created an object of this class and everything works. But when I create a second object of the same class, the tables of each object seem to be in conflict, even if they are intended to be specific to each object. I'm this misunderstanding or is this a real problem?
Basically, I have 2 (or 3) objects of that class and that they call has the same function in the objects at the same time, the function changes freeIDs. It seems when freeIDs is altered in an object, he transforms into the other, that is involuntary. Individually the items work but when there are two or more, it does not work and weird buggy behavior. Is this normal?
Thank you
Laughing out loud
but it's not supposed, '... they want a the same function in objects..'. the functions should be unique to each instance of the class unless you use a static function.
is there static functions/variables in your class?
If this isn't the case, what do you do that makes you think change a single Bay changes into a different picture?
-
JDEVELOPER 10 G, ADF BC: passivation of AM static instance variables?
I understand the need to passivate/activate instance variables, but what about the variables of static instance within one module application?
Thank you
Wes Static variables - variables of class and instance-variables persist without the need for passivation. Is there a particular reason or a scenario why use static variables? You need to consider that since all instances of AOS will share, change at 01:00 instance - i.e. the session of a user - will affect all other instances of AM - i.e. all other user sessions. You must also take into account the consequences of the multithreading when you attempt to change the static variable.
-
the use of collections, copy a record with children/grandchildren
I understand that loops FOR cursor are not as good as the use of collections, and now I need to convert some of my code accordingly.
I've been doing a bit of good to read the documentation and have not yet encountered examples of the situation that is so prolific in our system; namely, someone wants to make a copy of a record, with its outbuildings down a few levels.
Here's what looks like a typical of this instance (except that everything is in packages). Take the 3 tables: grandparent_table, parent_table and child_table, with primary keys being gp_id, p_id and c_id respectively (and related as one might guess these names):
create or replace procedure p_copy_record (p_gp_id in grandparent_table.gp_id%type)
is
cursor c_parent
is
Select *.
from parent_table
where gp_id = p_gp_id;
v_gp_id grandparent_table.gp_id%type;
v_parent_id parent_table.p_id%type;
Start
Select grandparent_seq.nextval
in v_gp_id
Double;
insert into grandparent_table
Select v_gp_id,
other_columns_here
of grandparent_table
where gp_id = p_gp_id;
for r_parent loop c_parent
Select parent_seq.nextval
in v_parent_id
Double;
insert into parent_table)
P_ID,
gp_id,
other_columns_again)
Select v_parent_id,
v_gp_id,
r_parent.other_columns_again;
insert into child_table)
C_ID,
P_ID,
other_columns3)
Select child_seq.nextval,
v_parent_id,
other_columns3
of child_table c,.
where parent_id = r_parent.parent_id;
end loop;
end;
/
I tried to change the code of this a few different ways, but running into errors. The main problem seems to be that the collections don't refer to an element, in order to make this join (where parent_id = r_parent.parent_id).
How you would replace the slider - for loops here (using 10 gr 2)?
Thank you To replace the sliders, you will need to fill a table with the same data. Then process these tables
create or replace procedure p_copy_record (p_gp_id in grandparent_table.gp_id%type)
is
type gp_array is table of grandparent_table % roytype;
type p_array is the table of the parent_table % rowtype;
l_gp gp_array;
l_p p_array;
v_gp_id grandparent_table.gp_id%type;
v_parent_id parent_table.p_id%type;
Start
-get the next gp id
Select grandparent_seq.nextval
in v_gp_id
Double;
-bulk collect the current record of the gp - you don't really need but for pleasure it's im
Select * bulk collect into l_gp from grandparent_table where gp_id = p_gp_id;
-creation of a grandparent registration
insert into grandparent_table
values v_gp_id,
.name l_gp (1),
.other_columns_here l_gp (1);
-Now bulk collect the parent records
Select * bulk collect into l_p Parent_table where gp_id = l_gp (1) .gp_id;
FOR i IN 1.NVL(l_p.COUNT,0) LOOP
-get the next parent id
Select parent_seq.nextval in the double v_parent_id;
-create the parent record
insert into parent_table)
P_ID,
gp_id,
other_columns_again)
v_parent_id,
v_gp_id,
LP (i) .other_columns_again;
-While we are here create the records for this parent child
insert into child_table)
C_ID,
P_ID,
other_columns3)
Select child_seq.nextval,
v_parent_id,
other_columns3
of child_table c,.
where parent_id = lp (i) .parent_id;
END LOOP;
END;
To be honest, I'm not sure that you will really see a great improvement since you already limit the scope until the recording of one of the grandparents. Let's say the grandparent has 10 children each with 10 children who is just 111 records. As long as your tables are indexed by the node Id it should be fast just like that.
-
The message of exceptional Transport
Hello
We tried to use the AQ connector customized for process in Oracle B2B EDI adapter. We receive the exception below:
The message of exceptional Transport
Transport error code is null
StackTrace oracle.tip.transport.TransportException
at oracle.tip.transport.basic.aq.AQBase.setup(AQBase.java:86)
at oracle.tip.transport.basic.aq.AQEnqueuer.init(AQEnqueuer.java:162)
at oracle.tip.transport.basic.AQSender.init(AQSender.java:151)
to oracle.tip.transport.basic.AQSender. < init > (AQSender.java:70)
at oracle.tip.transport.basic.TransportSenderFactory.createTransportSender(TransportSenderFactory.java:96)
at oracle.tip.transport.b2b.B2BTransport.send(B2BTransport.java:275)
at oracle.tip.adapter.b2b.transport.TransportInterface.send(TransportInterface.java:900)
at oracle.tip.adapter.b2b.msgproc.FunctionalAck.processOutgoingMessage(FunctionalAck.java:742)
at oracle.tip.adapter.b2b.engine.Engine.handleMessageEvent(Engine.java:2318)
at oracle.tip.adapter.b2b.engine.Engine.processEvents(Engine.java:2270)
at oracle.tip.adapter.b2b.data.MsgListener.onMessage (MsgListener.java:501)
at oracle.tip.adapter.b2b.data.MsgListener.run (MsgListener.java:349)
at java.lang.Thread.run(Thread.java:534)
2008.12.09 to 12:55:13:203: Thread-404: B2B - oracle.tip.adapter.b2b.transport.TransportInterface:send (DEBUG) error in send message
2008.12.09 to 12:55:13:203: Thread-404: B2B - beginTransaction (DEBUG) DBContext: enter
2008.12.09 to 12:55:13:203: Thread-404: B2B - beginTransaction (DEBUG) DBContext: Transaction.begin)
2008.12.09 to 12:55:13:203: Thread-404: B2B - beginTransaction (DEBUG) DBContext: leave
2008.12.09 to 12:55:13:203: Thread-404: B2B - null oracle.tip.adapter.b2b.msgproc.FunctionalAck:processOutgoingMessage (DEBUG)
null
2008.12.09 to 12:55:13:203: Thread-404: BusinessLogicLayer - disabled (DEBUG) authorization. UserBootstrapped:false, useAuthorization:true, configType:Runtime
2008.12.09 to 12:55:13:203: Thread-404: BusinessLogicLayer - Stack push (DEBUG): updateBusinessMessage
2008.12.09 to 12:55:13:218: Thread-404: BusinessLogicLayer - Pop Stack (DEBUG): updateBusinessMessage
2008.12.09 to 12:55:13:218: Thread-404: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:notifyApp retry value < = 0, so sending exception to IP_IN_QUEUE
2008.12.09 to 12:55:13:218: Thread-404: B2B - enter engine: notifyApp (DEBUG)
2008.12.09 to 12:55:13:218: Thread-404: B2B - notifyApp:notifyApp (DEBUG) the exception ip message queue:
< exception xmlns = "http://integration.oracle.com/B2B/Exception" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" >
null < correlationId > value < / correlationId >
< b2bMessageId > 0AE8415D11E1AA26910000006E1DFC00 < / b2bMessageId >
< errorCode > AIP-50079 < / errorCode >
< errorText > Transport error: null
Null < / errorText >
< errorDescription >
<! [CDATA [Info Machine: (pc022698)]]
Transport error: null
NULL]] >
< / errorDescription >
< errorSeverity > 2 < / errorSeverity >
< / exception >
In transport.trc, it is updated as
AQEnqueuer_reconnect error = null
2008.12.09 to 12:55:12:312: Thread-404: AQBase_ctor: could not instantiate writer error Oracle Advanced queue
java.lang.NullPointerException
to oracle.tip.transport.basic.aq.DBConnection. < init > (DBConnection.java:136)
to oracle.tip.transport.basic.aq.DBConnection. < init > (DBConnection.java:117)
at oracle.tip.transport.basic.aq.AQBase.setup(AQBase.java:66)
at oracle.tip.transport.basic.aq.AQEnqueuer.init(AQEnqueuer.java:162)
at oracle.tip.transport.basic.AQSender.init(AQSender.java:151)
to oracle.tip.transport.basic.AQSender. < init > (AQSender.java:70)
at oracle.tip.transport.basic.TransportSenderFactory.createTransportSender(TransportSenderFactory.java:96)
at oracle.tip.transport.b2b.B2BTransport.send(B2BTransport.java:275)
at oracle.tip.adapter.b2b.transport.TransportInterface.send(TransportInterface.java:900)
at oracle.tip.adapter.b2b.msgproc.FunctionalAck.processOutgoingMessage(FunctionalAck.java:742)
at oracle.tip.adapter.b2b.engine.Engine.handleMessageEvent(Engine.java:2318)
at oracle.tip.adapter.b2b.engine.Engine.processEvents(Engine.java:2270)
at oracle.tip.adapter.b2b.data.MsgListener.onMessage (MsgListener.java:501)
at oracle.tip.adapter.b2b.data.MsgListener.run (MsgListener.java:349)
at java.lang.Thread.run(Thread.java:534)
2008.12.09 to 12:55:13:203: Thread-404: TransportProperties.TransportProperties (): TO_PARTY = SF; MSG_ID(2) = 0AE8415D11E1AA2A415000006E1DFF00; FROM = CCC; AQ.sender.Host = 10.77.189.76; DOCTYPE_NAME = 997; DOCTYPE_REVISION = 4010; date = kill, December 9, 2008 07:24:58 GMT; Content-Transfer-Encoding = binary; MSG_TYPE = 9; Action_name = Process_997; AQ.sender.User = aq_admin; AQ.sender.Pass = *; Content-Type = text/plain; charset=US-ASCII;INREPLYTO_MSG_ID=SF_103.dat@0AE8415D11E1AA21AD0000006E1DF800; FROM_PARTY = CCC; AQ.sender.queue_name = Q_AIGP_EST; Connection = Close; AQ.sender.sid = AQI4; TO = SF; AQ.sender.port = 1521; MESSAGE-ID = 0AE8415D11E1AA2A415000006E1DFF00; AQ.sender.queue_payload_col = PAYLOAD;
2008.12.09 to 12:55:13:203: Thread-404: AQEnqueuer_reconnect error = null
2008.12.09 to 12:55:13:203: Thread-404: AQBase_ctor: could not instantiate writer error Oracle Advanced queue
java.lang.NullPointerException
to oracle.tip.transport.basic.aq.DBConnection. < init > (DBConnection.java:136)
to oracle.tip.transport.basic.aq.DBConnection. < init > (DBConnection.java:117)
at oracle.tip.transport.basic.aq.AQBase.setup(AQBase.java:66)
at oracle.tip.transport.basic.aq.AQEnqueuer.init(AQEnqueuer.java:162)
at oracle.tip.transport.basic.AQSender.init(AQSender.java:151)
to oracle.tip.transport.basic.AQSender. < init > (AQSender.java:70)
at oracle.tip.transport.basic.TransportSenderFactory.createTransportSender(TransportSenderFactory.java:96)
at oracle.tip.transport.b2b.B2BTransport.send(B2BTransport.java:275)
at oracle.tip.adapter.b2b.transport.TransportInterface.send(TransportInterface.java:900)
at oracle.tip.adapter.b2b.msgproc.FunctionalAck.processOutgoingMessage(FunctionalAck.java:742)
at oracle.tip.adapter.b2b.engine.Engine.handleMessageEvent(Engine.java:2318)
at oracle.tip.adapter.b2b.engine.Engine.processEvents(Engine.java:2270)
at oracle.tip.adapter.b2b.data.MsgListener.onMessage (MsgListener.java:501)
at oracle.tip.adapter.b2b.data.MsgListener.run (MsgListener.java:349)
at java.lang.Thread.run(Thread.java:534)
Please, help us to solve this problem.
Thank you
Geetha S Hi Geetha,
The trace, it seems that you use trading partner against AQ delivery channel and it is a failure when the functional acknowledgement is sent. It seems that you have not specified the schema as part of the end point URI(ex: b2b.) name IP_IN_QUEUE). Please specify the same and test it. If this does not work, please let us know the following
1 b2b.log in the debug only on b2b.oracle.tip.DiagnosticLevel.B2B = DEBUG
2 patch installed set
3. the protocol used
Thank you and best regards,
Prasanna
-
How to remove or disable the "Use default" button in preferences.
I went through and set up my own configuration file, and everything is fine, except that we want to remove the ability for users to accidentally click the "Use default" option in the Preferences menu. Alternatively, I would hope that this has also removed the box to ask if firefox should be the default value.
I put it do not ask, but we do not want users to click on this box if we have the ability to remove the "Use default" button.
Doesn't seem to be something that I can put it in the registry, but if there is an entry in registry to remove or gray on this button, that would be also worked for me.
http://KB.mozillazine.org/about:config_entries
Thank you
Jason
You use a mozilla.cfg file to define the default values or do this with a file in the profile folder?
You can lock a specific pref via the mozilla.cfg wire to make it impossible for users to change the pref that is related to this setting.
- lockPref ("browser.shell.checkDefaultBrowser", false);
Maybe you are looking for
-
How can I activate iCloud off the coast for good?
Without my permission, after that I refused and re-itself has denied permission for more than a year, is responsible in the gills with pictures from my PHOTO app. They are not pictures of me robbing banks, however, I don't want anything of mine on an
-
About Firefox shows "day" this Version is old!
Hi supporter, I often watch news of the Version of my firefox on my macMy security bulletin told me that there is a new version and so I tried to start the hollow of the update of the window "On Firefox" and download the new update. There is a little
-
m9300t CTO - Vista "not responding" to Montor Wake Up
Hello Recently I received a message 'No response' frustrating to Vista when I wake the computer. To be clear, my current power setting turns off the monitor after 20 minutes, and I did not put computer to sleep at all. After twenty minutes, my scre
-
Satellite Pro L40 - after upgrade to Windows 7, the FN keys do not work
Hello world I have a Satellite Pro L40 PSL4BE and have just upgraded to Windows 7. Since the upgrade I can no longer use the function key and the top and down arrows to control the volume. Keys F6 F7 & still control the brightness so I don't know the
-
HP deskjet D1520: incorectly color printing after changing the black ink
I replaced my color ink the printer was working fine, then the necessary black replaced so I replaced that and now print colors turned off. I did a test on my computer. The upper part is the color on the screen, the bottom is the printed color. Help,