Logging Vs Metrics
We have sophisticated logging frameworks, which helps in analyzing the exceptions – only when proper logging is made. Logging only helps the development teams and do not make any sense to the executives who really care about the dashboards that shows the message counts that were flowing and gives much details about how one system is receiving the inputs and responding.
I felt it as a very interesting topic for us to explore on the open source metrics frameworks and different metrics dimensions that we can derive using that.
Will come up with more updates on this…
When Design Principles are applied in Real-time programming why not in Real-life?
Just a thought –
Programming languages are designed to serve the real-time needs. Design principles are based on the experiences, that helps to solves the issues by following certain patterns.
Why can’t the Design principles be applied in the Real-time too? When it can solve a programming issue, it can be applied in real-life too..
With this thought I put the design principle –
Favor composition over inheritance.
I believe this can be correlated to – Be a Roman when you are in Rome.
Isn’t it interesting?
Will keep adding my thoughts on this…
JDeveloper 12.1.3.0.0 installation failed on Windows 8.1
Jdeveloper 12.1.3.0.0 installation is failing on Windows 8.1 which has McAfee Antivirus installed on it.
During the Installation Progress step – It fails at the Copy step with the below error:
- oracle.sysman.oii.oiif.oiifb.OiifbEndIterateException: java.io.IOException: java.io.IOException: com.oracle.cie.common.util.crlf.CRLFException: Failed to transform C:\oracletest\oui\bin\deinstall.sh to C:\oracletest\oui\bin\deinstall.sh. Couldn’t rename temporary file: C:\oracletest\oui\bin\fixcrlf-6500337599052744610
- com.oracle.cie.common.util.crlf.CRLFException: Failed to transform C:\oracletest\oui\bin\deinstall.sh to C:\oracletest\oui\bin\deinstall.sh. Couldn’t rename temporary file: C:\oracletest\oui\bin\fixcrlf-6500337599052744610
To work this out:
Click on the McAfee icon from the task bar and go to Manage Security. Turn off the Firewall for 15 mins and try the installation again.
It works!
Finance Terminologies
Here and then I come across many domain related terminologies when going through news or stocks site and always spend sometime to know what it is. I felt it is good to capture these inputs for future reference.
This is just a start, will keep updating this…
Foreign Direct Investment(FDI) – http://www.investopedia.com/terms/f/fdi.asp
- Greenfield Investment
- Brownfield Investment
Do you think Offshore Development by IT companies comes under FDI?
Most of the FDI investments in India are from Mauritius and Singapore.
Export Letter of Credit – http://www.tdbank.com/internationalservices/export_letters_credit.html
Import Letter of Credit – http://www.tdbank.com/internationalservices/import_letters_credit.html
- https://en.wikipedia.org/wiki/Letter_of_credit
- http://www.investopedia.com/ask/answers/06/202005.asp
Bill of Lading
Bid Bond
Performance Bond
Payment Bond
Credit Risk
Legal Risk
Bank Guarantee
Oracle SOA: All the activities in BPEL are successful, but the BPEL process shows as failed
The below writing addresses the following issues:
1. All the activities in BPEL are successful, but the BPEL process failed.
2. The invoke activity on a external service has got response, but in SOA it is recorded as failed.
In my case, Invoke activity has called an external service and it took more than the transaction time out that is specified. When it tries to update the state in SOA, it errors out as the current state already got invalidated.
Error message from logs:
The action “update action” cannot be performed on the instance “30208” because of its current state (“unknown”).
The current instance state did not allow the requested action to be performed.
Consult the product documentation for a list of all the permissible actions that can be performed on an instance when it is in the “unknown” state.
, Cikey=30208, FlowId=30025, Current Activity Key=30208-BpInv3-BpSeq6.9-3, Current Activity Label=InvokeUdsLoader, ComponentDN=<COMPOSITE_NAME>!2.0*soa_c3ac83a7-3548-46e7-a06c-7afb154b348f/<BPEL_NAME>
ORABPEL-02041
Solution:
Change the JTA transaction timeout:
- Log in to Oracle WebLogic Server Administration Console.
- In the Domain Structure, select Services > JTA
- Increase the JTA transaction timeout value to some higher value like 3600
After changing the transaction time-out it worked for me.
ORA-06508: PL/SQL: could not find program unit being called..
Seeing this error?
ORA-06508: PL/SQL: could not find program unit being called …<procedure name>.
Verify the following:
1. In the database check whether package state is valid or not
select * from ALL_OBJECTS
where object_name like ‘%<procedure name>%’;
2. If the package is valid, but still seeing the same error when accessed from a SOA process?
Yes, in my case, it happened. Someone has recompiled the database procedure, which DBAdapter was accessing.
Recompilation of the stored procedure causes changes in the package state and raises an exception. The weblogic server caches the statements and hence we get the error till the data source cache is cleared.
To clear the cache goto Control tab under the DataSource and click on ClearStatementCache. The same works with Reset button also, but the cost varies.
Hope this helps!
Cannot locate Java class oracle.tip.adapter.db.DBStoredProcedureInteractionSpec
Debugging this error took a while for me. So, adding this info. for my fellow programmers. Hope this helps!
We saw the below exception stack trace when trying to deploy a composite to the application server from JDeveloper:
JDeveloper: Deployment – Log
[10:39:13 PM] Received HTTP response from the server, response code=500
[10:39:13 PM] Error deploying archive sca_XXXXXXX_rev5.0.jar to partition “default” on server soa_server1 [http://XXX-XXX:8001]
[10:39:13 PM] HTTP error code returned [500]
[10:39:13 PM] Error message from server:
There was an error deploying the composite on soa_server1: [JCABinding] [.DB_CALL_Proc_GSI/5.0]Unable to complete unload due to: Cannot locate Java class oracle.tip.adapter.db.DBStoredProcedureInteractionSpec: Cannot locate Java class oracle.tip.adapter.db.DBStoredProcedureInteractionSpec.
Verify the following:
1. Make sure that DBAdapter configuration profile is updated after creating a new jndi connection.
2. The server from which you were trying to access this DBAdapter must be selected in weblogic console -> deployments -> DbAdapter -> Targets and make sure “soa_server1” is checked. As we have tried deployment with soa_server, we have selected soa_server1 and it worked.
Also, this solution works if you are seeing the same error when we click on a composite in the EM console.
ADF – Getting the row count of a self referencing VO
In ADF, we don’t have any API method to get the row count of all the rows including the child rows of a self referencing VO. However, we can achieve this programmatically by iterating through all the hierarchial rows.
Calculating the row count is typically used when we are showing the printable version of the tree table, where in the fetchSize of the <af:treeTable> is set with the total row count. In my next post I will discuss about the printable version of the tree table.
The below logic might be handy:
private void getAllHierarichalRowsCount(JUCtrlHierNodeBinding nodeBinding) {
if (nodeBinding != null) {
//Pass the row and get all the child rows
if (nodeBinding.hasChildren() &&
nodeBinding.getChildren() != null) {
int chlidRowsCount = nodeBinding.getChildren().size();
for (int i = 0; i < chlidRowsCount; i++) {
JUCtrlHierNodeBinding childNodeBinding =
(JUCtrlHierNodeBinding)nodeBinding.getChildren().get(i);
rowCount++;
getAllHierarichalRowsCount(childNodeBinding);
}
}
}
}
private JUCtrlHierNodeBinding getRootNodeOfTree(RichTreeTable treeTable) {
JUCtrlHierNodeBinding rootNode = null;
if (treeTable != null) {
CollectionModel model = (CollectionModel)treeTable.getValue();
JUCtrlHierBinding treeBinding =
(JUCtrlHierBinding)model.getWrappedData();
rootNode = treeBinding.getRootNodeBinding();
}
return rootNode;
}
// Call these two lines while loading the page. I have invoked this from the visible property of the <af:treeTable>
JUCtrlHierNodeBinding rootNode =
getRootNodeOfTree(this.getTreeTableBinding());
getAllHierarichalRowsCount(rootNode);