enableThemes method not found in the oracle.lbs.mapclient.MapViewer class
HelloI would ask about the error I recently.
I don't know what's wrong with my code, but I '_enableThemes_ method not found in the class oracle.lbs.mapclient.MapViewer' when I tried to apply a theme to my card using the API of Java Bean.
Another method does not recognize mapviewer is '_setAllThemesEnabled_ '.
I don't know how to apply some themes I did for my card despite the use of the method.
I have already imported oracle.lbs.mapclient.MapViewer.
-----
Here are my codes:
< % @ page import = "java.util.Enumeration" % > "
< % @ page import = "java.awt.geom.Point2D" % > "
< % @ page import = "java.awt.Dimension" % > "
< % @ page import = "oracle.lbs.mapclient.MapViewer" % > "
< % @ page import = "oracle.lbs.mapclient.ScaleBarDef" % > "
String mvURL = request.getParameter ("mvurl");
mvURL = "http://localhost: 8888/mapviewer/omserver";
MapViewer mv = session.getAttribute("gvis_mvhandle") (MapViewer);
Boolean newSession = false;
if(MV==null)
{
create a new ID customer mapviewer
MV = new MapViewer (mvURL);
mv.setImageFormat (MapViewer.FORMAT_PNG_URL);
mv.setMapTitle("");
session.setAttribute ("gvis_mvhandle", mv); keep the handle of the client in the session
newSession = true;
}
mv.setDataSourceName ("mvdemo");
String = "#000000" stroke1, fill1 = null, tr1 = null, labelc1 = null, asis1;
int opacity1 = 128;
String style1 = "gvis_" + ("NONE".equals (stroke1)? ". (': stroke1) + "_" +.
("NONE".equals (fill1)?" (': fill1) +.
((opacity1>0)?) » 128" : « ») ;
String query1_ = "select * from counties;
mv.addJDBCTheme ("peta", "theme1", query1_, null, null,
Style1, labelc1, '_gvis_style_text_', true);
mv.enableThemes ("THEMENAME");
try {}
mv.setFullExtent ();
MV. Run();
} catch (Exception e) {out.println (e.getMessage ()) ;}}
String url = mv.getGeneratedMapImageURL ();
-----
I really appreciate your help...
Hello
Make sure that you type the correct setting. EnableThemes method requires an array of strings. Try the following:
mv.enableThemes (new String() {"THEMENAME"});
Tags: Fusion Middleware
Similar Questions
-
Hello world
running mapviewer Ver11_1_1_7_3_B140717 we met the error above in newspapers trying to create maptiles.
Installation program:
-Table with a column of type ordimage (no available georaster here, we have to keep the files in the file system)
-Spatial index for column in mbr, metadata are
-All the files using the 31466 (Gauss-Krueger 2) coordinate system
-Image theme in mapbuilder shows images
-Bottom of mapbuilder card shows images
Trying to create the maptiles by using mapviewer administration - manage tile layers creates the above error (same details in the excerpts above).
AM PIZZABOTEN: Query [p ImageTheme] = SELECT ROWID, RAS_DOB MBR WHERE MDSYS. SDO_FILTER (MBR, MDSYS. SDO_GEOMETRY (2003, 31466, NULL, MDSYS.) SDO_ELEM_INFO_ARRAY (1, 1003, 3), MDSYS. SDO_ORDINATE_ARRAY(:mvqboxxl,:mvqboxyl,:mvqboxxh,:mvqboxyh)), 'querytype = WINDOW') = 'TRUE' AND (pyramid = 25)
August 14, 2015 15:36:37 oracle.sdovis.theme.ImageThemeProducer loadImagesFromDBCached
FEINER: Fetch size: 100
August 14, 2015 15:36:37 oracle.sdovis.theme.ImageThemeProducer loadImageBlock
AGAIN: Ungultiger Spaltentyp (invalid column type?): getCustomDatum not implemented for the oracle.jdbc.driver.T4CNamedTypeAccessor class
August 14, 2015 15:36:37 oracle.sdovis.theme.ImageThemeProducer loadImagesFromDBCached
WARNUNG: unable to load keyframe: AAAVuOAAMAAAACFAAB
August 14, 2015 15:36:37 oracle.sdovis.theme.ImageThemeProducer loadImagesFromDBCached
INFORMATION: Exec sql [RAS_DOB_2014_TEST] time: 7ms, 0 images of loading time: 1 ms.
August 14, 2015 15:36:37 oracle.sdovis.DBMapMaker renderEm
INFORMATION: * the time spent on the loading features: 14ms.
MapTiles records only show the background color.
Has anyone else experienced this problem?
Best regards
NilsO
Hi Nils
12.1.3 WebLogic jdbc libraries are located in the MW_HOME/oracle_common/modules/oracle.jdbc_12.1.0 directory level.
For this WLS jdbc driver is ojdbc7.jar which is loaded on startup of WLS.
As mentioned on the post preceding this is is not compatible with the 11.1.1.7.3 MapViewer to display the ORDIMAGE. Seems that even the ojdbc6.jar that exists in this directory cannot be used.
What to do is make the WLS Server uses the ojdbc6.jar for 11.1.1.7.3. There are different ways to use a different pot in WebLogic.
This page http://docs.oracle.com/middleware/1212/wls/JDBCA/third_party_drivers.htm was noted in this regard.
As a quick test, you can try to make the ORDIMAGE with the following steps;
(1) on page MapViewer OTN, Oracle Fusion Middleware MapViewer access downloads and download the quick start for the 11.1.1.7.3 Version.
You will find the glassfish3/glassfish/domains/Domain1/lib folder a file jdbc ojdbc6.jar.
(2) on your installation of a WebLogic domain:
Navigate to the oracle_common/modules/oracle.jdbc_12.1.0 directory
make a backup of ojdbc7.jar
copy the ojdbc6.jar on top of ojdbc7.jar
(3) start Weblogic server and try to make your theme ORDIMAGE.
As I mentioned before, there are different ways to add a jar to WebLogic classpath. The quick test above is just replace the original ojdbc7.jar in a facility that is not good, as you lose you original ojdbc7.jar.
Best regards.
João
-
Hi all
I extended a CO named IndusFinalReviewPageCOXX and I got the following error.
Error (10,47): EntryFlowPageCO not found in the class oracle.apps.ap.oie.entry.summary.webui.FinalReviewPageCO in the indus.oracle.apps.ap.oie.entry.summary.webui.IndusFinalReviewPageCOXX class.
I already drag the EntryFlowPageCO class file in the path myclasses\oracle\apps\ap\oie\entry\summary\webui
and import the file. but the error remains the same... After that, I compile the EntryFlowPageCO class file and found a CO EntryFlowPageCO imports more. I drag the class of this CO also file in the appropriate path... But still the same error.
Please give me the solution as soon as POSSIBLE.
Thank you
Amit JaitlyAmit,
In the standard central, you can check this controller as entryflowpageco is not under myclasses\oracle\apps\ap\oie\entry\summary\webui.
Its under oracle/apps/ap/goose/entry/webui put the same under this directory structure.
Kind regards
GYAN -
JspServlet was not found in the oracle application
Hello
When im trying to click on certain responsibilities on oracle application in an exception occurs, the SYSADMIN user
responsibilities
iMeeting responsibility for system monitor
do not work
iProcurement catalog Administration
the exceptions are,
Not found
application: 11.5.10.2
The requested URL /oa_servlets/oracle.jsp.JspServlet was not found on this server.
database: 9i
OS: Linux 4.0
Thank you
VerhasseltHi Verhasselt;
Its nice to hear the problem solved ;)
Please change the thread status reply if it is possible, he pretend to wasting time in other forums users while they are looking outstanding which is not answered, thank you for understanding
Respect of
HELIOS -
Client interface methods not found in the data control
Hello
JDev 11.1.2.4
I exposed some methods by including them in the client interface of my module of the application. I tested the app module and I can call methods. I refreshed the data control, but I do not see the data control methods. I have several other client application with interface module and I can see the operation. I only have the problem with this module of the application.
Any ideas?
Thank you
Close jdev, delete the folder the model project of the module of the application classes and the classes folder of the project view controller where you want to use the datacontrol, start jdev, recompile the project model (and deploy the lib, if you use the library), recompile the view controller and finally see if you see the methods in the datacontrol.
Timo
-
ProcessTemplate method not found.
Hi all
I'm having a rough with the processTemplate class which I hope one of you can help me with.
First some facts about the system.
JDeveloper 9i RUP 7.
XMLP 6.5.3
Oracle APPS 11.5.10CU2
I have the following code:
...
dataTemplate.setOutput("/home/appsdev/kkristoff/KKR_TEST_1.xml");
dataTemplate.processData ();
OutputStream outputStream = new FileOutputStream("/home/appsdev/kkristoff/KKR_TEST_1.pdf");
InputStream inputStream = new FileInputStream("/home/appsdev/kkristoff/KKR_TEST_1.xml");
Properties prop = new Properties ();
Process template
TemplateHelper.processTemplateFile (appsContext, / / AppsContext)
'BKFND', / / short name of the Application of the model
"HelloReport", / / model model code
'fr', / / the model ISO language code
'00', / / ISO of the model territory code
inputStream, / / the XML data in the model of
TemplateHelper.OUTPUT_TYPE_PDF, / / output the procesed document type
prop, / / properties of the treatment model
outputStream); OutputStream where goes the transformed document.
inputStream.close ();
outputStream.close ();
When I Isaiah to compile the project, I get the following error:
method processTemplateFile (oracle.apps.fnd.common.AppsContext,
java.lang.String,
java.lang.String,
java.lang.String,
java.lang.String,
java.io.InputStream,
Byte,
java.util.Properties,
java.io.OutputStream) is not found in the oracle.apps.xdo.oa.schema.server.TemplateHelper class
The javadoc for the API tells me that I can use the following method:
public static void processTemplate (pContext, oracle.apps.fnd.common.AppsContext,
java.lang.String pAppName,
java.lang.String pTemplateCode,
java.lang.String pLanguage,
java.lang.String pTerritory,
java.io.InputStream pData,
pOutputType bytes,
java.util.Properties pProp,
PPerformance java.io.OutputStream)
I checked the class oracle.apps.xdo.oa.schema.server.TemplateHelper to a method described above and which exists.
Can someone please tell me why JDeveloper complaints regarding this call to the processTemplate method?
Thank you in advance.
KennethHello
Use ProcessTemplate method instead of ProcessTemplateFile.
Kind regards
Out Sharma -
code xdoxslt:Sum does not not in the RTF model: method not found "sum".
We get the error when you run a RTF model customized using the application (Oracle HRMS) below and in Office BiPublisher for a particular set of data (1 employees check data). Format RTF model code which seems to be the cause of the error is the cumulative total code which is supposed to sum YTD_HOURS for all elements in the DataSet xml AC_EARNINGS:
Problem code: <? xdoxslt:sum(YTD_HOURS_[.!_=''])? >
The error message below it seems to be having trouble with the sum
HRMS Oracle concurrent Manager error:
java.lang.reflect.InvocationTargetException
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 oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:677)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:425)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:244)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:182)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate (TemplateH
Elper.Java:5936)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate (TemplateHelp
St. Java:3459)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate (TemplateHelp
St. Java:3548)
at oracle.apps.pay.core.documents.DocGenerator.process(DocGenerator.java:521)
Caused by: oracle.xdo.parser.v2.XPathException: Extension function error: method
not found 'sum' to the oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1534)
at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:521)
at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:489)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:271)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:155)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:192)
... more than 17
HR_6882_HRPROC_ASSERT
LOCATION pyjavacom:2
APP-PAY-06882: Assertion failure detected at the location pyjavacom:2.
Cause: an internal error has occurred at the location pyjavacom:2.
Action: contact your Oracle customer representative.
Note: The RTF check model works ok most of the time, but there is a problem with the model of XML data below. In this scenario, there is no YTD_HOURS and only one line of data for this employee, unlike the data second example of another audit below.
The data that the code does NOT work with:
-< AC_EARNINGS >
< DATE_DISP_FLG > N < / DATE_DISP_FLG >
revenues of < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
< ELEMENT_TYPE_ID > 58423 < / ELEMENT_TYPE_ID >
< PRIMARY_BALANCE > 10511197 < / PRIMARY_BALANCE >
< PROCESSING_PRIORITY > 1200 < / PROCESSING_PRIORITY >
< CURRENT_AMOUNT > 1584.8 < / CURRENT_AMOUNT >
< YTD_AMOUNT > 25698.88 < / YTD_AMOUNT >
Normal salary < REPORTING_NAME > < / REPORTING_NAME >
< CURRENT_HOURS > 80 < / CURRENT_HOURS >
< YTD_HOURS > 1312 < / YTD_HOURS >
< RATE / >
< CURRENT_DAYS / >
< YTD_DAYS / >
< ATTRIBUTE_NAME / >
< ORIGINAL_DATE_EARNED / >
< EFFECTIVE_START_DATE / >
< EFFECTIVE_END_DATE / >
< ELEMENT_CATEGORY / >
< JURISDICTION_CODE / >
< RATE_MUL > 19.81 < / RATE_MUL >
< RATE_RET / >
< / AC_EARNINGS >
Data that works with the code:
-< AC_EARNINGS >
< DATE_DISP_FLG > N < / DATE_DISP_FLG >
revenues of < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
< ELEMENT_TYPE_ID > 58423 < / ELEMENT_TYPE_ID >
< PRIMARY_BALANCE > 10511197 < / PRIMARY_BALANCE >
< PROCESSING_PRIORITY > 1200 < / PROCESSING_PRIORITY >
< CURRENT_AMOUNT > 1584.8 < / CURRENT_AMOUNT >
< YTD_AMOUNT > 25698.88 < / YTD_AMOUNT >
Normal salary < REPORTING_NAME > < / REPORTING_NAME >
< CURRENT_HOURS > 80 < / CURRENT_HOURS >
< YTD_HOURS > 1312 < / YTD_HOURS >
< RATE / >
< CURRENT_DAYS / >
< YTD_DAYS / >
< ATTRIBUTE_NAME / >
< ORIGINAL_DATE_EARNED / >
< EFFECTIVE_START_DATE / >
< EFFECTIVE_END_DATE / >
< ELEMENT_CATEGORY / >
< JURISDICTION_CODE / >
< RATE_MUL > 19.81 < / RATE_MUL >
< RATE_RET / >
< / AC_EARNINGS >
-< AC_EARNINGS >
< DATE_DISP_FLG > N < / DATE_DISP_FLG >
< ELEMENT_CLASSIFICATION > attributed gains < / ELEMENT_CLASSIFICATION >
< ELEMENT_TYPE_ID > 58444 < / ELEMENT_TYPE_ID >
< PRIMARY_BALANCE > 10511222 < / PRIMARY_BALANCE >
< PROCESSING_PRIORITY > 3250 < / PROCESSING_PRIORITY >
< CURRENT_AMOUNT > 1.46 < / CURRENT_AMOUNT >
< YTD_AMOUNT > 25,51 < / YTD_AMOUNT >
Life term for the Group < REPORTING_NAME > < / REPORTING_NAME >
< CURRENT_HOURS / >
< YTD_HOURS / >
< RATE / >
< CURRENT_DAYS / >
< YTD_DAYS / >
< ATTRIBUTE_NAME / >
< ORIGINAL_DATE_EARNED / >
< EFFECTIVE_START_DATE / >
< EFFECTIVE_END_DATE / >
< ELEMENT_CATEGORY / >
< JURISDICTION_CODE / >
< RATE_MUL / >
< RATE_RET / >
< / AC_EARNINGS >
-< AC_EARNINGS >
< DATE_DISP_FLG > N < / DATE_DISP_FLG >
Additional gains < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
< ELEMENT_TYPE_ID > 58431 < / ELEMENT_TYPE_ID >
< PRIMARY_BALANCE > 10511205 < / PRIMARY_BALANCE >
< PROCESSING_PRIORITY > 2500 < / PROCESSING_PRIORITY >
< CURRENT_AMOUNT > 9.6 < / CURRENT_AMOUNT >
< YTD_AMOUNT > 163,2 < / YTD_AMOUNT >
< REPORTING_NAME > dental CB < / REPORTING_NAME >
< CURRENT_HOURS > 0 < / CURRENT_HOURS >
< YTD_HOURS > 0 < / YTD_HOURS >
< RATE / >
< CURRENT_DAYS / >
< YTD_DAYS / >
< ATTRIBUTE_NAME / >
< ORIGINAL_DATE_EARNED / >
< EFFECTIVE_START_DATE / >
< EFFECTIVE_END_DATE / >
< ELEMENT_CATEGORY / >
< JURISDICTION_CODE / >
< RATE_MUL / >
< RATE_RET / >
< / AC_EARNINGS >
-< AC_EARNINGS >
< DATE_DISP_FLG > N < / DATE_DISP_FLG >
revenues of < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
< ELEMENT_TYPE_ID > 64614 < / ELEMENT_TYPE_ID >
< PRIMARY_BALANCE > 10518109 < / PRIMARY_BALANCE >
< PROCESSING_PRIORITY > 1526 < / PROCESSING_PRIORITY >
< CURRENT_AMOUNT > 0 < / CURRENT_AMOUNT >
< YTD_AMOUNT > 1571.12 < / YTD_AMOUNT >
< REPORTING_NAME > TOWP < / REPORTING_NAME >
< CURRENT_HOURS / >
< YTD_HOURS > 80 < / YTD_HOURS >
< RATE / >
< CURRENT_DAYS / >
< YTD_DAYS / >
< ATTRIBUTE_NAME / >
< ORIGINAL_DATE_EARNED / >
< EFFECTIVE_START_DATE / >
< EFFECTIVE_END_DATE / >
< ELEMENT_CATEGORY / >
< JURISDICTION_CODE / >
< RATE_MUL / >
< RATE_RET / >
< / AC_EARNINGS >
-< AC_EARNINGS >
< DATE_DISP_FLG > N < / DATE_DISP_FLG >
revenues of < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
< ELEMENT_TYPE_ID > 57863 < / ELEMENT_TYPE_ID >
< PRIMARY_BALANCE > 10510820 < / PRIMARY_BALANCE >
< PROCESSING_PRIORITY > 1200 < / PROCESSING_PRIORITY >
< CURRENT_AMOUNT > 0 < / CURRENT_AMOUNT >
< YTD_AMOUNT > 937,2 < / YTD_AMOUNT >
Holiday < REPORTING_NAME > < / REPORTING_NAME >
< CURRENT_HOURS / >
< YTD_HOURS > 48 < / YTD_HOURS >
< RATE / >
< CURRENT_DAYS / >
< YTD_DAYS / >
< ATTRIBUTE_NAME / >
< ORIGINAL_DATE_EARNED / >
< EFFECTIVE_START_DATE / >
< EFFECTIVE_END_DATE / >
< ELEMENT_CATEGORY / >
< JURISDICTION_CODE / >
< RATE_MUL / >
< RATE_RET / >
< / AC_EARNINGS >
-< AC_EARNINGS >
< DATE_DISP_FLG > N < / DATE_DISP_FLG >
< ELEMENT_CLASSIFICATION > attributed gains < / ELEMENT_CLASSIFICATION >
< ELEMENT_TYPE_ID > 63592 < / ELEMENT_TYPE_ID >
< PRIMARY_BALANCE > 10517244 < / PRIMARY_BALANCE >
< PROCESSING_PRIORITY > 3250 < / PROCESSING_PRIORITY >
< CURRENT_AMOUNT > 0 < / CURRENT_AMOUNT >
< YTD_AMOUNT > 285.07 < / YTD_AMOUNT >
< REPORTING_NAME > F90 SVEU DIST < / REPORTING_NAME >
< CURRENT_HOURS / >
< YTD_HOURS / >
< RATE / >
< CURRENT_DAYS / >
< YTD_DAYS / >
< ATTRIBUTE_NAME / >
< ORIGINAL_DATE_EARNED / >
< EFFECTIVE_START_DATE / >
< EFFECTIVE_END_DATE / >
< ELEMENT_CATEGORY / >
< JURISDICTION_CODE / >
< RATE_MUL / >
< RATE_RET / >
< / AC_EARNINGS >
-< AC_EARNINGS >
< DATE_DISP_FLG > N < / DATE_DISP_FLG >
Additional gains < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
< ELEMENT_TYPE_ID > 67074 < / ELEMENT_TYPE_ID >
< PRIMARY_BALANCE > 10520289 < / PRIMARY_BALANCE >
< PROCESSING_PRIORITY > 2500 < / PROCESSING_PRIORITY >
< CURRENT_AMOUNT > 0 < / CURRENT_AMOUNT >
< YTD_AMOUNT > 85.24 < / YTD_AMOUNT >
< REPORTING_NAME > other Tx RRs < / REPORTING_NAME >
< CURRENT_HOURS / >
< YTD_HOURS / >
< RATE / >
< CURRENT_DAYS / >
< YTD_DAYS / >
< ATTRIBUTE_NAME / >
< ORIGINAL_DATE_EARNED / >
< EFFECTIVE_START_DATE / >
< EFFECTIVE_END_DATE / >
< ELEMENT_CATEGORY / >
< JURISDICTION_CODE / >
< RATE_MUL / >
< RATE_RET / >
< / AC_EARNINGS >
If anyone has any ideas as to what is necessary to resolve the issue we have in our company can you please let me know? I appreciate your time. If you need more information please let me know and I'll post it.
Thank you
Greg
Published by: gtruta on November 20, 2012 16:20
Published by: gtruta on November 20, 2012 16:21xdoxslt sum allows us to avoid the issue while fields sum with the value null. as you already now the condition with the field u do not need xdoxslt
is - enough try this
you are able to get a preview of the template with the code of the sum.
Send me your model and xml. I can try at my side
E-mail: [email protected] -
the length error "method not found".
Using the line of code below and get the error "* function Extension error: caused by: oracle.xdo.parser.v2.XPathException: Extension function error: method not found 'length ' * '.
<? xdoxslt:set_variable ($_XDOCTX, "LNG", xdoxslt:to_number(xdoxslt:length(LINE_ITEM_DESCRIPTION)))?) >
I had the same problem before with the substr function. The answer to this problem was to use substring instead. There is another function that returns the length of a string as well? The next page using as reference but really nothing else.
[http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e12187/T421739T481158.htm]
What Miss me? Thanks for your help.What about using the string-length function?
Thank you!
-
The getCurrent method on the oracle.adf.share.ADFContext class is not allowed
Hi all
I've migrated my old project i.e 12.1.3 to new version 12.2.1.
After the migration of the project where ever, we use ADFContext.getCurrent () .getSessionScope () .put ("dummy", 1);
put the variable in the session. We receive the exception as Houston-25150: the getCurrent method on the oracle.adf.share.ADFContext class is not allowed. In the earlier version, but its works very well.
What will be the question. Please can someone let me know.
Thank you
Amar
This error except for security, so try to use the expression adf.context.current.sessionScope.get ("dummy") (or attempt to use this as a groovy adf.context.sessionScope.dummy expression) attribute EO and trustMode = "true" for this attribute set.
For more details check this url
-
Mr President.
How to troubleshoot the following error message, I am a beginner so please help!
oracle.jbo.ConfigException: Houston-33001: Configuration file /sa/gov/rgr/model/module/common/bc4j.xcfg is not found in the classpath.
Concerning
Cherish!
My worm jdev is 12.1.3.0.0
Was wrong my code in my servlet
an incorrect code is
String amDef = "sa.gov.rgr.model.module.AppModuleAM"; String config = "AppModuleAMLocal"; AppModuleImpl am = (AppModuleImpl ) Configuration.createRootApplicationModule(amDef, config);
When I saw my bc4j.xcfg file then I change my code and I was able to run my report correctly.
String amDef = "ash.model.SchoolAppModule"; String config = "SchoolAppModuleLocal"; SchoolAppModuleImpl am = (SchoolAppModuleImpl ) Configuration.createRootApplicationModule(amDef, config);
Now my happiness
See you soon
Concerning
-
Hi gurus,
I installed 11 GR 2 on windows server 2012, due to certain constraints I uninstalled the software of oracle 11 g,
again I tried to install 11 GR 2, but got error like "ORA-12543: TNS:destination unreachable host"
After getting this error, I removed all the registers of the oracle. now try to install oracle 11 g 2.
After 88% am getting error "shown at the reception was not found in the registry.
Thanks in advance.
Thanks and greetings
REDA
If you want to re-evaluate 11.2.0.4, you will need a support contract paying since 11.2.0.4 is available on MOS.
The other option would be to install 12cR1 - tasks of preinstallation of Oracle databases - which is available at Oracle Database Software Downloads | Oracle Technology Network | Oracle
For other options, pl contact your Oracle sales team
-
Hi, we get this error in an independent ADR on Grizzly implemented.
August 14, 2014 09:59:05
oracle.dbtools.common.config.db.DatabasePoolConfig readPoolConfig
WARNING: The pool_config view or a table has not been found in the schema:
APEX_LISTENER
Oracle.dbtools.rt.web.WebErrorResponse 09:59:05 August 14, 2014
internalError
GRAVE: JDBCException [kind = NO_DATA]
JDBCException [kind = NO_DATA]
defaults.xml "XXXXX" designate removed for safety, front of post
<? XML version = "1.0" encoding = "UTF-8" standalone = 'no '? >
< ! DOCTYPE SYSTEM property "http://java.sun.com/dtd/properties.dtd" > ""
Properties of <>
< comment > saved on Mon Aug 04 16:25:09 EDT 2014 < / comment >
< key "cache.caching entry" = > false < / entry >
< key = "cache.directory entry" > / tmp/apex/cache < / entry >
< key = "cache.duration entry" > days < / entry >
< key = "enter cache.expiration" > 7 < / entry >
< key = "enter cache.maxEntries" > 500 < / entry >
< key = "enter cache.monitorInterval" 60 > < / entry >
< key = "cache.procedureNameList" / entry >
< key = "cache.type entry" > lru < / entry >
< key = "db.hostname entry" > XXXXXXXXX < / entry >
< key = "db.password entry" > XXXXXXXXXXX < / entry >
< key = "db.port entry" > XXXX < / entry >
< key "db.sid entry" = > XXXXXX < / entry >
< key "debug.debugger entry" = > false < / entry >
< key "debug.printDebugToScreen entry" = > false < / entry >
< key "error.keepErrorMessages entry" = > true < / entry >
< key = "enter error.maxEntries" > 50 < / entry >
< enter key = "jdbc. DriverType"> thin < / entry >
< enter key = "jdbc. InactivityTimeout"1800 > < / entry >
< enter key = "jdbc. InitialLimit' > 3 < / entry >
< enter key = "jdbc. MaxConnectionReuseCount"> 1000 < / entry >
< enter key = "jdbc. MaxLimit' 10 > < / entry >
< enter key = "jdbc. MaxStatementsLimit' 10 > < / entry >
< enter key = "jdbc. MinLimit"> 1 < / entry >
< key = "enter jdbc.statementTimeout" > 900 < / entry >
< key "log.logging entry" = > false < / entry >
< key = "enter log.maxEntries" > 50 < / entry >
< key = "misc.compress" / entry >
< key = "misc.defaultPage entry" > apex < / entry >
< key "misc.enableOldFOP entry" = > true < / entry >
< key "security.disableDefaultExclusionList entry" = > false < / entry >
< key = "enter security.maxEntries" > 2000 < / entry >
< / properties >
Complete log
August 14, 2014 11:28:13 oracle.dbtools.standalone.Standalone run
INFO: NOTE:
Stand-alone mode is designed for use in development and test environments. This not is not supported for use in production environments.
August 14, 2014 11:28:13 oracle.dbtools.standalone.Standalone run
INFO: Starting standalone Web container to: / u00/home/oracle/ords/ords
August 14, 2014 11:28:14 oracle.dbtools.standalone.Deployer deploy
INFO: Deploy the application = /u00/home/oracle/ords/ords/ords/WEB-INF/web.xml path
August 14, 2014 11:28:17 oracle.dbtools.standalone.Deployer deploy
INFO: Deploy the application path = /u00/home/oracle/ords/ords/ords/WEB-INF/web.xml
August 14, 2014 11:28:18 oracle.dbtools.common.config.file.ConfigurationFolder logConfigFolder
INFO: Using the configuration file: / u00/home/oracle/ords/ords
Configuration properties for: apex
cache. Caching = false
cache. Directory = / tmp/apex/cache
cache. Duration = Days
cache.expiration = 7
cache.maxEntries = 500
cache.monitorInterval = 60
cache.procedureNameList =
cache.type = LRU
DB. HostName = XXXXXXXXXXXXXXXXXXX
DB. Password = *.
DB.port = XXXXXXXXXXXXXXXXXXX
DB.sid = XXXXXXXXXXXXXXXXXXX
Debug.Debugger = false
debug.printDebugToScreen = false
error.keepErrorMessages = true
error.maxEntries = 50
JDBC. DriverType = thin
JDBC. InactivityTimeout = 1800
JDBC. InitialLimit = 3
JDBC. MaxConnectionReuseCount = 1000
JDBC. MaxLimit = 10
JDBC. MaxStatementsLimit = 10
JDBC. MinLimit = 1
jdbc.statementTimeout = 900
log. Logging = false
log.maxEntries = 50
Misc.Compress =
misc.defaultPage = apex
misc.enableOldFOP = true
security.disableDefaultExclusionList = false
security.maxEntries = 2000
DB. UserName = APEX_PUBLIC_USER
August 14, 2014 11:28:26 oracle.dbtools.common.config.db.ConfigurationValues intValue
ATTENTION: * jdbc. MaxLimit in the apex of configuration uses a value of 10, this setting cannot be sized properly for a production environment *.
August 14, 2014 11:28:26 oracle.dbtools.common.config.db.ConfigurationValues intValue
ATTENTION: * jdbc. InitialLimit in the apex of configuration uses a value of 3, this setting cannot be sized properly for a production environment *.
Using the JDBC driver: Oracle JDBC driver version: 11.2.0.3.0
August 14, 2014 11:28:28 oracle.dbtools.rt.web.SCListener contextInitialized
INFO: Oracle REMAINS initialized data Services
Version of REST Data Services Oracle: 2.0.8.163.10.40
The Oracle Data Services REST server info: Grizzly/1.9.49
August 14, 2014 11:28:28 com.sun.grizzly.Controller logVersion
INFO: GRIZZLY0001: from Grizzly Framework 1.9.49 - 14/08/14 11:28
August 14, 2014 11:28:28 oracle.dbtools.standalone.Standalone run
INFO: http://localhost: 8080/ADR / began to.
Configuration properties for: apex_al
cache. Caching = false
cache. Directory = / tmp/apex/cache
cache. Duration = Days
cache.expiration = 7
cache.maxEntries = 500
cache.monitorInterval = 60
cache.procedureNameList =
cache.type = LRU
DB. HostName = XXXXXXXXXXXXXXXXXXX
DB. Password = *.
DB.port = XXXXXXXXXXXXXXXXXXX
DB.sid = BXXXXXXXXXXXXXXXXXXX
Debug.Debugger = false
debug.printDebugToScreen = false
error.keepErrorMessages = true
error.maxEntries = 50
JDBC. DriverType = thin
JDBC. InactivityTimeout = 1800
JDBC. InitialLimit = 3
JDBC. MaxConnectionReuseCount = 1000
JDBC. MaxLimit = 10
JDBC. MaxStatementsLimit = 10
JDBC. MinLimit = 1
jdbc.statementTimeout = 900
log. Logging = false
log.maxEntries = 50
Misc.Compress =
misc.defaultPage = apex
misc.enableOldFOP = true
security.disableDefaultExclusionList = false
security.maxEntries = 2000
DB. UserName = APEX_LISTENER
August 14, 2014 11:32:01 oracle.dbtools.common.config.db.ConfigurationValues intValue
ATTENTION: * jdbc. MaxLimit in apex_al configuration uses a value of 10, this setting cannot be sized properly for a production environment *.
August 14, 2014 11:32:01 oracle.dbtools.common.config.db.ConfigurationValues intValue
ATTENTION: * jdbc. InitialLimit in apex_al configuration uses a value of 3, this setting cannot be sized properly for a production environment *.
August 14, 2014 11:32:03 oracle.dbtools.common.config.db.DatabasePoolConfig readPoolConfig
WARNING: The pool_config view or table is not found in the schema: APEX_LISTENER
August 14, 2014 11:40:49 oracle.dbtools.common.config.db.DatabasePoolConfig readPoolConfig
WARNING: The pool_config view or table is not found in the schema: APEX_LISTENER
August 14, 2014 11:40:50 oracle.dbtools.rt.web.WebErrorResponse internalError
GRAVE: JDBCException [kind = NO_DATA]
JDBCException [kind = NO_DATA]
at oracle.dbtools.common.jdbc.JDBCException.wrap(JDBCException.java:88)
at oracle.dbtools.common.jdbc.JDBCQueryProvider.query(JDBCQueryProvider.java:63)
at oracle.dbtools.common.jdbc.JDBCQueryProvider.query(JDBCQueryProvider.java:38)
at oracle.dbtools.rt.jdbc.entity.JDBCTenantDispatcher.tenant(JDBCTenantDispatcher.java:98)
at oracle.dbtools.rt.jdbc.entity.TenantDispatcherBase.target(TenantDispatcherBase.java:71)
at oracle.dbtools.rt.jdbc.entity.TenantDispatcherBase.target(TenantDispatcherBase.java:37)
at oracle.dbtools.rt.web.ReTargetingDispatcher.canDispatch(ReTargetingDispatcher.java:45)
at oracle.dbtools.rt.web.RequestDispatchers.choose(RequestDispatchers.java:160)
at oracle.dbtools.rt.web.RequestDispatchers.dispatch(RequestDispatchers.java:75)
at oracle.dbtools.rt.web.ETags.checkPrecondition(ETags.java:93)
at oracle.dbtools.rt.web.HttpEndpointBase.restfulServices(HttpEndpointBase.java:426)
at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:164)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
to com.sun.grizzly.http.servlet.ServletAdapter$ FilterChainImpl.doFilter (ServletAdapter.java:1059)
to com.sun.grizzly.http.servlet.ServletAdapter$ FilterChainImpl.invokeFilterChain (ServletAdapter.java:999)
at com.sun.grizzly.http.servlet.ServletAdapter.doService(ServletAdapter.java:434)
at oracle.dbtools.standalone.SecureServletAdapter.doService(SecureServletAdapter.java:91)
at com.sun.grizzly.http.servlet.ServletAdapter.service(ServletAdapter.java:379)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
at com.sun.grizzly.tcp.http11.GrizzlyAdapterChain.service(GrizzlyAdapterChain.java:196)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
to com.sun.grizzly.util.AbstractThreadPool$ Worker.doWork (AbstractThreadPool.java:532)
to com.sun.grizzly.util.AbstractThreadPool$ Worker.run (AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:447)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:879)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:505)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:223)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:208)
at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:886)
at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1175)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1288)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3612)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3656)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1495)
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 oracle.ucp.jdbc.proxy.PreparedStatementProxyFactory.invoke(PreparedStatementProxyFactory.java:111)
to com.sun.proxy. $Proxy44.executeQuery (unknown Source)
at oracle.dbtools.common.jdbc.JDBCQueryImpl.resultSet(JDBCQueryImpl.java:92)
to oracle.dbtools.common.jdbc.JDBCResultRowIterator. < init > (JDBCResultRowIterator.java:29)
at oracle.dbtools.common.jdbc.JDBCQueryImpl.execute(JDBCQueryImpl.java:52)
at oracle.dbtools.common.jdbc.JDBCQueryProvider.query(JDBCQueryProvider.java:60)
... more than 33
DBA has forgotten to run apex_rest_config.sql Doh!
-
getExpressionObjectReference "method not found".
Hello! I use the method:
And I have error: getExpressionObjectReference method not foundpublic void PasesPPR(ValueChangeEvent valueChangeEvent) { GenericButton gB = (GenericButton)JsfUtils.getExpressionObjectReference("#{GenericButton}"); gB.getThirdLevel().setDisabled(true); AdfFacesContext.getCurrentInstance().addPartialTarget(gB.getThirdLevel()); }
Where would be the problem?
Best regards, Debuger!Doggone it, OTN.
Here is the code
package oracle.fodemo.storefront.jsf.util; import java.util.Iterator; import java.util.Locale; import java.util.Map; import java.util.MissingResourceException; import java.util.ResourceBundle; import javax.el.ELContext; import javax.el.ExpressionFactory; import javax.el.MethodExpression; import javax.el.ValueExpression; import javax.faces.application.Application; import javax.faces.application.FacesMessage; import javax.faces.component.UIComponent; import javax.faces.component.UIViewRoot; import javax.faces.context.ExternalContext; import javax.faces.context.FacesContext; import javax.servlet.http.HttpServletRequest; /** * General useful static utilies for working with JSF. * NOTE: Updated to use JSF 1.2 ExpressionFactory. * * @author Duncan Mills * @author Steve Muench * * $Id: JSFUtils.java 1885 2007-06-26 00:47:41Z ralsmith $ */ public class JSFUtils { private static final String NO_RESOURCE_FOUND = "Missing resource: "; /** * Method for taking a reference to a JSF binding expression and returning * the matching object (or creating it). * @param expression EL expression * @return Managed object */ public static Object resolveExpression(String expression) { FacesContext facesContext = getFacesContext(); Application app = facesContext.getApplication(); ExpressionFactory elFactory = app.getExpressionFactory(); ELContext elContext = facesContext.getELContext(); ValueExpression valueExp = elFactory.createValueExpression(elContext, expression, Object.class); return valueExp.getValue(elContext); } /** * @return */ public static String resolveRemoteUser() { FacesContext facesContext = getFacesContext(); ExternalContext ectx = facesContext.getExternalContext(); return ectx.getRemoteUser(); } /** * @return */ public static String resolveUserPrincipal() { FacesContext facesContext = getFacesContext(); ExternalContext ectx = facesContext.getExternalContext(); HttpServletRequest request = (HttpServletRequest)ectx.getRequest(); return request.getUserPrincipal().getName(); } /** * @param expression * @param returnType * @param argTypes * @param argValues * @return */ public static Object resolveMethodExpression(String expression, Class returnType, Class[] argTypes, Object[] argValues) { FacesContext facesContext = getFacesContext(); Application app = facesContext.getApplication(); ExpressionFactory elFactory = app.getExpressionFactory(); ELContext elContext = facesContext.getELContext(); MethodExpression methodExpression = elFactory.createMethodExpression(elContext, expression, returnType, argTypes); return methodExpression.invoke(elContext, argValues); } /** * Method for taking a reference to a JSF binding expression and returning * the matching Boolean. * @param expression EL expression * @return Managed object */ public static Boolean resolveExpressionAsBoolean(String expression) { return (Boolean)resolveExpression(expression); } /** * Method for taking a reference to a JSF binding expression and returning * the matching String (or creating it). * @param expression EL expression * @return Managed object */ public static String resolveExpressionAsString(String expression) { return (String)resolveExpression(expression); } /** * Convenience method for resolving a reference to a managed bean by name * rather than by expression. * @param beanName name of managed bean * @return Managed object */ public static Object getManagedBeanValue(String beanName) { StringBuffer buff = new StringBuffer("#{"); buff.append(beanName); buff.append("}"); return resolveExpression(buff.toString()); } /** * Method for setting a new object into a JSF managed bean * Note: will fail silently if the supplied object does * not match the type of the managed bean. * @param expression EL expression * @param newValue new value to set */ public static void setExpressionValue(String expression, Object newValue) { FacesContext facesContext = getFacesContext(); Application app = facesContext.getApplication(); ExpressionFactory elFactory = app.getExpressionFactory(); ELContext elContext = facesContext.getELContext(); ValueExpression valueExp = elFactory.createValueExpression(elContext, expression, Object.class); //Check that the input newValue can be cast to the property type //expected by the managed bean. //If the managed Bean expects a primitive we rely on Auto-Unboxing Class bindClass = valueExp.getType(elContext); if (bindClass.isPrimitive() || bindClass.isInstance(newValue)) { valueExp.setValue(elContext, newValue); } } /** * Convenience method for setting the value of a managed bean by name * rather than by expression. * @param beanName name of managed bean * @param newValue new value to set */ public static void setManagedBeanValue(String beanName, Object newValue) { StringBuffer buff = new StringBuffer("#{"); buff.append(beanName); buff.append("}"); setExpressionValue(buff.toString(), newValue); } /** * Convenience method for setting Session variables. * @param key object key * @param object value to store */ public static void storeOnSession(String key, Object object) { FacesContext ctx = getFacesContext(); Map sessionState = ctx.getExternalContext().getSessionMap(); sessionState.put(key, object); } /** * Convenience method for getting Session variables. * @param key object key * @return session object for key */ public static Object getFromSession(String key) { FacesContext ctx = getFacesContext(); Map sessionState = ctx.getExternalContext().getSessionMap(); return sessionState.get(key); } /** * @param key * @return */ public static String getFromHeader(String key) { FacesContext ctx = getFacesContext(); ExternalContext ectx = ctx.getExternalContext(); return ectx.getRequestHeaderMap().get(key); } /** * Convenience method for getting Request variables. * @param key object key * @return session object for key */ public static Object getFromRequest(String key) { FacesContext ctx = getFacesContext(); Map sessionState = ctx.getExternalContext().getRequestMap(); return sessionState.get(key); } /** * Pulls a String resource from the property bundle that * is defined under the application <message-bundle> element in * the faces config. Respects Locale * @param key string message key * @return Resource value or placeholder error String */ public static String getStringFromBundle(String key) { ResourceBundle bundle = getBundle(); return getStringSafely(bundle, key, null); } /** * Convenience method to construct a
FacesMesssage
* from a defined error key and severity * This assumes that the error keys follow the convention of * using _detail for the detailed part of the * message, otherwise the main message is returned for the * detail as well. * @param key for the error message in the resource bundle * @param severity severity of message * @return Faces Message object */ public static FacesMessage getMessageFromBundle(String key, FacesMessage.Severity severity) { ResourceBundle bundle = getBundle(); String summary = getStringSafely(bundle, key, null); String detail = getStringSafely(bundle, key + "_detail", summary); FacesMessage message = new FacesMessage(summary, detail); message.setSeverity(severity); return message; } /** * Add JSF info message. * @param msg info message string */ public static void addFacesInformationMessage(String msg) { FacesContext ctx = getFacesContext(); FacesMessage fm = new FacesMessage(FacesMessage.SEVERITY_INFO, msg, ""); ctx.addMessage(getRootViewComponentId(), fm); } /** * Add JSF error message. * @param msg error message string */ public static void addFacesErrorMessage(String msg) { FacesContext ctx = getFacesContext(); FacesMessage fm = new FacesMessage(FacesMessage.SEVERITY_ERROR, msg, ""); ctx.addMessage(getRootViewComponentId(), fm); } /** * Add JSF error message for a specific attribute. * @param attrName name of attribute * @param msg error message string */ public static void addFacesErrorMessage(String attrName, String msg) { FacesContext ctx = getFacesContext(); FacesMessage fm = new FacesMessage(FacesMessage.SEVERITY_ERROR, attrName, msg); ctx.addMessage(getRootViewComponentId(), fm); } // Informational getters /** * Get view id of the view root. * @return view id of the view root */ public static String getRootViewId() { return getFacesContext().getViewRoot().getViewId(); } /** * Get component id of the view root. * @return component id of the view root */ public static String getRootViewComponentId() { return getFacesContext().getViewRoot().getId(); } /** * Get FacesContext. * @return FacesContext */ public static FacesContext getFacesContext() { return FacesContext.getCurrentInstance(); } /* * Internal method to pull out the correct local * message bundle */ private static ResourceBundle getBundle() { FacesContext ctx = getFacesContext(); UIViewRoot uiRoot = ctx.getViewRoot(); Locale locale = uiRoot.getLocale(); ClassLoader ldr = Thread.currentThread().getContextClassLoader(); return ResourceBundle.getBundle(ctx.getApplication().getMessageBundle(), locale, ldr); } /** * Get an HTTP Request attribute. * @param name attribute name * @return attribute value */ public static Object getRequestAttribute(String name) { return getFacesContext().getExternalContext().getRequestMap().get(name); } /** * Set an HTTP Request attribute. * @param name attribute name * @param value attribute value */ public static void setRequestAttribute(String name, Object value) { getFacesContext().getExternalContext().getRequestMap().put(name, value); } /* * Internal method to proxy for resource keys that don't exist */ private static String getStringSafely(ResourceBundle bundle, String key, String defaultValue) { String resource = null; try { resource = bundle.getString(key); } catch (MissingResourceException mrex) { if (defaultValue != null) { resource = defaultValue; } else { resource = NO_RESOURCE_FOUND + key; } } return resource; } /** * Locate an UIComponent in view root with its component id. Use a recursive way to achieve this. * @param id UIComponent id * @return UIComponent object */ public static UIComponent findComponentInRoot(String id) { UIComponent component = null; FacesContext facesContext = FacesContext.getCurrentInstance(); if (facesContext != null) { UIComponent root = facesContext.getViewRoot(); component = findComponent(root, id); } return component; } /** * Locate an UIComponent from its root component. * Taken from http://www.jroller.com/page/mert?entry=how_to_find_a_uicomponent * @param base root Component (parent) * @param id UIComponent id * @return UIComponent object */ public static UIComponent findComponent(UIComponent base, String id) { if (id.equals(base.getId())) return base; UIComponent children = null; UIComponent result = null; Iterator childrens = base.getFacetsAndChildren(); while (childrens.hasNext() && (result == null)) { children = (UIComponent)childrens.next(); if (id.equals(children.getId())) { result = children; break; } result = findComponent(children, id); if (result != null) { break; } } return result; } /** * Method to create a redirect URL. The assumption is that the JSF servlet mapping is * "faces", which is the default * * @param view the JSP or JSPX page to redirect to * @return a URL to redirect to */ public static String getPageURL(String view) { FacesContext facesContext = getFacesContext(); ExternalContext externalContext = facesContext.getExternalContext(); String url = ((HttpServletRequest)externalContext.getRequest()).getRequestURL().toString(); StringBuffer newUrlBuffer = new StringBuffer(); newUrlBuffer.append(url.substring(0, url.lastIndexOf("faces/"))); newUrlBuffer.append("faces"); String targetPageUrl = view.startsWith("/") ? view : "/" + view; newUrlBuffer.append(targetPageUrl); return newUrlBuffer.toString(); } } -
XPathException: Function Extension error: method not found "abs".
Hello
I use - XMLP 5.6.3 on EBS 11.5.10.2
In XML Publisher Admin, see model page, click on 'Sample' I receive a report, but all it contains is a long stack trace containing the following messages:
java.lang.reflect.InvocationTargetException
...
Caused by: oracle.xdo.parser.v2.XPathException: Extension function error: method not found "abs".
In my RTF, the offending code is
It works fine on my pc where I have BI Publisher Office 10.1.3.4<?when:xdoxslt:abs(ACCOUNTED_CR)>xdoxslt:abs(ACCOUNTED_DR)?>
When I look at the documentation to [documentation XML Publisher | http://download.oracle.com/docs/cd/B25284_01/current/acrobat/115xdoug.pdf] in Chapter 7, I don't see the abs function in the game of XDOXSLT.
The version of [10.1.3.4 | http://download.oracle.com/docs/cd/E12844_01/doc/bip.1013/e12187/T421739T481158.htm] has.
To be sure, you could do a simple check with a blank report and a field as or something similar. You know for sure, it is not supported in EBS.
[XPATH 1.0 | http://www.w3.org/TR/xpath#section-Number-Functions] does not have the abs function. So you should fix it yourself for example a widening when or...
-
Original title: Plustek OpticBook 3600 is not installed
Found new hardware wizard runs, but after scanning stops the disc from the manufacturer with the message ' year error occurred during the installation of the device.» The required section was not found in the INF"
PC system is homebuild which, in theory, exceed the minimum requirements of the system of manufacturers. Operating system is Windows XP Pro with Service Pack 3. The scanner is connected to the USB 2.0 card that is not separately powered, but installed in the PCI slot. I suspect that the problem lies in the PC rather than the scanner. but do not know what the problem is. Any help would be appreciated!
Hello
You can try the troubleshooting provided in the link below steps to fix the problem.You receive a "unable to install this hardware" or "an error has occurred during installation" error message when you try to install a PCI device
http://support.Microsoft.com/kb/841567
Note:
To do: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:
How to back up and restore the registry in Windows
http://support.Microsoft.com/kb/322756
See also:
Error message: cannot install hardware. An error occurred during the Installation of the device
Maybe you are looking for
-
How can I update the training App values?
I forgot to put an end to my session of training-how can I change/adapt the duration setting
-
Thanks to Xandrex for let me know Slacker - it is not available for the resorts here in the Canada. I installed the ACIR radio, but it resumed only South American or Mexican stations. I want to listen to the radio of the CBC and Jazz.fm, of the Can
-
Downloads of video but when I try to play windows media player flashes a message saying that he met with a problem and wont play video. If I try to record video on Windows live movie maker it used and it tells me error 0 x 80004005. What I am doing w
-
See Express C &; E software key
Hi all I would like to help get software keys Expway, I installed the OVAs, I CUCM 9.1.2 and any PAKs for Expressway. I know that expressway MRA comes free with CUWL and other licenses. someone at - it was there? Thanks in advance
-
GTX1070/1080. Compatible with Premiere Pro
I've heard say that the GTX 1070/1080 with first Pro CC 2015.3 problem. But the nVidia driver which has been updated several times released 10xx GTX series. So it solves the problem for first pro? I decided to buy the new graphics card then solve the