ADF Essentials RCU DB Type : Where is " Java DB " ?
I want ADF Essentials.
http://www.oracle.com/technetwork/developer-tools/adf/overview/adfessentials-1719844.html
I downloaded "Application Development Runtime", ofmwls_jrf_generic_12.1.1.0.0_disk1_1if1.zip , 1.5 GB.
My understanding is that this, ADF Essentials Application Development Runtime,
is Weblogic Server where the ADF Framwork is limited to the Model, View and Controller.
Just below the "Download File" button is a link entitled " Install Guide " and points to a book entitled
"Installing and Configuring the Oracle Fusion Middleware Infrastructure, 12c (12.1.2), E38451-01.
http://docs.oracle.com/middleware/1212/core/INFIN/index.html ( and the PDF file has 48 pages ).
I have completed step / section 3.1.1 entitled " Installing and Configuring a Certified Database " (page 18).
http://docs.oracle.com/middleware/1212/core/INFIN/create_domain.htm#BABGBHDE
3.1.1 Installing and Configuring a Certified Database
Make sure you have installed and configured a certified database, and that the database is up and running.
Oracle JDeveloper and ADF 12c (12.1.2) Supported Systems, Last Updated: July 10, 2013
http://www.oracle.com/technetwork/developer-tools/jdev/documentation/1212-cert-1964670.html
I chose Java DB and set the system variables as follows...
NAME & VALUE
VERIFICATION
JAVA_HOME = C:\PF\Java\jdk1.7.0_40
> echo %JAVA_HOME%
PATH includes %JAVA_HOME%\bin
> java -version
DERBY_HOME = %JAVA_HOME%\db
> echo %DERBY_HOME%
PATH includes %DERBY_HOME%\bin
> sysinfo
The Java DB is up and running / started as a Network Server via
> java -jar %DERBY_HOME%\lib\derbyrun.jar server start
The next step is 3.1.2 entitled Starting the Repository Creation Utility ( RCU ).
The third screen is entitled " Database Connect Details " and the first field is "Database Type" with a
pull-down menu offering 5 choices. They are...
1) Oracle
2) Oracle Database enabled for edition-based redefinition
3) Microsoft SQL Server
4) IBM DB2
5) MySQL Database
I expected " Java DB " to be one of the choices.
Where is " Java DB " ?
For the RCU Database Connection Screen, I set the fields to the following values...
DATABASE TYPE: Oracle
HOST NAME: localhost
PORT: 1527
SERVICE NAME: jdbc
USERNAME: Michael
PASSWORD: itsAsecret
ROLE: SYSDBA
Clicked " NEXT " button and RCU Response is " IO Error: Unexpected packet ".
The Command Prompt window where Java DB was started responds as follows...
Mon Oct 28 19:06:04 CDT 2013 : Execution failed because of a Distributed Protocol Error: DRDA_Proto_SYNTAXRM; CODPNT arg = 0; Error Code Value = 3. Plaintext connection attempt from an SSL enabled client?
org.apache.derby.impl.drda.DRDAProtocolException: Execution failed because of a Distributed Protocol Error: DRDA_Proto_SYNTAXRM; CODPNT arg = 0; Error Code Value = 3. Plaintext connection attempt from an SSL enabled client? at
org.apache.derby.impl.drda.DRDAConnThread.throwSyntaxrm(Unknown Source) at org.apache.derby.impl.drda.DDMReader.readDssHeader(Unknown Source) at org.apache.derby.impl.drda.DRDAConnThread.exchangeServerAttributes(Unknown Source) at
org.apache.derby.impl.drda.DRDAConnThread.sessionInitialState(Unknown Source) at org.apache.derby.impl.drda.DRDAConnThread.run(Unknown Source)
I think I can answer my own question.
Here, http://www.oracle.com/technetwork/developer-tools/jdev/documentation/1212-cert-1964670.html
the fine print says...
" Databases
The following table identifies databases supported by JDeveloper and ADF.
JDeveloper support refers to using the modeling tools, browsing the database schema from the Database navigator, creating offline database objects, and using the SQL*Worksheet. For ADF, database support entails using the database as a data source for ADF Business Components. ".
Interpreting the text as is, the databases listed may (or may not) be supported by the RCU.
What customers are also interested in knowing is databases supported by the RCU.
On the web page for "Supported Systems",
a new Databases table with an additional column for the RCU would be an improvement.
Similar Messages
-
Difficulty with ADF Faces/ADF Essentials and Glassfish
Hi all,
I've got a web application written with ADF Faces, and it runs just fine within jDeveloper 11.1.2.3 but when I deploy it to Glassfish 3.1.2 (with ADF Essentials installed) something curious happens.
My application has no difficulty performing database reads, but when it tried to write to the database and commit, it fails.
I've seen only a couple of other people with this problem, and none of them seem to have found a solution - so I'm assuming it's something stupid that I'm doing or misunderstanding.
Here is the log file:
[#|2013-11-10T11:45:17.601-0500|WARNING|glassfish3.1.2|oracle.adf.controller.faces.lifecycle.Utils|_ThreadID=79;_ThreadName=Thread-2;|ADF: Adding the following JSF error message: java.lang.NoClassDefFoundError cannot be cast to java.lang.Exception
java.lang.ClassCastException: java.lang.NoClassDefFoundError cannot be cast to java.lang.Exception
at oracle.jbo.server.BaseSQLBuilderImpl.isSQLRecoverableException(BaseSQLBuilderImpl.java:4575)
at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3380)
at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3067)
at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2071)
at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2352)
at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1590)
at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1415)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1428)
at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:402)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:210)
at app.AppModuleImpl.commitOperation(AppModuleImpl.java:50)
at com.methods.lrc.view.VendorBean.createPaymentReceived(VendorBean.java:509)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.el.parser.AstValue.invoke(AstValue.java:254)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:302)
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:112)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:106)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:973)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:354)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
at com.methods.lrc.view.ApplicationSessionExpiryFilter.doFilter(ApplicationSessionExpiryFilter.java:42)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
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)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:724)
Here is the method where it fails:
public String createPaymentReceived() {
AppModuleImpl appModule = this.getAppModule();
ViewObjectImpl paymentReceivedVOI = appModule.getPaymentsReceivedView3();
Row paymentRow = paymentReceivedVOI.createRow();
paymentRow.setAttribute("CheckNumber", prCheckNumber);
paymentRow.setAttribute("PaymAmount", totalSelectedValue);
paymentRow.setAttribute("PaymentComment", prComment);
paymentRow.setAttribute("PaymentDate", prPaymentDate);
paymentRow.setAttribute("PaymentType", prPaymentType);
paymentRow.setAttribute("TrackId", prTrackId);
appModule.commitOperation();
DBSequence paymentsReceivedId = (DBSequence)paymentRow.getAttribute("PaymentsReceivedId");
Iterator selectionIt = unpaidPaymentItemsTable.getSelectedRowKeys().iterator();
while (selectionIt.hasNext()) {
Object rowKey = selectionIt.next();
unpaidPaymentItemsTable.setRowKey(rowKey);
int index = unpaidPaymentItemsTable.getRowIndex();
JUCtrlHierNodeBinding row = (JUCtrlHierNodeBinding)unpaidPaymentItemsTable.getRowData(index);
Row selectedRow = row.getRow();
selectedRow.setAttribute("PaymentsReceivedId", paymentsReceivedId.getSequenceNumber());
selectedRow.setAttribute("PaymentDate", prPaymentDate);
appModule.commitOperation();
prCheckNumber = null;
totalSelectedValue = 0;
prComment = null;
prPaymentDate = new Date();
prTrackId = null;
prPaymentType = "K";
refreshTableIterator("VendorPaymentItemsView1Iterator");
refreshTableIterator("VendorPaymentsReceived1Iterator");
return null;
it fails on the second appModule.commitOperation() (which I've bolded)
if anyone can give a clue to what I'm misunderstanding I'd really appreciate it. I'm sure that if I had the course for BaseSQLBuilderImpl.java and/or DBTransactionImpl it would be easier to see what the actual error was - unfortunately java.lang.ClassCastException: java.lang.NoClassDefFoundError cannot be cast to java.lang.Exception doesn't tell me much of anything.
Thanks so much to anyone who's got the time/knowledge to help.
BobThat doesn't seem to make any difference. It works just fine within jDeveloper, but as soon as I deploy it, I can no longer write to the database.
A few more details that seem relevant - it's not only this method that fails. Even on screens which were designed without any backing code (where I used the wizards to create my forms and commit buttons) the same exact thing happens.
I've also replicated this behavior in Tomcat.
Part of what is happening is that something is throwing a NoClassDefFoundError, which is caught by a catch (Throwable thEx) clause within DBTransactionImpl. This passes the Error to a method (isSQLRecoverableException) within the BaseSQLBuilderImpl class. The problem is that this method takes only Exceptions for arguments, and NoClassDefFoundError is not a subclass of Exception (only of Throwable.)
It seems obvious to me that there's somewhere a jar missing, but I cannot find it without knowing which class was not found. -
Can i install Oracle ADF Essentials 11.1.2.3 on weblogic 10.6 ?
can i install Oracle ADF Essentials 11.1.2.3 on weblogic 10.6 ?
what the difference between ADF Essentials 11.1.2.3 and Application Development Run time 11.1.1.6 ?
can i use ADF Essentials 11.1.2.3 instead of Application Development Run time 11.1.1.6 to deploy application (contains many jsf pages with rich faces and many taskflows and BC4J) ??
i'm using jdeveloper 11.1.2.3.0 and weblogic 10.6 installed on the Linux serverHi,
JDeveloper 11g R1 (11.2.3) supported as ADF essentials and running on WebLogic 10.3.6 are the same releases. The difference is that a path is needed if you want to deploy the software on WLS 10.3.6. Quoting the release notes:
+"The ADF Runtime will be installed into a standalone application server by applying an Opatch bundle on top of a 11.1.1.6 version of the Application Developer Runtime environment. In the event that additional patches are needed or desired in addition to the 11.1.2.3.0 patch (for example, if an additional patch is needed for another component in the Application Development Runtime installation), those patches will need to be installed separately.+
+Important note: The patch is intended to be applied to an Application Developer Runtime installation. Applying the patch to a different installation type (for example, Oracle SOA Suite or Oracle WebCenter) is not supported."+
Release Notes: http://www.oracle.com/technetwork/developer-tools/jdev/11gr2update3-1851251.html
For Glasssfish you don't need to patch the server and only install the ADF runtime libraries - also explained in the Release notes.
Frank -
Hello.
Using JDeveloper 11.1.2.3
ADF Essentials - Glassfish 3.1
I'm trying to use FORM type (web.xml) security in my adf essentials application. I created a login.jspx page, but I don't know how can I call the j_security_check from my page because the af:form does not have an action attribute. I wonder if I can call it from a managed bean. I've read this doc:
Enabling ADF Security...
[http://docs.oracle.com/cd/E15523_01/web.1111/b31974/adding_security.htm#BGBGJEAH|http://docs.oracle.com/cd/E15523_01/web.1111/b31974/adding_security.htm#BGBGJEAH]
But as I'm using ADF Essentials, I think I cannot follow that solution.
can anyone help, please?
Regards,
AlexisEssentials comes without the Normal Oracle security. Check out https://blogs.oracle.com/emeapartnerweblogic/entry/adf_essentials_security_implementation_for and http://jobinesh.blogspot.com/2013/02/securing-your-adf-applications-using.html for our other solutions.
Timo -
Hi,
in order to get a simple web app deployed on glassfish 3.1.2 i tried to repeat all steps from the video below
https://blogs.oracle.com/shay/entry/glassfish_extension_for_oracle_jdeveloper
any application, whether it's adf or just an one-item-page web application without model project,
fails with the error :
"Class oracle.adfinternal.view.faces.facelets.rich.AdfFaceletsResourceResolver not found"
now i just repeat the deployment of the J2EE web app - war file
when i comment the respective block in web.xml
<!--context-param>
<param-name>javax.faces.FACELETS_RESOURCE_RESOLVER</param-name>
<param-value>oracle.adfinternal.view.faces.facelets.rich.AdfFaceletsResourceResolver</param-value>
</context-param-->
i manage to deploy but the application doesnt' work failing with exception 500
javax.servlet.ServletException: null source
java.lang.IllegalArgumentException: null source
i notice that the old adf-essentials.zip archive pictured in video contains much more libs and weights 3 time more than the one i downloaded yesterday (21M)
What's wrong with oracle.adfinternal.view.faces.facelets.rich.AdfFaceletsResourceResolver
or what's wrong with adf-essentials.zip?hi,
so the patchset's size is correct, alright, but i didn't move any further from there.
actually i've followed to the steps you provided in the blog thoroughly, anyway, i repeated from scratch on new glassfish installation:
adf-essentials.zip unzipped with -j option , e.i. into current ..glassfish3/domains/domain1/lib directory,
2 jvm parameters set as shown,
both model and view projects' deployment platform property set to glassfish3.1
same error message:
[#INFO|oracle-glassfish3.1.2|org.glassfish.admingui|_ThreadID=16;_ThreadName=Thread-2;|Exception Occurred :Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!
Source Document: web.xml
Cause: Unable to find class 'oracle.adfinternal.view.faces.facelets.rich.AdfFaceletsResourceResolver'. Please see server.log for more details.|#]
BTW, Andreas Koop at his blog found at http://multikoop.blogspot.co.uk managed to make it run as well, not me...
what do i miss or is it just a bad luck?
PS Neither can i run a simple sample on apache 7, it's deployed but can't be started
the only one that works for me is an oracle's rcf-dvt-demo.war on apache 7... -
Problems with model adf essentials on glassfish
Hi!,I have an application test very simple,My application was successfully deployed,
but when I use a table (business component) in the jspx,
i am getting this exception while run my web app.
HTTP Status 500 -
type Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.ClassCastException: oracle.adf.share.http.ServletContextScopeAdapter cannot be cast to oracle.adf.share.ADFScope
note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 3.1 logs.
and te server log says....
[#|2013-04-19T12:36:32.546-0300|WARNING|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=120;_ThreadName=Thread-1;|StandardWrapperValve[Faces
Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw
exception
java.lang.ClassCastException:
oracle.adf.share.http.ServletContextScopeAdapter cannot be cast to
oracle.adf.share.ADFScope
at oracle.adf.share.http.ServletContextScopeAdapter.getScope(ServletContextScopeAdapter.java:67)
at oracle.adf.share.http.ServletADFContext.findApplicationScopeMap(ServletADFContext.java:382)
at oracle.adf.share.ADFContext.findScope(ADFContext.java:394)
at oracle.adf.share.ADFContext.getScope(ADFContext.java:356)
at oracle.adf.share.ADFContext.getApplicationName(ADFContext.java:1369)
at oracle.adf.share.http.ServletADFContext.getApplicationName(ServletADFContext.java:173)
at oracle.adf.share.http.ServletADFContext.initialize(ServletADFContext.java:450)
at oracle.adf.share.http.ServletADFContext.initThreadContext(ServletADFContext.java:400)
at oracle.adf.model.servlet.HttpBindingRequestHandler.initADFContext(HttpBindingRequestHandler.java:55)
at oracle.adf.model.BindingRequestHandler.beginRequest(BindingRequestHandler.java:109)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:171)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
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)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:662)
which may be the problem?
thanks for your help and sorry for my english :)hi, thanks por replay.
I re-create the application and now I figure the following error:
[#|2013-04-24T12:32:39.062-0300|WARNING|glassfish3.1|oracle.adf.share.platform.AdfServerPlatformSupport|_ThreadID=20;_ThreadName=Thread-1;|
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.adf.share.platform.AdfServerPlatformSupport.getNativeDBConnection(AdfServerPlatformSupport.java:97)
at oracle.adf.share.ADFContext.getNativeJdbcConnection(ADFContext.java:1952)
at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:971)
at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1147)
at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:298)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:329)
at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9053)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:234)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
at oracle.adf.model.binding.DCBindingContainer.findDataControl(DCBindingContainer.java:1659)
at oracle.adf.model.binding.DCIteratorBinding.initDataControl(DCIteratorBinding.java:2542)
at oracle.adf.model.binding.DCIteratorBinding.getDataControl(DCIteratorBinding.java:2477)
at oracle.adf.model.binding.DCIteratorBinding.getCheckedDataControl(DCIteratorBinding.java:2571)
at oracle.adf.model.binding.DCIteratorBinding.executeQueryIfNeeded(DCIteratorBinding.java:2219)
at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3279)
at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2906)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:115)
at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareModel(FacesPageLifecycle.java:392)
at oracle.adf.controller.v2.lifecycle.Lifecycle$2.execute(Lifecycle.java:149)
at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:197)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.access$400(ADFPhaseListener.java:23)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.startPageLifecycle(ADFPhaseListener.java:238)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$1.after(ADFPhaseListener.java:274)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:75)
at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:447)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
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)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.AbstractMethodError: oracle.jdbc.driver.LogicalConnection.isWrapperFor(Ljava/lang/Class;)Z
at com.sun.gjc.spi.jdbc40.ConnectionHolder40.isWrapperFor(ConnectionHolder40.java:506)
... 83 more
|#]
[#|2013-04-24T12:32:39.062-0300|WARNING|glassfish3.1|oracle.adf.controller.faces.lifecycle.Utils|_ThreadID=20;_ThreadName=Thread-1;|ADF: Adding the following JSF error message: com.sun.gjc.spi.jdbc40.ConnectionWrapper40 cannot be cast to oracle.jdbc.OracleConnection
java.lang.ClassCastException: com.sun.gjc.spi.jdbc40.ConnectionWrapper40 cannot be cast to oracle.jdbc.OracleConnection
at oracle.jbo.server.OracleSQLBuilderImpl.setSessionTimeZone(OracleSQLBuilderImpl.java:5534)
at oracle.jbo.server.DBTransactionImpl.refreshConnectionMetadata(DBTransactionImpl.java:5329)
at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1167)
at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:298)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:329)
at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9053)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:234)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
at oracle.adf.model.binding.DCBindingContainer.findDataControl(DCBindingContainer.java:1659)
at oracle.adf.model.binding.DCIteratorBinding.initDataControl(DCIteratorBinding.java:2542)
at oracle.adf.model.binding.DCIteratorBinding.getDataControl(DCIteratorBinding.java:2477)
at oracle.adf.model.binding.DCIteratorBinding.getCheckedDataControl(DCIteratorBinding.java:2571)
at oracle.adf.model.binding.DCIteratorBinding.executeQueryIfNeeded(DCIteratorBinding.java:2219)
at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3279)
at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2906)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:115)
at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareModel(FacesPageLifecycle.java:392)
at oracle.adf.controller.v2.lifecycle.Lifecycle$2.execute(Lifecycle.java:149)
at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:197)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.access$400(ADFPhaseListener.java:23)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.startPageLifecycle(ADFPhaseListener.java:238)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$1.after(ADFPhaseListener.java:274)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:75)
at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:447)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
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)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:662)
|#]
any idea why it happens? Thanks! -
ADF Essentials Fusion Web Application(ADF) Templates missing
I have installed JDeveloper 11g Release 2 (11.1.2.3.0), in order to evaluate development with ADF Essentials.
The tutorial ( Developing with Oracle ADF Essentials) http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_55/jdtut_11r2_55_1.html shows how to start
a new Fusion Web Application(ADF) project.
But this option is missing !!!
What am I missing ?Combining Timo's and Shay's answers
I reproduced successfully the following
If Java EE role is selected when entering JDeveloper first time after installation of JDeveloper then
even if studio developer role is selected from the tools menu, there
is no way to get ADF Fusion development functionality as ADF Business *, ADF Model Business * features, ADF application templates, are missing.
The only valid solution is to uninstall JDeveloper and install it again ( there is no need to use generic installer) and select
studio developer the first time after installation.
It looks like ADF functionality is registered only at initial JDeveloper startup with developer role selected.
Cheers -
Hi,
I have three simple Bar Graphs which developed using JDeveloper 12c. When I deployed in Glassfish Server 3.1.2 open source edition with ADF essentials 12.1.2.0 they are not displayed. Other data bound pages are working fine. Now if I deploy them in the integrated weblogic server then they are correctly displayed.
As per the oracle documentation DVT components are included in ADF Essentials.
Can someone please help me if I am missing anything?
Thanks,
MehabubHi Alejandro,
I could see following warning and info in server.log file for my domain.
[#|2013-11-17T18:01:12.677+0530|WARNING|glassfish3.1.2|org.apache.catalina.connector.Request|_ThreadID=19;_ThreadName=Thread-2;|PWC4011: Unable to set request character encoding to UTF-8 from context /JeetOnlinePortal, because request parameters have already been read, or ServletRequest.getReader() has already been called|#]
[#|2013-11-17T18:01:12.790+0530|INFO|glassfish3.1.2|oracle.jbo.uicli.mom.CpxUtils$Visitor|_ThreadID=19;_ThreadName=Thread-2;|jndi:/server/JeetOnlinePortal/WEB-INF/classes/jeetView/DataBindings.cpx|#]
[#|2013-11-17T18:01:15.455+0530|INFO|glassfish3.1.2|oracle.adfinternal.controller.faces.lifecycle.JSFLifecycleImpl|_ThreadID=19;_ThreadName=Thread-2;|ADFc: Initializing ADF Page Lifecycle for the JSF environment, LifecycleContextBuilder is 'oracle.adfinternal.controller.application.model.JSFDataBindingLifecycleContextBuilder'.|#]
[#|2013-11-17T18:01:15.607+0530|INFO|glassfish3.1.2|oracle.adfinternal.controller.state.SessionBasedScopeMap|_ThreadID=19;_ThreadName=Thread-2;|ADFc: Configuration parameter adf-scope-ha-support set to 'false'.|#]
[#|2013-11-17T18:01:18.704+0530|INFO|glassfish3.1.2|org.apache.myfaces.trinidadinternal.skin.StyleSheetEntry|_ThreadID=19;_ThreadName=Thread-2;|Loading style sheet: META-INF/adf/styles/simple-desktop.css|#]
[#|2013-11-17T18:01:18.950+0530|INFO|glassfish3.1.2|org.apache.myfaces.trinidadinternal.skin.StyleSheetEntry|_ThreadID=19;_ThreadName=Thread-2;|Loading style sheet: META-INF/adf/styles/richcomponents-simple-desktop.css|#]
[#|2013-11-17T18:01:19.081+0530|INFO|glassfish3.1.2|org.apache.myfaces.trinidadinternal.skin.StyleSheetEntry|_ThreadID=19;_ThreadName=Thread-2;|Loading style sheet: META-INF/bi/styles/dvt-simple.css|#]
[#|2013-11-17T18:01:19.131+0530|INFO|glassfish3.1.2|org.apache.myfaces.trinidadinternal.skin.StyleSheetEntry|_ThreadID=19;_ThreadName=Thread-2;|Loading style sheet: META-INF/bi/styles/trinidad/dvt-simple.css|#]
[#|2013-11-17T18:01:19.176+0530|INFO|glassfish3.1.2|org.apache.myfaces.trinidadinternal.skin.StyleSheetEntry|_ThreadID=19;_ThreadName=Thread-2;|Loading style sheet: META-INF/adf/styles/skyros-v1-desktop.css|#]
[#|2013-11-17T18:01:19.224+0530|WARNING|glassfish3.1.2|org.apache.myfaces.trinidadinternal.skin.SkinStyleSheetParserUtils|_ThreadID=19;_ThreadName=Thread-2;|The skin selector AFIndexedIcon is not a Skin Icon Object since it does not have a content attribute. If you created this selector, please rename it to end with "style" instead of "icon" so that the Skinning Framework will treat it as a style, not an icon.|#]
[#|2013-11-17T18:01:19.276+0530|INFO|glassfish3.1.2|org.apache.myfaces.trinidadinternal.skin.StyleSheetEntry|_ThreadID=19;_ThreadName=Thread-2;|Loading style sheet: META-INF/adf/styles/skyros-v1-theme-addition.css|#]
[#|2013-11-17T18:01:19.325+0530|INFO|glassfish3.1.2|org.apache.myfaces.trinidadinternal.skin.StyleSheetEntry|_ThreadID=19;_ThreadName=Thread-2;|Loading style sheet: META-INF/adf/styles/skyros-v1-touchScreen-desktop.css|#]
[#|2013-11-17T18:01:19.354+0530|INFO|glassfish3.1.2|org.apache.myfaces.trinidadinternal.skin.StyleSheetEntry|_ThreadID=19;_ThreadName=Thread-2;|Loading style sheet: META-INF/bi/styles/dvt-skyros-v1-desktop.css|#]
[#|2013-11-17T18:01:19.387+0530|INFO|glassfish3.1.2|org.apache.myfaces.trinidadinternal.skin.StyleSheetEntry|_ThreadID=19;_ThreadName=Thread-2;|Loading style sheet: META-INF/bi/styles/dvt-skyros-v1-touchScreen-desktop.css|#]
[#|2013-11-17T18:01:21.102+0530|WARNING|glassfish3.1.2|oracle.adf.share.security|_ThreadID=19;_ThreadName=Thread-2;|ADF Credential Store is not supported on Glassfish platform. Using the ADFNoCredentialSupportStore instead.|#]
[#|2013-11-17T18:01:21.114+0530|WARNING|glassfish3.1.2|oracle.adf.share.security|_ThreadID=19;_ThreadName=Thread-2;|ADF Credential Store is not supported on Glassfish platform. Using the ADFNoCredentialSupportStore instead.|#]
[#|2013-11-17T18:01:21.119+0530|WARNING|glassfish3.1.2|oracle.adf.share.jndi.ReferenceStoreHelper|_ThreadID=19;_ThreadName=Thread-2;|No credential could be loaded for Reference = Reference Class Name: oracle.jdeveloper.db.adapter.DatabaseProvider
Type: sid
Content: XE
Type: subtype
Content: oraJDBC
Type: port
Content: 1521
Type: hostname
Content: mcassociation.in
Type: user
Content: jeet
, SecureRefAddr = password. Setting default value of "".|#]
[#|2013-11-17T18:03:02.156+0530|WARNING|glassfish3.1.2|oracle.adfinternal.view.faces.partition.PartitionManager|_ThreadID=19;_ThreadName=Thread-2;|Feature "DvtGraph" is not contained in any partition.|#]
[#|2013-11-17T18:03:02.601+0530|WARNING|glassfish3.1.2|org.apache.catalina.connector.Request|_ThreadID=20;_ThreadName=Thread-2;|PWC4011: Unable to set request character encoding to UTF-8 from context /JeetOnlinePortal, because request parameters have already been read, or ServletRequest.getReader() has already been called|#]
[#|2013-11-17T18:03:02.602+0530|WARNING|glassfish3.1.2|org.apache.catalina.connector.Request|_ThreadID=20;_ThreadName=Thread-2;|PWC4011: Unable to set request character encoding to UTF-8 from context /JeetOnlinePortal, because request parameters have already been read, or ServletRequest.getReader() has already been called|#]
[#|2013-11-17T18:03:02.602+0530|WARNING|glassfish3.1.2|org.apache.catalina.connector.Request|_ThreadID=20;_ThreadName=Thread-2;|PWC4011: Unable to set request character encoding to UTF-8 from context /JeetOnlinePortal, because request parameters have already been read, or ServletRequest.getReader() has already been called|#]
[#|2013-11-17T18:03:02.602+0530|WARNING|glassfish3.1.2|org.apache.catalina.connector.Request|_ThreadID=20;_ThreadName=Thread-2;|PWC4011: Unable to set request character encoding to UTF-8 from context /JeetOnlinePortal, because request parameters have already been read, or ServletRequest.getReader() has already been called|#]
[#|2013-11-17T18:03:03.643+0530|WARNING|glassfish3.1.2|oracle.adfinternal.view.faces.partition.PartitionManager|_ThreadID=20;_ThreadName=Thread-2;|Feature "DvtGraph" is not contained in any partition.|#]
[#|2013-11-17T18:15:04.849+0530|INFO|glassfish3.1.2|javax.enterprise.system.tools.admin.com.sun.enterprise.v3.admin|_ThreadID=21;_ThreadName=Thread-2;|Server shutdown initiated|#]
[#|2013-11-17T18:15:05.262+0530|INFO|glassfish3.1.2|oracle.adf.share.config.ADFConfigFactory|_ThreadID=21;_ThreadName=Thread-2;|Calling ADF Config instance implementation: class oracle.adf.share.config.ADFConfigImpl.releaseResources()|#]
[#|2013-11-17T18:15:05.877+0530|INFO|glassfish3.1.2|oracle.adf.share.config.ADFConfigFactory|_ThreadID=21;_ThreadName=Thread-2;|Calling ADF Config instance implementation: class oracle.adf.share.config.ADFConfigImpl.releaseResources()|#]
[#|2013-11-17T18:15:07.200+0530|INFO|glassfish3.1.2|oracle.adf.share.config.ADFConfigFactory|_ThreadID=21;_ThreadName=Thread-2;|Calling ADF Config instance implementation: class oracle.adf.share.config.ADFConfigImpl.releaseResources()|#]
[#|2013-11-17T18:15:09.701+0530|INFO|glassfish3.1.2|javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.service|_ThreadID=22;_ThreadName=Thread-2;|RAR7094: __xa_jdbc_ra shutdown successful.|#]
[#|2013-11-17T18:15:12.276+0530|INFO|glassfish3.1.2|javax.enterprise.system.jmx.org.glassfish.admin.mbeanserver|_ThreadID=21;_ThreadName=Thread-2;|JMX002: JMXStartupService: Stopped JMXConnectorServer: null|#]
[#|2013-11-17T18:15:12.276+0530|INFO|glassfish3.1.2|javax.enterprise.system.jmx.org.glassfish.admin.mbeanserver|_ThreadID=21;_ThreadName=Thread-2;|JMX001: JMXStartupService and JMXConnectors have been shut down.|#]
[#|2013-11-17T18:15:12.277+0530|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=21;_ThreadName=Thread-2;|Shutdown procedure finished|#]
Seems to be okay.
Do you find something wrong or missing?
Thanks,
Mehabub -
Iterator Type Reverts to java.lang.Object
I have the following iterator implementation:
public abstract class SomeCollection<T> {
protected ArrayList<T> items = new ArrayList<T>();
public Iterator<T> iterator() {
return new Iterator<T>() {
int currentItem = -1;
public boolean hasNext() { ... }
public T next() { return items.get(++currentItem);}
public void remove() { ... }
}However, when I try to use the iterator in the following method:
for (someType item : someCollection) {
}I get the error for incompatible types, where java.lang.Object is found when someType is required.
Any idea, anyone?Let me try that again.
The abstract class with the generics:
public abstract class Foo<T> {
protected ArrayList<T> items = new ArrayList<T>();
public Iterator<T> iterator() {
return new Iterator<T>() {
int currentItem = -1;
public boolean hasNext() { ... }
public T next() { return items.get(++currentItem);}
public void remove() { ... }
}The child class:
public class Bar extends Foo<Integer> {}The Main method:
public static void Main( ... ) {
Bar x = new Bar();
for (Integer item : x) {
}I get an error on the line with the for-statement, for having incompatible types, where java.lang.Object is found when someType is required. -
ADF: PPR in detail table gives a java.lang.ArrayIndexOutOfBoundsException
Hi,
I have an existing master-detail layout. To this I'm trying to add a second detail table.
My problem is this: If I set the ChangeEventPolicy of the iterator of the second detail table to PPR (which I believe I should do in order to have the table refresh with new details when I change the selected row of the master table), I keep getting a java.lang.ArrayIndexOutOfBoundsException.
Can anyone tell me what the problem might be?
Regards,
AndreasHi Amir,
It looks like the data model is okay; I found no problems when testing with the Business Component Browser. The relationship between the master and the detail works, and I get no errors.
When running the application and I trigger the error, the IntegratedWeblogicServerLog (I hope this is what you meant by stack trace) has this to say:
<RegistrationConfigurator><handleError> Server Exception during PPR, #2
javax.el.ELException: oracle.jbo.JboException: JBO-29000: Uventet undtagelse fundet: java.lang.ArrayIndexOutOfBoundsException, msg=0
at com.sun.el.parser.AstValue.invoke(AstValue.java:161)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1289)
at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:268)
at oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:140)
at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:385)
at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:147)
at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:271)
at oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:140)
at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:385)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:90)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:94)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:90)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:94)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at 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:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
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)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: oracle.jbo.JboException: JBO-29000: Uventet undtagelse fundet: java.lang.ArrayIndexOutOfBoundsException, msg=0
at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1574)
at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:3384)
at oracle.jbo.server.ViewObjectImpl.first(ViewObjectImpl.java:8836)
at oracle.adf.model.binding.DCIteratorBinding.setupRSIstate(DCIteratorBinding.java:767)
at oracle.adf.model.binding.DCIteratorBinding.refreshControl(DCIteratorBinding.java:667)
at oracle.jbo.uicli.binding.JUIteratorBinding.refreshControl(JUIteratorBinding.java:475)
at oracle.adf.model.binding.DCIteratorBinding.rangeRefreshed(DCIteratorBinding.java:873)
at oracle.jbo.common.RowSetHelper.fireRangeRefreshed(RowSetHelper.java:175)
at oracle.jbo.server.ViewRowSetIteratorImpl.notifyRangeRefreshed(ViewRowSetIteratorImpl.java:3574)
at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2791)
at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:3011)
at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:2635)
at oracle.jbo.server.ViewRowSetImpl.refreshRowSet(ViewRowSetImpl.java:6733)
at oracle.jbo.server.ViewRowSetIteratorImpl.notifyDetailRowSets(ViewRowSetIteratorImpl.java:3508)
at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigationToRow(ViewRowSetIteratorImpl.java:3650)
at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigation(ViewRowSetIteratorImpl.java:3610)
at oracle.jbo.server.ViewRowSetIteratorImpl.internalSetCurrentRow(ViewRowSetIteratorImpl.java:3393)
at oracle.jbo.server.ViewRowSetIteratorImpl.setCurrentRow(ViewRowSetIteratorImpl.java:1020)
at oracle.jbo.server.ViewRowSetImpl.setCurrentRow(ViewRowSetImpl.java:3254)
at oracle.jbo.server.ViewObjectImpl.setCurrentRow(ViewObjectImpl.java:9651)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.makeCurrent(FacesCtrlHierBinding.java:485)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
... 56 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at oracle.jbo.uicli.binding.JUCtrlHierBinding.findNodeByDCEPath(JUCtrlHierBinding.java:705)
at oracle.jbo.uicli.binding.JUCtrlHierBinding.resolveBindingForDCE(JUCtrlHierBinding.java:635)
at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.resolveBindingForDCE(JUCtrlHierNodeBinding.java:861)
at oracle.jbo.uicli.binding.JUCtrlValueBinding$BindingDataChangeEvent$BindingDataChangeEntry.resolveBinding(JUCtrlValueBinding.java:4045)
at oracle.jbo.uicli.binding.JUCtrlValueBinding$BindingDataChangeEvent$BindingDataChangeEntry.getKeyPath(JUCtrlValueBinding.java:4075)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel._createActiveUpdateEvent(FacesCtrlHierBinding.java:958)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.dataChanged(FacesCtrlHierBinding.java:812)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.createAndNotifyDCE(JUCtrlValueBinding.java:305)
at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.createAndNotifyDCE(JUCtrlHierNodeBinding.java:2379)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.updateNavigated(JUCtrlValueBinding.java:277)
at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.updateNavigated(JUCtrlHierNodeBinding.java:2152)
at oracle.jbo.uicli.binding.JUIteratorBinding.navigated(JUIteratorBinding.java:300)
at oracle.jbo.common.RowSetHelper.fireNavigationEvent(RowSetHelper.java:264)
at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigationToRow(ViewRowSetIteratorImpl.java:3639)
at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigation(ViewRowSetIteratorImpl.java:3610)
at oracle.jbo.server.ViewRowSetIteratorImpl.internalSetCurrentRow(ViewRowSetIteratorImpl.java:3393)
at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1566)
... 81 more
(as you can see, there are a few Danish words in there. "Uventet undtagelse fundet" means "Unexpected exception found")
If the above is not what you where asking for, please clarify.
Regards,
Andreas -
Hi all
I searched through the forum and found some threads with the same problem but never a solution attached so here is my question:
I'm currently trying to use a True Type Font in Java. I installed the font under windows and it works fine in e.g. Word, but when I try to use it in Java all I can see are "rectangles". I'm not sure if the problem lies in the font itself or if it is a problem of Java. The fonts are named "Fughetta" and "Toccata" and can be found here: http://www.efn.org/~bch/aboutfonts.html. He is a code snippet I'm using to test the font:
public void setFonts(Graphics g)
if (f != null) {
return;
f = new Font("Fughetta", Font.TRUETYPE_FONT, 26);
System.out.println(f);
public void paintComponent(Graphics g)
super.paintComponent(g);
setFonts(g);
String s1 = "1234567890��!\"�$%&/(()=?`";
String s2 = "qwertzuiop�+asdfghjkl��#yxcvbnm,.-<";
String s3 = "QWERTZUIOP�*ASDFGHJKL��'YXCVBNM;:_>";
String s4 = "1��{[]\\}@�~�|";
g.setFont(f);
g.drawString(s1, 10, 30);
g.drawString(s2, 10, 70);
g.drawString(s3, 10, 110);
g.drawString(s4, 10, 150);
}All help is appreciated ;)
- marcHy, Thanks for your sollution, but now I can't use this kind of approach.
I need to show a Bar Code Font inside a JTable cell, so I created my CellRenderer, in which I tried to change the font to my "Code EAN13" True Type font.
public Component getTableCellRendererComponent(JTable table,
Object value, boolean isSelected, boolean hasFocus, int row, int column) {
Component c = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
if (column == CollectInfoTableModel.CODBAREPRODUS_INDEX ) {
Font barCodeFont = new Font("Arial", Font.BOLD, 36);
c.setFont(barCodeFont);
}This doesn't work, it just prints some strange characters.
I tried your sollution, but when I make :
Graphics2D g2D= (Graphics)c.getGraphics();i keep getting g2D = null.
What can I do ?
Is there a way to obtai a valid Grapics object on which to draw the glyphVector on ? -
Image size and mime type.. non-java guy needs help
Image size, mime type.. non-java guy needs help
Im not at all familiar with java so this is really weird for me to work out. I?ve been doing it all day (and half of yesterday).
Im trying to write a custom clodFusion tag in java that gets the width, height, size and MIME types of a given file. I?ve been trying to get it to work on the command line first. I can get the width and height but cant get the size and the MIME type.
Here is what I got
/*import com.allaire.cfx.*;*/
import java.awt.image.renderable.*;
import javax.media.jai.*;
import com.sun.media.jai.codec.*;
import java.io.*;
import java.util.*;
public class ImageInfo {
private RenderedOp image = null;
private RenderedOp result = null;
private int height = 0;
private int width = 0;
private String type = "";
private String size = "";
public void loadf(String file) throws IOException
file = "80by80.jpg";
FileSeekableStream fss = new FileSeekableStream(file);
image = JAI.create("stream", fss);
height = image.getHeight();
width = image.getWidth();
System.out.println(height + "\n");
System.out.println(width);
System.out.println(type);
public static void main(String[] args) throws IOException {
ImageInfo test = new ImageInfo();
test.loadf(args[0]);
can anyone please help me out to modify the above so I can also print the mime type and the file size to screen.
thanks for any helpany suggestions?
-
Mapping of PLSQL table type Date to java
i am having problem in mapping plsql table type DATE in java,
able to execute procedures which return plsql table type NUMBER,VARCHAR.
i am using oracle 9 , jdk1.4, oci driver, windows 2000.
sample code:
registering:
st.registerIndexTableOutParameter(15,100,OracleTypes.DATE,1000);
st.registerIndexTableOutParameter(16,100,OracleTypes.DATE,1000);
st.execute();
getting out params in arrays:
java.sql.Date[] O_lSubFolder_CrOn=(java.sql.Date[])java.sql.Date[] st.getPlsqlIndexTable(15);
O_lSubFolder_MdOn=(java.sql.Date[])st.getPlsqlIndexTable(16);
error while executing the code:
java.sql.SQLException: Invalid PL/SQL Index Table element type
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:222)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:285)
at oracle.jdbc.driver.OraclePreparedStatement.checkPlsqlIndexTableBindTypes(OraclePreparedSt
atement.java:2705)
at oracle.jdbc.driver.OracleCallableStatement.registerIndexTableOutParameter(OracleCallableS
tatement.java:834)
can anyone help me to solve this problem.i am having problem in mapping plsql table type
DATE in java,
able to execute procedures which return plsql table
type NUMBER,VARCHAR.
i am using oracle 9 , jdk1.4, oci driver, windows
2000.
sample code:
registering:
st.registerIndexTableOutParameter(15,100,OracleTypes.D
TE,1000);
st.registerIndexTableOutParameter(16,100,OracleTypes.D
TE,1000);
st.execute();
getting out params in arrays:
java.sql.Date[]
O_lSubFolder_CrOn=(java.sql.Date[])java.sql.Date[]
st.getPlsqlIndexTable(15);
O_lSubFolder_MdOn=(java.sql.Date[])st.getPlsqlIndexTab
e(16);
can anyone help me to solve this problem.1. Write a wrapper procedure that converts the table of dates to either number or date and then re-convert the table back into date.
2. Since it's an out param you could create a temp table, insert the contents of the index by array into it and return a cursor.
3. Create a oracle type using CREATE TYPE and then use an array of the type.
David Rolfe
Orinda Software -
How to set a uniform display size of multiple intermedia image types - wher
I have read "If you want to limit the size of the file that can be uploaded, you can do this as a post generation
step, by adding the maxFileSize property to the <controller> element in the struts-config:
This does not address how to limit the *** display size *** where you have multiple intermedia image types - where the original size is not uniform.
If an image is uploaded where the true image display size is 1024 x 768 - it will display that way in the table/table-form. This will create un-even display size's where previous images sizes where different 384 x 384 and so on.
Is there a way to encode the display size so that *** ALL *** images regardless of their true size are displayed uniformly at least on one dimension (64 x ???)? This is possible when using products such as Dreamweaver or Flash.
BTW - JHS/***JDev*** synergy is truely magnificient!!! Way-To-Go Oracle!!!!!!!!!!! Keep it up!!!!
BG...Bill,
I did some tests, and was able to reproduce it. The problem is that JHeadstart distinguishes between display types fileDownload and image, but UIX uses the same <media> tag to handle both display types. It will look at runtime whether it must render a hyperlink to download the document, or to render it right away as an image.
To get all images the same size, you can set the display width and height, AND the display type must be set to image.
However, to get the file name used as download link, you must set the FileName attribute AND the display type must be set to "fileDownload" ..
So, to solve your problem, it is easiest to set the displayType to "fileDownload" and set the width and height properties post-generation in the generated UIX page.
In the next release of Jheadstart, we will fix this, and always pick up width, height and fileName settings regardless of the display type.
Note that you should also set the FileName property against the attribute you are using to upload the file.
Steven Davelaar,
JHeadstart Team. -
ADF Essentials and Glass Fish Server
Hi,
I am developing an application using ADF Essentials and GlassFish Server. Is it similar to J2EE Application?
Regards,
Jayashree V.Oracle ADF based on j2ee technologies. hosting is similar as j2ee ..
But for normal ADF, only few app server is certified to host.. regarding ADF essential you can host on glass fish as well
see this
https://blogs.oracle.com/shay/entry/deploying_oracle_adf_applications_to
A Configuring GlassFish Server
Setting up Oracle ADF Essentials on GlassFish Server - YouTube
https://docs.google.com/file/d/0B2P-p644ex5jYnllSWt6amlXQmM/edit
Maybe you are looking for
-
Iphone 5 new carrier update problem or glitch?
A few hours ago I decided to reset my phones data and settings. I haven't done this since I got it last year and it was acting a little slower than usual and I thought it would help the perfomance of the phone, I had downloaded a lot of apps. Anyhow
-
How do I enlarge a thumbnail on hover and then click to open in new window?
Can anyone help me here? Basically what I have are a few thumbnails on my site that I want the user to be able to click to open to a new page or URL. But before one clicks, just on the hover, I would like the thumbnail to display the larger image. An
-
Special G/L in cash journal
Hi, There are some specific settings for Russia/ Turkey country in order you use Special G/L indicator in Cash Journal. How can I activate them for my country, too? (My country is Romania). Thanks.
-
How to use two RPD in a single installation
I have developed separate RPD for the Wholesale business and one for Retail business. How can I use these two with one BI installation
-
The colors are not true when i print and my sd card will not fit printer
The printer is hp7515 and the color of trees are blue and the water is purple, i can not get my SD card to fit into printer