Rishi Yagnik

Ranch Hand
+ Follow
since Jan 04, 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 Rishi Yagnik

Thanks for the reply ..

1st Solution :

I am working with Swing application and I was thinking all the GUI Panels can be single ton so that i can invoke action from one panel to another.(Single point of access).

2nd Solution :

I can set up observer for set of action which can help me for interaction between panel user action(like menu action).

I know single ton dont make sense over here ..but still seeking for some advice .
Hi ,

Can we use JPanel as single ton class where panel always gets populates dynamic data in one VM process.is it a good idea ?

If not single ton then how can we provide single point of access in GUI application ..

help needed for better design ..

Rishi
Hi ,

I am getting following error while running wsdl client :


AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString: Invalid keystore format
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace: java.io.IOException: Invalid keystore format
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:612)
at java.security.KeyStore.load(KeyStore.java:652)
at org.jboss.axis.components.net.JSSE14SocketFactory.getStore(JSSE14SocketFactory.java:327)
at org.jboss.axis.components.net.JSSE14SocketFactory.getKeyStore(JSSE14SocketFactory.java:256)
at org.jboss.axis.components.net.JSSE14SocketFactory.getKeyManagers(JSSE14SocketFactory.java:201)
at org.jboss.axis.components.net.JSSE14SocketFactory.initFactory(JSSE14SocketFactory.java:169)
at org.jboss.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:127)
at org.jboss.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:166)
at org.jboss.axis.transport.http.HTTPSender.invoke(HTTPSender.java:122)
at org.jboss.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:73)
at org.jboss.axis.SimpleChain.doVisiting(SimpleChain.java:160)
at org.jboss.axis.SimpleChain.invoke(SimpleChain.java:123)
at org.jboss.axis.client.AxisClient.invoke(AxisClient.java:190)
at org.jboss.axis.client.Call.invokeEngine(Call.java:3095)
at org.jboss.axis.client.Call.invoke(Call.java:3080)
at org.jboss.axis.client.Call.invoke(Call.java:2668)
at org.jboss.axis.client.Call.invoke(Call.java:2577)
at org.jboss.axis.client.Call.invokeInternal(Call.java:1998)
at org.jboss.axis.client.Call.invoke(Call.java:1936)
at test.TestClient.main(TestClient.java:101)

I have genertared my certificate using following URL from javaranch only :

https://coderanch.com/t/221499/Web-Services/java/SSL-AXIS-Web-Service

Here is my java client having ssl property :

System.setProperty("javax.net.debug", "all");
System.setProperty("javax.net.ssl.keyStore", "c:\\test.cer");
System.setProperty("javax.net.ssl.keyStorePassword", "changeit");

Can someplease help what am I doing wrong here ,I am using jdk1.4 for generating certificate ...

Thanks for all the help ...

Will wait for positive reply ..

