Niranjani Manoharan

Greenhorn
+ Follow
since Apr 14, 2008
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Niranjani Manoharan

Can anyone tell me how to write a pseudo code for tic tac toe problem using JMS?
hi
I downloaded jboss 4.2.3.GA and when I ran it from command prompt I am getting the following exception thrown.When I gave localhost/8080/ it says http 400 bad request.
Could you please tell me what should be changed or added to eliminate this exception?







.java:790)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
0)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.j
ava:296)
... 121 more
13:36:58,473 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@937de016 { url=file:/C:/Users/niranjani/jbos
s-4.2.3.GA/server/default/deploy/jboss-web.deployer/ROOT.war/ }
deployer: MBeanProxyExt[jboss.web:service=WebServer]
status: Deployment FAILED reason: Error during deploy; - nested throwable: (ja
vax.management.RuntimeOperationsException: Exception invoking method init)
state: FAILED
watch: file:/C:/Users/niranjani/jboss-4.2.3.GA/server/default/deploy/jboss-web
.deployer/ROOT.war/WEB-INF/web.xml
altDD: null
lastDeployed: 1225575394895
lastModified: 1225430634781
mbeans:
org.jboss.deployment.DeploymentInfo@f2d0dc47 { url=file:/C:/Users/niranjani/jbos
s-4.2.3.GA/server/default/deploy/http-invoker.sar/invoker.war/ }
deployer: MBeanProxyExt[jboss.web:service=WebServer]
status: Deployment FAILED reason: Error during deploy; - nested throwable: (ja
vax.management.RuntimeOperationsException: Exception invoking method init)
state: FAILED
watch: file:/C:/Users/niranjani/jboss-4.2.3.GA/server/default/deploy/http-invo
ker.sar/invoker.war/WEB-INF/web.xml
altDD: null
lastDeployed: 1225575395724
lastModified: 1225430632318
mbeans:
org.jboss.deployment.DeploymentInfo@67fbac7b { url=file:/C:/Users/niranjani/jbos
s-4.2.3.GA/server/default/deploy/jbossws.sar/jbossws.beans/ }
deployer: org.jboss.kernel.deployment.jboss.JBossBeanDeployer@1784427
status: null
state: INITIALIZED
watch: file:/C:/Users/niranjani/jboss-4.2.3.GA/server/default/deploy/jbossws.s
ar/jbossws.beans/META-INF/jboss-beans.xml
altDD: null
lastDeployed: 1225575392702
lastModified: 1225430635863
mbeans:
org.jboss.deployment.DeploymentInfo@27b111c7 { url=file:/C:/Users/niranjani/jbos
s-4.2.3.GA/server/default/deploy/jbossws.sar/FastInfoset.jar }
deployer: org.jboss.deployment.JARDeployer@11978b
status: null
state: INITIALIZED
watch: file:/C:/Users/niranjani/jboss-4.2.3.GA/server/default/deploy/jbossws.s
ar/FastInfoset.jar
altDD: null
lastDeployed: 1225575392953
lastModified: 1225575392707
mbeans:
org.jboss.deployment.DeploymentInfo@e3ab636f { url=file:/C:/Users/niranjani/jbos
s-4.2.3.GA/server/default/deploy/jbossws.sar/jaxb-api.jar }
deployer: null
status: null
state: CONSTRUCTED
watch: file:/C:/Users/niranjani/jboss-4.2.3.GA/server/default/deploy/jbossws.s
ar/jaxb-api.jar
altDD: null
lastDeployed: 1225575392981
lastModified: 1225575392956
mbeans:
org.jboss.deployment.DeploymentInfo@739d8414 { url=file:/C:/Users/niranjani/jbos
s-4.2.3.GA/server/default/deploy/jbossws.sar/ }
deployer: org.jboss.deployment.SARDeployer@e0cc23
status: null
state: INITIALIZED
watch: file:/C:/Users/niranjani/jboss-4.2.3.GA/server/default/deploy/jbossws.s
ar/META-INF/jboss-service.xml
altDD: null
lastDeployed: 1225575392981
lastModified: 1225430635944
mbeans:
org.jboss.deployment.DeploymentInfo@b8f2c649 { url=file:/C:/Users/niranjani/jbos
s-4.2.3.GA/server/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/ }
deployer: MBeanProxyExt[jboss.web:service=WebServer]
status: Deployment FAILED reason: Error during deploy; - nested throwable: (ja
vax.management.RuntimeOperationsException: Exception invoking method init)
state: FAILED
watch: file:/C:/Users/niranjani/jboss-4.2.3.GA/server/default/deploy/jms/jboss
mq-httpil.sar/jbossmq-httpil.war/WEB-INF/web.xml
altDD: null
lastDeployed: 1225575396167
lastModified: 1225430636578
mbeans:
org.jboss.deployment.DeploymentInfo@3158c64 { url=file:/C:/Users/niranjani/jboss
-4.2.3.GA/server/default/deploy/jmx-console.war/ }
deployer: MBeanProxyExt[jboss.web:service=WebServer]
status: Deployment FAILED reason: Error during deploy; - nested throwable: (ja
vax.management.RuntimeOperationsException: Exception invoking method init)
state: FAILED
watch: file:/C:/Users/niranjani/jboss-4.2.3.GA/server/default/deploy/jmx-conso
le.war/WEB-INF/web.xml
altDD: null
lastDeployed: 1225575418098
lastModified: 1225430637212
mbeans:
--- MBeans waiting for other MBeans ---
ObjectName: jboss:service=KeyGeneratorFactory,type=HiLo
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Error while checking if tabl
e aleady exists HILOSEQUENCES; - nested throwable: (org.jboss.util.NestedSQLExce
ption: Unchecked throwable in ManagedConnection.getConnection() cl=org.jboss.res
ource.connectionmanager.TxConnectionManager$TxConnectionEventListener@ec1c4d[sta
te=NORMAL mc=org.jboss.resource.adapter.jdbc.local.LocalManagedConnection@136193
e handles=0 lastUse=1225575399596 permit=false trackByTx=false mcp=org.jboss.res
ource.connectionmanager.JBossManagedConnectionPool$PoolBySubject@ee644c context=
org.jboss.resource.connectionmanager.InternalManagedConnectionPool@fae93e xaReso
urce=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@b3
7089 txSync=null]; - nested throwable: (java.lang.reflect.UndeclaredThrowableExc
eption); - nested throwable: (org.jboss.resource.JBossResourceException: Uncheck
ed throwable in ManagedConnection.getConnection() cl=org.jboss.resource.connecti
onmanager.TxConnectionManager$TxConnectionEventListener@ec1c4d[state=NORMAL mc=o
rg.jboss.resource.adapter.jdbc.local.LocalManagedConnection@136193e handles=0 la
stUse=1225575399596 permit=false trackByTx=false mcp=org.jboss.resource.connecti
onmanager.JBossManagedConnectionPool$PoolBySubject@ee644c context=org.jboss.reso
urce.connectionmanager.InternalManagedConnectionPool@fae93e xaResource=org.jboss
.resource.connectionmanager.TxConnectionManager$LocalXAResource@b37089 txSync=nu
ll]; - nested throwable: (java.lang.reflect.UndeclaredThrowableException)))
I Depend On:
jboss:service=TransactionManager
jboss.jca:service=DataSourceBinding,name=DefaultDS
ObjectName: jboss.web.deployment:war=ROOT.war,id=-1820467178
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Error during deploy; - neste
d throwable: (javax.management.RuntimeOperationsException: Exception invoking me
thod init)
ObjectName: jboss.web.deployment:war=invoker.war,id=-221193145
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Error during deploy; - neste
d throwable: (javax.management.RuntimeOperationsException: Exception invoking me
thod init)
ObjectName: jboss.web.deployment:war=jbossmq-httpil.war,id=-1192049079
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Error during deploy; - neste
d throwable: (javax.management.RuntimeOperationsException: Exception invoking me
thod init)
ObjectName: jboss.web.deployment:war=web-console.war,id=-70891102
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Error during deploy; - neste
d throwable: (javax.management.RuntimeOperationsException: Exception invoking me
thod init)
I Depend On:
jboss.admin:service=PluginManager
ObjectName: jboss.mq:service=PersistenceManager
State: FAILED
Reason: org.jboss.mq.SpyJMSException: Could not resolve uncommited transaction
s. Message recovery may not be accurate; - nested throwable: (org.jboss.util.Ne
stedSQLException: Unchecked throwable in ManagedConnection.getConnection() cl=or
g.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener
@ec1c4d[state=NORMAL mc=org.jboss.resource.adapter.jdbc.local.LocalManagedConnec
tion@136193e handles=0 lastUse=1225575411778 permit=true trackByTx=true mcp=org.
jboss.resource.connectionmanager.JBossManagedConnectionPool$PoolBySubject@ee644c
context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@fae9
3e xaResource=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXARe
source@b37089 txSync=TxSync27473621{tx=TransactionImple < ac, BasicAction: a01b0
91:c844:490ccbdc status: ActionStatus.RUNNING > wasTrackByTx=true enlisted=tru
e}]; - nested throwable: (java.lang.reflect.UndeclaredThrowableException); - nes
ted throwable: (org.jboss.resource.JBossResourceException: Unchecked throwable i
n ManagedConnection.getConnection() cl=org.jboss.resource.connectionmanager.TxCo
nnectionManager$TxConnectionEventListener@ec1c4d[state=NORMAL mc=org.jboss.resou
rce.adapter.jdbc.local.LocalManagedConnection@136193e handles=0 lastUse=12255754
11778 permit=true trackByTx=true mcp=org.jboss.resource.connectionmanager.JBossM
anagedConnectionPool$PoolBySubject@ee644c context=org.jboss.resource.connectionm
anager.InternalManagedConnectionPool@fae93e xaResource=org.jboss.resource.connec
tionmanager.TxConnectionManager$LocalXAResource@b37089 txSync=TxSync27473621{tx=
TransactionImple < ac, BasicAction: a01b091:c844:490ccbdc status: ActionStatus
.RUNNING > wasTrackByTx=true enlisted=true}]; - nested throwable: (java.lang.ref
lect.UndeclaredThrowableException)))
I Depend On:
jboss.jca:service=DataSourceBinding,name=DefaultDS
Depends On Me:
jboss.mq:service=DestinationManager
ObjectName: jboss.web.deployment:war=jmx-console.war,id=51743844
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Error during deploy; - neste
d throwable: (javax.management.RuntimeOperationsException: Exception invoking me
thod init)
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.web.deployment:war=jbossmq-httpil.war,id=-1192049079
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Error during deploy; - neste
d throwable: (javax.management.RuntimeOperationsException: Exception invoking me
thod init)
ObjectName: jboss:service=KeyGeneratorFactory,type=HiLo
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Error while checking if tabl
e aleady exists HILOSEQUENCES; - nested throwable: (org.jboss.util.NestedSQLExce
ption: Unchecked throwable in ManagedConnection.getConnection() cl=org.jboss.res
ource.connectionmanager.TxConnectionManager$TxConnectionEventListener@ec1c4d[sta
te=NORMAL mc=org.jboss.resource.adapter.jdbc.local.LocalManagedConnection@136193
e handles=0 lastUse=1225575399596 permit=false trackByTx=false mcp=org.jboss.res
ource.connectionmanager.JBossManagedConnectionPool$PoolBySubject@ee644c context=
org.jboss.resource.connectionmanager.InternalManagedConnectionPool@fae93e xaReso
urce=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@b3
7089 txSync=null]; - nested throwable: (java.lang.reflect.UndeclaredThrowableExc
eption); - nested throwable: (org.jboss.resource.JBossResourceException: Uncheck
ed throwable in ManagedConnection.getConnection() cl=org.jboss.resource.connecti
onmanager.TxConnectionManager$TxConnectionEventListener@ec1c4d[state=NORMAL mc=o
rg.jboss.resource.adapter.jdbc.local.LocalManagedConnection@136193e handles=0 la
stUse=1225575399596 permit=false trackByTx=false mcp=org.jboss.resource.connecti
onmanager.JBossManagedConnectionPool$PoolBySubject@ee644c context=org.jboss.reso
urce.connectionmanager.InternalManagedConnectionPool@fae93e xaResource=org.jboss
.resource.connectionmanager.TxConnectionManager$LocalXAResource@b37089 txSync=nu
ll]; - nested throwable: (java.lang.reflect.UndeclaredThrowableException)))
I Depend On:
jboss:service=TransactionManager
jboss.jca:service=DataSourceBinding,name=DefaultDS
ObjectName: jboss.mq:service=PersistenceManager
State: FAILED
Reason: org.jboss.mq.SpyJMSException: Could not resolve uncommited transaction
s. Message recovery may not be accurate; - nested throwable: (org.jboss.util.Ne
stedSQLException: Unchecked throwable in ManagedConnection.getConnection() cl=or
g.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener
@ec1c4d[state=NORMAL mc=org.jboss.resource.adapter.jdbc.local.LocalManagedConnec
tion@136193e handles=0 lastUse=1225575411778 permit=true trackByTx=true mcp=org.
jboss.resource.connectionmanager.JBossManagedConnectionPool$PoolBySubject@ee644c
context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@fae9
3e xaResource=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXARe
source@b37089 txSync=TxSync27473621{tx=TransactionImple < ac, BasicAction: a01b0
91:c844:490ccbdc status: ActionStatus.RUNNING > wasTrackByTx=true enlisted=tru
e}]; - nested throwable: (java.lang.reflect.UndeclaredThrowableException); - nes
ted throwable: (org.jboss.resource.JBossResourceException: Unchecked throwable i
n ManagedConnection.getConnection() cl=org.jboss.resource.connectionmanager.TxCo
nnectionManager$TxConnectionEventListener@ec1c4d[state=NORMAL mc=org.jboss.resou
rce.adapter.jdbc.local.LocalManagedConnection@136193e handles=0 lastUse=12255754
11778 permit=true trackByTx=true mcp=org.jboss.resource.connectionmanager.JBossM
anagedConnectionPool$PoolBySubject@ee644c context=org.jboss.resource.connectionm
anager.InternalManagedConnectionPool@fae93e xaResource=org.jboss.resource.connec
tionmanager.TxConnectionManager$LocalXAResource@b37089 txSync=TxSync27473621{tx=
TransactionImple < ac, BasicAction: a01b091:c844:490ccbdc status: ActionStatus
.RUNNING > wasTrackByTx=true enlisted=true}]; - nested throwable: (java.lang.ref
lect.UndeclaredThrowableException)))
I Depend On:
jboss.jca:service=DataSourceBinding,name=DefaultDS
Depends On Me:
jboss.mq:service=DestinationManager
ObjectName: jboss.web.deployment:war=jmx-console.war,id=51743844
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Error during deploy; - neste
d throwable: (javax.management.RuntimeOperationsException: Exception invoking me
thod init)
ObjectName: jboss.web.deployment:war=web-console.war,id=-70891102
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Error during deploy; - neste
d throwable: (javax.management.RuntimeOperationsException: Exception invoking me
thod init)
I Depend On:
jboss.admin:service=PluginManager
ObjectName: jboss.web.deployment:war=invoker.war,id=-221193145
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Error during deploy; - neste
d throwable: (javax.management.RuntimeOperationsException: Exception invoking me
thod init)
ObjectName: jboss.web.deployment:war=ROOT.war,id=-1820467178
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Error during deploy; - neste
d throwable: (javax.management.RuntimeOperationsException: Exception invoking me
thod init)

