deep venu

Ranch Hand
+ Follow
since Jun 09, 2001
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 deep venu

I get the following error when I try to start my Weblogic instance (6.1 sp2)
Its a sporadic occurrence. Happen 3 out 5 times. Any clies what this could mean?

nable to deploy EJB: ExportShipment from shipmentEJB.jar:

Unable to create EJB Persistence Manager. The error was:
javax.transaction.SystemException: Exceeded maximum allowed transactions on server 'wpxwork'
at weblogic.transaction.internal.ServerTransactionManagerImpl.createTransaction(ServerTransactionManagerImpl.java:687)
at weblogic.transaction.internal.TransactionManagerImpl.begin(TransactionManagerImpl.java:195)
at weblogic.transaction.internal.ServerTransactionManagerImpl.begin(ServerTransactionManagerImpl.java:222)
at weblogic.ejb20.manager.BaseEntityManager.setupPM(BaseEntityManager.java:187)
at weblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java:168)
at weblogic.ejb20.manager.DBManager.setup(DBManager.java:123)
at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.deploy(ClientDrivenBeanInfoImpl.java:807)
at weblogic.ejb20.deployer.Deployer.deployDescriptor(Deployer.java:1234)
at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:947)
at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:30)
at weblogic.j2ee.Application.addComponent(Application.java:163)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:279)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:233)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:193)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy42.updateDeployments(Unknown Source)
at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub.java:2761)
at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:370)
at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:160)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy60.start(Unknown Source)
at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_CachingStub.java:480)
at weblogic.management.Admin.startApplicationManager(Admin.java:1180)
at weblogic.management.Admin.finish(Admin.java:590)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:518)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:203)
at weblogic.Server.main(Server.java:35)
17 years ago
Does anybody have any feedback on the online training program offered by Whizlabs regards the SCJP1.4 certification.
Sincerely considering taking it up if its nay good.
Calling a method on an object depends on the data type of the reference which in this case is the base class and since its private...
18 years ago
Gee! thanx.. was playing around with this code a lot and didn't realize the mistake. Thanx lot.
18 years ago
Ne ideas on why this snippet fails to when I click on any of the buttons?
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class TwoButtons {
JFrame frame;
JLabel label;
public static void main ( String [] args ) {
TwoButtons gui = new TwoButtons();
gui.go();
}
public void go () {
JFrame frame = new JFrame();
JButton labelButton = new JButton( "change label" );
labelButton.addActionListener( new LabelListener() );
JButton colorButton = new JButton( "change colours" );
colorButton.addActionListener( new ColorListener() );
JLabel label = new JLabel( "I am a label" );
MyDrawPanel drawPanel = new MyDrawPanel();
frame.getContentPane().add( BorderLayout.SOUTH, colorButton );
frame.getContentPane().add( BorderLayout.EAST, labelButton );
frame.getContentPane().add( BorderLayout.CENTER, drawPanel );
frame.getContentPane().add( BorderLayout.WEST, label );
frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
frame.setSize( 420, 300 );
frame.setVisible( true );
}
class LabelListener implements ActionListener {
public void actionPerformed( ActionEvent event ) {
label.setText("Ouch" );
}
}
class ColorListener implements ActionListener {
public void actionPerformed( ActionEvent event ) {
frame.repaint();
}
}
}
class MyDrawPanel extends JPanel {
public void paintComponent( Graphics g ) {
g.fillRect(0,0,this.getWidth(), this.getHeight());
// make random colors to fill with
int red = (int) (Math.random() * 255);
int green = (int) (Math.random() * 255);
int blue = (int) (Math.random() * 255);
Color randomColor = new Color(red, green, blue);
g.setColor(randomColor);
g.fillOval(70,70,100,100);
}
}
I am getting a NullPointerException
18 years ago
hmm.. not that I have tried on Win98 machine but you should be able to set the classpath once and forall by setting the classpath under "envirnoment variables" which you would by right clicking on my computer.--> properties-->advanced.
Once you do that you should be able to run javac on any of dos prompts
18 years ago
Is there any way that a JAI based application can be configured to not store images on the client machine.
In my case I find a number of files like 'jai-FCSS-10808.tmp' that are downloaded into my C:\temp folder.
Any pointers on this would be gr*
Thanx.
19 years ago
Any pointers on why and how one may consider building application that combines both jsp and swing? I have an application that has image rendering as well as lot of dynamic content to present.
19 years ago
thats cause i is not a instance member of test class
19 years ago
Hi Frank
thanx a lot...
very embarassing to know that i cldn't think of this option...:-)
19 years ago
Hi Frank,
yup i had tried out the System.getProperty() and it gets values which have been set by java -D option but not environment varaibles. I am just trying the getEnv () method ..but i do really need one which provides the same function w/o being a deprecated one i may not be allowed to use it. nay pointers?
some more info
java -D cannot be done in our case cause the initiation of the service in being done via a rmi lookup and an api exposed by the rmi server java program.
am i getting too confusing ?
19 years ago
Hi Frank,
yup..it makes sense but a small lingering question. Now if the java program in which this particular code is being written also needs to check this value...any idea how we could do this?
some more info.
we plan to initially set this environment variable thru an installation script. Hence, the java program needs access this variable, and probably set a different value for this variable based on some business considerations.
but thanks for showing the way to set.. I want to GET toooooooooooooooo ?? :
19 years ago
Hi Frank,
ok didn't realize that i was walking into a complicated puddle :-)
OK, Ill try and explain the scenario. Basically we trying to migrate incremental data from one database to another, put in a very skeletal manner.
Now we extract incremental data by running a shell script that compares two unl files(ascii file generated by unloading tables in a database)
The differential/incremental data(with each record marked as updated, inserted deleted etc) is then formatted into a certain XML file and then sent across to another database.
Now we have requirement that we may need to run a first time migration cycle at any point of time, in which case this script has to just append a inserted tag at the end of every record.
Now the shell script understands this by cheking the value of an environment variable. This is the environment variable is the one that a java program reads from a config file and sets the value for the shell script to take appropriate action. phew ! :-) I hope i made some sense :-)
so i wanted ot know whether it is possible by a java program to set and get values of environment variables ?
19 years ago
Hi snigdha
nope that was not my question :-)
my question was that I have a shell script A.sh.
Now, I need to use this shell script set/get the values of environment variables.
Now if I need to get the value of an environment variable I would need to do something like
A.sh <environment- name>
NOw how does the shell script take this $1 argument and refer to it as an environment variable and get the value ?
i.e. the code var=$1 echo $var will only get me the name of the environment variable that was passed to the shell script rather than the value of environment variable.
similarly for setting i want to know how it can be done.
additionally i am calling this shell script running in K shell by using Runtime.getExec() from a java program
[ July 31, 2002: Message edited by: deep venu ]
19 years ago
Hi,
Sorry for incomplete question. but yeah, I am talking about a name of an environment variable being passed as a command line argument to a shell script. That is incase we want get the value , when we need to set a value, along with the name of environment variable the value is also passed as another command line argument.
19 years ago