Report query XML schema error - Apex Listener 2
I built a simple query: select * from emp in (Shared components > Report Query)
When I try to download XML schema for this query (Source Query section) resulting xsd file contains this text: String index out of range: -1
Shared Apex hosting: 4.2.2.0.0.11
Print server: Apex Listener 2.0.1
Hey Saymonc, we're you ever able to find the cause of this issue? I'm having this happen to me as well. When I begin using the Report Query functionality, the schema downloaded just fine. I made an update to a query and began receiving this error. Now I get the error for ALL of my report queries. I tried removing them and recreating them, and I continue to receive this error in my schema file, no matter how simple the query. The data will download just fine, and using the Test Report button works as well.
Thanks,
Chris
Similar Messages
-
Ora-06502: variable length too long on report query xml schema download
on shared components/report queries/edit report query/
and downloading my queries in xml schema format (radio button).
Get
ORA-06502: PL/SQL: numeric or value error: raw variable length too long
when i click the download button.
EDIT:
i want to add that i recently changed several columns in the database from 150 to 3000 chars long.
Edited by: Manny Rodriguez on Oct 11, 2011 7:19 AM"4000 bytes is the ultimate maximum. you can say 4000 *characters* , but it'll always be limited to 4000 *bytes* . "
http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:1224836384599#201073000346459201\
"The maximum length of the column is determined by the national character set definition. Width specifications of character data type NVARCHAR2 refer to the number of characters. The maximum column size allowed is 4000 bytes."
http://docs.oracle.com/cd/E11882_01/server.112/e26088/sql_elements001.htm#SQLRF50976
By the way, you're treating your numbers as STRINGS, remove the quotes around your zero's. -
32k Rowsize Limit (ORA-006502) for Report Query Shared Objects in Apex 4.1
We're trying to move legacy reports off of PlanetPress into Apex. One of the report queries has over 20 tables and attempting to run with the "Test Report" button in the Edit Report Query screen gets the error message:
Error ORA-06502: PL/SQL: numeric or value error: character string buffer too small
This problem appears to have been characterized previously here:
Listener Error - character string buffer too small (ORA-06502)
If I comment out 13 lines/items in my SELECT clause, the Test Report runs okay. If I add back in an innocuous literal sellect of a 100-character string, it goes back to the 6502 error.
I was trying to add more literal strings to force APEX to shift internally from a 32k-limit to a CLOB for the row, however, with a 32k literal string in my SQL statement, APEX crashes. I can't strip out columns from my SQL as all are needed for the report.
I would very much appreciate a work-around or a patch to Apex 4.1 to address this limitation. Thank you.Try moving some of your select logic into a view, thus you can select from the views and reduce your code... (Move the joining between tables and such to the view..)
Thank you,
Tony Miller
Webster, TX -
How to change report query dynamically in Oracle APEX?
Hi,
I want to dynamically change the where condition in APEX report query. Can anyone help me solve my this problem?
(Just want to change the query which we change in Oracle Reports using lexical parameter to change &Where, &Order by etc. dynamically!!)
Thanks, PrafulHi
I've been using flexible queries in APEX for a few years now, and your question just added a whole new dimension to the flexible and powerful nature or writing reports in APEX.
While APEX Interactive reporting has almost completely removed the need the equivalent of Lexicals in Oracle Reports, I thought it might be fun to try and use lexicals in an APEX report.
Before we start I should summarise the powerful capability of APEX reporting to have oprtional parameters (lots and lots of them if this is needed).
For each parameter, you simply add a page item which will hold the value of the parameter.
The item/parameter can be populated by typing in the value, defining an LOV, using a date-picker etc.
To make the parameter optional simply use an OR in the where clause.
So for a apge item P200_PARAM1.....include
WHERE (:P200_PARAM1 IS NULL
OR COLUMN1 = :P200_PARAM1)
This way you can either leave the page item null or type in / select a value from a LOV.
There is a small quirk in APEX LOV's which sometimes returns a value of '%' or '%null%' - depending on the version - when no value is selected.
See Patrick Wolf's solution for this at Re: Null value handling in LOVs
I include this Application Process in all my APEX applications ;)
Now let's look at using the equivalent of Oracle Reports Lexicals......
First-off - this is based on the APEX SQL report - NOT Interactive Report.
It relies on the fact that you can let the query be parsed only at runtime.
1. Define an SQL report entering the 'core' of your query.
With a query like SELECT ENAME, JOB FROM EMP
Select 'Generic Columns' option in the 'Column Headings' section
Finish the report creation
2. Define a page item - say P200_LEXICAL - type text on the page
3. Edit the report and update the SQL query to include your lexical page item
SELECT ENAME, JOB FROM EMP &P200_LEXICAL. (REMEMBER THE '.' AT THE END)
Ensure that the option "Use Generic Column Names (parse query at runtime only)" is selected at the bottom of the query
4. Add a button to the page -using 'Create a button displayed among this region's items' the will submit the page.
5. Run the page - you will see all the employee names and job desdriptions
6. Enter a where clause into the 'Lexical' textbox - say "WHERE ENAME LIKE 'K%'" and click the 'Go' button
Voila! your where clause is magically applied.
Try any variant you like adding an ORDER BY clause etc...... this is FUN!
7. Clear the value of the LEXICAL and click go.
Edit the report and move the &P200_LEXICAL. into the selected columns (or add another one)
SELECT ENAME, JOB &P200_LEXICAL. FROM EMP
8. Run the page
Enter ",SAL" in the textbox and "Go"
We can add as many columns as we like (subject to the "Maximum number of generic report columns:" set below the SQL query in the report edit section)
Now because we have all the flexibility in APEX of setting page items using SQL or PLSQL you can set the value of the lexical programatically, or just pre-set a few values in an LOV - the options are limitless.
While I've never had the need to use lexicals - you can see that APEX provides the most Flexible Lexicals in town.
Eat your heart out "Oracle Reports"!!!
Have fun
Mike -
Report Query - XML data source empty
Hello!
I built a report query, using the wizard, under Shared Components and when I test the query using bind variables I get the correct data, but as I click Apply Changes and get to the screen where it gives me the option to Download the data source for the report layout, the file is empty. I've repeated the steps multiple times, each time getting correct data when testing the query, yet nothing in my xml file.
Any ideas on why this is happening?
Thank you.Hello! Thank you for responding!
I actually am having problems on the "Report Queries" section under "Shared Components"...my query doesn't return any data when I try to download/open the xml file. Once I'm able to get this fixed, I'll be able to open my report on the page that has the branch. -
Generate pdf with apex listener 2.0
hi,
we would like to generate pdf out of apex.
as long as we have text (IRR) WITHOUT special characters (öäü), everything is working fine.
when we have this characters in a text-columng (IRR), then we get a .pdf with the following content:
javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: An invalid XML character (Unicode: 0x3) was found in the element content of the document.
could this be a problem of the characterset? but if, where to change what?
- we defined in ADMIN in 'report printing' / 'instance-settings': oracle-apex-listener
- we are working with apex-listener 2.0 (integrated in weblogic-server)
- we work with APEX 4.2.1.00.08
thanks for any ideas
roland
Edited by: user514151 on 01.04.2013 23:24I have this same problem with windows-1250 encoding.
Invalid byte 1 of 1-byte UTF-8 sequence.
com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:687)
at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:557)
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1753)
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipChar(XMLEntityScanner.java:1426)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2754)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:607)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:489)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:835)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:568)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:302)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:195)
at oracle.dbtools.apex.fop.FOPUtils.fop2pdf(FOPUtils.java:72)
at oracle.dbtools.apex.hooks.postProcess.FOP2PDF.requestTOPDF(FOP2PDF.java:87)
at oracle.dbtools.apex.hooks.postProcess.FOP2PDF.postProcess(FOP2PDF.java:49)
at oracle.dbtools.apex.hooks.ProcessorRegistry.postProcess(ProcessorRegistry.java:56)
at oracle.dbtools.apex.ModApex.handleRequest(ModApex.java:241)
at oracle.dbtools.apex.ModApex.doGet(ModApex.java:98)
at oracle.dbtools.apex.ModApex.service(ModApex.java:316)
at oracle.dbtools.rt.web.HttpEndpointBase.modApex(HttpEndpointBase.java:260)
at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:110)
Any solution ?
Regards
md -
Registering an XML Schema (schema.xsd is not an XDB schema document)
Hello there,
I'm trying to work with XML DB for a few days now, so far i didn't do anything really usefull to me, but i managed to do some general things reading these forums and the documentation. Now however, i encounter this error registering an XML Schema:
ERROR at line 1:
ORA-31000: Resource 'www.ariase.com.xsd' is not an XDB schema document
ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 82
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 102
ORA-06512: at line 8I'm registering it with the following code:
DBMS_XMLSCHEMA.registerSchema('www.ariase.com.xsd', XDBURIType('D:\Stage\Results\XSD_Target\www.ariase.com.xsd').getClob(),TRUE,TRUE,FALSE,TRUE);and this is the schema i'm registering:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" xdb:storeVarrayAsTable="true">
<xs:element name="ariase" xdb:defaultTable="ARIASE">
<xs:complexType xdb:maintainDOM="false">
<xs:sequence>
<xs:element name="ligne" type="typeLigne" xdb:SQLName="LIGNE"/>
<xs:element name="debit" type="typeDebit" xdb:SQLName="DEBIT"/>
<xs:element name="central" type="typeCentral" xdb:SQLName="CENTRAL"/>
<xs:element name="technologies" type="typeTechnologies" xdb:SQLName="TECHNOLOGIES"/>
<xs:element name="reseaux" type="typeReseaux" xdb:SQLName="RESEAUX"/>
<xs:element name="degroupage" type="typeDegroupage" xdb:SQLName="DEGROUPAGE"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- Complex types -->
<xs:complexType name="typeLigne" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_LIGNE">
<xs:sequence>
<xs:element name="numero" type="typeNumero"/>
<xs:element name="longeur" type="xs:string"/>
<xs:element name="affaiblissement" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="typeDebit" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_DEBIT">
<xs:sequence>
<xs:element name="adsl2" type="xs:string"/>
<xs:element name="adsl" type="xs:string"/>
<xs:element name="readsl" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="typeCentral" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_CENTRAL">
<xs:sequence>
<xs:element name="code" type="xs:string"/>
<xs:element name="nom" type="xs:string"/>
<xs:element name="lieu" type="xs:string"/>
<xs:element name="lignes" type="xs:string"/>
<xs:element name="densite" type="xs:string"/>
<xs:element name="dslam" type="xs:string"/>
<xs:element name="plaque" type="xs:string"/>
<xs:element name="couvertures" type="typeCouvertures"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="typeCouvertures" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_COUVERTURES">
<xs:sequence maxOccurs="unbounded">
<xs:element name="comunne" type="typeComunne"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="typeComunne" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_COMUNNE">
<xs:sequence>
<xs:element name="nom" type="xs:string"/>
<xs:element name="couverture" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="typeTechnologies" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_TECHNOLOGIES">
<xs:sequence maxOccurs="unbounded">
<xs:element name="technologie" type="typeTechnologie"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="typeTechnologie" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_TECHNOLOGIE">
<xs:sequence>
<xs:element name="nom" type="xs:string"/>
<xs:element name="central" type="xs:string"/>
<xs:element name="ligne" type="xs:string"/>
<xs:element name="reponse" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="typeReseaux" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_RESEAUX">
<xs:sequence maxOccurs="unbounded">
<xs:element name="reseau" type="typeReseau"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="typeReseau" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_RESEAU">
<xs:sequence>
<xs:element name="nom" type="xs:string"/>
<xs:element name="adsl" type="xs:string"/>
<xs:element name="adsl2" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="typeDegroupage" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_DEGROUPAGE">
<xs:sequence maxOccurs="unbounded">
<xs:element name="fournisseur" type="typeFournisseur"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="typeFournisseur" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_FOURNISSEUR">
<xs:sequence>
<xs:element name="nom" type="xs:string"/>
<xs:element name="totale" type="xs:string"/>
<xs:element name="tv" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<!-- Simple types -->
<xs:simpleType name="typeNumero">
<xs:restriction base="xs:string">
<xs:pattern value="[0-9]{10}"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>I'm using Oracle XE 2.1.0.00.39. Does this all look a bit OK, or am i way off here. I already managed to register the schema when it had a different name, and when it was in a different folder, so now i don't know what i'm doing wrong.
Also i'd like to know what the best way is to insert 10.000s of XML documents in the database, is it possible to 'upload' them to the server, or will i always have to use an INSERT query to do this?
I hope i gave enough information.
Regards,
StijnTHis looks wrong to me
XDBURIType('D:\Stage\Results\XSD_Target\www.ariase.com.xsd').
xdburitype() is used to reference an XML document that already been loaded into the XDB repository.
You can load the document using FTP or WEBDAV or BFILENAME to any folder that already exists and you have write access to. By default this will probably be '/public' unless you have loaded the xdb_utilities package which is posted in this forum and create a '/home' folder for your user. For instance if you loaded the XSD into '/public' your code would look something like this..
xdburitype('/public/www.ariase.com').getClob()
However that would typically generate an error like this
'SQL> exec DBMS_XMLSCHEMA.registerSchema('www.ariase.com.xsd', XDBURIType('D:\Stage\Results\XSD_Target\www.ariase.com.xsd').getClob(),TRUE,TR
UE,FALSE,TRUE);
BEGIN DBMS_XMLSCHEMA.registerSchema('www.ariase.com.xsd', XDBURIType('D:\Stage\Results\XSD_Target\www.ariase.com.xsd').getClob(),TRUE,TRUE,F
ALSE,TRUE); END;
ERROR at line 1:
ORA-31001: Invalid resource handle or path name
"D:\Stage\Results\XSD_Target\www.ariase.com.xsd"
ORA-06512: at "SYS.XDBURITYPE", line 4
ORA-06512: at line 1
SQL>The error message you are seeing implies that the schema you are registering contains an import or include element with a schemalocation attribute that references 'www.ariase.com.xsd'
Eg
SQL> begin
2 DBMS_XMLSCHEMA.registerSchema('www.ariase.com1.xsd',
3 '<?xml version="1.0" encoding="UTF-8"?>
4 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attri
5 <xs:include schemaLocation="www.ariase.com.xsd"/>
6 <xs:element name="root" type="xs:short">
7 <xs:annotation>
8 <xs:documentation>Comment describing your root element</xs:documentation
9 </xs:annotation>
10 </xs:element>
11 </xs:schema>',
12 TRUE,TRUE,FALSE,TRUE);
13 end;
14
15
16 /
begin
ERROR at line 1:
ORA-31000: Resource 'www.ariase.com.xsd' is not an XDB schema document
ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 3
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 14
ORA-06512: at line 2
SQL> -
Ora-06502 pl/sql numeric or value error in Report Query in oracle apex
Hello all,
I need your help...
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
I am using bi publisher to generate PDF reports in oracle apex.
We were using APEX 4.0 and migrated to 4.2 just a week ago.
Now we have apex 4.2.
When I try to Create report query,
Shared Components >> Report Queries then create.
and test a report in a create wizard I am getting a error "ORA-06502: PL/SQL: numeric or value error: character string buffer too small".
I have also applied a patch "16760897".
This issue is because of number of columns in a query is more then 26.
If I run a report with 26 or less number of columns then the is working fine, otherwise getting this error.
My before migration report queries working perfectly even now, but not new queries.
This issue is also in apex.oracle.com.
You can see
Not working - http://apex.oracle.com/pls/apex/f?p=619:4
Working - http://apex.oracle.com/pls/apex/f?p=619:2:
Please give a solution.
Thanks you.check the DB version compatibility with apex 4 or your DB version to apex 4.0 support for upgrade!
Oracle Application Express Installation Requirements for 4.0 -
Error when print report from apex using apex listener 2
Hi
Apex 4.2
I want print report to pdf from apex using apex listener 2.
The print server 'Oracle APEX listener' has been defined at the instance-level.
ACL has been configured.
I attempt to download a report in PDF mode, it appears that it downloads,
but when I go to open it up I get an error that the file is of the wrong type or possibly corrupt.
Upon opening the file in Text editor, there is an error as below
%PDF-1.4
1 瀛楄妭鐨?UTF-8 搴忓垪鐨勫瓧鑺?1 鏃犳晥銆?If you use Windows the user that runs the reports server is usually LocalSystem. Check this in the Windows Services panel.
LocalSystem has no printer access. To be able to print, you have to use a real domain user that has access to the printer. So, change the Log on properties in the Services panel. -
APEX Listener EA2 Standalone CLOB error
I'm testing the APEX Listener EA2 release in Standalone mode on CentOS against Oracle XE.
My RESTful service calls use the Media Resource type to return a CLOB that I format myself inside a function:
select 'application/json', my_function_that_returns_json_in_a_clob from dual
In the EA2 release, this is generating an error if the function returns more than 4000 bytes (works with 4000, fails with 4001). It is as though the function is getting cast as a varchar2 somewhere. I verified that the function will correctly return a large result to other sources (dbms_output, for instance).
The APEX Listener Log reports the error as:
oracle.dbtools.rt.web.HttpEndpointBase restfulServices
SEVERE: ORA-22922: nonexistent LOB value
Here's a Test Case:
create or replace function test_size(p_cnt in integer) return clob
is
l_clob clob;
begin
for i in 1..p_cnt loop
l_clob:=l_clob||'a';
end loop;
return l_clob;
end;
Then create a RESTful service call:
Method: "GET"
Source Type: "Media Resource"
Source: select 'application/json', test_size(4001) from dual
Thanks,
TimThanks for your thorough reply!
Unfortunately, your workaround doesn't fix the problem with EA2. It encounters the 4000 character limit as well.
I understand your advice regarding using the QUERY type. I chose the Media Resource strategy for two main reasons:
1. These services calls are for our mobile developers. Because they use some predefined frameworks for managing data that comes to the mobile app, they wanted the json to distinguish between data sets (rather than every data set being called "items"). I am able to format the json in such a way that it doesn't confuse their code. Is there another way to customize the format of the default json created by the QUERY type?
2. I need to conduct some other business as part of the call. For instance, the service passes in a user's credentials which I use to authenticate and then retrieve the appropriate results based on who they are. Currently, I have stored procedures that authenticate APEX users or LDAP users.
Perhaps old habits die hard, but I find that if I just do all of this myself in a stored function, I have all of the control I need. If you have other recommended strategies, I'm all ears.
Thanks!
_Tim -
Report Printing: APEX 4.01 - APEX Listener - WebLogic 10.3.3
We have some report printing issues...
Our configuration is APEX 4.01 using the APEX Listener with WebLogic 10.3.3.
The first issue is that under "Print Attributes" the following is listed in red under "Printing":
"Report printing is currently not available, there is no print server configured."
The second one is that we need to print pdf format and I have not found a solution for doing this with the APEX Listener and WebLogic. I saw that the FOP solution for the APEX Listener didn't make it into the current release... Is there any way to do pdf type reports with the current APEX listener technology?
The third issue is that in the demo app when running a report there is a "Error loading file:" type error with "FLOW_FLASH_CHART" and apex_util.flash as part of the url.
Any help would be appreciated...
Thanks!
- ScottI deployed in WebLogic the fop.war that came with APEX 4.0.1 and it got rid of the error message, but when I tried to download a report as pdf, I got an error saying it was corrupted or invalid. I downloaded the file it produced and opened it in a text editor. It was a small html type file with the following URL:
ORA-20001: The printing engine could not be reached because either the URL specified is incorrect or a proxy URL needs to be specified.
When I go to the URL that I think it should be going to based on what I put into Instance settings> Report Printing, I get:
Compilation of JSP File '/apex_fop.jsp' failed:
apex_fop.jsp:5:18: The import oracle.xml cannot be resolved
<%@ page import='oracle.xml.parser.v2.XMLDocument'%>
^------------------------------^
apex_fop.jsp:6:18: The import oracle.xml cannot be resolved
<%@ page import='oracle.xml.parser.v2.XSLProcessor'%>
^-------------------------------^
apex_fop.jsp:7:18: The import oracle.xml cannot be resolved
<%@ page import='oracle.xml.parser.v2.XSLStylesheet'%>
^--------------------------------^
apex_fop.jsp:8:18: The import oracle.xml cannot be resolved
<%@ page import='oracle.xml.parser.v2.DOMParser'%>
^----------------------------^
apex_fop.jsp:12:1: XMLDocument cannot be resolved to a type
XMLDocument v_doc;
^--------^
apex_fop.jsp:13:1: XSLStylesheet cannot be resolved to a type
XSLStylesheet v_xsl = null;
^----------^
apex_fop.jsp:15:1: DOMParser cannot be resolved to a type
DOMParser parser = new DOMParser();
^------^
apex_fop.jsp:15:28: DOMParser cannot be resolved to a type
DOMParser parser = new DOMParser();
^------^
apex_fop.jsp:16:1: XSLProcessor cannot be resolved to a type
XSLProcessor processor = new XSLProcessor();
^---------^
apex_fop.jsp:16:30: XSLProcessor cannot be resolved to a type
XSLProcessor processor = new XSLProcessor();
^---------^
apex_fop.jsp:21:13: XSLStylesheet cannot be resolved to a type
v_xsl = new XSLStylesheet(new java.io.StringReader(request.getParamet -
Shared Components APEX Report Query and Layout
Does anyone know how to call the report query and layout from the Shared components section from a page within the application?
mtbdude40 wrote:
What I need is this: The ability to create a PDF report with a custom header defining the data (example - select * from emp where deptno = :deptno and the header includes the department name).
I use this white paper as my source: http://www.oracle.com/technetwork/developer-tools/apex/learnmore/custom-pdf-reports-1953918.pdf
You need to build and use a Shared Resource -> Report Queries.
The Report Query will have two queries associated with it (see below).
one query will be for the header information, the other will be for the data.
use the "download" of the "xml data" as your source for Altova/other tools.
If you add/remove/change queries, You'll have to redo your report (from scratch) as that changes the XML Schema required. (at least, with my experience)
Once you get the hang of it, 2x queries is easy (Header, data)
I've experimented with 3x queries (header, master,details) but have been unsuccessful. I have some ideas though ("link" master->detail info via XPath stuff within Altova) but haven't gotten around to testing it.
If you want to run the report for multiple departments....That might require some finesse.
Unfortunately, the Source of the Queries can't be a scalar SQL that returns 1 row of 1 column of data type XMLType....
MK -
APEX LIstener administration via SQLDeveloper 3.2.2 error
Hi,
I configured the APEX Listener 2 on my server and everything works fine.
I also configured the Restful webservices that also works fine in APEX.
Now , I would like to be able to configure the APEX Listener via SQLDeveloper 3.2.2
I changed the defaults.xml file to allow a non HTTPS connection and configured the adminlistener password.
When I try to connect to the APEX Listener via SQLDeveloper to retrieve the configuration, I get the following error :
Error occured retrieving Administration Settings from Listener.
Unexpected Content-Type:application/json; charset=UTF-8
APEX Listener is installed on Windows (french version).
Thanks
Francis.Hi Francis, I'm getting the same error.
(I do note however that SQLDev does make the connection - and even though I get the UTF8 error, I can upload/download config files. This would appear to be a warning/info message. But still annoying.)
I am using CentOS 5.8 Linux, Glassfish 3.1.2, SQLDev 3.2.20.09, ApEx 4.2. DB is 11.2.0.3, AL32UTF8. So this problem is not unique to Windows or French.
Wayne
Edited by: cawli2 on Nov 6, 2012 10:54 AM
Edited by: cawli2 on Nov 6, 2012 12:36 PM -
Apex Listener return blank pages with no configuration errors!
- I set up an Apex Listener "Version:1.1.3.243.11.40" at "10.0.114.11" in standalone mode.
- I configured Apex Listener via http://10.0.114.11:8585/apex/listenerConfigure and return with no errors.
- I get http://10.0.114.11:8585/apex/listenerStatus, it returned this:
Current Time: Tue Dec 13 17:06:32 ICT 2011
Server Uptime: 0 Days 01:10:14.101
Total Accesses: 38.0
Total Traffic: 161.34K
Total Errors: 0
Total File Downloads: 0
Total Processing Time: 0 Days 00:00:09.354
Processing Time in milliseconds: Minimum: 20 Average: 246 Median: 64 Maximum: 3062
Database Time in milliseconds: Minimum: 14 Average: 61 Median: 50 Maximum: 204
Active Requests: 0
Connections in the pool apex:
Active: 0 Available: 1
But when I go to "http://10.0.114.11:8585/apex" or "http://10.0.114.11:8585/apex/apex_admin", I got blank pages.
The page displays "Application Express Login" or "Application Express Administration Services" in the tab at the top of IE, but nothing else. Anyone have any ideas what could be happening here ?
thanks so much,Hi Udo!
I run apex_listener with this below command and the output is that:
java -Dapex.home=/tmp/apex -Dapex.images=/tmp/apex/apex/images -Dapex.port=8585 -Dapex.erase -jar /source_install/apex_listener.1.1.3.243.11.40/apex.war
INFO: Starting: /source_install/apex_listener.1.1.3.243.11.40/apex.war
See: 'java -jar apex.war --help' for full range of configuration options
INFO: Extracting to: /tmp/apex
INFO: Using classpath: file:/tmp/apex/apex/____embedded/start.jar:file:/tmp/apex/apex/WEB-INF/lib/poi-3.6-20091214.jar:file:/tmp/apex/apex/WEB-INF/lib/commons-fileupload-1.2.1.jar:file:/tmp/apex/apex/WEB-INF/lib/je-4.0.103.jar:file:/tmp/apex/apex/WEB-INF/lib/apex.jar:file:/tmp/apex/apex/WEB-INF/lib/ojmisc.jar:file:/tmp/apex/apex/WEB-INF/lib/ucp.jar:file:/tmp/apex/apex/WEB-INF/lib/xdb-11.2.0.jar:file:/tmp/apex/apex/WEB-INF/lib/xmlparserv2-11.2.0.jar:file:/tmp/apex/apex/WEB-INF/lib/ojdbc6.jar:
INFO: Starting Embedded Web Container in: /tmp/apex
Dec 13, 2011 6:40:22 PM ____bootstrap.Deployer deploy
INFO: Will deploy application path=/tmp/apex/apex/WEB-INF/web.xml
Dec 13, 2011 6:40:22 PM ____bootstrap.Deployer deploy
INFO: deployed application path=/tmp/apex/apex/WEB-INF/web.xml
Using config file: /tmp/apex/apex-config.xml
-- listing properties --
PropertyCheckInterval=60
ValidateConnection=true
MinLimit=1
MaxLimit=10
InitialLimit=3
AbandonedConnectionTimeout=900
MaxStatementsLimit=10
InactivityTimeout=1800
MaxConnectionReuseCount=1000
APEX Listener version : 1.1.3.243.11.40
APEX Listener server info: Grizzly/1.9.18-o
Dec 13, 2011 6:40:23 PM com.sun.grizzly.Controller logVersion
INFO: Starting Grizzly Framework 1.9.18-o - Tue Dec 13 18:40:23 ICT 2011
INFO: http://localhost:8585/apex started.
Using JDBC driver: Oracle JDBC driver version: 11.2.0.2.0
I don't know how to "could you please check if you configured the directory for the static contents ("images") correctly"
because the Installation Guide of Oracle about Install Apex in standalone mode do not tell me to configure images any more. I just run apex listener with above command "java -Dapex.home=/tmp/apex -Dapex.images=/tmp/apex/apex/images -Dapex.port=8585 -Dapex.erase -jar /source_install/apex_listener.1.1.3.243.11.40/apex.war".
Thank you for your reply,Udo! -
Hi Friends
I have a report with the following query
SELECT DISTINCT
CASE WHEN IVPROVISION_ID = 1 OR
IVPROVISION_ID = 5 OR
IVPROVISION_ID = 4 OR
IVPROVISION_ID = 10
THEN
APEX_ITEM.CHECKBOX(1,'#ROWNUM#','onclick=enableButton2()')
ELSE
APEX_ITEM.CHECKBOX(1,'#ROWNUM#','DISABLED')
END "PROVISION FOR IV",
CASE WHEN ISMPROVISION_ID = 1 OR
ISMPROVISION_ID = 5 OR
ISMPROVISION_ID = 4 OR
IVPROVISION_ID = 10
THEN
APEX_ITEM.CHECKBOX(2, '#ROWNUM#', 'onclick=enableButton3()')
ELSE
APEX_ITEM.CHECKBOX(2, '#ROWNUM#', 'disabled')
END "PROVISION FOR ISM",
DELIVERED_SERVICE_NAME as "Existing DS",
APEX_ITEM.HIDDEN(3, EQUIPMENT_ID) || APEX_ITEM.SELECT_LIST_FROM_LOV(4, DELIVERED_SERVICE_NAME,'DSLEVEL_LOV', '', 'NO') as "DS Level"
FROM PROV_VIEW
where ((:P0_CLIENT = PROV_VIEW.CUSTOMER_ID)
AND (:P0_SITE = PROV_VIEW.SITE_ID))If I make a modification in the initial part as below the query is throwing error..
SELECT DISTINCT
CASE WHEN IVPROVISION_ID = 1 OR
IVPROVISION_ID = 5 OR
IVPROVISION_ID = 4 OR
IVPROVISION_ID = 10
THEN
APEX_ITEM.CHECKBOX(1,'#ROWNUM#','onclick=enableButton2()') AND APEX_ITEM.CHECKBOX(2,'#ROWNUM#','DISABLED')
ELSE
APEX_ITEM.CHECKBOX(1,'#ROWNUM#','DISABLED')
END "PROVISION FOR IV",
CASE WHEN ISMPROVISION_ID = 1 OR
ISMPROVISION_ID = 5 OR
ISMPROVISION_ID = 4 OR
IVPROVISION_ID = 10
THEN
APEX_ITEM.CHECKBOX(2, '#ROWNUM#', 'onclick=enableButton3()') AND APEX_ITEM.CHECKBOX(1,'#ROWNUM#','DISABLED')
ELSE
APEX_ITEM.CHECKBOX(2, '#ROWNUM#', 'disabled')
END "PROVISION FOR ISM",
DELIVERED_SERVICE_NAME as "Existing DS",
APEX_ITEM.HIDDEN(3, EQUIPMENT_ID) || APEX_ITEM.SELECT_LIST_FROM_LOV(4, DELIVERED_SERVICE_NAME,'DSLEVEL_LOV', '', 'NO') as "DS Level"
FROM PROV_VIEW
where ((:P0_CLIENT = PROV_VIEW.CUSTOMER_ID)
AND (:P0_SITE = PROV_VIEW.SITE_ID))
Any clue?
~RoseHi Rose,
The 'AND' in the 'THEN' part of the case statement is syntactically incorrect so you'll need to remove that.
Its not clear from your comment if there is an order of precedence.. ie if IVPROVISION_ID has one of the 1,4,5,10 values, if that always results in the 2nd checkbox being disabled...
Either way, to solve your problem you'll need to test for the values of the 'other' column within your case statement.. eg (if 1st column values in (a,b,c) and 2nd column values not in (x,y,z) then do .... ) If you do that with each of your columns then you should be good.. (eg (x=1 or x=4 or x=5 or x=10) and (y!=1 and y!=4 and y !=5 and y!=10)) then ...
Are you testing your SQL outside of the Apex development framework 1st? Whilst its OK to do it in the Apex builder it'll be easier if you write your SQL in SQL*Developer (or something similar) as its going to be quicker to debug any syntax errors.
Cheers,
Paul.
Maybe you are looking for
-
Error: File just captured could not be read and was deleted after capture.
I was just recording an extremely important interview. I have recorded literally 10.000 recordings before with the same setup, every day, over a period of some three years now. I'm recorging DV PAL through SDI input on a AJA KONA LS card. It seemed t
-
Transferring Data from old iMac G3 233Mhz with OS 8.6 to new Imac
Hi. I'm new to this forum. I have an old iMac ( one of the original Blueberries) which runs on OS 8.6. i have bits and pieces on this which I would quite like to transfer onto my new iMac which is a brand new intel based 24 inch 2.5Ghz. The old compu
-
LR 5 my external hard drive no longer appears as a hard drive but as a folder under "Volumes"
I am running LR 5 on a MacBook pro and my external hard drive no longer appears as a hard drive but as a folder under "Volumes". will this affect my ability to search and store in this external hard drive? How can I get it back to normal?
-
Cancel and OK button reversed?
In iTunes for Windows, version 12.1.10.71, in the Get Info widget, the Cancel and OK buttons have exchanged place. I am not exactly sure which version I ran before this one, but I am a regular updater. This seems to me a change just to annoy regular
-
Debuggind MI application in NWDS
Hi everybody, can you help me with debugging in NWDS? Everytime I click Debug button I recieve error message (Internal error)... Can you explain me necessary steps to start debugging of my application? Thanks a lot. Tomas