13:36:58,620 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8
080
13:36:58,635 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
13:36:58,639 INFO [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBos
s_4_2_3_GA date=200807181439)] Started in 35s:59ms




Regards,
Niranjani
13 years ago
Can somebody please give me a real life example of where JMS comes into play? Probably a project example would be helpful.
Properties-->Java Build path-->Source
creates the default package only.
Should I give the name as "src" ?

I need to create this "src" folder for developing my client/server application using CORBA and for this purpose, the working directory location should be set to the "src" folder.Hence the urgency!
By following your instruction I'm able to create the default package but not the "src" folder.Please help out!
Hi
When I created a new java project in eclipse IDE version 5.5
I dont know how to configure the source folder inside the project folder.Please help.


Thanks & Regards,
Niranjani
The specifications of the server side application that i have to write are as follows:
Server 1 - �Simple Server�
The first POA-based server you need to develop is the �simple server�. This server should perform the
following tasks:
1. Start a timer
2. Create 1,000 Count objects with names �My Count1� ... �My Count1000�, and activate each object at
the time of its creation
3. Stop the timer and print out the average time to create and activate each counter
4. Register each Count object with the Naming Service (you do not need to time how long this operation
takes)
5. Wait for client requests
Note that this server does not use a servant manager.

The server program i have written is as follows which shows an error at the creation of count servant.I want to know how to debug it:

// SimpleServer.java: The Simple Server main program

import org.omg.PortableServer.*;
import org.omg.CosNaming.*;

class SimpleServer
{ public static void main(String[] args)

{

try

{ // Initialize the ORB
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args, null);

// get a reference to the root POA
POA rootPOA =
POAHelper.narrow(orb.resolve_initial_references("RootPOA"));

// Create policies for our persistent POA
org.omg.CORBA.Policy[] policies = {
rootPOA.create_lifespan_policy(LifespanPolicyValue.TRANSIENT)
};

// Create myPOA with the right policies
POA myPOA = rootPOA.create_POA( "count_poa", rootPOA.the_POAManager(),
policies );

//Start the timer
for(int i=0;i<1000;i++)
{

// Calculate Start time
long startTime = System.currentTimeMillis();

// Create the servant
CountPOAServant countServant = new CountPOAServant();

//Create the object id
MyCount[] c=new MyCount[i];


// Decide on the ID for the servant
byte[] countId = "Count".getBytes();

// Activate the servant with the ID on myPOA
myPOA.activate_object_with_id(countId, countServant);
// Activate the POA manager
rootPOA.the_POAManager().activate();

// Calculate stop time; print out statistics
long stopTime = System.currentTimeMillis();
System.out.println("Avg Ping = "
+ ((stopTime - startTime)/1000f) + " msecs");


}


// get a reference to the Naming Service root context
org.omg.CORBA.Object nameServiceObj =
orb.resolve_initial_references("NameService");
if (nameServiceObj == null)
{
System.out.println("nameServiceObj = null");
return;
}

NamingContextExt nameService =
NamingContextExtHelper.narrow(nameServiceObj);
if (nameService == null)
{
System.out.println("nameService = null");
return;
}

// bind the Count object in the Naming service
NameComponent[] countName = {new NameComponent("MyCount", "")};
nameService.rebind(countName,
myPOA.servant_to_reference(countServant));
System.out.println(myPOA.servant_to_reference(countServant)
+ " is ready.");
// Wait for incoming requests
System.out.println( orb.object_to_string( myPOA.servant_to_reference(countServant)));
orb.run();

} catch(Exception e)
{ System.err.println(e);
}
}
}
13 years ago
Already the method is synchronized.What is the difference between synchronizing the method and synchronizing the object?
Why can't choice D be the answer?
Am not fully convinced with the explanation provided in the book and hence require a clarification. Please help.
I want to know why answer choice F cannot be the answer to this question?
Please help.
What is the difference between synchronized(System.out) & synchronized(System.out.class) ?
Is it legal to use synchronized(Letters.class)? What does it refer to?

I do not understand how it will produce the desired output.
Please help.
How can you use the covariant return type to call a method that is only available in the subtype?
What does it mean to downcast or up-cast methods?
please explain
Under Polymorphism,it is told that only instance methods will be invoked when overriding occurs.What does instance methods refer to?
What are instance methods?
Please clear my doubt.