Monday, April 14, 2014

Oracle Webcenter Sites : java.sql.SQLException: ORA-12899: value too large for column "CSUSER"."TT1397223334151"."VALUE" (actual: 2306, maximum: 2000)

While installing the Oracle Webcenter Sites 11.1.1.6.0 or later you are getting the below error :
Exception executing prepared statement: INSERT INTO tt1397223334151 (NAME,LOCALE,VALUE) VALUES (?,?,?)NAME = fatwire/wem/admin/user/edit/DescriptionBodyLOCALE = ja_JPVALUE = <p>�存�れ�ユーザー���を変更�る�������ん。ユーザー�残り�プロパティ�修正����。</p><p>ACL: ユーザー�Browser�ElementReader�PageReader�UserReader�よ�xceleditor ACL��る��を確����。一般管�者�よ�サイト管�者�もxceladmin�必���。一般管�者��ら�TableEditor�よ�UserEditor(Engageを使用�る場��VisitorAdmin)�必���。ACL�詳細��<i>管�者ガイド</i>を�照������。</p><p>グループ: ��ユーザー�アプリケーション・リソースを管��る権�を必���る場��リソース�権�を��グループ�ユーザーを割り当���。グループを作��る������権�を構��る���<i>WEM�管�者ガイド</i>を�照������。</p><p>��ユーザー�アプリケーション�接続�る���(「サイト�ページ�ら)��サイト���ロールを両方�割り当���。</p>java.sql.SQLException: ORA-12899: value too large for column "CSUSER"."TT1397223334151"."VALUE" (actual: 2306, maximum: 2000)
Reason: In webcenter sites 11.1.1.6.0 and later, language pack is automatically installed and file.encoding is not set for weblogic server i.e. the JVM argument -Dfile.encoding=UTF-8 is not set.

Solution:

  1. Open startWeblogic.cmd in edit mode i.e. Oracle\Middleware\user_projects\domains\soa_domain\bin\startWeblogic.cmd
  2. Find -Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy %JAVA_OPTIONS%.
  3. Then append "-Dfile.encoding=UTF-8"
  4. Final string look like this -Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy %JAVA_OPTIONS% -Dfile.encoding=UTF-8.
  5. Save and start the server.
Note: For further information please followed the document 1539055.1 on oracle support.

Friday, April 11, 2014

JTA transaction is not in active state: The transaction status is "MARKED_ROLLBACK".

This issue generally comes due to low value (default value i.e. 30) set for JTA transaction timeout. To solve the above problem try the following things.

Setting syncMaxWaitTime: 

1.     Login into em console i.e http://<IP>:<PORT>/em
2.     Expand SOA and right click on "soa-infra" and select SOA Administration -> BPEL Properties
3.     Click on "More BPEL configuration Properties..." link
4.     Locate syncMaxWaitTime and increase the time value.

Setting the global transaction timeout at weblogic domain

1.     Log into Oracle WebLogic Administration Console.
2.     Click Services -> JTA.   
3.     Change the value of Timeout Seconds (the default is 30).
4.      Click Save.
5.      Restart Oracle WebLogic Server.

Note: For more information please follow the document Doc ID 1524757.1  and Doc ID 880313.1 on oracle support.


Tuesday, April 8, 2014

Weblogic Webservice Test client :http://localhost:7001/wls_utc not working

When you test the webservice that you have created in java and deployed on weblogic server in the browser you will get the following error:


Reason: The possible reason could be wlstestclient.ear is not deployed on the weblogic server. So deployed the application on server.

Solution:

  1. Go to the server/lib directory i.e. \Oracle\Middleware\wlserver_10.3\server\lib
  2. In that directory search for wlstestclient.ear.
  3. Deploy this wlstestclient.ear as an application on administration server (or target on to any server).
  4. Now test the client. you will some thing like this : 


Sunday, April 6, 2014

How to enable "--rest" option in Mongo DB after installation

Many people install the mongo db either as a service or instance but they forget to enable the default rest interface that mongo db provides.
Well to enable rest interface in mongo db as instance is nothing but just stop the instance and re-run the instance with "--rest" option.
i.e. E:\mongodb\bin\mongod.exe --rest --logpath E:\mongoData\log\mongo.log --dbpath E:\mongoData\data\db

But when you install the mongo db as service the how to enable rest interface without creating new service.
  1. Stop the mongo db service.
  2. Open run (window key+r), type regedit (i.e. open registry to edit).
     
  3. In the registry editor, go to the HKEY_LOCAL_MACHINE -> SYSTEM -> CurrentControlSet -> Services -> MongoDB
     
  4. Now double click on ImagePath and add the --rest option in the value.
  5. Click Ok.
  6. Exit regedit and start the mongo db service.

MongoDB not able to start :cause of : exception in initAndListen: 12596 old lock file, terminating

Some times when you start the mongo db server then it is not able to start because of following exception:

exception in initAndListen: 12596 old lock file, terminating

Solution

In this case just use the mongo db "--repair" command fix this issue.

  1. Go to bin directory in mongo db folder i.e E:\MongoDB\bin
  2. Delete the mongod.lock file. (this step is optional)
  3. Now open the command prompt and run this command i.e. "E:\mongodb\bin>mongod.exe --repair --dbpath=E:\mongoData\data\db"
  4. Now start the mongo db service.
  5. Verify that mongo db is running successfully.

Saturday, April 5, 2014

Oracle SOA : How to deploy multiple composite in oracle soa

Yesterday I just completed the SOA development and next thing I have to move all the deployed composite on to the UAT enviornment and then production. But I think it is very cumbersome to deploy each composite one by one on to the soa server, so to overcome this problem I am using the different SOA bundles, each soa bundle consist of multiple composite of particular partition.

Steps to create SOA Bundle
  1. In the jdeveloper create a New Deployment Profile.
  2. Select Soa Bundle from the list.
  3. Name the soa bundle, "MongodbRestBundle" in this case.
  4. Click Ok. Choose dependencies on this bundle, so check all those composites that you want to deploy in single partition.
  5. Click Ok and finish the wizard. SOA bundle is configured now.

How to deploy SOA bundle on SOA server

  1. Just click on the deployment profile that you have created in above steps.
  2. select "Deploy to Application Server" and click next.
  3. Attached the config plans, select appropriate plans like UAT plan in this case similarly select for other composite by navigating through the tabs.And click next
  4. Select application server connection and click next.
  5. Select the soa server and partition in which you want to deploy the bundle.
  6. Click next and finish the wizard.
Note: you can also deploy the soa bundle by creating the SAR file and deploy on to the soa server using em console. Use this guide for further information on deployment : http://docs.oracle.com/cd/E12839_01/integration.1111/e10224/sca_lifecycle.htm



Friday, April 4, 2014

Error: could not open "\OBI_INS\lib\amd64\jvm.cfg"

I was working on installation of weblogic server and I was extracting the weblogic jar setup using the command "java -D64 -jar wls_generic_1036.jar" but I got the following error

Error: could not open "\OBI_INS\lib\amd64\jvm.cfg"

Solution

  1. Check the JAVA_HOME and Path variable in environment variables i.e the value of these variables for java is changed to "c:\'program files\java" or "c:\java". So correct the path of jdk in these variables.
  2. The files java.exe, javaw.exe and javaws.exe are copied in the folder "c"\windows\system32", so remove all those files.
  3. Now just proceed everything is on the track.