Postagens

java.lang.OutOfMemoryError while compiling weblogic.appc is running

Hello all, This week, after 2 months waiting Oracle to answer me in MOS I finally got the solution for my problem. The weblogic.appc tool pre-compiles each JSP file before deploying your project to Integrated WLS, otherwise your application could take a big performance hit as it needs to compile each .JSP file after the first request. This so called "feature" could get you in some trouble if you have more 400+ .jsp files, the fact lies beyond the heap parameters in weblogic.appc compiler, the default values (-Xms128 and -Xmx512) aren't enough to a big project like that. After some analysis Oracle Support offered me two solutions: 1) Start JDeveloper with the following argument from command-line:    -J-Djdev.webapp.appc.addition.jvmargs=-Xmx1025m  Example:    jdevW.exe -J-Djdev.webapp.appc.addition.jvmargs=-Xmx1025m  Important: this argument is for internal development, hence is not officially supported and is subject to change or removal.  See...

ViewObject Forward Only mode

Hi! Today I was reading a interesting topic about one of ViewObject tuning properties, it is called Forward Only mode, you can programmatically set it by calling setForwardOnly(true). This property won't allow the ViewObject to cache the previous loaded rows while RowSet scroll is happening. Link to the documentation:  http://docs.oracle.com/cd/E21043_01/web.1111/b31974/bcadvvo.htm#sm0342 Section 39.2.6  Use Forward Only Mode to Avoid Caching View Rows As stated in documentation: "Often you  will write code that programmatically iterates through the results of a view object. A typical situation will be custom validation code that must process multiple rows of query results to determine whether an attribute or an entity is valid or not. In these cases, if you intend to read each row in the row set a single time and never require scrolling backward or re-iterating the row set a subsequent time, then you can use "forward only" mode to avoid caching the retr...

Accessing ViewObjectImpl sample methods trough Groovy

