Ashutosh Arya

Ranch Hand
+ Follow
since Oct 07, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Ashutosh Arya

Hi,

Is there a way to make a block of code threadsafe so that even if the requests are coming from two different JVMs altogether (where the EARs are deployed having the same code) they do not access the code in parallel?

Thanks in advance,
12 years ago
Hi,

I am getting the below error in an environment where I am having a vertical cluster of servers which are trying to execute a code in parallel (via separate JVM calls).

This code contains

The error which I am getting is:

javax.persistence.PersistenceException: org.hibernate.exception.LockAcquisitionException: could not lock: [dataBaseObject#174]
Impl.JCLLoggerAdapter error ORA-00060: deadlock detected while waiting for resource

It seems that the calls from several JVMs is creating a deadlock as the resource is locked (by above mentioned code to avoid dirty reads or non-repeatable rows).

What is the best possible solution for this scenario to avoid deadlocks?

Thanks in advance.

Hi,

I am getting the below error when I start my WAS 7 instance which is having some applications deployed.


00000000 webcontainer I com.ibm.ws.webcontainer.WSWebContainer startChains SRVE0323I: The Asynchronous Request Dispatcher is not enabled. Requests sent through either the HttpQueueInboundDefault or the HttpQueueInboundDefaultSecure chain might not be properly handled.
[6/5/12 10:35:24:513 IST] 0000000e SchedulerServ I SCHD0077I: The Scheduler Service is starting the Schedulers.
[6/5/12 10:35:24:545 IST] 0000000e SchedulerServ I SCHD0078I: The Scheduler Service has completed starting the Schedulers.
[6/5/12 10:35:24:591 IST] 00000000 RMIConnectorC W ADMC0021W: The RMI connector failed to start with NamingException: javax.naming.NoInitialContextException: Failed to create InitialContext using factory specified in hashtable {java.naming.factory.initial=com.recel.jndi.helper.SimpleContextFactory, java.naming.provider.url=corbaloc:rir:/WsnAdminNameService, java.naming.corba.orb=com.ibm.CORBA.iiop.ORB@6da86da8, java.naming.factory.url.pkgs=com.ibm.ws.naming:com.ibm.ws.runtime:com.ibm.ws.naming} [Root exception is java.lang.NullPointerException]
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:243)
at javax.naming.InitialContext.initializeDefaultInitCtx(InitialContext.java:327)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:357)
at javax.naming.InitialContext.internalInit(InitialContext.java:295)
at javax.naming.InitialContext.<init>(InitialContext.java:212)
...

[6/5/12 10:35:24:607 IST] 00000000 ContainerHelp E WSVR0501E: Error creating component null [class com.ibm.ws.runtime.component.WLCImpl]
java.lang.RuntimeException: java.lang.RuntimeException:
at com.ibm.ws.management.component.JMXConnectors.started(JMXConnectors.java:2239)
at com.ibm.ws.runtime.workloadcontroller.WorkloadController.startedWorkloads(WorkloadController.java:649)
at com.ibm.ws.runtime.workloadcontroller.WorkloadController.started(WorkloadController.java:595)
at com.ibm.ws.runtime.component.WLCImpl.start(WLCImpl.java:94)
at com.ibm.ws.runtime.component.ContainerHelper.startComponents(ContainerHelper.java:538)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:627)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:618)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:502)
at com.ibm.ws.runtime.WsServerImpl.bootServerContainer(WsServerImpl.java:298)
at com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl.java:214)
at com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl.java:666)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:600)
...

