Arulanand Dayalan

Ranch Hand
+ Follow
since Aug 10, 2005
Merit badge: grant badges
For More
Chennai,Tamil Nadu,India
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Arulanand Dayalan

I had setup Hadoop HA Cluster(QJM) with kerberos. Cluster has three journal nodes. Namenode is able to connect
to journal node running on the Namenode. For other Journal nodes its not able to connect and throws below exception.
Can you please provide inputs for resolving the issue.

16/05/24 18:44:28 FATAL namenode.NameNode: Exception in namenode join
org.apache.hadoop.hdfs.qjournal.client.QuorumException: Unable to check if JNs are ready for formatting. 1 exceptions thrown:
10.67.169.46:8485: Failed on local exception: java.io.IOException: java.lang.IllegalArgumentException: Server has invalid Kerberos principal: hdfs/server2.cehdev.com@CEHDEV.COM; Host Details : local host is: "server1.cehdev.com/10.67.169.45"; destination host is: "server2.cehdev.com":8485;
at org.apache.hadoop.hdfs.qjournal.client.QuorumException.create(QuorumException.java:81)
at org.apache.hadoop.hdfs.qjournal.client.QuorumCall.rethrowException(QuorumCall.java:223)
at org.apache.hadoop.hdfs.qjournal.client.QuorumJournalManager.hasSomeData(QuorumJournalManager.java:232)
at org.apache.hadoop.hdfs.server.common.Storage.confirmFormat(Storage.java:875)
at org.apache.hadoop.hdfs.server.namenode.FSImage.confirmFormat(FSImage.java:171)
at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:922)
at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1354)
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1473)
7 years ago
Hi,

I am having file in below format. I need to read this file and create a tree structure. I tried its not working as expected. Can you please let me know better approach/api to do it. Thanks in advance.

If (feature 3 in {1.0})
Predict: 0.0
Else (feature 3 not in {1.0})
If (feature 2 in {1.0})
If (feature 1 <= 3.0)
Predict: 0.0
Else (feature 1 > 3.0)
If (feature 1 <= 4.0)
If (feature 5 in {1.0})
Predict: 0.0
Else (feature 5 not in {1.0})
Predict: 1.0
Else (feature 1 > 4.0)
Predict: 1.0
Else (feature 2 not in {1.0})
Predict: 1.0

Regards,
Arul.
7 years ago
Thanks Paweł. Got it now.
8 years ago
Hi,

I am trying to write a generic implementation for an putAll method. In the implementation class i am not able to print the attributes of the Bean (e.g. name ,id ). Can you please let me why this happens or is there any other way to achieve it.



Thanks in Advance.

Regards,
Arul.
8 years ago
Hi,
We have a requirement in which we need to covert PDF file to TIFF Images. Can anyone please suggest any java framwork which would help us to do it. We had tried ICEPDF already it does not PDF generated using iText5.

Thanks in Advance.

Regards,
Arul.
13 years ago
Hi,