Imagem
Hi! Here are two ViewObjectImpl sample methods, one using direct Where Clause modification and another one using ViewCriteriaRow API: Class br.com.home.view.JobsVOImpl.getJobWithMinimumSalary() private static ADFLogger LOGGER = ADFLogger.createADFLogger(JobsVOImpl.class); private String minimumSalaryWhereClause = "MIN_SALARY IN (SELECT MIN(MIN_SALARY)\n" + " FROM HR.JOBS)\n" + " AND ROWNUM = 1"; private String minimumSalaryWhereClauseVC = "SELECT MIN(MIN_SALARY)\n" + " FROM HR.JOBS\n";     public String getJobWithMinimumSalary() {         setWhereClause(minimumSalaryWhereClause);         LOGGER.warning("WHERE clause -> " + this.getWhereClause());         executeQuery();         String jobId = "...

Weird Weblogic deployment exception

Hi everyone! Just a note for myself, today I faced a weird exception while trying to start a Managed Server from our Weblogic Cluster. The server crashed due to an exception: java.lang.OutOfMemoryError: allocLargeObjectOrArray: [Ljava/lang/Object;, size 16400 I don't know exactly what hapenned, especially because the time that exception ocurred we had almost no users online. After trying to start the Managed Server I was facing this error: weblogic.management.DeploymentException: Exception occured while downloading files And then: Caused By: java.io.IOException: [DeploymentService:290066]Error occurred while downloading files from admin server for deployment request "0". Underlying error is: "null" After some Googling I found a blog post that helped me a lot: http://www.javamonamour.org/2012/10/javaioioexception-deploymentservice2900.html One special note to " and the Admin is unable to redeploy the file ".   After reading that I star...

The deferred EL expression is not allowed since deferredSyntaxAllowedAsLiteral is false

This error usually happens when you forgot to declare the Tag Libraries in your Web project inside JDeveloper, just import the library (trough JSP Tag Libraries inside your IDE, I'm using JDeveloper here but I think that all of then uses the same concept) that references the attribute TAG and everything should compile.

JDeveloper Data Control palette is missing

Imagem
In day-to-day use JDeveloper always make some weird things by itself... Here I'am showing how to solve the most common one, the Data Control Palette got hidden somewhere in the darkness... Screen showing the Palette: Altough I was not able to reproduce the problem I know how to solve it, you just have to go to Window Menu and click "Reset Windows to Factory Settings", that'll fix some lost tag in one of JDeveloper configuration XML's.

404 Error while running a Bounded Task Flow inside Dialog

Morning! When running a task-flow as a dialog do not forget to add those attributes to the button that calls the btf: useWindow="true" windowHeight="400" windowWidth="500" Without this you'll probably run into a 404 error, here is part of the exception (pt-BR message): <XmlHttpServletResponse> <_logException> javax.servlet.ServletException: ADF_FACES-60101:Código de Status de Erro de HTTP: 404."

JBO-25030 Error with entity association marked as composition

Just posting for future reference. I had a JBO-25030 today and its problem was associated to a Entity Assocation marked as "Composition", the problem is that new rows doesn't contain a default associated item. Eg: You create a product without its category and product category is a Composition Association from the Products table to the Product Categories table.

Possible reason for JBO-27019 - ADF Bussiness Components

Hi all, Today I was working a lot only running the Application Module by itself. I had a View Object that I implemented its Java View Row Class. After some time I decided to change one attribute from "String" to "Number", running the AppModule again was giving me the exception: oracle.jbo.AttrValException: JBO-27019: The get method for attribute "attributeName" in "ViewObjectName" cannot be resolved. Bored of trying to solve the error I created a new VO based on the same EO. The new VO worked, so, I compared both of them (the new one and the old one), one difference of course is the RowImpl class, I implemented it on the new VO too moved my comparisons to the Java RowImpl class. This lead me to a strange IDE bug, after changing a Entity Attribute it does not refactor the ViewRowImpl class (I know it is too far for the IDE to know that kind of information but the fact is that it does not send us any intelligent messages about the error). ...

Jdeveloper 11.1.2 Fails to render web pages in Design Mode

Imagem
Hi all! I was facing some issues with this new Jdeveloper release (11.1.2) also called a "SHERMAN" release. The problem seldom appears but probably did some developers to reinstall the tool. Here is a sreen of the bug in all of its glory: This bug usually occurs when something is wrong with your web project in particular, but when I looked into other projects it was happening to everything loaded with Jdeveloper, so this is not a project-specific bug. After some time working out with Jdev user directory (here I find it under C:\Documents and Settings\MY_WINDOWS_USER_NAME\Dados de aplicativos\JDeveloper\system11.1.2.0.38.60.17), deleting and moving directorys around I released that a specific directory was giving the issue, its name is "o.j2ee.jsplib" . Looks like this directory store some information about libs that IDE uses to visualize JSF components, like taglibs or something else. You just have to delete this directory and let Jdeveloper ...

JBO-25080 while working with Data Controls

There is a know error while using Data Controls with the same name as packages like same minutes ago this ocurred to me: My package is named xpto.jobhistory and the entity is named JobHistory (case insensitive bug), by default my Entity Data Control reference was named with JobHistory.xml. This situation lead me to a bug when running the .jspx page, these JBO-25080. Hope it helps!

How Do I Start Learning Oracle ADF and JDeveloper 11g

Excellent post made by Shay to give a hand on ADF Beginners. How Do I Start Learning Oracle ADF and JDeveloper 11g

Oracle ADF built-in Templates

It is very common to see people around asking how to modify the core Oracle Templates like the Oracle Three Column Layout and Oracle Dynamic Tabs Shell Template . These files are inside two jars inside the {$middleware.home}/jdeveloper/adfv/jlib/oracle-page-templates.jar for the Three Column and oracle-page-templates-ext.jar inside the same directory for the Dynamic Tabs Shell. The Dynamic Tabs Shell got some actions inside it like compiled classes and stuff related to internal work, you can find more information here on that link: Oracle Dynamic Tabs Shell - ADF 11gR1 – UI Shell Made by Chris Muir on Websphere.