Java.lang.Exception while using applets
i am compling my following code which gives error in JUnit Test result as
No runnable methods
java.lang.Exception: No runnable methods
import java.awt.BorderLayout;
import javax.swing.JApplet;
* @author sakshi
public class MainJA extends JApplet {
MyInterface in;
MyJPanel jp1;
MyJScrollPane jsp;
* Initialization method that will be called after the applet is loaded
* into the browser.
@Override
public void init() {
makeGUI();
// TODO start asynchronous download of heavy resources
void makeGUI() {
setLayout(new BorderLayout());
jp1 = new MyJPanel();
in = new MyInterface();
jsp = new MyJScrollPane(jp1);
add(jsp, BorderLayout.CENTER);
add(in, BorderLayout.SOUTH);
// TODO overwrite start(), stop() and destroy() methods
import java.awt.FlowLayout;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
* @author sakshi
public class MyInterface extends JPanel {
JLabel l_x,l_y;
JTextField t_x,t_y;
public MyInterface() {
l_x=new JLabel("x");
l_y=new JLabel("y");
t_x=new JTextField(10);
t_y=new JTextField(10);
setLayout(new FlowLayout((int) CENTER_ALIGNMENT));
add(l_x);add(t_x);
add(l_y);add(t_y);
import java.awt.Dimension;
import javax.swing.JPanel;
* @author sakshi
public class MyJPanel extends JPanel {
public MyJPanel() {
setPreferredSize(new Dimension(1000,1000));
import java.awt.Component;
import java.awt.Dimension;
import javax.swing.JScrollPane;
import javax.swing.ScrollPaneConstants;
* @author sakshi
public class MyJScrollPane extends JScrollPane {
public MyJScrollPane(Component v) {
super(v,ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
setPreferredSize(new Dimension(500,500));
}what could be the reason for this error?
sorry the problem is sought out since the error was on my part as i made the package in test package
Similar Messages
-
Java.lang.NullPointerException while using PGP module in SFTP receiver
Hi Experts,
We are trying out newly installed PGP module on SAP PI 711 SP10.
Scenario : SFTP to SFTP
While we are trying to encrypt the message in the SFTP receiver, we get the following error.
nested exception is: javax.ejb.EJBException: (Failed in component: sap.com/com.sap.aii.af.app, BC-XI-CON-AFW) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.aii.af.app.endpoint.ModuleProcessorExitBean.process(com.sap.aii.af.lib.mp.module.ModuleContext,com.sap.aii.af.lib.mp.module.ModuleData) throws com.sap.aii.af.lib.mp.module.ModuleException method on bean instance com.sap.aii.af.app.endpoint.ModuleProcessorExitBean@6437822b for bean sap.com/com.sap.aii.af.app*xml|com.sap.aii.af.ejb.jar*xml|ModuleProcessorExitBean in application sap.com/com.sap.aii.af.app.; nested exception is: java.lang.NullPointerException: while trying to invoke the method com.sap.engine.interfaces.messaging.api.Message.getMessageKey() of an object loaded from local variable 'msMessage'Thanks Hareesh,
ya that "callsapadapter" was the culprit. It comes by itself, Once I removed that PGP was working fine. -
Java.lang.UnsupportedClassVersionError while using java mail api
Hi Everybody ,
I am new comer to this forum , and would like to be an active member.
I am getting this error while trying to use the java mail api to send an email using smtp.
The error is as follows :
Exception in thread "main" java.lang.UnsupportedClassVersionError: javax/mail/Message (Unsupported major.minor version 48.0)
Can Anyone please tell where I am wrong.
I am using the following code
==============================================================
Properties props = new Properties();
props.put("mail.smtp.host", "smtp.abc.com");
// create some properties and get the default Session
Session session = Session.getDefaultInstance(props, null);
session.setDebug(debug);
// create a message
Message msg = new MimeMessage(session);
// set the from and to address
InternetAddress addressFrom = new InternetAddress(from);
msg.setFrom(addressFrom);
InternetAddress[] addressTo = new InternetAddress[recipients.length];
for (int i = 0; i < recipients.length; i++)
addressTo[i] = new InternetAddress(recipients);
msg.setRecipients(Message.RecipientType.TO, addressTo);
// Optional : You can also set your custom headers in the Email if you Want
msg.addHeader("MyHeaderName", "myHeaderValue");
// Setting the Subject and Content Type
msg.setSubject(subject);
msg.setContent(message, "text/plain");
Transport.send(msg);
==============================================================Hi Philip ,
Thanks for the prompt reply , I had installed oracle client services which overid my jdk1.4 installation with jdk1.3 and hence the error. I changed my classpath settings to point to jdk1.4 and it owrked properly.
Thanks once again.
regards,
Rupesh Rajan -
Java.lang.ExceptionInInitializerError - while using a third party tool
Hi All,
I am trying to include truezip into my application. but I get the following stack trace.
When I tried using the truezip in a standalone java class it orked but I am unable to make it work with appserver.
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:830)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:763)
org.apache.jsp.TestDes_jsp._jspService(TestDes_jsp.java:75)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
root cause
java.lang.ExceptionInInitializerError
de.schlichtherle.io.File.init(File.java:818)
de.schlichtherle.io.File.(File.java:471)
de.schlichtherle.io.File.(File.java:452)
org.apache.jsp.TestDes_jsp._jspService(TestDes_jsp.java:63)
note The full stack trace of the root cause is available in the Sun-Java-System/Application-Server logs.If I refresh the jsp page it shows the foloowing error
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:830)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:763)
org.apache.jsp.TestDes_jsp._jspService(TestDes_jsp.java:75)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
root cause
java.lang.NoClassDefFoundError
de.schlichtherle.io.File.init(File.java:818)
de.schlichtherle.io.File.(File.java:471)
de.schlichtherle.io.File.(File.java:452)
org.apache.jsp.TestDes_jsp._jspService(TestDes_jsp.java:63)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
note The full stack trace of the root cause is available in the Sun-Java-System/Application-Server logs.
--------------------------------------------------------------------------------Can anyone help me on this please
Thanks,
R.Ramesh.Hi Balusc,
here is the full stack trace
java.lang.ExceptionInInitializerError
at de.schlichtherle.io.File.init(File.java:830)
at de.schlichtherle.io.File.<init>(File.java:479)
at de.schlichtherle.io.File.<init>(File.java:458)
at org.apache.jsp.TestDes_jsp._jspService(TestDes_jsp.java:63)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)
Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission shutdownHooks)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
at java.security.AccessController.checkPermission(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.Runtime.addShutdownHook(Runtime.java:188)
at de.schlichtherle.io.ArchiveControllers.<clinit>(ArchiveControllers.java:67)
... 41 moreafter which if I refresh my jsp page I get the foloowing stack trace as in my next post -
JAVA.LANG.NULLPOINTEREXCEPTION WHILE USING GETCLIENTINFO JAVABEAN IN FORM
We are using GetClientInfo JavaBean in Oracle 6i Form registered in Oracle Applications. Earlier, when we used Jinitiator, the Form used to open properly. Recently we started using Java Plug-in 1.6.0_12 (JRE version 1.6.0_12 Java HotSpot(TM) Client VM), we get following errors and then entire application closes.
java.lang.NullPointerException
at oracle.forms.ui.VBean.isFocusTraversable(Unknown Source)
at java.awt.Component.isFocusable(Unknown Source)
at java.awt.Component.isRequestFocusAccepted(Unknown SoGet Client Information
http://www.oracle.com/technology/sample_code/products/forms/6idemos.html
java.lang.NullPointerException
at oracle.forms.ui.VBean.isFocusTraversable(Unknown Source)
at java.awt.Component.isFocusable(Unknown Source)
at java.awt.Component.isRequestFocusAccepted(Unknown Source)
at java.awt.Component.requestFocusHelper(Unknown Source)
at java.awt.Component.requestFocusHelper(Unknown Source)
at java.awt.Component.requestFocus(Unknown Source)
at oracle.forms.handler.UICommon.updateFocus(Unknown Source)
at oracle.forms.handler.UICommon.setFVP(Unknown Source)
at oracle.forms.handler.UICommon.setFVP(Unknown Source)
at oracle.forms.handler.UICommon.onUpdate(Unknown Source)
at oracle.forms.handler.ComponentItem.onUpdate(Unknown Source)
at oracle.forms.handler.JavaContainer.onUpdate(Unknown Source)
at oracle.forms.handler.UICommon.onUpdate(Unknown Source)
at oracle.forms.engine.Runform.onUpdateHandler(Unknown Source)
at oracle.forms.engine.Runform.processMessage(Unknown Source)
at oracle.forms.engine.Runform.processSet(Unknown Source)
at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
at oracle.forms.engine.Runform.sendDeferredMessages(Unknown Source)
at oracle.forms.engine.Runform.onMessage(Unknown Source)
at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
at oracle.forms.engine.Runform.startRunform(Unknown Source)
at oracle.forms.engine.Main.createRunform(Unknown Source)
at oracle.forms.engine.Main.start(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source) -
Java.lang.SecurityException while using RDBMSRealm in 5.1
Hi,
We are in the process of migrating our application from Weblogic 4.5.1
to Weblogic 5.1. When we try to set up RdbmsRealm as the delegate realm
for the server and start the server, we get the following exception:
java.lang.SecurityException: User "system" does not have Permission
"read" based on ACL "weblogic.workspace.system".
at weblogic.security.acl.Security.logAndThrow(Security.java:372)
at weblogic.security.acl.Security.checkPermission(Security.java:254)
at
weblogic.workspace.server.Workspace.checkPermission(Workspace.java:1169)
at weblogic.workspace.server.Workspace.checkRead(Workspace.java:1174)
at weblogic.workspace.server.Workspace.fetch(Workspace.java:208)
at
weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:243)
at weblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java,
Compiled Code)
at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
at weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java, Compiled
Code)
at
weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
The database has aclentries that grant read, write and reserve
permissions on weblogic.workspace.system to everyone. It is not clear
why the server still complains that user 'system' does not have
permissions. Is 'system' user not a part of everyone group by default? (
We are using the same acls we were using with Weblogic 4.5.1 ). Does
'everyone' group have all the users in it by default? Or has it changed?
Any suggestions welcome.
Thanks and Regards
Suresh BEither try setting weblogic.allow.read.weblogic.workspace=system
Or add the system user to the group 'everyone' in the database you use for
RDBMSRealm (Hmm, not sure if this will work or not.
If you are implementing a custom realm then you need to explicitly state
which members are in the 'everyone' group.
(I've recently had a similar problem . I actually chose a different
solution, by overriding the isMember(user) method in RDBMSGroup to always
return true if the group's name is 'everyone' - I had to override the method
anyway, for other reasons. If anyone as any input on why this is a really
bad idea please feel free to tell me)
terry
BSuresh <[email protected]> wrote in message
news:[email protected]...
Hi,
weblogic.allow.read.weblogic.workspace=everyone
weblogic.allow.write.weblogic.workspace=everyone
weblogic.allow.read.weblogic.workspace.system=everyone
weblogic.allow.write.weblogic.workspace.system=everyone
I tried having the above entries in the weblogic.properties file but theserver
complains that weblogic.workspace acl is defined both in the delegate andbackup
realm. And the result remains the same - java.lang.SecurityException.User
"system" does not have Permission "read" based on ACL
"weblogic.workspace.system".
Thanks
Suresh.B
KNK wrote:
Try setting the "read" and "write" permissions explicitly in
weblogic.properties file.
weblogic.allow.read.weblogic.workspace=everyone
weblogic.allow.write.weblogic.workspace=everyone
-- KNK --
A ten thousand miles journey begins with a single step. That single stephas
to be taken from where you are, worries are no solution to any problem.
"BSuresh" <[email protected]> wrote in message
news:[email protected]...
Hi,
We are in the process of migrating our application from Weblogic 4.5.1
to Weblogic 5.1. When we try to set up RdbmsRealm as the delegate
realm
for the server and start the server, we get the following exception:
java.lang.SecurityException: User "system" does not have Permission
"read" based on ACL "weblogic.workspace.system".
at weblogic.security.acl.Security.logAndThrow(Security.java:372)
at weblogic.security.acl.Security.checkPermission(Security.java:254)
at
weblogic.workspace.server.Workspace.checkPermission(Workspace.java:1169)
>>>
at weblogic.workspace.server.Workspace.checkRead(Workspace.java:1174)
at weblogic.workspace.server.Workspace.fetch(Workspace.java:208)
at
weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:243
at weblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java,
Compiled Code)
at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
at
weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java, Compiled
Code)
at
weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
>>>
The database has aclentries that grant read, write and reserve
permissions on weblogic.workspace.system to everyone. It is not clear
why the server still complains that user 'system' does not have
permissions. Is 'system' user not a part of everyone group by default?(
We are using the same acls we were using with Weblogic 4.5.1 ). Does
'everyone' group have all the users in it by default? Or has itchanged?
>>>
Any suggestions welcome.
Thanks and Regards
Suresh B -
Java.lang.IndexOutOfBoundsException while using lexicals
Hi,
I am trying to use a dynamic where clause with the described mechanism.
- all report parameters defined as global variables in default package
- whereclause defined as global variable in default package
- defaultPackage defined in DataTemplate
- before Report Trigger defined as function in default package which sets the where clause
- Trigger executed in datatemplate (this works fine so far unless I try to use the &whereclause in a sqlStatement)
When I try to use the whereclause variable from the default package in one of my statements in the data template I get an Error like
" The report cannot be rendered because of an error, please contact the administrator. "
in the UI and on the console log I get
[070606_031501966][][EXCEPTION] java.lang.IndexOutOfBoundsException: Index: 0, S
ize: 0
at com.sun.java.util.collections.ArrayList.RangeCheck(ArrayList.java:492
at com.sun.java.util.collections.ArrayList.get(ArrayList.java:306)
at oracle.apps.xdo.dataengine.DataTemplateParser.getParentDataSource(Dat
aTemplateParser.java:1449)
at oracle.apps.xdo.dataengine.XMLPGEN.writeDefaultGroup(XMLPGEN.java:298
at oracle.apps.xdo.dataengine.XMLPGEN.writeGroupStructure(XMLPGEN.java:2
64)
at oracle.apps.xdo.dataengine.XMLPGEN.processData(XMLPGEN.java:251)
at oracle.apps.xdo.dataengine.XMLPGEN.processXML(XMLPGEN.java:192)
at oracle.apps.xdo.dataengine.XMLPGEN.writeXML(XMLPGEN.java:229)
at oracle.apps.xdo.dataengine.DataProcessor.processData(DataProcessor.ja
va:336)
at oracle.apps.xdo.servlet.data.bind.AdvancedQueryBoundValue11.callDataP
rocessor(AdvancedQueryBoundValue11.java:126)
at oracle.apps.xdo.servlet.data.bind.AdvancedQueryBoundValue11.getValue(
AdvancedQueryBoundValue11.java:79)
at oracle.apps.xdo.servlet.ReportContextImplV11.getReportXMLData(ReportC
ontextImplV11.java:335)
at oracle.apps.xdo.servlet.XDOProcessor.process(XDOProcessor.java:235)
at oracle.apps.xdo.servlet.ReportImpl.renderBody(ReportImpl.java:227)
at oracle.apps.xdo.servlet.ReportImpl.renderReportBody(ReportImpl.java:4
6)
at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:319)
at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:223)
at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:159)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterC
hain.java:64)
at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilt
er.java:52)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
stDispatcher.java:629)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
vletRequestDispatcher.java:376)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequ
estHandler.java:870)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
tHandler.java:451)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpReque
stHandler.java:218)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:119)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:112)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSo
cketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
sableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Any Ideas??I solved the issue ...
since I am using the standalone version of XML Publisher with the UIs the declaration of the lexical in the dataTeamplate was the problem.
If I define
<sqlStatement name="Unterlagen"><![CDATA[select id,bezeichnung from AJS_UNTERL_CHECKLISTE where ANFORDERER = 1 and [b]&whereclause ]]>
instead of
<sqlStatement name="Unterlagen"><![CDATA[select id,bezeichnung from AJS_UNTERL_CHECKLISTE where ANFORDERER = 1 and [b]&whereclause ]]>
it works fine!
Regards,
Lars -
Java.lang.NoSuchMethodException while using LookupDispatchAction
hi,
I am just a novice java developer, developing an application which requires more than one submit button in a single form, for which i have extended LookupDispatchAction class. However i am unable to fix the error with the message java.lang.NoSuchMethodException, which appears whenever i click on the buttons in spite of having the method in the action class. Below is the code snippet. I request if anyone could help me out. Thanks.
JSP
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix = "html" %>
<%@ taglib uri = "/WEB-INF/struts-bean.tld" prefix = "bean"%>
<html><body>
<html:form action="homeSearch.do">
<table>
<tr>
<td><strong>Search by Email</strong></td>
<td><html:submit property="dowhat">
<bean:message key="ldApp.submit.button.eSearch"/>
</html:submit></td>
</tr>
<tr>
<td><strong>Search by Eid</strong></td>
<TD><html:submit property="dowhat">
<bean:message key="ldApp.submit.button.idSearch"/>
</html:submit> </TD>
</tr>
<tr>
<td><strong>Search by Phone</strong></td>
<td><html:submit property="dowhat">
<bean:message key="ldApp.submit.button.pSearch"/>
</html:submit></td>
</tr>
</table>
</html:form></body></html>
struts-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<data-sources />
<form-beans >
<form-bean name="tmpForm" type="org.apache.struts.action.DynaActionForm" />
</form-beans>
<global-exceptions />
<global-forwards >
<forward name="email" path="/emailHome.jsp"/>
<forward name="id" path="/idHome.jsp"/>
<forward name="phone" path="/PhoneHome.jsp"/>
</global-forwards>
<action-mappings>
<action path="/homeSearch" name="tmpForm" type="com.lookup.struts.myLDAction"
parameter="dowhat" scope="request" input="/Home.jsp"
>
<forward name="email" path="/emailHome.jsp"/>
<forward name="id" path="/idHome.jsp"/>
<forward name="phone" path="/PhoneHome.jsp"/>
</action>
</action-mappings>
<message-resources parameter="com.lookup.struts.ApplicationResources" />
</struts-config>
myLDAction class
public class myLDAction extends LookupDispatchAction {
protected Map getKeyMethodMap() {
// TODO Auto-generated method stub
Map mp = new HashMap();
mp.put("ldApp.submit.button.eSearch", "EmailSearch");
mp.put("ldApp.submit.button.idSearch", "IDSearch");
mp.put("ldApp.submit.button.pSearch", "PhoneSearch");
return mp;
public ActionForward EmailSearch(ActionForm af, ActionMapping am,
HttpServletRequest req, HttpServletResponse res) throws Exception{
DynaActionForm df = (DynaActionForm)af;
// do search logic
return am.findForward("email"); // forwards to a jsp page
public ActionForward IDSearch(ActionForm af, ActionMapping am,
HttpServletRequest req, HttpServletResponse res) throws Exception{
DynaActionForm df = (DynaActionForm)af;
// do search logic
return am.findForward("id"); // forwards to a jsp page
public ActionForward PhoneSearch(ActionForm af, ActionMapping am,
HttpServletRequest req, HttpServletResponse res) throws Exception{
DynaActionForm df = (DynaActionForm)af;
// do search logic
return am.findForward("phone"); // forwards to a jsp page
{cod*e}*
*Error*Jan 13, 2009 1:58:56 PM org.apache.struts.actions.DispatchAction dispatchMethod
SEVERE: Action[homeSearch] does not contain method named 'EmailSearch'
java.lang.NoSuchMethodException: com.lookup.struts.myLDAction.EmailSearch(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
at java.lang.Class.getMethod(Class.java:978)
Edited by: Chinglai on 13 Jan, 2009 1:29 PM
Edited by: Chinglai on 13 Jan, 2009 2:01 PMFirst thing is I don't know anything about struts, you should have posted in some other forum like that for JSP or other....
From the exception, I can say that maybe method signature needs to be:
public ActionForward EmailSearch( ActionMapping am, ActionForm af, HttpServletRequest req, HttpServletResponse res)instead of:
public ActionForward EmailSearch(ActionForm af, ActionMapping am, HttpServletRequest req, HttpServletResponse res) throws ExceptionBut don't take my advice to be authentic in any way, thats just a hunch....
And yes, change other method signatures also, if I'm correct , by any chance.
Thanks! -
Error java.lang.NoSuchMethodError while using Lexalytics
Hello,
I have a Linux 64bit environment with the complete Endeca Information Discovery 2.4 installed. When I try to use the Text Enrichment component I get the error:
java.lang.NoSuchMethodError
I have edited the .bash_profile file with the parameters that are needed to use Lexalytics:
lxainstall=/home/oracle/Oracle/Endeca/Lexalytics
export lxainstall
LD_LIBRARY_PATH=$lxainstall/salience/lib
export LD_LIBRARY_PATH
JAVA_HOME=/usr/java/jdk1.6.0_45
export JAVA_HOME
JAVA_OPTS="-Djava.library.path=$LD_LIBRARY_PATH"
export JAVA_OPTS
PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:$lxainstall
export PATH
Also when I try to export the LD_LIBRARY_PATH and reboot my system, my desktop doesn't load and I see no icons on my desktop. I can start programs with the top menu.
I have installed version 5.1 of Lexalytics.
Does anybody know why I get this error?
Thanks!
MarcoHi Marco, I had the same problem. Instead of loading LD_LIBRARY_PATH in .BASH_PROFILE I made a shell script that first load LD_LIBRARY_PATH and then start integrator. Now it is working fine for me.
-
Hi there
I am moving db tier on another server with the clone utility. post clone on db tier were successful but on apps tier i am getting following error in adconfig.log file
AC-50480: Internal error occurred: java.lang.Exception: Error while generating listener.ora.
Error generating tnsnames.ora from the database, temporary tnsnames.ora will be generated using templates
Instantiating Tools tnsnames.ora
Tools tnsnames.ora instantiated
Web tnsnames.ora instantiated
adgentns.pl exiting with status 2
ERRORCODE = 2 ERRORCODE_END
.end std out.
.end err out.
Result : FAILED
i have used following options for solution but no success
1. Open a new shell and source the APPS Environment.
2. Start the sqlplus Utility and execute following commands :
sqlplus apps/<Password>
exec fnd_conc_clone.setup_clean
3. Open a new shell and source the DB-Tier Environment.
4. Execute Autoconfig at the DB-Tier.
5. Switch to the Shell with the APPS Enviornment sourced or start a new Shell and source the APPS Environment.
6. Execute Autoconfig at the APPS-Tier.
autoconfig run successufully on db tier but failed on apps tier.
Please help me out what to do.
Regards,
MohsinHi;
What is EBS version?
Please see:
AC-50480: Internal error occurred: java.lang.Exception: Error while generating listener.ora. [ID 1324667.1]
During Autoconfig "adgentns.pl" fails: "AC-50480: Internal error occurred: java.lang.Exception: Error while generating listener.ora" [ID 453901.1]
"AC-50480" Error Generating the "listener.ora" File. [ID 1089036.1]
Regard
Helios -
Hi Everyone,
Database is up, while running adcfgclone.pl on Application Tier and getting below error. Any help is highly appreciated.
Tech Stack details
10gR2 - database
E-Business Suite 12
====================
Error in /oraapp01/oracle/DFIN/inst/apps/DFIN_frcmde37ka/admin/log/ApplyAppsTier_04021635.log
Skipping prodsetup driver processing; driver file not found at: /oraapp01/oracle/DFIN/comn/clone//apps/driver/frcmde37ka_prodsetup.drv
Executing runAutoConfig...
Deleting files of type INSTALL
Starting CVM.....
Exception Occurred while running CVM: java.lang.Exception: Invalid AD_TOP
StackTrace:
java.lang.Exception: Invalid AD_TOP
at oracle.apps.ad.context.CtxValueMgt.processCtxFile(CtxValueMgt.java:1499)
at oracle.apps.ad.clone.ApplyApplTop.runCVM(ApplyApplTop.java:510)
at oracle.apps.ad.clone.ApplyApplTop.runAutoConfig(ApplyApplTop.java:552)
at oracle.apps.ad.clone.ApplyApplTop.doConf(ApplyApplTop.java:339)
at oracle.apps.ad.clone.ApplyApplTop.doApply(ApplyApplTop.java:382)
at oracle.apps.ad.clone.ApplyApplTop.<init>(ApplyApplTop.java:267)
at oracle.apps.ad.clone.ApplyAppsTier.<init>(ApplyAppsTier.java:105)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:521)
at oracle.apps.ad.clone.util.CloneProcessor.run(CloneProcessor.java:67)
at java.lang.Thread.run(Thread.java:797)
Product Top Drivers executed :
ApplyApplTop Completed Successfully.
# Checking the status of AutoConfig run of ApplyApplTop
# AutoConfig Completed successfully
ThanksHere it is
Error
Starting Context Value Management System at Thu Apr 03 12:16:37 BST 2008
Using version 120.8.12000000.4
Options:
Force : no
Contextfile : /oraapp01/oracle/DFIN/inst/apps/DFIN_frcmde37ka/appl/admin/DFIN_frcmde37ka.xml
Templatefile : /oraapp01/oracle/DFIN/apps/ad/12.0.0/admin/template/adxmlctx.tmp
ValueUpdateFile : /oraapp01/oracle/DFIN/apps/apps_st/appl/ad/12.0.0/admin/template/adcvmat.xml
Verifying value management system requirements:
ContextFile : VALID
Template File : VALID
ValueUpdateFile : INVALID
Deactivating Context Value Management System.System Exit Status: 1
========================================================================
Restored the Context file in :
/oraapp01/oracle/DFIN/inst/apps/DFIN_frcmde37ka/appl/admin/DFIN_frcmde37ka.xml
Aborting the running of Context Value Management
Exception Occurred while running CVM: java.lang.Exception: Fatal Exception
StackTrace:
java.lang.Exception: Fatal Exception
at oracle.apps.ad.context.CtxValueMgt.processCSH(CtxValueMgt.java:1285)
at oracle.apps.ad.context.CtxValueMgt.processCtxFile(CtxValueMgt.java:1571)
at oracle.apps.ad.clone.ApplyApplTop.runCVM(ApplyApplTop.java:510)
at oracle.apps.ad.clone.ApplyApplTop.runAutoConfig(ApplyApplTop.java:552)
at oracle.apps.ad.clone.ApplyApplTop.doConf(ApplyApplTop.java:339)
------------ -
Trying to Install RMS application 13.2.2 and I get past the pre-installation checks and when I get to the Data Source details and enter the data source details with the check box checked to validate the schema/Test Data Source I get the following error:
Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver. Please check that the library path is set up properly or switch to the JDBC thin client oracle/jdbc/driver/T2CConnection.getLibraryVersioNumber()
Checks performed:
RMS Application code location and directory contents:
[oracle@test-rms-app application]$ pwd
/binary_files/STAGING_DIR/rms/application
[oracle@test-rms-app application]$ ls -ltr
total 144
-rw-r--r-- 1 oracle oinstall 272 Dec 7 2010 version.properties
-rw-r--r-- 1 oracle oinstall 405 Jan 16 2011 expected-object-counts.properties
-rw-r--r-- 1 oracle oinstall 892 May 13 2011 ant.install.properties.sample
-rw-r--r-- 1 oracle oinstall 64004 Jun 6 2011 build.xml
drwxr-xr-x 9 oracle oinstall 4096 Jun 16 2011 rms13
drwxr-xr-x 3 oracle oinstall 4096 Jun 16 2011 installer-resources
drwxr-xr-x 3 oracle oinstall 4096 Jun 16 2011 antinstall
drwxr-xr-x 2 oracle oinstall 4096 Jun 16 2011 ant-ext
drwxr-xr-x 5 oracle oinstall 4096 Jun 16 2011 ant
-rw-r--r-- 1 oracle oinstall 11324 Dec 18 09:18 antinstall-config.xml.ORIG
-rwxr-xr-x 1 oracle oinstall 4249 Dec 18 10:01 install.sh
drwxr-xr-x 4 oracle oinstall 4096 Dec 18 10:06 common
-rw-r--r-- 1 oracle oinstall 16244 Dec 19 10:37 antinstall-config.xml
-rw-r--r-- 1 oracle oinstall 689 Dec 19 10:37 ant.install.log
[oracle@test-rms-app application]$
Application installation:
[oracle@test-rms-app application]$ ./install.sh
THIS IS the driver directory
Verified $ORACLE_SID.
Verified SQL*Plus exists.
Verified write permissions.
Verified formsweb.cfg read permissions.
Verified Registry.dat read permissions.
Verified Java version 1.4.2.x or greater. Java version - 1.6.0
Verified Tk2Motif.rgb settings.
Verified frmcmp_batch.sh status.
WARNING: Oracle Enterprise Linux not detected. Some components may not install properly.
Verified $DISPLAY - 172.16.129.82:0.0.
This installer will ask for your "My Oracle Support" credentials.
Preparing installer. This may take a few moments.
Your internet connection type is: NONE
Integrating My Oracle Support into the product installer workflow...
[move] Moving 1 file to /binary_files/STAGING_DIR/rms/application
Installer preparation complete.
MW_HOME=/u01/app/oracle/Middleware/NewMiddleware1034
ORACLE_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/as_1
ORACLE_INSTANCE=/u01/app/oracle/Middleware/NewMiddleware1034/asinst_1
DOMAIN_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/user_projects/domains/rmsClassDomain
WLS_INSTANCE=WLS_FORMS
ORACLE_SID=rmsdbtst
JAVA_HOME=/u01/app/oracle/jrockit-jdk1.6.0_45-R28.2.7-4.1.0
Launching installer...
To make sure I have connectivity from the app server to the database (on a database server) here are the steps followed:
[oracle@test-rms-app application]$ tnsping rmsdbtst
TNS Ping Utility for Linux: Version 11.1.0.7.0 - Production on 19-DEC-2013 10:41:40
Copyright (c) 1997, 2008, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = test-rms-db.vonmaur.vmc)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = rmsdbtst)))
OK (0 msec)
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ sqlplus rms13@rmsdbtst
SQL*Plus: Release 11.1.0.7.0 - Production on Thu Dec 19 10:46:18 2013
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ ping test-rms-db
PING test-rms-db.vonmaur.vmc (192.168.1.140) 56(84) bytes of data.
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=1 ttl=64 time=0.599 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=2 ttl=64 time=0.168 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=3 ttl=64 time=0.132 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=4 ttl=64 time=0.158 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=5 ttl=64 time=0.135 ms
--- test-rms-db.vonmaur.vmc ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4001ms
rtt min/avg/max/mdev = 0.132/0.238/0.599/0.181 ms
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ uname -a
Linux test-rms-app.vonmaur.vmc 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ cat /etc/*-release
Enterprise Linux Enterprise Linux Server release 5.3 (Carthage)
Red Hat Enterprise Linux Server release 5.3 (Tikanga)
[oracle@test-rms-app application]$
The database is created and all the batch file scripts have been successfully deployed. Now working on the application server. The Weblogic server is installed and 11g forms and reports are installed successfully.
Any help would be helpful.
Thanks,
Ram.Please check MOS Notes:
FAQ: RWMS 13.2 Installation and Configuration (Doc ID 1307639.1) -
Receiving error message: java.lang.Exception: Attempted to use a 5.0 DataSource outside of a 2.3 Servlet
The application worked fine with 2.2 servlet version and data source 4.0
But i need to add some filter in web.xml so
I changed the servlet version in my web.xml from
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> to
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
and created a data source version 5 in websphere server 6.0.0.1
After that it is throwing the above mentioned error. pls help me on this.
ThanksIs there anything i need to change in my application.xml
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd"> -
Why use customized / particular exceptions instead java.lang.Exception
Hi,
Do any of you guys know where can I find a theorical statement / explanation about why use particular / customized exceptions instead java.lang.Exception? I am aware that it consumes more resources and becomes a heavier object, as well as the clearness when coding and all that stuff; however, my boss wants to see a tech document where all this is clearly stated. Any resource over there?
RegardsIt is better to throw specific--or at least module- or
package-specific--excpetions, rather than Exception,
because then the caller knows what to expect. However,
if you declare "throws Exception", the caller can
still catch IOException, SQLException, etc.,
separately. He'll just have to be a really good
guesser as to which ones he should catch.True.
Also, there's no point in declaring "throws
NullPointerException." Any method can throw it without
declaring it. If you generate your own NPE (or other
unchecked exception) inside the method, then you
should document it in the javadoc comments, but you
don't need to put it in the throws clause. It doesn't
do any harm, but it's redundant and cluttersome.It was an example and I wasn't feeling too creative....excuse me. ;-) But yeah, I've never thrown NPE ever.
I'm assuming overhead caused by extending classes.At
the worst, it would be miniscule, or so I wouldthink.
What overhead is created by extending classes?Hmm, I was under the impression that a class the extended another class, inherited all of the other classes data (variables, etc.). Hence, you get something like this:
SuperClass1 + SubClass1 + SubClassOfSubcCass1 = Memory usuage for SubClassOfSubClass1.
Since adding postivie number will always end up increasing data, SubClassOfSubClass1 will use more dtat than SuperClass1.
Am I wrong? -
good afternoon to all experts
i am getting the following exception when i am going to read file
java.lang.Exception:java.security.accesscontrolException:accessdenied(java.io.FilePermission c:\premiji.rar)
my applet as follows
import java.io.*;
import java.applet.*;
import java.awt.*;
import java.security.*;
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import javax.crypto.spec.*;
import java.io.IOException;
public class TestApp extends Applet
public static TextField t;
public static String key;
public Label l;
public void init()
setBackground(Color.GRAY);
setLayout(null);
t=new TextField(" ");
t.setEchoChar('*');
l=new Label("Enter ur key");
l.setBounds(0,2,75,20);
t.setForeground(Color.RED);
t.setBounds(78,2,150,20);
add(l);
add(t);
public static String eFile(String plainFile)throws Exception
{String cFile="c://suri.rar";
key=t.getText();
byte[]raw=key.getBytes("UTF8");
SecretKeySpec skeySpec = new SecretKeySpec(raw, "Blowfish");
Cipher cipher = Cipher.getInstance("Blowfish");
Cipher cipher2=Cipher.getInstance("Blowfish");
cipher2.init(Cipher.DECRYPT_MODE,skeySpec);
cipher.init(Cipher.ENCRYPT_MODE, skeySpec);
InputStream fis,dis;
FileOutputStream fos,dos;
fis = new FileInputStream("c://premji.rar");
fis = new javax.crypto.CipherInputStream(fis, cipher);
fos = new FileOutputStream(cFile);
byte[] b = new byte[8];
int i = fis.read(b);
while (i != -1) {
fos.write(b, 0, i);
i = fis.read(b);
dis = new FileInputStream(cFile);
dis = new javax.crypto.CipherInputStream(dis, cipher2);
dos=new FileOutputStream("c://madhu.rar");
byte[] c=new byte[8];
int j=dis.read(c);
while(j!=-1)
dos.write(c,0,j);
j=dis.read(c);
fis.close() ;
fos.close();
return cFile;
}my html as follows
html>
<script language="JavaScript">
function pass()
document.myForm.uname.value=document.myApp.eFile(document.myForm.upfile.value);
</script>
<applet name="myApp" code="TestApp.class" archive="TestApp.jar" width=600 height=80></applet>
<body>
<form name="myForm" >
Name
<input type="text" name="uname"/>
File
<input type="file" name="upfile"/>
<input type=button value="click" onClick="pass();">
<input type="submit"/>
</form>
</body>
</html>note:
i signed my applet like
keytool -genkey -alias sgsits -validity 365
jarsigner TestApp.jar sgsitshave we to modify polacy file also?
if so how & which one modify
any suggestion would be greatly appreciated
thanks in advanceI assume your signature is correct.
Signing the applet enables privileges (like file IO) whenever all the calls on the stack leading
to the sensitive operation (in your case fis = new FileInputStream("c://premji.rar")) originate
from the signed jar. It is not your case, as you come into the applet from javascript.
The solution is to use AccessController.doPrivileged...(). It was designed with this situation in mind.
Maybe you are looking for
-
How to escape a single quotes from a string of dynamic sql clause?
if a single quotes exist in a dynamic sql clause for a string, like v_string :='select tname from tab where tabtype='table'', there tabtype='table' will conflict with the single quote ahead. could somebody tell me how to escape this single quotes? th
-
RAW files and exposure in Aperture
I'm using a Nikon D90 and I shoot RAW/Fine JPG. Using Aperture 3.4 and OS X 10.8.3, I import my photos into Aperture as RAW/JPG pairs with the RAW file as the master. I know Aperture quickly imports the imbedded jpg to show the thumbnails and then
-
Cannot start a global transaction. A LocalTransactionContainment is already
Getting 'javax.transaction.NotSupportedException: java.lang.IllegalStateException: Cannot start a global transaction. A LocalTransactionContainment is already active with work.' while running the following code using XA datasource. Setup: WAS 5.0.2,
-
VC : Update Equipment with new configuration number
Hi, I am trying to update an existing equipment with a new configuration number (cuobj). I used try to use 'BAPI_EQUI_CHANGE' to achieve this but apparently they didn't work even though i've received no exceptions. (no luck either with EQUIPMENT_MODI
-
Multiple Message Selects; How?
In the Exchange Online Protection, in the Exchange Admin Center, protection, and quarantine area for releasing; how do select a group of messages or the complete selection? I seem to be able to select only one message of the 300+ as one at a time. B