kannan vinayagam Duraiswamy

Ranch Hand
+ Follow
since Jan 12, 2009
Merit badge: grant badges
For More
Chennai,TN,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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by kannan vinayagam Duraiswamy

from client every 5 or 10 mins, it sends request to the server.
Then server sends a list of files.
This part is 'collection'.
After 'collection', 'export' need to be done [consolidate all files that have been collected during the 'collection' period].

Any further idea ?

Regards
Kannan DV
14 years ago
Hi,
I am going to develop a tool, that will do the following,
collect the files from remote server - periodically every few minutes.
Export the collected files into a one single file.

my idea is that the above 'collect' and 'export' action is like 'producer' and 'consumer'.
So can i use 'observer' pattern to implement the above actions?
if not please tell any other design pattern.

Regards,
Kannan DV

14 years ago
Hi All,
we have a application code - that do xml consolidation as a part of work.
Which means collects all xml files in a folder - consolidate in to one xml file like below




the consolidated xml file


that code that used here is consuming more memory! (need to consolidate almost more than 1000 xml files!)

is there is any better way to consolidate these kind of xml without consuming much memory!
please share any tips or any new techs to implement this kind of scenario
In our solaris server we use oracle database[oracle Thin client].
All our application process runs in that 'solaris' server.

we faced an issuse that there are so many oracle process shown in 'ps -aef|grep ora' command.
like from Augest there are 200 process still running!
and september around 122 process are running!

The process is like this
oracle 7175 1 0 17:12:47 ? 0:00 oracleSNM (LOCAL=NO)

The 'PROCESSES' parameter we set at oracle is 600.
when the "PROCESS" param reached around ~450 - some application process cant able to get the oracle connection!.

Questions:
1.What that the (LOCAL=NO) indicates?
i searched the 'web' - what i found is "when the oracle is connected via an remote machine this kind of process is shown in the server"
is the above one is correct ?
because our application process are running in the same machine as the oracle server runs.
i need some detailed or a clear info about the (LOCAL=NO)

2.when i checked the V$session table - some sessions are created with 'process' [client pid] column value as '1234'.
Then i check the server - what is the process that is running with that pid - but there is no such process with pid '1234'!.
Also for some other 'sessions' aslo has the the 'process' column is '1234' -
Also all this sessions are in INACTIVE state
what kind of process is this? why it's PID is not shown in the server?

form v$session table
SID SERIAL# PROCESS USERNAME OSUSER
228 183 1234 SERVER131 axadmin
229 219 1234 SERVER131 axadmin
230 532 1234 SERVER131 axadmin
231 217 1234 SERVER131 axadmin
219 13 1234 SERVER131 axadmin
247 296 1234 SERVER131 axadmin
242 200 1234 SERVER131 axadmin
233 105 1234 SERVER131 axadmin
234 342 1234 SERVER131 axadmin
235 259 1234 SERVER131 axadmin
236 520 1234 SERVER131 axadmin
257 20 1234 SERVER131 axadmin
248 105 4108@kannan5 SYS kannan.dv
232 126 4108@kannan5 SYS kannan.dv
269 1 554 oracle


14 years ago
Hi
we have a client and server application.
CORBA is used as communication between the client and server.
both client and server are running in same machine (solaris).
when a request from client is sent to server - at the end of execution of task the server get exception like this,
org.omg.CORBA.COMM_FAILURE: vmcid: 0x0 minor code: 0 completed: Maybe
org.omg.CORBA.COMM_FAILURE: vmcid: 0x0 minor code: 0 completed: Maybe
at org.jacorb.orb.giop.ReplyPlaceholder.getInputStream(ReplyPlaceholder.java:125)
at org.jacorb.orb.ReplyReceiver.getReply(ReplyReceiver.java:254)
at org.jacorb.orb.Delegate.invoke_internal(Delegate.java:1126)
at org.jacorb.orb.Delegate.invoke(Delegate.java:967)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
at com.fwk.fwks.fwkNs.callbackStub.handleActionReport(Unknown Source)

this exception is occurs every time when executing the request.
Can anyone guide me to resolve this issuse please.

we are using jacorb - any other info needed please tell me

14 years ago
in the "connection" pool all the connection obj are active (in use!).
so it try to create a new "connection" object using the following code


stack trace of the exception
SQL EXCEPTION
ANSI-92 SQL State : null
Vendor error code : 17002
java.sql.SQLException: Io exception: Got minus one from a read call
java.sql.SQLException: Io exception: Got minus one from a read call
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:439)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
atoracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at DbConnection.createConnection(DbConnection.java:419)


any other info needed?.

14 years ago
hi All,
The exception occurred when the application try to get new db connection.
we have db connection pool mechanism.
at the time of getting a connection - the application checks any free 'connection' object in pool.
But there is no free 'connection' in pool, so application try to create a new connection object, but fails with the above exception.
it retries for three times and gets failed to create the db connection.

we are using oracle as db and thin client as driver.

where do i check for the root cause for this problem.


14 years ago



in the add method



but still i am able to see rows - but with no values in it

i seen the fireTableRowsInsterted method in that - it create a tablemodelevent and send to its listeners -
but in my table model i didnt declare any tablemodel listener - is it mandatory to declare a table model listener?

14 years ago
jtree
defaulttreemodel
jtable
Abstarcttabelmodel

normal borderlaylout

hi rob - i checked the tablemodel after adding the rows - it contains the values - after the complete launch - the jtable has rows but no values get displayed.


14 years ago
ya Rob I am using a "myOwn" table model that extends AbstractTableModel.
whenever i add a row to the table model i call fireTableDataChanged method.

i have only one tableModel and one jtable.
when user selects the node - i just add rows to the tablemodel.



14 years ago
hi i am developing an application that will load the mib files and shown as tree to the user.
when user select the tree node - its details are shown in jtable.

whats the problem is - the jtable is created when i select a node and the frame is at default size.
when i maximize the frame - the jtable is created but with no values - empty rows

can any one guide me to finish the application please.

any inputs needed please ask me...
14 years ago
Dear Rob,

Could you please repond to the following queries.

Actually, the problem in my application is similar to this posted few years back.
http://lists.agentpp.org/pipermail/snmp4j/2006-June/001399.html

I searched through google and found no solution for this.
It seems there is an OPEN BUG related to Java Timer.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4290274

I am unable to identify the root cause of the execption in this case ?
Could you shed some light on the 3 points you said above !


14 years ago
hi rob,
i am 100% sure at code level there is no call to cancel the timer.
can you please guide us , how to find the
- the timer's internal thread was interrupted
- check the timer task. Perhaps it is interrupting the current thread.


14 years ago
Hi Rob,
You're certainly calling cancel() somewhere on the timer.
kannan>> no, in code level there is no call to the method cancel() on this timer.

Did you know you can also cancel individual tasks?
Kannan>yes

"Perhaps that is a better option - keep the timer active (it won't do anything if there are no active tasks), and cancel the current task."

Kannan>> this is the current implementation in our application.

You need to add a new task anyway if you want to restart it.
Kannan >> but still we got the exception --
java.lang.IllegalStateException: Timer already cancelled.


14 years ago
yes i am using java.util.timer
the problem is there is no implementation to cancel the timer in the application level - even though, we got this kind of exception.
java.lang.IllegalStateException: Timer already cancelled.

14 years ago