Pages

Wednesday, November 27, 2013

ADF 12c Rendering Problems at design time

Try to add this line in the jdev.conf

   AddVMOption -Dsun.java2d.opengl=true 
then restart jdeveloper

Thursday, January 31, 2013

SOLVED: java.lang.StringIndexOutOfBoundsException: String index out of range: -2

 java.lang.StringIndexOutOfBoundsException: String index out of range: -2  
     at java.lang.String.substring(String.java:1937)  
     at java.lang.String.substring(String.java:1904)  
     at org.apache.myfaces.trinidadinternal.style.util.CSSGenerationUtils._getNSComponentSelector(CSSGenerationUtils.java:632)  
     at org.apache.myfaces.trinidadinternal.style.util.CSSGenerationUtils.getNamespacedSelectors(CSSGenerationUtils.java:525)  
     at org.apache.myfaces.trinidadinternal.style.cache.FileSystemStyleCache._getShortStyleClassMap(FileSystemStyleCache.java:1185)  
     at org.apache.myfaces.trinidadinternal.style.cache.FileSystemStyleCache._getStyleSheetDocument(FileSystemStyleCache.java:708)  
     at org.apache.myfaces.trinidadinternal.style.cache.FileSystemStyleCache._getEntry(FileSystemStyleCache.java:441)  
     at org.apache.myfaces.trinidadinternal.style.cache.FileSystemStyleCache.getStyleSheetURIs(FileSystemStyleCache.java:183)  
     at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.StyleSheetRenderer.encodeAll(StyleSheetRenderer.java:97)  
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)  
     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)  


1. Open the $DOMAIN_HOME/bin/setDomainEnv.sh file
2. Add the following option tp prevent StringIndexOutOfBoundsException error: -XX:-UseSSE42Intrinsics


3. $DOMAIN_HOME/servers/AdminServer/tmp/_WL_user/em/jmb4hf/public/adf/styles/cache
4. Remove the cached CSS files.   rm -rf *.css
5. Restart Weblogic server

Wednesday, January 23, 2013

Create a new domain in weblogic

1. Go to the \common\bin subdirectory of the product installation directory.
2. Execute the following command: sh config.sh or ./config.sh
3. Select Create a new WebLogic domain and click Next.
4.Select Generate a domain configured automatically to support the following products: and click Next.


5. Enter the domain name and click Next.
6. Configure the username and password for the administrator. The username is used to boot the administration server and connect to it. Click Next.
 7. Select the production mode and JDK. Click Next
8. Finish

Wednesday, October 17, 2012

How to resolve Bean already exists: "weblogic.j2ee.descriptor.wl.JDBCPropertyBeanImpl error

Solved solution:

Bean already exists: "weblogic.j2ee.descriptor.wl.JDBCPropertyBeanImpl@176f6ab6([sybasePool]/JDBCDriverParams/Properties/Properties[user])"

1. cd $DOMAIN_HOME
2. cd config/jdbc
3. Delete to xml file of config
4. Restart server