How to Solve: tag nesting error? in Struts project.
Hello, EveryBody:
I am working for a Struts system in testing a program of look-up user password via user-inputs with birthdate, postal code, userid. I have writen three program, lookup.jsp, LookupForm.java, LookupAction.java. When I get the lookup.jsp run, the web browser displays "HTTP 500". Please find the attached message for error message, lookup.jsp and Lookupform.java. Thanks a lot.
HTTP Status 500 -
type: Exception report
message: description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.compiler.ParseException: End of content reached while more parsing required: tag nesting error?
at org.apache.jasper.compiler.JspReader.popFile(JspReader.java:293)
at org.apache.jasper.compiler.JspReader.hasMoreInput
..........(Omit)
lookup.jsp:
<%@ page language="java" import="com.tfu.struts.common.Constants" %>
<%@ taglib uri="/WEB-INF/app.tld" prefix="app" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html:html locale="true">
<head>
<title><bean:message key="lookup.title"/></title>
<html:base/>
</head>
<body bgcolor="#FFFFFF" background="images/FREE-bg.gif">
<%@ include file="header1.html" %>
<html:errors/>
<%
String selectedMonthValue = (String)request.getAttribute(Constants.SELECTED_MONTH_KEY);
log("selectedMonthValue = " + selectedMonthValue);
String selectedCountryValue = (String)request.getAttribute(Constants.SELECTED_COUNTRY_KEY);
log("selectedCountryValue = " + selectedCountryValue);
%>
<html:form action="/lookup">
<html:hidden property="action">
<table>
<tr><td><bean:message key="prompt.lookup.signin"/></td></tr>
<tr><td><bean:message key="prompt.lookup.notes1"/>
<bean:message key="prompt.lookup.notes2"/></td>
</tr>
<tr><td><bean:message key="prompt.lookup.step1"/>
<bean:message key="prompt.lookup.step11"/></td>
</tr>
<tr>
<td><bean:message key="prompt.birthdate"/></td>
<td>
<html:select property="birthmonth" size="1">
<html:options collection="<%= Constants.MONTH_ARRAY_KEY %>"
property="value"
labelProperty="label"/>
</html:select>
<html:text property="birthday" size="2"/>
<bean:message key="prompt.birthdate.comma"/>
<html:text property="birthyear" size="4"/>
<bean:message key="prompt.birthdate.tail"/>
</td></tr>
<tr>
<td><bean:message key="prompt.postcode"/></td>
<td><html:text property="postcode" size="10" maxlength="16"/></td>
<td><bean:message key="prompt.country"/></td>
<td>
<html:select property="country" size="1">
<html:options collection="<%= Constants.COUNTRY_ARRAY_KEY %>"
property="value" labelProperty="label"/>
</html:select>
</td>
</tr>
<tr>
<td>
<bean:message key="prompt.lookup.step2"/>
<bean:message key="prompt.lookup.step21"/>
</td>
</tr>
<tr><td><html:text property="userid" size="16" maxlength="16"/></td></tr>
<tr><td><html:submit property="submit" value="Get Password"/></td></tr>
</table>
</html:form>
<bean:write name="LookupForm" property="password"/>
<br>
<br>
<br>
<br>
<br>
<br>
<%@ include file="footer0.html" %>
</body>
</html:html>
</html>
LookupForm.java
* $Header: /com/tfu/struts/lookup/LookupForm.java
* $Revision: 1.0 $
* $Date: 2002/12/31 $
* writen by Jianming Ke 2002.12.31
package com.tfu.struts.lookup;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import com.tfu.struts.common.Constants;
* Form bean for the user password retrieve.
public final class LookupForm extends ActionForm {
// --------------------------------------------------- Instance Variables
private String birthmonth = null;
private String birthday = null;
private String birthyear = null;
private String postcode = null;
private String country = null;
private String userid = null;
private String password = null;
// ----------------------------------------------------------- Properties
public String getBirthmonth() {
return (this.birthmonth);
public void setBirthmonth(String birthmonth) {
this.birthmonth = birthmonth;
public String getBirthday() {
return (this.birthday);
public void setBirthday(String birthday) {
this.birthday = birthday;
public String getBirthyear() {
return (this.birthyear);
public void setBirthyear(String birthyear) {
this.birthyear = birthyear;
public String getPostcode() {
return (this.postcode);
public void setPostcode(String postcode) {
this.postcode = postcode;
public String getCountry() {
return (this.country);
public void setCountry(String country) {
this.country = country;
public String getUserid() {
return (this.userid);
public void setUserid(String userid) {
this.userid = userid;
public String getPassword() {
return (this.password);
public void setPassword(String password) {
this.password = password;
// --------------------------------------------------------- Public Methods
* Validate the properties that have been set from this HTTP request,
* and return an <code>ActionErrors</code> object that encapsulates any
* validation errors that have been found. If no errors are found, return
* <code>null</code> or an <code>ActionErrors</code> object with no
* recorded error messages.
* @param mapping The mapping used to select this instance
* @param request The servlet request we are processing
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
ActionErrors errors = new ActionErrors();
if ((postcode == null) || (postcode.length() < 1))
errors.add("postcode", new ActionError("error.postcode.required"));
if ((userid == null) || (userid.length() < 1))
errors.add("userid", new ActionError("error.userId.required"));
return errors;
I edited the struts-config.xml with two segments:
<!-- ========== Form Bean Definitions ================== -->
<form-beans>
<!-- Logon form bean -->
<form-bean name="logonForm"
type="com.tfu.struts.logon.LogonForm">
</form-bean>
<!-- Lookup form bean -->
<form-bean name="lookupForm"
type="com.tfu.struts.lookup.LookupForm">
</form-bean>
<!-- ========== Action Mapping Definitions ================= -->
<action-mappings>
<!-- Lookup a user password -->
<action path="/lookup"
type="com.tfu.struts.lookup.LookupAction"
name="lookupForm"
scope="request"
input="/lookup.jsp">
<forward name="lookpass" path="/logon.jsp"/>
</action>
Hi,
After I added the line you mentioned, new error messages displays...
javax.servlet.ServletException: No getter method for property action of bean org.apache.struts.taglib.html.BEAN
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)
at org.apache.jsp.lookup$jsp._jspService(lookup$jsp.java:719)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
Thanks a lot.
Similar Messages
-
Doubts about: tag nesting error in Struts project
Hello, people...
I'd like to know why this error is happenning... Does someone can help me, please? The code is below:
*** JSP Page ***
<%@ taglib uri="struts-html" prefix="html"%>
<%@ taglib uri="struts-bean" prefix="bean"%>
<%@ taglib uri="struts-logic" prefix="logic" %>
<%@ taglib uri="project-tag" prefix="tag"%>
<html:html>
<head>
<title><bean:message key="label.project"/></title>
</head>
<body onLoad="window_load();">
<table border="0" width="100%">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="right"><!-- Bot?o Voltar --></td>
</tr>
<tr class="FonteTituloTela">
<td><bean:message key="titulo.pesquisarEmpreendimento"/></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<html:form action="/pesquisarEmpreendimentoPopup.do" method="get" onsubmit="return validatePesquisarEmpreendimentoPopupForm(this);">
<html:hidden property="action" />
<table width="550">
<tr>
<td colspan="3"><bean:message key="titulo.dadosDaPesquisa"/></td>
</tr>
<tr>
<td><bean:message key="label.codigo"/></td>
<td colspan="2">
<html:text property="nu_codigo" size="7"/>
</tr>
<tr>
<td><bean:message key="label.nome"/></td>
<td colspan="2">
<html:select property="criterio">
<html:option value="1"><bean:message key="label.cboIniciando"/></html:option>
<html:option value="2"><bean:message key="label.cboContendo"/></html:option>
</html:select>
<html:text property="no_municipio" size="40"/>
</tr>
<tr>
<td>
<tag:rollover imagemUp="<%=SiwarContext.getContextPath().concat(\"imagem/btn_confirmar_on.gif\")%>" imagemDown="<%=SiwarContext.getContextPath().concat(\"imagem/btn_confirmar_off.gif\")%>" onClick="javascript:document.pesquisarEmpreendimentoPopupForm.submit();"/>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center">
<tag:subir width="500">
</td>
</tr>
</table>
</html:form>
</body>
</html:html>
*** ActionForm ***
package jm.action;
import java.io.IOException;
import org.apache.struts.action.*;
import jm.form.PesquisarEmpreendimentoPopupForm;
import javax.servlet.*;
import javax.servlet.http.*;
public class PesquisarEmpreendimentoPopupAction extends Action {
public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
PesquisarEmpreendimentoPopupForm pesquisarEmpreendimentoPopupForm = (PesquisarEmpreendimentoPopupForm) form;
// Acessar l?gica de neg?cio
return mapping.findForward("pesquisarEmpreendimentoPopupFwd");
*** Form class***
package br.gov.caixa.siwar.tratarproponentes.form;
import org.apache.struts.action.*;
import org.apache.struts.validator.*;
public class PesquisarEmpreendimentoPopupForm extends ValidatorForm {
private String nu_codigo;
private String no_municipio;
public String getNo_municipio() {
return no_municipio;
public String getNu_codigo() {
return nu_codigo;
public void setNo_municipio(String no_municipio) {
this.no_municipio = no_municipio;
public void setNu_codigo(String nu_codigo) {
this.nu_codigo = nu_codigo;
*** Struts-config ***
<form-beans>
<form-bean name="pesquisarEmpreendimentoPopupForm" type="jm.form.PesquisarEmpreendimentoPopupForm" />
</form-beans>
<action-mappings>
<action name="pesquisarEmpreendimentoPopupForm" type="jm.action.PesquisarEmpreendimentoPopupAction" path="/pesquisarEmpreendimentoPopup" scope="request" validate="false">
<forward name="pesquisarEmpreendimentoPopupFwd" path="/jsp/tratarproponentes/PesquisarEmpreendimentoPopup.jsp" />
</action>
</action-mappings>
*** validation ***
<formset>
<form name="pesquisarEmpreendimentoPopupForm">
<field property="nu_codigo" depends="required,maxlength">
<arg0 key="pesquisarEmpreendimentoPopupForm.nu_codigo"/>
<var>
<var-name>maxlength</var-name>
<var-value>3</var-value>
</var>
</field>
<field property="no_municipio" depends="required,maxlength">
<arg0 key="pesquisarEmpreendimentoPopupForm.no_municipio"/>
<var>
<var-name>maxlength</var-name>
<var-value>40</var-value>
</var>
</field>
</form>
</formset>
Thanks,
Vanisi LealIt's not about whether we can read the code and figure it out. It's about the fact that most of us have better things to do then to take your long bit of code and config files, (which you don't have the decency to put in code tags), read it or set things up to run it just to see what the problem is.
You say there is a problem, so you must have run it and gotten some error or some unexpected other output, yet you can't be bothered to post that as well? You're title is not an error message that points to anything. If you posted the actual problem then you would get better responses.
You can stuff your sorry's in a sack! -
HOW TO SOLVE THE R6034 ERROR IN ITUNES INSTALATION
I need toknow how to solve the R6034 error in itunes instalation becouse y can´t buk up muy phone
How to solve this ?
#import <UIKit/UIKit.h>
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
-> int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal; -
I have a brand new PC that is MORE than adequate. I have once succeeded in burning a CD after learning all about time tracks and merging them. (made a few with only ONE track)
Two things:
1) I find that I must add a CD marker at the end of the WAV because Audition CS6 erases whatever is the last CD marker I've made. Very frustrating but now I know I have to do this but I have no idea WHY!!
2) Right now I have a WAV that is just over 1 hour and 3 minutes with a total of 637.74MB of info. When I try to export/burn a CD, I get an error message stating "The amount of audio to burn will not fit.......". I am using TDK 700MB blanks with a Pioneer Blu-ray burner.
Obviously it will fit.
What am I doing wrong, all of a sudden?Hey ryclark,
Thanks for responding. Something else is going on here.....
Here's what I re-replied to our friend...
Thanks for the response.
When I built this computer last Nov/Dec, it was built with the second
fastest Intel 7i, quad-core chipset on an 64-bit ASUS motherboard. It's running
Win 7 Pro. It has a 500GB SSD "C" drive with another 14 TB of true hard
drive space. It is set up with 64 bit. I had been using Audition CS3 for many
years and even go back to it's origin: Cool Edit and Cool Edit Pro. My
learning curve was minimal, sans the CD burning, which I used other software
for which is now antiquated, so I need Audition for this. Between this and
IZotope 3 I've repaired and improved many a recording. All-in-all extremely
useful software.
As for the idea "to burn it anyway", well the error message comes up and
that's it - if I "X" out of that message and try to burn again the message
comes back - so Audition will not let me. It is convinced that this file is
longer than it really is, but only when I add track marks to it!
There are only 11 tracks.
I was able to burn a CD of this same file but without all the track marks,
so the same exact file length/size will burn, only as the one track.
I've also succeeded in burning other WAV's , both greater and smaller, with
and without multiple track marks, without issue. Of course all with less
than the CD's max. capacity.
This problem seems to be with this one file. I've even re-made/re-recorded
the file from scratch with no change. There's something else going on here
that I can't put my finger on. (I am "recording" LP's and making personal
CDs of them)
Also, only from time to time, I have another error after burning a CD that
states it could not verify the CD. For this I assume it is the blank rather
than AA? The first might burn without issue and with the second burn I
get the error. It is near the end of a stack of blanks, so.....
As for the need to "mark the end" of the file makes a lot of sense but of
all the other CD track-marking software I've used, none needed one to do
this, but this IS Adobe after all.
You'd think there might be a smidge of intuitiveness with Adobe, but maybe
not.
- Mark
In a message dated 8/2/2014 8:11:52 A.M. Eastern Daylight Time,
[email protected] writes:
How to solve Audition CS6 error "The amount of audio to burn will not fit
on the CD........."?
created by ryclark (https://forums.adobe.com/people/ryclark) in
Audition CS5.5, CS6 & CC - View the full discussion
(https://forums.adobe.com/message/6605916#6605916) -
HT201405 how to solve time machine error-1
how to solve time machine error-1
I checked the pondini fixes and ended up doing the following - in case this could help someone else with OSX Lion and Time Capsule... http://pondini.org/TM/Troubleshooting.html
First, I downloaded and used Airport Utility 5.6 instead of 6.1 - BTW, I had to attempt download and installation THREE times before the program actually installed. Be persistant.
Pondini #5: It's possible some names (of all things!) may be a problem. See item C9. I had to re-name my Mac, Time Capsule, network, etc... to remove all apostrophes and spaces.
Pondini #7: If you have WD SmartWare installed on Lion, it's not compatible, per RoaringApps, and there are reports it can cause this problem as well. Use Western Digital's uninstaller, or delete the app from /Applications and the files com.wdc.WDDMservice.plist and com.wdc.WDSmartWareServer.plist from /Library/LaunchDaemons. There may also be a file in Library/Application Support.
I then had to shut down computer, unplug Time Capsule, unplug modem; plug everything in again, then reboot computer; then had to go to Apple- System Preferences- Network- and reselect my Time Capsule to connect to WiFi again.
Then opened Time Machine preferences again and attempted back up - it worked! -
How to solve the ASInstance error
hello everyone,
when i install the BIEE11g, I always met a same mistake, that is 'ASInstance install error'. then I lookup the log file, it writes 'ASInstance error, Error in starting opmn server. operation aborted because of a system call failure or internal error'. could you tell me how to solve it?
if i choose to skip the error and continue to install, i could not to visit the http://localhost:7001/analytics and could not succee to run startall command in opmn.
notes: my os is win xp sp3 and database vision is 11.2.0.1.0 and rcu is 1.1.5.0
thank you very much.
regards,
phoenyhello everyone,
when i install the BIEE11g, I always met a same mistake, that is 'ASInstance install error'. then I lookup the log file, it writes 'ASInstance error, Error in starting opmn server. operation aborted because of a system call failure or internal error'. could you tell me how to solve it?
if i choose to skip the error and continue to install, i could not to visit the http://localhost:7001/analytics and could not succee to run startall command in opmn.
notes: my os is win xp sp3 and database vision is 11.2.0.1.0 and rcu is 1.1.5.0
thank you very much.
regards,
phoeny -
Hi,
How to catch or solve the 404 error in application.
Some time we are giving some file name but that file is not avialable at that time it will give 404 error. how to avoid this error.
If 404 error comes i want call some other file. Is it posible.
Thanks Advance.Yes, this is because IE 5.5 (?) and higher have this wacky "Show friendly HTTP error messages" setting. You can disable this by going to tools -> internet options -> advanced and unchecking "Show friendly HTTP error messages". However as the default IE setting has "Show friendly HTTP error messages" enabled this isn't a good solution.
I believe that if your error page is less than a certain size (in bytes) then IE defaults to it's own error page when "Show friendly HTTP error messages" are enabled. This size is something like 512 bytes or fewer in length.
So basically try making your error page larger (more than 512 bytes in size) and see if that works. -
how to solve the warning and severe error....................
[oracle@ip-********* Oracle11g_R2]$ emca -deconfig dbcontrol db -repos drop
STARTED EMCA at Mar 29, 2012 10:20:41 PM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: testdb11g3
Listener port number: 1521
Password for SYS user:
Password for SYSMAN user:
Do you wish to continue? [yes(Y)/no(N)]: y
Mar 29, 2012 10:22:13 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u02/oracle/Oracle11g_R2/cfgtoollogs/emca/testdb11g3/emca_2012_03_29_22_20_40.log.
Mar 29, 2012 10:22:13 PM oracle.sysman.emcp.EMDBPreConfig performDeconfiguration
WARNING: EM is not configured for this database. No EM-specific actions can be performed.
Mar 29, 2012 10:22:13 PM oracle.sysman.emcp.EMConfig perform
SEVERE: Listener is not up or database service is not registered with it. Start the Listener and register database service and run EM
Configuration Assistant again .
Refer to the log file at /u02/oracle/Oracle11g_R2/cfgtoollogs/emca/testdb11g3/emca_2012_03_29_22_20_40.log for more details.
Could not complete the configuration. Refer to the log file at
/u02/oracle/Oracle11g_R2/cfgtoollogs/emca/testdb11g3/emca_2012_03_29_22_20_40.log for more details.
[oracle@ip-******* Oracle11g_R2]$ cdtried but getting the same error.............
[oracle@ip-10-68-199-69 oracle]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 29-MAR-2012 23:37:21
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /u02/oracle/Oracle11g_R2/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /u02/oracle/Oracle11g_R2/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /u02/oracle/Oracle11g_R2/diag/tnslsnr/ip-10-68-199-69/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 29-MAR-2012 23:37:21
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u02/oracle/Oracle11g_R2/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u02/oracle/Oracle11g_R2/diag/tnslsnr/ip-10-68-199-69/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
The listener supports no services
The command completed successfully
[oracle@ip-10-68-199-69 oracle]$ sqlplus
SQL*Plus: Release 11.2.0.1.0 Production on Thu Mar 29 23:37:34 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter user-name: sys/Ashwin
ERROR:
ORA-28009: connection as SYS should be as SYSDBA or SYSOPER
Enter user-name: sys/Ashwin as sysdba
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> startup
ORA-01081: cannot start already-running ORACLE - shut it down first
SQL> shutdown abort
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 1603411968 bytes
Fixed Size 2213776 bytes
Variable Size 402655344 bytes
Database Buffers 1191182336 bytes
Redo Buffers 7360512 bytes
Database mounted.
Database opened.
SQL> exit
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@ip-10-68-199-69 oracle]$ emca -deconfig dbcontrol db -repos drop
STARTED EMCA at Mar 29, 2012 11:55:28 PM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: testdb11g3
Listener port number: 1521
Password for SYS user:
Password for SYSMAN user:
Do you wish to continue? [yes(Y)/no(N)]: y
Mar 29, 2012 11:55:57 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u02/oracle/Oracle11g_R2/cfgtoollogs/emca/testdb11g3/emca_2012_03_29_23_55_27.log.
Mar 29, 2012 11:55:57 PM oracle.sysman.emcp.EMDBPreConfig performDeconfiguration
WARNING: EM is not configured for this database. No EM-specific actions can be performed.
Mar 29, 2012 11:55:57 PM oracle.sysman.emcp.EMConfig perform
SEVERE: Listener is not up or database service is not registered with it. Start the Listener and register database service and run EM Configuration Assistant again .
Refer to the log file at /u02/oracle/Oracle11g_R2/cfgtoollogs/emca/testdb11g3/emca_2012_03_29_23_55_27.log for more details.
Could not complete the configuration. Refer to the log file at /u02/oracle/Oracle11g_R2/cfgtoollogs/emca/testdb11g3/emca_2012_03_29_23_55_27.log for more details. -
How to solve mutating table error?
I compiled the trigger below successfully:
CREATE OR REPLACE TRIGGER avail_products
BEFORE INSERT ON orders_tbl
FOR EACH ROW
DECLARE
m_prodqty products_tbl.prod_qty%TYPE;
m_ordered orders_tbl.ord_qty%TYPE;
m_prodid orders_tbl.prod_id%TYPE;
BEGIN
SELECT p.prod_qty, o.ord_qty, o.prod_id
INTO m_prodqty, m_ordered, m_prodid
FROM products_tbl p, orders_tbl o
WHERE ord_num=:NEW.ord_num;
IF m_prodqty>=m_ordered THEN
UPDATE products_tbl
SET prod_qty=prod_qty-m_ordered
WHERE prod_id=m_prodid;
ELSE
RAISE_APPLICATION_ERROR(-20101,'Product is not available');
END IF;
END;
However, when I run my PL/SQL block as follows:
DECLARE
v_max NUMBER;
BEGIN
SELECT MAX(ord_num)+1
INTO v_max
FROM orders_tbl;
INSERT INTO orders_tbl(ord_num, cust_id, prod_id, ord_qty, ord_date, dvy_date, refund)
VALUES (v_max, &cust_id, &prod_id, &ord_qty, '&ord_date', '&dvy_date',0);
COMMIT;
END;
UPDATE orders_tbl
SET refund=0.1*(SELECT price FROM products_tbl WHERE prod_id=(SELECT prod_id FROM orders_tbl WHERE ord_num=(SELECT MAX(ord_num) FROM orders_tbl)))
WHERE ord_num = (SELECT MAX(ord_num) FROM orders_tbl) AND dvy_date>ord_date+3;
COMMIT;
It gives me these errors:
ERROR at line 1:
ORA-01403: no data found
ORA-01403: no data found
ORA-06512: at "SYSTEM.AVAIL_PRODUCTS", line 9
ORA-04088: error during execution of trigger 'SYSTEM.AVAIL_PRODUCTS'
ORA-06512: at line 10
I try to debug it again and again but still can't find the mistake. So I change the trigger option to AFTER INSERT, then I got the error message that the table is mutating and trigger migh not see it. Anyone know how to solve this problem?
ERROR at line 2:
ORA-04091: table SYSTEM.ORDERS_TBL is mutating, trigger/function may not see it
ORA-06512: at "SYSTEM.AVAIL_PRODUCTS", line 13
ORA-04088: error during execution of trigger 'SYSTEM.AVAIL_PRODUCTS'
nullThis extract from an earlier post might be of help:
You can solve this problem by using following thing
1)create a view on same table with all fields
and write trigger on table (insert,update or delete ) while inserting or updating or deleting row from table read from view.
(Mutating error come when you are reading from one table and want to update,insert or delete row of same table).
2)create a temporary table(but it is possible in 8i onword only) same as table on which you want to write trigger,while updating,inserting or deleting rows of table read from temporary table and after your work is over temporary table auotomatically drop (see proper command in oracle documentation to create temporary table).
null -
SOS:How to solve "internal fatal error:load.cpp line6345"?
hello,everybody. now i meet with a sharp problem in labview. when i try to save a .vi file in labview, sometimes an error information will happen which is "internal fatal error:"load.cpp", line6345". i have tried almost every way to solve this problem but falied at last.
Can you tell me how to solve this problem? thank u all!beryllan;
Let us know which version of LabVIEW you are using. After a quick search in here at the Discussion Forums, I found that problems with load.cpp were common in LabVIEW 6, (with special mentions to the Student Edition). If that's your case, try updating LabVIEW here.
Regards
Enrique
www.vartortech.com -
Understanding how to solve an SQL error
If any one has an idea of how to solve an error like this,kindly tell me what to do.Please.
Msg 8120, Level 16, State 1, Line 1
Column 'Members.Memb_contact' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.If any one has an idea of how to solve an error like this,kindly tell me what to do.Please.
Msg 8120, Level 16, State 1, Line 1
Column 'Members.Memb_contact' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
Using the given info only thing we can suggest is to add Members.Memb_contact to the GROUP BY clause. But that may not give you the desired result. So unless you give us some sample data and explain what you want as output we may not be able to give you
the best solution.
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
TS3297 How to solve -42110 unknown error?
Please, how can I solve -42110 unknown error?
ThanksTry the following user tip:
iTunes for Windows 11.0.2.25 and 11.0.2.26: "Unknown error -42110" messages when launching iTunes -
How to solve this internal error in exporting?
Each time I export photos to my hard drive, there's always an error message displayed at the end of exporting shows:
Does anyone know how to solve this problem? It troubled me for a long time...
Any reply would be highly appreciated!Thanks Dorin and jjm01403!
I have checked the post-export field and it was blank indeed. The problem no longer occures after I choose the "Do Nothing" option.
Thanks again for your help! -
How to solve? RangeError: Error #1506: The specified range is invalid.
I complie a c library with alchemy, there are some errors in a function, and the flash traces:
"RangeError: Error #1506: The specified range is invalid."
I have set the CLibInit as global, only call the init() function ONCE as other said, but it didn't work.
I think that maybe the reason is out of heap/stack memory in some c functions???
or..??
Help me !!!
How to solve it...!!!
Thank youThis error is result of accessing an invalid memory pointer. You have likely corrupted alchemy, or are accessing an uninitialized or null pointer.
I'm not sure if this also happens in the case of a link problem. The linker does not complain if methods are missing. But, I thought that was a different error. -
Anyone figure out how to solve the 1015 error
anyone figure out how to solve the 1015 error
Each version of Photoshop has its own installation path therefore a different application as fars as Wacom Configuration. You would need to set preferences for each Photoshop installed on your system. However if you know XML. Wacom Tablet Preference File Utility can save your Wacom preferences into an XML file. That you may be able to duplicate a Photoshop install and the change the Photoshop Path. Or just change the prion version pathe the the new Photoshop path then restore your Wacom Preferences using the modified XML preference file.
Here you see part of my wacom preferences I have set preferences for all Photoshop installed on my workstation.
Maybe you are looking for
-
Hi, there i have a question to solve a problem wich appears while installation of kuler. Every time the installation process abort with the Errormessage "Sorry an error accured. The application could not be installed, cause the Air-Application is dam
-
1- I have a DIV tag in html page 2- Load dynamically an IFrame into that DIV 3- suppose that I have a JS function in that IFrame with name "func". 4- after first loading IFrame in DIV I can access "func" 5- but after reloading another IFrame into DIV
-
Problem during installing sap Netweaver abap 2007s Trial
Hello, I hope somebody could help me: I tried to install the 2007 on my server (Windows XP SP2). But the installation stops at 17% when installing the maxDB.(Preparing Packages for installation).There's the error log: INSTALLER_INFO: Version = 7.6.04
-
Constructor woes...
Hello all, I'm still working on a game of mine, and I've run across some compiler errors in one of the classes for it. The offensive class follows his message, and it is followed by the class with the main() method inside. Let me know what's not bein
-
My images in Dreamweaver won't load on web
I have been creating the website for our art gallery using Dreamweaver CS4. Today I tried to put some images on a page and suddenly they won't load on the browsers??? I have been doing these pages for a few weeks now and cannot figure out why suddenl