Pl/sql html
Hi
Im trying to send an html link in an email but i get the following error,
PLS-00306: wrong number or types of arguments in call to 'SEND' ORA-06550
Thanks Marco
You must use the correct number and types of arguments in the send command.
Similar Messages
-
Oracle PL/SQL & HTML developers with Oracle Portal experience for UK
Dear Oracle Portal Developer ,
This is Rajesh Krishnan from Athreya Consulting Services. My
firm is into executive search and recruitment targetted at
Ebusiness and IT Consulting firms . One of my clients which is a
53 million US$ company ( projected at 85 mn US $ for 2001) is
currently recruiting for following positions based at UK :
Oracle Portal Developers for UK : 3- 6 months contract at UK
(extendable) for Oracle Portal developers with 3-4 years
experience on PL/SQL & HTML & hands-on experience on Oracle
Portal. After completion of the assignment at UK , developers
(holding Indian citizenship) will have the option of joining the
development centers in India at Mumbai / Bangalore.
Brief profile :
Consistent delivery on their commitment to providing the best
value has been key to their explosive growth since incorporation
in June 1996. They received awards for the fastest growing
private company in Pittsburgh, at the Pittsburgh Business Times -
1999 Pittsburgh 100 Awards, and for the Fastest growing
technology company in Western Pennsylvania ($ 10-25 M category),
at the Pittsburgh Technology Council's 1999 Pittsburgh
Technology 50 Awards. Their headcount as on December 2000 stood
at 1050 .They have been growing at a scorching pace; doubling
their turnover consistently for the past three years.
Interested members may send their resumes across at
[email protected]
Warm Regards,
Rajesh Krishnan,
Athreya Consulting Services.
Email: [email protected]Please do not use this forum for advertising employment or
anything else. There are other vehicles that are more
appropriate for this purpose.
Thanks,
Jerry -
Dependant values in a pl/sql html portlet
I have a simple html form that shows records to be updated with a submit button. One of the field shows multiple cycles from a table with radiobutton. Different amounts have to be shown for different values of cycles. This amount should be dynamically picked from a table.
Will anyone have ideas on how to show different amounts for different cycles? I thought of using onclick on cycle but cannot make it work.
htp.p('<form action=http://hostname/pls/portal/genutil.pkg_call_perform_ana.pr_call_form_update method="get">');
LOOP
fetch c1 into val1, val2, cnt, val3;
exit when c1%NOTFOUND;
--i := i+1;
-- vivtest1.PKG_APP_ANA.tab_msg(i) := val1;
--PKG_CALL_APP_ANA.my_msg(i) := val1;
htp.p('<td align="left">');
htp.p('<font face="Arial" size=1 color=#000000">');
htp.p(val1|| '</font>');
htp.p('</td>');
htp.p('</tr>');
END LOOP;
htp.p('<tr>'); htp.p('<tr>');
-- cycle query begins here
VIVTEST1.pkg_perform_ana.PR_CYCLE_QUERY(c2);
htp.p('<TR>');
htp.p('<TR>');
htp.p('<td colspan=4>');
htp.p('<font face="Arial" size="1" color=#000000">');
htp.p('<b><center>Enter Distributed Amount </b></center>');
htp.p('<TR>');
LOOP
fetch c2 into p_var;
exit when c2%NOTFOUND;
htp.p('<td align="center">');
htp.p('<font face="Arial" size=1 color=#000000">');
--htp.p(' <input type="hidden" name="p_cycle">');
htp.p(' <input type="radio" name="p_cycle" ');
htp.p(' value = ' || p_var );
htp.p(' onclick="this.form.action=genutil.pkg_call_perform_ana.pr_call_form_update;" ');
htp.p('CHECKED >'||p_var||'</font>');
htp.p('</td>');
END LOOP;
-- cycle query ENDS here, Ask for pool amount
htp.p('<td align="left">');
htp.p('<font face="Arial" size=1 color=#000000">');
htp.p('Amt: <input type="text" name="poolamt" ');
htp.p( '</font>');
htp.p('</td>');
htp.p('<tr>');
-- Here's the submit button. Note that the value shows up in the button but
-- is not passed to the procedure because there's no "name=" defined.
htp.p(' <td colspan=4><input type="submit" value="Analyze"></td>');
htp.p('</tr>');
htp.p('</form></center>');
htp.p('</table>');
--htp.p(FootText);
CLOSE C1;I have a simple html form that shows records to be updated with a submit button. One of the field shows multiple cycles from a table with radiobutton. Different amounts have to be shown for different values of cycles. This amount should be dynamically picked from a table.
Will anyone have ideas on how to show different amounts for different cycles? I thought of using onclick on cycle but cannot make it work.
htp.p('<form action=http://hostname/pls/portal/genutil.pkg_call_perform_ana.pr_call_form_update method="get">');
LOOP
fetch c1 into val1, val2, cnt, val3;
exit when c1%NOTFOUND;
--i := i+1;
-- vivtest1.PKG_APP_ANA.tab_msg(i) := val1;
--PKG_CALL_APP_ANA.my_msg(i) := val1;
htp.p('<td align="left">');
htp.p('<font face="Arial" size=1 color=#000000">');
htp.p(val1|| '</font>');
htp.p('</td>');
htp.p('</tr>');
END LOOP;
htp.p('<tr>'); htp.p('<tr>');
-- cycle query begins here
VIVTEST1.pkg_perform_ana.PR_CYCLE_QUERY(c2);
htp.p('<TR>');
htp.p('<TR>');
htp.p('<td colspan=4>');
htp.p('<font face="Arial" size="1" color=#000000">');
htp.p('<b><center>Enter Distributed Amount </b></center>');
htp.p('<TR>');
LOOP
fetch c2 into p_var;
exit when c2%NOTFOUND;
htp.p('<td align="center">');
htp.p('<font face="Arial" size=1 color=#000000">');
--htp.p(' <input type="hidden" name="p_cycle">');
htp.p(' <input type="radio" name="p_cycle" ');
htp.p(' value = ' || p_var );
htp.p(' onclick="this.form.action=genutil.pkg_call_perform_ana.pr_call_form_update;" ');
htp.p('CHECKED >'||p_var||'</font>');
htp.p('</td>');
END LOOP;
-- cycle query ENDS here, Ask for pool amount
htp.p('<td align="left">');
htp.p('<font face="Arial" size=1 color=#000000">');
htp.p('Amt: <input type="text" name="poolamt" ');
htp.p( '</font>');
htp.p('</td>');
htp.p('<tr>');
-- Here's the submit button. Note that the value shows up in the button but
-- is not passed to the procedure because there's no "name=" defined.
htp.p(' <td colspan=4><input type="submit" value="Analyze"></td>');
htp.p('</tr>');
htp.p('</form></center>');
htp.p('</table>');
--htp.p(FootText);
CLOSE C1; -
I use the following SP to test transformation of XML and XSL, but the processXML seems didn't work, the result which should be a HTML is XML itself, please help.
create or replace procedure xslsample is
p xmlparser.Parser;
xmldoc xmldom.DOMDocument;
xmldocnode xmldom.DOMNode;
proc xslprocessor.Processor;
ss xslprocessor.Stylesheet;
xsldoc xmldom.DOMDocument;
docfrag xmldom.DOMDocumentFragment;
docfragnode xmldom.DOMNode;
xslelem xmldom.DOMElement;
nspace varchar2(50);
xslcmds xmldom.DOMNodeList;
xml Clob;
xsl Clob;
buffer varchar2(2000);
begin
p := xmlparser.newParser;
xmlparser.setValidationMode(p, FALSE);
xmlparser.setErrorLog(p, 'c:\err.log');
xmlparser.setPreserveWhiteSpace(p, TRUE);
--xmlparser.setBaseDir(p, 'c:\');
select content into xml from snippet where id=5 ; -- parse xml
xmlparser.parseClob(p, xml);
xmldoc := xmlparser.getDocument(p);
select content into xsl from snippet where id=6; -- parse xsl
xmlparser.parseClob(p, xsl);
xsldoc := xmlparser.getDocument(p);
proc := xslprocessor.newProcessor;
ss := xslprocessor.newStylesheet(xsldoc, 'c:\iden.xsl');
-- xmldocnode := xmldom.makeNode(xmldoc);
xslprocessor.processXSL(proc, ss, xmldoc,buffer);
-- docfrag :=docfragnode := xmldom.makeNode(docfrag);
dbms_output.put_line('Writing transformed document');
-- xmldom.writeToBuffer(docfragnode, buffer);
dbms_output.put_line(substr(buffer,1,200));
xslprocessor.freeStyleSheet(ss);
xslprocessor.freeProcessor(proc);
-- deal with exceptions
exception
when xmldom.INDEX_SIZE_ERR then
raise_application_error(-20120, 'Index Size error');
when xmldom.DOMSTRING_SIZE_ERR then
raise_application_error(-20120, 'String Size error');
when xmldom.HIERARCHY_REQUEST_ERR then
raise_application_error(-20120, 'Hierarchy request error');
when xmldom.WRONG_DOCUMENT_ERR then
raise_application_error(-20120, 'Wrong doc error');
when xmldom.INVALID_CHARACTER_ERR then
raise_application_error(-20120, 'Invalid Char error');
when xmldom.NO_DATA_ALLOWED_ERR then
raise_application_error(-20120, 'Nod data allowed error');
when xmldom.NO_MODIFICATION_ALLOWED_ERR then
raise_application_error(-20120, 'No mod allowed error');
when xmldom.NOT_FOUND_ERR then
raise_application_error(-20120, 'Not found error');
when xmldom.NOT_SUPPORTED_ERR then
raise_application_error(-20120, 'Not supported error');
when xmldom.INUSE_ATTRIBUTE_ERR then
raise_application_error(-20120, 'In use attr error');
end xslsample;
nullI use the following SP to test transformation of XML and XSL, but the processXML seems didn't work, the result which should be a HTML is XML itself, please help.
create or replace procedure xslsample is
p xmlparser.Parser;
xmldoc xmldom.DOMDocument;
xmldocnode xmldom.DOMNode;
proc xslprocessor.Processor;
ss xslprocessor.Stylesheet;
xsldoc xmldom.DOMDocument;
docfrag xmldom.DOMDocumentFragment;
docfragnode xmldom.DOMNode;
xslelem xmldom.DOMElement;
nspace varchar2(50);
xslcmds xmldom.DOMNodeList;
xml Clob;
xsl Clob;
buffer varchar2(2000);
begin
p := xmlparser.newParser;
xmlparser.setValidationMode(p, FALSE);
xmlparser.setErrorLog(p, 'c:\err.log');
xmlparser.setPreserveWhiteSpace(p, TRUE);
--xmlparser.setBaseDir(p, 'c:\');
select content into xml from snippet where id=5 ; -- parse xml
xmlparser.parseClob(p, xml);
xmldoc := xmlparser.getDocument(p);
select content into xsl from snippet where id=6; -- parse xsl
xmlparser.parseClob(p, xsl);
xsldoc := xmlparser.getDocument(p);
proc := xslprocessor.newProcessor;
ss := xslprocessor.newStylesheet(xsldoc, 'c:\iden.xsl');
-- xmldocnode := xmldom.makeNode(xmldoc);
xslprocessor.processXSL(proc, ss, xmldoc,buffer);
-- docfrag :=docfragnode := xmldom.makeNode(docfrag);
dbms_output.put_line('Writing transformed document');
-- xmldom.writeToBuffer(docfragnode, buffer);
dbms_output.put_line(substr(buffer,1,200));
xslprocessor.freeStyleSheet(ss);
xslprocessor.freeProcessor(proc);
-- deal with exceptions
exception
when xmldom.INDEX_SIZE_ERR then
raise_application_error(-20120, 'Index Size error');
when xmldom.DOMSTRING_SIZE_ERR then
raise_application_error(-20120, 'String Size error');
when xmldom.HIERARCHY_REQUEST_ERR then
raise_application_error(-20120, 'Hierarchy request error');
when xmldom.WRONG_DOCUMENT_ERR then
raise_application_error(-20120, 'Wrong doc error');
when xmldom.INVALID_CHARACTER_ERR then
raise_application_error(-20120, 'Invalid Char error');
when xmldom.NO_DATA_ALLOWED_ERR then
raise_application_error(-20120, 'Nod data allowed error');
when xmldom.NO_MODIFICATION_ALLOWED_ERR then
raise_application_error(-20120, 'No mod allowed error');
when xmldom.NOT_FOUND_ERR then
raise_application_error(-20120, 'Not found error');
when xmldom.NOT_SUPPORTED_ERR then
raise_application_error(-20120, 'Not supported error');
when xmldom.INUSE_ATTRIBUTE_ERR then
raise_application_error(-20120, 'In use attr error');
end xslsample;
null -
Dependent values in pl/sql HTML portlet
I have a simple html form that shows records to be updated with a submit button. One of the field shows multiple cycles from a table with radiobutton. Different amounts have to be shown for different values of cycles. This amount should be dynamically picked from a table.
Will anyone have ideas on how to show different amounts for different cycles? I thought of using onclick on cycle but cannot make it work.
htp.p('<form action=http://hostname/pls/portal/genutil.pkg_call_perform_ana.pr_call_form_update method="get">');
LOOP
fetch c1 into val1, val2, cnt, val3;
exit when c1%NOTFOUND;
--i := i+1;
-- vivtest1.PKG_APP_ANA.tab_msg(i) := val1;
--PKG_CALL_APP_ANA.my_msg(i) := val1;
htp.p('<td align="left">');
htp.p('<font face="Arial" size=1 color=#000000">');
htp.p(val1|| '</font>');
htp.p('</td>');
htp.p('</tr>');
END LOOP;
htp.p('<tr>'); htp.p('<tr>');
-- cycle query begins here
VIVTEST1.pkg_perform_ana.PR_CYCLE_QUERY(c2);
htp.p('<TR>');
htp.p('<TR>');
htp.p('<td colspan=4>');
htp.p('<font face="Arial" size="1" color=#000000">');
htp.p('<b><center>Enter Distributed Amount </b></center>');
htp.p('<TR>');
LOOP
fetch c2 into p_var;
exit when c2%NOTFOUND;
htp.p('<td align="center">');
htp.p('<font face="Arial" size=1 color=#000000">');
--htp.p(' <input type="hidden" name="p_cycle">');
htp.p(' <input type="radio" name="p_cycle" ');
htp.p(' value = ' || p_var );
htp.p(' onclick="this.form.action=genutil.pkg_call_perform_ana.pr_call_form_update;" ');
htp.p('CHECKED >'||p_var||'</font>');
htp.p('</td>');
END LOOP;
-- cycle query ENDS here, Ask for pool amount
htp.p('<td align="left">');
htp.p('<font face="Arial" size=1 color=#000000">');
htp.p('Amt: <input type="text" name="poolamt" ');
htp.p( '</font>');
htp.p('</td>');
htp.p('<tr>');
-- Here's the submit button. Note that the value shows up in the button but
-- is not passed to the procedure because there's no "name=" defined.
htp.p(' <td colspan=4><input type="submit" value="Analyze"></td>');
htp.p('</tr>');
htp.p('</form></center>');
htp.p('</table>');
--htp.p(FootText);
CLOSE C1;I have a simple html form that shows records to be updated with a submit button. One of the field shows multiple cycles from a table with radiobutton. Different amounts have to be shown for different values of cycles. This amount should be dynamically picked from a table.
Will anyone have ideas on how to show different amounts for different cycles? I thought of using onclick on cycle but cannot make it work.
htp.p('<form action=http://hostname/pls/portal/genutil.pkg_call_perform_ana.pr_call_form_update method="get">');
LOOP
fetch c1 into val1, val2, cnt, val3;
exit when c1%NOTFOUND;
--i := i+1;
-- vivtest1.PKG_APP_ANA.tab_msg(i) := val1;
--PKG_CALL_APP_ANA.my_msg(i) := val1;
htp.p('<td align="left">');
htp.p('<font face="Arial" size=1 color=#000000">');
htp.p(val1|| '</font>');
htp.p('</td>');
htp.p('</tr>');
END LOOP;
htp.p('<tr>'); htp.p('<tr>');
-- cycle query begins here
VIVTEST1.pkg_perform_ana.PR_CYCLE_QUERY(c2);
htp.p('<TR>');
htp.p('<TR>');
htp.p('<td colspan=4>');
htp.p('<font face="Arial" size="1" color=#000000">');
htp.p('<b><center>Enter Distributed Amount </b></center>');
htp.p('<TR>');
LOOP
fetch c2 into p_var;
exit when c2%NOTFOUND;
htp.p('<td align="center">');
htp.p('<font face="Arial" size=1 color=#000000">');
--htp.p(' <input type="hidden" name="p_cycle">');
htp.p(' <input type="radio" name="p_cycle" ');
htp.p(' value = ' || p_var );
htp.p(' onclick="this.form.action=genutil.pkg_call_perform_ana.pr_call_form_update;" ');
htp.p('CHECKED >'||p_var||'</font>');
htp.p('</td>');
END LOOP;
-- cycle query ENDS here, Ask for pool amount
htp.p('<td align="left">');
htp.p('<font face="Arial" size=1 color=#000000">');
htp.p('Amt: <input type="text" name="poolamt" ');
htp.p( '</font>');
htp.p('</td>');
htp.p('<tr>');
-- Here's the submit button. Note that the value shows up in the button but
-- is not passed to the procedure because there's no "name=" defined.
htp.p(' <td colspan=4><input type="submit" value="Analyze"></td>');
htp.p('</tr>');
htp.p('</form></center>');
htp.p('</table>');
--htp.p(FootText);
CLOSE C1; -
How to create and execute PL/SQL program or Procedure from Java (JDBC)
hi all,
user will enter the Pl/Sql program from User-Interface. that program has to be create in DB and execute that.
due to some confusions, how to execute this from Java, i (user) entered the same logic through a Procedure.
my Java code is
Statement st = con.createStatement();
Statement.execute(procedure_query); // procedure name is myPro
CallableStatement cs = con.prepareCall("{call myPro}");
(as given in SUN docs - http://java.sun.com/docs/books/tutorial/jdbc/basics/sql.html)
but its not creating the procedure.
and i tried to run a procedure (which is already created) with CallableStatement, and this is also not working.
how to get this.
thanks and regards
pavanHi,
SInce the PL/SQL block is keyed in dynamically, you probably want to use the anonymous PL/SQL syntax for invoking it:
// begin ? := func (?, ?); end; -- a result is returned to a variable
CallableStatement cstmt3 =
conn.prepareCall(“begin ? := func3(?, ?); end;”);
// begin proc(?, ?); end; -- Does not return a result
CallableStatement cstmt4 =
Conn.prepareCall(“begin proc4(?, ?); end;”);
SQLJ covered in chapter 10, 11, and 12 of my book furnish a more versatile dynamic SQl or PL/SQL mechanisms.
Kuassi
- blog http://db360.blogspot.com/
- book http://db360.blogspot.com/2006/08/oracle-database-programming-using-java_01.html -
Connect SQL Server 2008 in Oracle BI EE
Hi all,
Am very very new to Oracle BI and i want to know how to connect my local SQL server database in Oracle BI EE to create new reports.
Thanks ,
SathishSathish,
See the below link will helpful to you,
1. Step 6). Create RCU using Repository Creation Utility 11.1.1.3.3 software. from
http://www.bisptrainings.com/2011/11/obiee-installation-11g-using-ms-sql.html
2. http://www.skurabigroup.com/blog/?p=745
If you face ODBC Driver Error with SQL Server
1. http://total-bi.com/2011/05/obiee-11g-strange-odbc-driver-error-with-sql-server/
2. http://danishhotta.com/?p=179
Thanks,
Balaa... -
Connecting BI Pub with Microsoft SQL server 2008
I am trying to connect Microsoft SQL server 2008 as a Data source in BIP .
Using below info :
Driver Type : Microsoft sql server 2005
Database Driver class : com.microsoft.jdbc.sqlserver.SQLServerDriver
Connection String : jdbc:sqlserver://TXHOURDB71D:1443;DatabaseName=StewartAccessIntegration
I am unable establish the connection and the username and password which I giving is right for the connection.
Please let me know if I am missing any config steps.
AJOfficially, you got to use Hyperion drivers.
For BIPublisher 10.1.3.4 and ++ to connect to Ms sql server,
use the following
This works well and better.
Driver class = hyperion.jdbc.sqlserver.SQLServerDriver
Connection String = jdbc:hyperion:sqlserver://SERVERNAME:PORT;DatabaseName=DBNAME;
http://winrichman.blogspot.com/2009/04/hyperion-driver-to-connect-to-ms-sql.html
In older versions.
you can also copy the drivers to the lib folder or applib folder and try what you were doing.
http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/b32481/toc.htm#T498352 -
Hello,
I have a DB containing PROJECT NAME, DVDNAME (ex. C1345, F234, G4576) and the FILES on the DVD.
In my page result, I want the list of the DVD from a project with the following formatting ( 7 columns table), using PL/SQL.
1 DVD can contain from 5000 files
Ex:
select DVDNAME, FILENAME fromTABLE where project = 2
*DVD NAME: C1345*
12.txt 13.txt 15.txt 16.txt 17.txt 18.txt 19.txt
22.txt 24.txt 26.txt 27.txt 28.txt 29.txt 31.txt
32.txt 33.txt 36.txt 37.txt 39.txt 42.txt 45.txt
44.txt 45.txt 47.txt 49.txt 55.txt 57.txt 59.txt
61.txt 63.txt 64.txt 66.txt 68.txt 69.txt 70.txt
71.txt 73.txt 75.txt 77.txt 78.txt 79.txt 80.txt
81.txt 82.txt 83.txt 85.txt 86.txt 88.txt 89.txt
93.txt 95.txt 97.txt 99.txt
*DVD NAME: C2334*
112.txt 113.txt 115.txt 116.txt 117.txt 118.txt 119.txt
122.txt 124.txt 126.txt 127.txt 218.txt 219.txt 311.txt
132.txt 133.txt 136.txt 137.txt 319.txt 412.txt 415.txt
144.txt 145.txt 147.txt 149.txt 155.txt 517.txt 519.txt
161.txt 163.txt 164.txt 166.txt 168.txt 619.txt 710.txt
171.txt 173.txt 175.txt 177.txt 178.txt 719.txt 810.txt
181.txt 182.txt 183.txt 185.txt 186.txt 818.txt 819.txt
193.txt 195.txt 197.txt 1 99.txt
HOW can I modify my code to have the result needed? I have only a 1 row table with the DVDTITLE repeating...
BEGIN
htp.p('<HTML>');
htp.p('<HEAD>');
htp.p('<TITLE>DISQUES C</TITLE>');
htp.p('</HEAD>');
htp.p('<BODY>');
for idx in (select DVDNAME, FILENAME fromTABLE where project = 2 )loop
htp.p('<TABLE>');
htp.p('<TR>');
htp.p('<TD>'||idx.DVDNAME||' </TD> ');
htp.p('</TR>');
htp.p('<TR>');
htp.p('<TD>'||idx.FILENAME||' </TD> <TD>'||idx.FILENAME||' </TD> <TD>'||idx.FILENAME||' </TD> <TD>'||idx.FILENAME||' </TD> <TD>'||idx.FILENAME||' </TD> <TD>'||idx.FILENAME||' </TD> <TD>'||idx.FILENAME||' </TD> <TD>'||idx.FILENAME||' </TD>');
htp.p('</TR>');
htp.p('</TABLE>');
end loop;
htp.p('</BODY>');
htp.p('</HTML>');
end;thanks,
RoselineApplication Express 3.1.2.00.02
Oracle 11g
I want to list the DVD and his content who are related to a project X. Each DVD and content must be in a different table.
This table must have 7 columns. The problem with the following code that I have show all the file in a single row for all the DVD content.
How can I modify it?
The query:
SELECT Id, DVD_ID,NomFichier,PROJET_ID FROM elements where PROJET_ID =1Wanted output
DVD 85
2635080 2636608 2637084 2637091 2637092 2637093 2637147
2637152 2637153 2637154 2637155 2637156 2637157 2637164
2637169 2637170 2637172 2637173 2637202 2637203 2637213
2637214 2637215 2637216 2637218 2637217 2637219 2637220
DVD 86
2639497 2639498 2639502 2639504 2639505 2639506
2639508 2639509 2639511 2639512 2639519 2639521 2639522
2639523 2639525 2639527 2639530 2639542 2639543 2639552
2639553 2639554 2639555 2639559 2639560 2639561 2639563
2639564 2639565 2639567 2639574 2639575 2639578 2639579
DVD 87
2641806 2641807 2641808 2641809 2641810 2641819
2641821 2641824 2641827 2641828 2641830 2641831
2641834 2641838 2641839 2641846 2641847 2641849
2641851 2641852 2641853 2641854 2641855 2641863
etc...Current output
87
2641806 2641807 2641808 2641809 2641810 2641819 2641820 2641821 2641824 2641827 2641828 2641830 2641831 2641832 2641834
88
2644294 2644297 2644299 2644300 2644303 2644304 2644308 2644309 2644311 2644316 2644318 2644319 2644320 2644322 2644323 What someone suggest it?URL http://www.developpez.net/forums/d865203/bases-donnees/oracle/pl-sql/html-affichage-tableaux-conditions/[URL]
DECLARE
vtemp varchar2(4000) DEFAULT ' ';
BEGIN
htp.p('<HTML>');
htp.p('<HEAD>');
htp.p('<TITLE>DISQUES C</TITLE>');
htp.p('</HEAD>');
htp.p('<BODY>');
FOR idx IN
SELECT DVD_ID, NomFichier,
row_number() over(partition BY DVD_ID ORDER BY NomFichier ASC) AS rna,
row_number() over(partition BY DVD_ID ORDER BY NomFichier DESC) AS rnd
FROM elements
WHERE PROJET_ID = 1
ORDER BY DVD_ID ASC, rna ASC
loop
IF idx.rna = 1
then
htp.p('<TABLE>');
htp.p('<TR>');
htp.p('<TD>' || idx.DVD_ID ||' </TD> ');
htp.p('</TR>');
htp.p('<TR>');
end IF;
vtemp := vtemp || '<TD>' || idx.NomFichier || ' </TD>';
IF mod(idx.rna, 7) = 0 OR idx.rnd = 1
then
htp.p(vtemp);
vtemp := ' ';
end IF;
IF idx.rnd = 1
then
htp.p('</TR>');
htp.p('</TABLE>');
end IF;
end loop;
htp.p('</BODY>');
htp.p('</HTML>');
end;thanks
Roseline
Edited by: Roseline on 19 janv. 2010 10:25 -
I'm trying to learn to use the JSTL, but it isn't going so well. Using scriptlets, I wrote this JSP that works just fine:
<HTML>
<HEAD>
<TITLE> <%= request.getParameter("txtTitle") %> </TITLE>
<%@ page import="java.sql.*, java.util.*" %>
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conn = DriverManager.getConnection("jdbc:odbc:RDM_CURRENT_11", "name", "pword");
Statement getResults = conn.createStatement();
ResultSet rs = getResults.executeQuery(request.getParameter("txtQuery"));
ResultSetMetaData rsmd = rs.getMetaData();
%>
</HEAD>
<BODY>
<H1><%= request.getParameter("txtTitle") %></H1>
<TABLE BORDER="1">
<%
int count = 0;
while (rs.next())
%>
<TR>
<%
for (int i = 1; i <= rsmd.getColumnCount(); i++)
%>
<TD>
<%= rs.getString(i) %>
</TD>
<%
count++;
%>
</TR>
<% } %>
</TABLE>
<P> Records returned: <%= count %> </P>
</BODY>
</HTML>I tried to translate most of this into JSTL as follows:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
<HTML>
<HEAD>
<TITLE> <c:out value="${param.txtTitle}"/> </TITLE>
</HEAD>
<BODY>
<sql:setDataSource url="jdbc:odbc:RDM_CURRENT_11" driver="sun.jdbc.odbc.JdbcOdbcDriver" user="name" password="pword" var="RDM"/>
<sql:query var="dataSet" dataSource="RDM">
<c:out value="${param.txtQuery}"/>
</sql:query>
<H1><c:out value="${param.txtTitle}"/></H1>
<TABLE BORDER="1">
<c:forEach var="row" items="${dataSet.rows}">
<TR>
<c:forEach var="col" items="${row}">
<TD>
<c:out value="${col.value}"/>
</TD>
</c:forEach>
</TR>
</c:forEach>
</TABLE>
</BODY>
</HTML>Now, I get a nasty error message from Tomcat saying:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:845)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:778)
org.apache.jsp.queryDisplay2_jsp._jspService(org.apache.jsp.queryDisplay2_jsp:97)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:276)
org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:159)
org.apache.taglibs.standard.tag.el.sql.QueryTag.doStartTag(QueryTag.java:85)
org.apache.jsp.queryDisplay2_jsp._jspx_meth_sql_query_0(org.apache.jsp.queryDisplay2_jsp:152)
org.apache.jsp.queryDisplay2_jsp._jspService(org.apache.jsp.queryDisplay2_jsp:77)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.4 logs.
Apache Tomcat/5.5.4I know my OBDC data source must be set up correctly because the scriptlet version works, but the JSTL version doesn't. I'm sure this is some easy problem that I am missing because I don't know JSTL well at all. Any help is appreciated.If you don't provide a "var" attribute to export to, JSTL keeps track of it for you in the standard pageContext attribute "javax.servlet.jsp.jstl.sql.dataSource"
The query tag obviously found the datasource there.
Just spotted what I think might be your original problem:
You need ${ } signs around the datasource variable in the query tag.
ie
<sql:setDataSource url="jdbc:odbc:RDM_CURRENT_11" driver="sun.jdbc.odbc.JdbcOdbcDriver" user="name" password="pword" var="RDM"/>
<sql:query var="dataSet" dataSource="${RDM}">Cheers,
evnafets -
JSP + MYSQL question: input form value into a SQL table
Hello,
I am writing some JSP code to read input information from a input form to write this information into a SQL field.
My problems are:
- how can i pass the input form information to other jsp file ? (like Getproperty of something like this)
- how can i move the content of any input information into a variable ? I mean something like this:
String a1;
username.value.of.the.input.field.in.forum_jsp = a1.in.addmessage_jsp;and then:
int rowsAffected = stmt.executeUpdate("INSERT INTO forummessages (messagecode, " + " usercode, " + " messagedate, " + " message) VALUES(6,3,06/07/2007,'" + a1 + "')");------
The SQL table looks like this:
stmt.executeUpdate("CREATE TABLE forummessages (messagecode int AUTO_INCREMENT PRIMARY KEY, usercode int, messagedate date, message char(255) not null)");My codes are:
forum.jsp - this one should pass the input information to addmessage.jsp
<%@ page contentType="text/html; charset=iso-8859-2" %>
<%@ page import="java.sql.*" %>
<%
Connection con = null;
Statement stmt = null;
try {
Class.forName("com.mysql.jdbc.Driver");
String url = "jdbc:mysql://localhost:3306/mysql";
con = DriverManager.getConnection(url,"root", "");
stmt = con.createStatement();
String sql = "SELECT * FROM forummessages,users,bmwecode WHERE (forummessages.usercode=users.usercode) AND (users.bmwcode=bmwecode.bmwcode)";
ResultSet rs = stmt.executeQuery(sql);
%>
<html>
<head>
<title>JSP + MYSQL Teszt</title>
</head>
<body>
<a href="forum.jsp">Forum / Uj hozzaszolas</a>
<a href="userlist.jsp">Felhasznalok kilistazasa</a>
<a href="adduser.jsp">Felhasznalo hozzadasa</a>
<a href="deletemessage.jsp">Hozzaszolas torlese</a>
<br><br>
<form action="addmessage.jsp" method=post">
Felhasznalo:
<input type="text" name="username">
<br><br>
Hozzaszolas:
<input type="text" name="message">
<br><br>
<input type="submit" value="Uj hozzaszolas">
<br><br>
<table border="0">
<tr>
<th>messagecode</th>
<th>user</th>
<th>car type</th>
<th>message</th>
</tr>
<%
while(rs.next()){
%>
<tr>
<td><%=rs.getInt("messagecode") %></td>
<td><%=rs.getString("username") %></td>
<td><%=rs.getString("bmwtype") %></td>
<td><%=rs.getString("message") %></td>
</tr>
<%
} // end while
%>
</table>
</body>
</html>
<%
} catch (Exception e) {
out.println("<font color=red><h3>Error:</h3></font>" + e);
e.printStackTrace();
} finally {
try {
if (stmt!=null) {
stmt.close();
if (con!=null) {
con.close();
} catch (Exception e) {
e.printStackTrace();
%> ----
addmessage.jsp
<%@ page contentType="text/html; charset=iso-8859-2" %>
<%@ page import="java.sql.*" %>
<%
Connection con = null;
Statement stmt = null;
try {
Class.forName("com.mysql.jdbc.Driver");
String url = "jdbc:mysql://localhost:3306/mysql";
con = DriverManager.getConnection(url,"root", "");
stmt = con.createStatement();
int rowsAffected = stmt.executeUpdate("INSERT INTO forummessages (messagecode, " + " usercode, " + " messagedate, " + " message) VALUES(6,3,06/07/2007,'" + a1 + "')");
} catch (Exception e) {
out.println("<font color=red><h3>Hiba:</h3></font>" + e);
e.printStackTrace();
} finally {
try {
if (stmt!=null) {
stmt.close();
if (con!=null) {
con.close();
} catch (Exception e) {
e.printStackTrace();
%>
<a href="forum.jsp">Forum / Uj hozzaszolas</a>
<a href="userlist.jsp">Felhasznalok kilistazasa</a>
<a href="adduser.jsp">Felhasznalo hozzadasa</a>
<a href="deletemessage.jsp">Hozzaszolas torlese</a>
<br><br>---
Thank you for your help in advance.SELECT DISTINCT
hou.name
,poh.segment1 po_num
,pol.line_num po_line_num
,poh.currency_code
--,trunc(poh.creation_date) po_creation_date
,pol.cancel_flag
,msi.segment1 item_num
,pol.unit_price
,round(cost.item_cost,5)
,round((&p_rate * pol.unit_price),5) "CONVERSION"
,(cost.item_cost - round((&p_rate * pol.unit_price),5)) difference
,pov.vendor_name
FROM
po.po_headers_all poh
,po.po_lines_all pol
,po.po_vendors pov
,hr.hr_all_organization_units hou
,inv.mtl_system_items_b msi
,bom.cst_item_costs cost
WHERE
poh.po_header_id = pol.po_header_id
and pov.vendor_id = poh.vendor_id
and poh.org_id = hou.organization_id
and hou.organization_id = :p_operating_unit
and poh.currency_code = :p_currency
and poh.creation_date between :po_creation_date_from and :po_creation_date_to
and poh.type_lookup_code = 'BLANKET'
and msi.inventory_item_id = pol.item_id
and cost.INVENTORY_ITEM_ID = pol.ITEM_ID
--and (cost.item_cost - pol.unit_price) <> 0
and (cost.item_cost - round((&p_rate * pol.unit_price),5)) <> 0
and cost.organization_id = 1
and msi.organization_id = 1
and cost.cost_type_id = 3 --- Pending cost type
and nvl(upper (pol.closed_code),'OPEN') not in('CANCELLED', 'CLOSED', 'FINALLY CLOSED', 'REJECTED')
and nvl(upper (poh.closed_code),'OPEN') not in('CANCELLED', 'CLOSED', 'FINALLY CLOSED', 'REJECTED')
and nvl(pol.cancel_flag, 'N') = 'N'
and &p_rate user parameter
I want this p_rate to be passed as a user parameter. -
JSTL, MySQL, Tomcat sql:query error
Hi to everyone...
This is my first post, but since im employed now as a java developer ill be here regulary.
Right now im trying to use the JSTL to make some simple sql selects in my JSPs....
Here�s the JSP code:
<%@ page language="java" import="java.lang.*,java.util.*" %>
<%@ taglib uri="/jstl-core" prefix="c" %>
<%@ taglib uri="/jstl-sql" prefix="sql" %>
<html>
<head>
<title> A first JSP database </title>
</head>
<body>
<sql:setDataSource scope="session" var="dataSource"
url="jdbc:mysql://127.0.0.1/zolltek" driver="com.mysql.jdbc.Driver"
user="root" password="root"/>
<!-- The following UPDATE works fine.. -->
<sql:update var="users" dataSource="${dataSource}" scope="session">
INSERT INTO test VALUES (7,'Paul Oakenfold')
</sql:update>
<!-- But the select screws up.... -->
<sql:query var="users" dataSource="${dataSource}" scope="session">
SELECT * FROM test WHERE 1
</sql:query>
</body>
</html>
...and the error message:
exception :
org.apache.jasper.JasperException:
SELECT * FROM test WHERE 1
: null
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
root cause
javax.servlet.ServletException:
SELECT * FROM test WHERE 1
: null
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:531)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:84)
...and just for completion the importent part of my web.xml:
<taglib>
<taglib-uri>/jstl-core</taglib-uri>
<taglib-location>/WEB-INF/c-1_0.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/jstl-sql</taglib-uri>
<taglib-location>/WEB-INF/sql-1_0.tld</taglib-location>
</taglib>
i am using the jboss 3.2.3 tomcat bundle (tomcat 4.1.29)
and mysql 4.0.18 on W32 System....
the JSTL is installed and working - i can make <sql:update>Inserts without any problems, but any <sql:query>selects result in that error... so i guess the setDataSource is okay...
Any idea would be appreciated....
Thx
J�rgThose URIs you've got in your JSPs aren't correct. They should be:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
These are the URIs defined in the standard.jar.
You'd be better off setting up a Tomcat JNDI data source for your application. That will externalize the connection parameters and make it unnecessary to refer to a data source in your JSPs.
You'd be even better off not putting SQL code in your JSPs. They're for presentation. Better to write a Java object that will communicate with the database on the JSP's behalf.
If you just want to select all the rows in the table, the query should be "SELECT * FROM test". You don't need a WHERE clause in that case.
If you change the URIs in your JSPs you should remove the <taglib> from your web.xml. It's not necessary. Tomcat will find the TLD by looking in the JARs in the CLASSPATH and matching the URIs. -
MS SQL Server 2012 Developers Freeze At ODBC Setup
I am attempting to create an ODBC connection using my local computer's
Admin Tools-ODBC Connection interface.
I can select the MS SQL Server driver type, enter the odbc name I want to call the connection , then click browse so to look for sql databases in a local install of MS SQL Server 2012 Developers Edition
The odbc setup goes into a search mode that ran for over 4 hours and the process could not be terminated using Task Manager - End Task.
After rebooting, I tried the Options - Create New Connection using Microsoft SQL Server Data Tools interface and get the same result where I again have to reboot the computer to stop the setup.
Is this an expected result when setting up an odbc this way and/or is there another way odbcs are created so to connect to MS SQL Server 2012 databases?
I am a databaseHello,
I can't reproduce this issue on my test environment, and I'm sure what do you mean hang on search mode while create a SQL Server ODBC Data Source. Could you please share a screenshot about this issue?
I would suggest you take a look at the following articles about how to create a ODBC DSN to SQL Server 2012:
Creating a SQL Server ODBC Data Source:
http://technet.microsoft.com/en-us/library/cc879308(v=sql.105).aspx
http://hodentekmsss.blogspot.com/2013/08/how-do-you-create-odbc-dsn-to-sql.html
Hope this helps.
Elvis Long
TechNet Community Support -
Getting error on console after configuring MS SQL DB server with portal
Hi,
I am using WebLogic portal 10.2. I have configured MS SQL server with this portal as mentioned in:
http://edocs.beasys.com/wlp/docs102/db/SQL.html
After successfully performing all the steps mentioned in above link, when i try to start WebLogic Portal
server i get following error on console:
<Mar 17, 2009 2:00:31 PM GMT+05:30> <Notice> <Log Management> <BEA-170019> <The server log file C:\bea\wlserver_10.0\samples\domains\portal\servers\portalServer\logs\portalServer.log is opened. All server side log events will be written to this file.>
<Mar 17, 2009 2:00:39 PM GMT+05:30> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
<Mar 17, 2009 2:00:39 PM GMT+05:30> <Error> <Security> <BEA-000000> <[Security:090759]A SQLException occurred while retrieving password information
java.sql.SQLException: [BEA][SQLServer JDBC Driver][SQLServer]Invalid object name 'USERS'.
at weblogic.jdbc.base.BaseExceptions.createException(Unknown Source)
at weblogic.jdbc.base.BaseExceptions.getException(Unknown Source)
at weblogic.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source)
at weblogic.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source)
at weblogic.jdbc.sqlserver.tds.TDSRPCRequest.processReplyToken(Unknown Source)
Truncated. see log file for complete stacktrace
>
<Mar 17, 2009 2:00:39 PM GMT+05:30> <Critical> <Security> <BEA-090402> <Authentication denied: Boot identity not valid; The user name and/or password from the boot identity file (boot.properties) is not valid. The boot identity may have been changed since the boot identity file was created. Please e
dit and update the boot identity file with the proper values of username and password. The first time the updated boot identity file is used to start the server, these new values are encrypted.>
<Mar 17, 2009 2:00:39 PM GMT+05:30> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: weblogic.security.SecurityInitializationException: Authentication denied: Boot identity not valid; The user name and/or password from the boot identity file (boot.properties) is not valid.
The boot identity may have been changed since the boot identity file was created. Please edit and update the boot identity file with the proper values of username and password. The first time the updated boot identity file is used to start the server, these new values are encrypted.
weblogic.security.SecurityInitializationException: Authentication denied: Boot identity not valid; The user name and/or password from the boot identity file (boot.properties) is not valid. The boot identity may have been changed since the boot identity file was created. Please edit and update the bo
ot identity file with the proper values of username and password. The first time the updated boot identity file is used to start the server, these new values are encrypted.
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(Unknown Source)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(Unknown Source)
at weblogic.security.service.SecurityServiceManager.initialize(Unknown Source)
at weblogic.security.SecurityService.start(SecurityService.java:141)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
Truncated. see log file for complete stacktrace
>
<Mar 17, 2009 2:00:39 PM GMT+05:30> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
<Mar 17, 2009 2:00:39 PM GMT+05:30> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
<Mar 17, 2009 2:00:39 PM GMT+05:30> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
Autonomy server stopped.
and server could not proceed further.
How can we resolve above error?Hi,
I have re-installed WebLogic Portal 10.2 and now i m trying to configure MS SQL server.
When i use configuration wizard tool, i could successfully run database scripts and i could see table being created in database. But when wizard reaches its last screen and installation completes about 75%, wizard screen shows following error:
Traceback (innermost last):
File "<iostream>", line 14, in ?
File "C:\Documents and Settings\Administrator\Local Settings\Temp\1\WLSTOfflineIni55090.py", line 118, in create
com.bea.plateng.domain.script.jython.WLSTException: com.bea.plateng.domain.script.ScriptException: com.bea.plateng.domain.ValidateException: Property "Name" of SAMLCredentialMapperV2 with original name "Provider" is invalid. The property value is duplicated.
at com.bea.plateng.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:51)
at com.bea.plateng.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:1468)
at com.bea.plateng.domain.script.jython.WLScriptContext.create(WLScriptContext.java:732)
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.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:160)
at org.python.core.PyMethod.__call__(PyMethod.java:96)
at org.python.core.PyObject.__call__(PyObject.java:248)
at org.python.core.PyObject.invoke(PyObject.java:2016)
at org.python.pycode._pyx319.create$29(C:\Documents and Settings\Administrator\Local Settings\Temp\1\WLSTOfflineIni55090.py:118)
at org.python.pycode._pyx319.call_function(C:\Documents and Settings\Administrator\Local Settings\Temp\1\WLSTOfflineIni55090.py)
at org.python.core.PyTableCode.call(PyTableCode.java:208)
at org.python.core.PyTableCode.call(PyTableCode.java:293)
at org.python.core.PyFunction.__call__(PyFunction.java:179)
at org.python.pycode._pyx322.f$0(<iostream>:14)
at org.python.pycode._pyx322.call_function(<iostream>)
at org.python.core.PyTableCode.call(PyTableCode.java:208)
at org.python.core.PyCode.call(PyCode.java:14)
at org.python.core.Py.runCode(Py.java:1135)
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:167)
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:162)
at com.bea.plateng.domain.DomainChecker.executeEmbeddedScript(DomainChecker.java:911)
at com.bea.plateng.domain.DomainChecker.runCustomWLSTScript(DomainChecker.java:878)
at com.bea.plateng.domain.DomainChecker.preprocessOutput(DomainChecker.java:135)
at com.bea.plateng.domain.TemplateImporter.generate(TemplateImporter.java:248)
at com.bea.plateng.wizard.domain.gui.tasks.DomainCreationGUITask$1.run(DomainCreationGUITask.java:232)
Caused by: com.bea.plateng.domain.script.ScriptException: com.bea.plateng.domain.ValidateException: Property "Name" of SAMLCredentialMapperV2 with original name "Provider" is invalid. The property value is duplicated.
at com.bea.plateng.domain.script.ScriptExecutor.create4SubTypeObject(ScriptExecutor.java:955)
at com.bea.plateng.domain.script.jython.ScriptProxyFactory.deepCreateProxy4SubTypeObject(ScriptProxyFactory.java:128)
at com.bea.plateng.domain.script.jython.WLScriptContext.create(WLScriptContext.java:728)
... 25 more
Caused by: com.bea.plateng.domain.ValidateException: Property "Name" of SAMLCredentialMapperV2 with original name "Provider" is invalid. The property value is duplicated.
at com.bea.plateng.domain.aspect.XBeanConfigAspect.selfValidate(XBeanConfigAspect.java:630)
at com.bea.plateng.domain.aspect.AbstractConfigAspect.validate(AbstractConfigAspect.java:1130)
at com.bea.plateng.domain.aspect.AbstractConfigAspect.selfSetValue(AbstractConfigAspect.java:1615)
at com.bea.plateng.domain.aspect.AbstractConfigAspect.setValueInternal(AbstractConfigAspect.java:1574)
at com.bea.plateng.domain.aspect.AbstractConfigAspect.setValue(AbstractConfigAspect.java:748)
at com.bea.plateng.domain.aspect.AbstractConfigAspect.setValue(AbstractConfigAspect.java:757)
at com.bea.plateng.domain.operation.HTableEditOperation.createSimpleConfigAspects(HTableEditOperation.java:265)
at com.bea.plateng.domain.script.ScriptExecutor.create4SubTypeObject(ScriptExecutor.java:930)
... 27 more
Caused by: java.beans.PropertyVetoException: The property value is duplicated.
at com.bea.plateng.domain.event.aspect.UniqueValueValidateListener.valueChanged(UniqueValueValidateListener.java:127)
at com.bea.plateng.domain.event.aspect.ConfigAspectValueListener.vetoableChange(ConfigAspectValueListener.java:138)
at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:189)
at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:156)
at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:139)
at com.bea.plateng.domain.aspect.XBeanConfigAspect.selfValidate(XBeanConfigAspect.java:620)
... 34 more
com.bea.plateng.domain.script.jython.WLSTException: com.bea.plateng.domain.script.jython.WLSTException: com.bea.plateng.domain.script.ScriptException: com.bea.plateng.domain.ValidateException: Property "Name" of SAMLCredentialMapperV2 with original name "Provider" is invalid. The property value is duplicated.
at org.python.core.Py.JavaError(Py.java:324)
at org.python.core.Py.JavaError(Py.java:311)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:163)
at org.python.core.PyMethod.__call__(PyMethod.java:96)
at org.python.core.PyObject.__call__(PyObject.java:248)
at org.python.core.PyObject.invoke(PyObject.java:2016)
at org.python.pycode._pyx319.create$29(C:\Documents and Settings\Administrator\Local Settings\Temp\1\WLSTOfflineIni55090.py:118)
at org.python.pycode._pyx319.call_function(C:\Documents and Settings\Administrator\Local Settings\Temp\1\WLSTOfflineIni55090.py)
at org.python.core.PyTableCode.call(PyTableCode.java:208)
at org.python.core.PyTableCode.call(PyTableCode.java:293)
at org.python.core.PyFunction.__call__(PyFunction.java:179)
at org.python.pycode._pyx322.f$0(<iostream>:14)
at org.python.pycode._pyx322.call_function(<iostream>)
at org.python.core.PyTableCode.call(PyTableCode.java:208)
at org.python.core.PyCode.call(PyCode.java:14)
at org.python.core.Py.runCode(Py.java:1135)
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:167)
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:162)
at com.bea.plateng.domain.DomainChecker.executeEmbeddedScript(DomainChecker.java:911)
at com.bea.plateng.domain.DomainChecker.runCustomWLSTScript(DomainChecker.java:878)
at com.bea.plateng.domain.DomainChecker.preprocessOutput(DomainChecker.java:135)
at com.bea.plateng.domain.TemplateImporter.generate(TemplateImporter.java:248)
at com.bea.plateng.wizard.domain.gui.tasks.DomainCreationGUITask$1.run(DomainCreationGUITask.java:232)
what should i do? -
Reading data from Sybase SQL Anywhere 7 database to write into a SQL Server database
Hi,
I need to import data from a Sybase SQL Anywhere vers. 7 database. This RDBMS was used more 10-12 years ago. I want to write Sybase data into a SQL Server 2008 R2-2012 database. For testing purposes I'm using SQL Server 2005.
After that I've installed Sybase SQL Anywhere vers. 7 I can use the Adaptive Anywhere 7.0 ODBC. I'd like to use SSIS to import Sybase data, but I cannot create an OLE DB connection in a right manner while I can create and ODBC connection manager and so I
can use an Execute SQL task (and not a data flow task, unfortunately!).
Well, after using this Execute SQL task to read fe a table with thousands of data rows how can I write the entire data collection on a SQL Server table?
ThanksBelow link may be helpful,
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/184c937a-2b2c-4e59-b4d7-e8d3d1b476b3/net-provider-for-oledb-sybase-adaptive-server-anywhere-ole-db-provider-90-cant-be-located-when?forum=sqlintegrationservices
http://supun-biz.blogspot.in/2010/11/extracting-data-from-sybase-sql.html
Regards, RSingh
Maybe you are looking for
-
Dear Sir, Oracle 8i is not installing in my system. The setup comes within a fraction of seconds without raising any error . I have PIV 1.5 GHZ with 128 MB RAM. I tried with Win NT,Win 2000, Win 2000 Advanced Server, Win XP but i faced the same probl
-
Hello All, my PROD is currently running in 9i hp ux. we are planning for upgrade to 10.2.0.4. most of my application uses RBO in my 9i database. when it migrates to 10g Developers and customer dont want to use default CBO as they will have to make lo
-
Where clause with If condition
Hi All, Oracle 11g I have the following table create table test_table ( firstname varchar2(500) , middlename varchar2(500) , lastname varchar2(500) ); insert into test_table (firstname,middlename,lastname) values ('Peter',null,'Smith'); insert into t
-
Dear Guru's I am requesting you all. can any one please explain the fail back procudere after a fail over in dataguard. I go through the oracle DG concepts giude but it s not explained any where. Thanks, Prasanna.
-
No MEP code in the escreen !!
Hi, My Q10 was hard reseted during a keyboard exchange by the constructor (under warranty) and no longer desimlocked. I obtained an official code and the network and sub-network are now unlocked as told in the security menu but I am reaquested for a