In our application we are facing Session Merging issue (http://blogs.msdn.com/ie/archive/2009/05/06/session-cookies-sessionstorage-and-ie8.aspx). One solution to this problem is URL Rewriting. We are using Struts 1.2. This automatically writes jsessionid to a Cookie. Is there any way we can prevent this happening and append jsessionid to URL using struts. We are also interested other approaches using which we can solve this problem. Thanks in advance.

Regards,
Arul.
14 years ago

Sean Clark wrote:So what you are actually looking to do is to load a different CSS depending on what url was accessed then?
It's possible.

Sean



Loading different CSS is possible and i am able to do that. In my welcome pagelist i have login.jsp. The problem i am facing is, identifying ProductA from the url and setting it in the request before passing to login.jsp. I thought of using filter, but don't know how to get the ProductA in the filter.

For applying CSS i can do like this, src="css/"+<%= product >+"/style.css"

Regards,
Arul.
14 years ago
JSP
Hi,

I am trying to customize pages in an J2ee web application(Struts) so that it can support different products. Example of customization - Different look and feel(Images/Css) , Hide columns and different Login pages based on the products. When the user types in http://localhost:9080/TestApp/ProductA then customized login page for ProductA should appear. Once the user logins then all the pages need to be customized for ProductA. This customization can be done if we identify the product. The problem i am facing is how to identify the product based on the URL.

When the user types in http://localhost:9080/TestApp/ProductA i need find out its for ProductA then forward to login JSP. In that jsp i can have hidden variable with product as ProdctA.After this its not problem. Is there any way to do it?

Thanks in Advance.

Regards,
Arul.
14 years ago
JSP
Hi,
We are facing issues in configuring a Bus in WAS 6.0 in clustered environment. We created Bus and attached three Servers as Bus Members. When start the Server the messaging engines are not getting started. We are getting the below exception,

Caused by: [6/5/09 14:36:27:147 CDT] 00000020 SibMessage E [SCABUS:qa-Node02.qa-Node02-SCABUS] CWSIS0002E: The messaging engine encountered an exception while starting. Exception: com.ibm.ws.sib.msgstore.PersistenceException: CWSIS1501E: The data source has produced an unexpected exception: com.ibm.ws.sib.msgstore.persistence.DatasourceWrapperStateException: New connections cannot be provided because the persistence layer has been stopped
at com.ibm.ws.sib.msgstore.persistence.impl.PersistentMessageStoreImpl.start(PersistentMessageStoreImpl.java:188)
at com.ibm.ws.sib.msgstore.impl.MessageStoreImpl.start(MessageStoreImpl.java:1175)
at com.ibm.ws.sib.admin.impl.JsMessagingEngineImpl.start(JsMessagingEngineImpl.java:491)
at com.ibm.ws.sib.admin.impl.HAManagerMessagingEngineImpl.activate(HAManagerMessagingEngineImpl.java:967)
at com.ibm.ws.sib.admin.impl.JsActivationThread.run(JsActivationThread.java:89)
Caused by: com.ibm.ws.sib.msgstore.persistence.DatasourceWrapperStateException: New connections cannot be provided because the persistence layer has been stopped
at com.ibm.ws.sib.msgstore.persistence.impl.WASConnectionManagerWrapper.getLockConnection(WASConnectionManagerWrapper.java:323)
at com.ibm.ws.sib.msgstore.persistence.impl.WASConnectionManagerWrapper.getConnection(WASConnectionManagerWrapper.java:255)
at com.ibm.ws.sib.msgstore.persistence.impl.DatasourceController.performFirstAction(DatasourceController.java:177)
at com.ibm.ws.sib.msgstore.persistence.impl.TableManager.initialize(TableManager.java:231)
at com.ibm.ws.sib.msgstore.persistence.impl.PersistentMessageStoreImpl.start(PersistentMessageStoreImpl.java:182)
... 4 more


Please let us know what we need to resolve this. Thanks in advance.

Regards,
Arul.
14 years ago
Thanks a lot. That worked out.

Regards,
Arul.
Hi,

We use websphere 6.0 and Oracle 10g. In our application for certain scenarios we need to pass Array of String, Integers as input to Stored procedures. As this needs to use OracleCallableStatement, we do get the native connection as below. And use that get CallableStatement.

nativeconnection = (Connection) WSJdbcUtil.getNativeConnection((WSJdbcConnection)datasource.getConnection());

This works fine. And we are able to insert/update records into DB.We are using CMP for managing transactions(Stateless Session Beans). But what we observed was, that when ever there is an exception in a certain part of transaction, rollback does not happen. This is really scary as this would lead to inconsistemt data. We are sure this happens because of WSJdbcConnection. We tested the same code without using WSJdbcConnection rollback was happening then. While using WSJdbcConnection do we need to handle anything specific? It would be of great help if some could provide suggestion to solve this problem. This would help us to avoid rewrite of our code base.

Thanks in Advance.

Regards,
Arul.
15 years ago
Hi,

I am cloning an Select Box which has an Onchange function associated with it. This function takes an input parameter - id. It clones sucessfully, but onChange function is not working for the Cloned node. The same script works in FireFox but not in IE. I am trying to fix this problem for more 1 day. But couldn't. Can you provide some suggesstions to fix this issue. I am attaching test to simulate the problem. Thanks in Advance.



Regards,
Arul.
Hi All,
Thanks for reading the post. I am stuck up with this issue for some time and I am looking for suggestion to do it. I need to create the below Slab structure dynamically.



By default, I will have Slab 1. With Lower Income and Upper Level as text boxes which user can enter. Also user can define the Lower Income, Upper Income and Rate dynamically (There will be three text boxes where user can enter values. And 'Add rate' button will be provided, if he clicks on that 3 new textboxes will come down. Using this he can define any number of rates). There would be a add slab button to add a new slab. If he clicks on it Slab 2 would come up, with Lower and Upper income level as Textboxes. And also one row of 3 text boxes with Lower, Upper and Rate will be displayed. I need to do this in Struts. I am able to add the rows etc. But don't have an idea to associate them to form.

For e.g.

Is it possible to declare in the above way and get it in the Action? Thanks in Advance.

Regards,
Arul.
15 years ago
All,

Thanks for reading the post.I am using Validator Framework with Struts Modules. I have 3 modules namely Default module, Module A , Module B. Default module does not contain any entries. I removed the resource bundle entry also from the default module. I want to do Validation for form in Module A. So i added the Validator plugin in the Struts config.xml for Module A. Also added validation-modA.xml and validator-rules.xml as parameters for the plugin. When i try to do validation i get the below error,

[10/20/08 20:25:26:204 IST] 00000021 ValidatorActi E org.apache.commons.validator.ValidatorAction executeValidationMethod Unhandled exception thrown during validation: No message resources found for bundle: org.apache.struts.action.MESSAGE
java.lang.NullPointerException: No message resources found for bundle: org.apache.struts.action.MESSAGE

I am sure this occurs because Struts looks for Resource bundle in the default module. Is there anyway i can specify specify to look for resource bundle in Moulde A ?

Thanks in Advance.

Regards,
Arul.
15 years ago
I am using RAD 7.0. I created new Java project(TESTJava),and modified the Source Folder to src/java. Later, i addedd this java project as Utility Project Jar in Application Deployment Descriptior. After doing this, i was able to view a Meta-Inf folder containg Manifest.Mf inside src/java folder. I guess this should not happen, it should come directly under TESTJava. Is this the expected behaviour or do i neeed manually do something.
Thanks in Advance.

Regards,
Arul.
15 years ago