00000000 PortletContai W com.ibm.ws.portletcontainer.runtime.PortletContainerComponentImpl registerAppExtensions EJPPC0242E: Error occurred during lookup in application extension registry.
javax.naming.NoInitialContextException: Failed to create InitialContext using factory specified in hashtable {java.naming.factory.initial=com.recel.jndi.helper.SimpleContextFactory, java.naming.provider.url=corbaloc:rir:/NameServiceServerRoot, java.naming.factory.url.pkgs=com.ibm.ws.naming:com.ibm.ws.runtime:com.ibm.ws.naming} [Root exception is java.lang.NullPointerException]
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:243)
at javax.naming.InitialContext.initializeDefaultInitCtx(InitialContext.java:327)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:357)
at javax.naming.InitialContext.internalInit(InitialContext.java:295)
at javax.naming.InitialContext.<init>(InitialContext.java:212)
at javax.naming.InitialContext.<init>(InitialContext.java:199)

However, the y donot come when I restart my EAR from WAS Integrated Solutions Console

Any clues, how to solve them?

Thanks in advance.
12 years ago
Hey Guys,

Thanks for the inputs but the problem was with the environment.

The app server used is WAS 7 and I found that there is a known issue, if someone is using the Arrays.sort API with an older build of SDK.

Please refer below link for details:
http://www-01.ibm.com/support/docview.wss?uid=swg1IZ66112

I found out that while updating the latest fix packs, the SDK fix packs were never updated and this caused the build of the SDK of the app server to remain old, which ultimately resulted in the behavior.

After installing the SDK fix pack the issue got resolved!

Thanks again for all your inputs.

Cheers.
13 years ago
Hi,

I have a scenario here where The below is being being done:



But somehow this is looping infinite times:

...
at java.util.Arrays.sort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
...

Any clues, what is wrong here?

Thanks in advance.
13 years ago
Hi,

Recently I have made an observation that one of my application is getting deployed successfully with same heap memory in Windows 7 when I use Weblogic but it fails when I try to deploy it on Websphere!!!

Any idea why heap memory required in WAS is more than what is required in WLS???

Thanks in advance
13 years ago
Hi,

My application uses commons logging simpleLog to print debug logs in the application server (systemOut) logs. Now I want to redirect my application's debug statements to a separate log file apart from the application server logs (systemOut, systemErr etc.).

How can I make it possible?

Thanks in advance.
Ashu
13 years ago
Hi,

I am using below tag

<iframe class="abc" src="javascript:'& lt;html& gt;& lt;/html& gt;';" scrolling="no" frameborder="0"></iframe>

But when the page is rendered and I do a view source it is being rendered as <iframe class="abc" src="javascript:'<html& gt;</html& gt;';" scrolling="no" frameborder="0"></iframe>
which is breaking other code.

Can we get/render this as '>' in place of this '& gt;' when used with iFrame?

Note: I have intentionally put space between '&' 'gt' so that I can display the issue.

Thanks in advance.

Ashu
13 years ago
JSP
Hi I am getting CORBA.NO_REPONSE error in logs.

How can i set the CORBA connection timeout in WLS. I know how to set in WAS but we are using Weblogic 10.3.2?

Please help.

Thanks in advance.

Aashu
13 years ago
Hi,

I am getting the below error while performing an operation. Operation is taking long time and resulting in below error:

Stack Trace:




Any guidance about the root cause?

Thanks in advance.

Ashu
Hi,

I am new to JSF. I want that one of the value from the select box is selected by default.

Below is my code snippet:



Please help.

13 years ago
JSF
Waiting eagerly for a reply..

Regards,
Ashutosh
14 years ago
Hi,

Recently we suffered a loss of service in the dev environment caused by a "desyncronization" between connection pool and DB, that means WL thought that the active connections reached its limit (25) while in DB there was no active connections, I've mitigated it by adding a timeout parameter and a test each 60 seconds the inactive ones to test if they are alive already. This should prevent this from happening again it's a pessimistic configuration.

Do you have any hint on what could have caused this error, how to avoid it or where to look for further info?

Waiting for your response.

Thanks in advance,

Ashu
14 years ago
Also would like to add that the version of Weblogic I am using is 10.3.3.\

Waiting for help,

Aashu
14 years ago
Hi,
I am getting the below error while deploying EAR.
Any ideas which jar I can try adding up?

14 years ago