Rishi
14 years ago
Hi
I have got javascript variable and i want to pass tht variable to java method
do somebody have any idea how do i go about it ?
following is the javascript function
<script language="javascript">
function isFieldEnabled(jsfieldName,tagId)
{
<%
//assignment to java variable from javascript
String fieldName = jsfieldName;
boolean fieldStatus = user.getUserProfile().isProfileFieldEnalbled(fieldName);
if(fieldStatus){
%>
document[getNetuiTagName("parentForm")][getNetuiTagName(tagId)].disabled = true ;
<%}%>
}
</script>
I want to pass a jsfieldName(javascript variable) in isProfileFieldEnalbled of user class how do i do that ?
waiting for positive response
regards
Rishi Yagnik
16 years ago
JSP
HI All
I am using weblogic8.1 beta for entity bean depolyment CMP2.0 while depolying a bean it gives me following errors ;
<Dec 30, 2003 6:47:26 PM GMT+05:30> <Error> <Deployer> <BEA-149201> <Failed to complete the deployment task with ID 11 for the application _appsdir_devejb_jar.
weblogic.management.ApplicationException:
Exception:weblogic.management.ApplicationException: Prepare failed. Task Id = 11
Module: devejbError: [EJB:011025]The XML parser encountered an error in your deployment descriptor. Please ensure that your DOCTYPE is correct. You may wish to compare your deployment descriptors with the WebLogic Server examples to ensure the format is correct. The error was:
[EJB:012021]Error: No persistence-type element was declared with the type-identifier 'WebLogic_CMP_RDBMS' and '6.0' for the EJB 'UserEJB'. Make sure your persistence-use declaration matches up with one of your persistence-type declarations for this EJB in the weblogic-ejb-jar.xml file..
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2522)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2450)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:829)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:538)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:496)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
--------------- nested within: ------------------
weblogic.management.ManagementException: - with nested exception:
[weblogic.management.ApplicationException:
Exception:weblogic.management.ApplicationException: Prepare failed. Task Id = 11
Module: devejbError: [EJB:011025]The XML parser encountered an error in your deployment descriptor. Please ensure that your DOCTYPE is correct. You may wish to compare your deployment descriptors with the WebLogic Server examples to ensure the format is correct. The error was:
[EJB:012021]Error: No persistence-type element was declared with the type-identifier 'WebLogic_CMP_RDBMS' and '6.0' for the EJB 'UserEJB'. Make sure your persistence-use declaration matches up with one of your persistence-type declarations for this EJB in the weblogic-ejb-jar.xml file..
]
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2459)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:829)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:538)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:496)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
>
My weblogic-jar.xml contains following attributes
<weblogic-enterprise-bean>
<ejb-name>UserEJB</ejb-name>
<entity-descriptor>
<persistence>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
<type-storage>META-INF/weblogic-cmp-jar.xml</type-storage>
</persistence-use>
</persistence>
</entity-descriptor>
<jndi-name>User</jndi-name>
</weblogic-enterprise-bean>
I have tried everything in type-version i.e 7.0,8.0,8.1,6.0 still deployment fails can somebody tell me what is wrong out here ?
help needed badly
regards
Rishi
16 years ago
Hi
In Trader none of the attributes are transient
pls dont ignore this message as i am also
preparing for SCBCD and doing a EJB after
one year of span
can somebody help me
regards
Rishi
Hi All
I am trying to deploy stateless bean in weblogic8.1 gives me following error :
weblogic.management.ApplicationException:
Exception:weblogic.management.ApplicationException: prepare failed for devejb
Module: devejbError: Exception preparing module: EJBModule(devejb,status=NEW)
Unable to deploy EJB: devejb.jar from devejb.jar:
In EJB Trader, references to javax.ejb.EJBContext, javax.ejb.SessionContext, or javax.ejb.EntityContext must not be transient.
at weblogic.ejb20.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:268)
at weblogic.ejb20.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:232)
at weblogic.ejb20.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:802)
at weblogic.ejb20.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:758)
at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:200)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:468)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:401)
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493)
at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:763)
at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:701)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1275)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:473)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2842)
at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1529)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1183)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1026)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2568)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2520)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2450)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:829)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:538)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:496)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
weblogic.ejb20.compliance.ComplianceException: In EJB Trader, references to javax.ejb.EJBContext, javax.ejb.SessionContext, or javax.ejb.EntityContext must not be transient.
at weblogic.ejb20.compliance.SessionBeanClassChecker.checkEJBContextIsNotTransient(SessionBeanClassChecker.java:69)
at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at weblogic.ejb20.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:278)
at weblogic.ejb20.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:232)
at weblogic.ejb20.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:802)
at weblogic.ejb20.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:758)
at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:200)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:468)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:401)
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493)
at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:763)
at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:701)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1275)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:473)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2842)
at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1529)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1183)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1026)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2568)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2520)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2450)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:829)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:538)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:496)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2522)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2450)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:829)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:538)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:496)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
--------------- nested within: ------------------
weblogic.management.ManagementException: - with nested exception:
[weblogic.management.ApplicationException:
help needed immed
regards
Rishi
For more clearance
I am sending u a chunk of code that is as follows :
on JTextField focusLost()
{
settting Object attributes which in turn firing a state changed event
}
public void stateChanged()
{
//doing some processing which was taking a long time so i added SwingWorker for the same now gui is not getting freezed but JtextField flickers
}
I hope this is much clear
looking forward to yr help
Rishi
17 years ago
Hi All
I am facing a flickering problem in applet when using SwingWorker class from sun i want to do some background processing in event thread SwingUtilities.invokeLater did help me but not that much GUI used to get freeze to prevent that i have used SwingWorker seems to be everything is working fine but some flickering is happening in applet can somebody tell me why is it happening and what is the solution for the same
pls note This problem arise when applet is loaded with huge data
pls help required urgently
Rishi
17 years ago
Hey Vidhya
did you tried my example
it works fine by having both in the same page
i think u read the mark'post wrongly
Rishi
ya we can make use of that implicit Objects i.e appliaction,session and request for single request and pageContext also.
correct me if i am wrong.......
Rishi
hey Dharmin and Aruna
i found u both of u wrong
aruna is wrong is question context-param
and dharmin there is no method calles getParameter it getInitParam(String).
and about question setAttribute gives u a flexibility for setting a attributes as well as api also gives u a flexibility for removing that attribute.It also bounds an Object where in case of context-param u can sepecify String para only not Objects.
I hope this is much clear
Rishi
yes i agree with Dharmin
after seeing specs
sorry i got wrong
Thanks Dharmin
Rishi
Yes
pls correct me someone as i am few days away from exam
Rishi