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,
Tim
Thanks 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
Similar Messages
-
Apex Listener in standalone mode, how to set/reset db connection.
Sometime ago I installed Apex Listener for testing, then I removed it.
Now I downloaded last version, installed it in standalone mode and try to set the DB connection.
However when I try to edit in listenerAdmin page the db connection parameters I can't : they are greyed and report the connection informations I gave in my first test installation.
How can I change them ?
How can I avoid all fields in listenerAdmin greyed ?
Tks
TullioHello Tullio,
you can run /listenerConfigure/ only as long as there is no configuration available. The database parameters can only be setup when the APEX Listener is not connected due to the state of its connection pool. Once it is established, you can only configure it offline by editing the apex-config.xml . That's why the parameters are greyed out in /listenerAdmin/.
You probably only removed the war file of your test installation, but not the apex.home including the apex-config.xml that is stored in there. So your new installation found the old home and reused the connection.
You could either edit the apex-config.xml or delete the apex.home and rerun /listenerConfigure/
If you run on a windows system, you'll find the apex.home in your users TEMP, usually located in the temp folder underneath the local settings of your user profile. The directory to locate is now called "apex".
-Udo -
Apex Listener standalone and mapping directory
Hello,
I install Oracle XE 11 + Apex 4.2.2 + Apex Listener 2.0.2.
All work ok.
But, I need access from Apex applications to directory on server.
On the Oracle Http Server is solution in dads.conf :
Alias /test/ "/mnt/test"
It is possible this on Apex Listener in Standalone mode?
Or I must use glassfish, deploy apex.war and deploy static mapping war files like :
java -jar apex.war static --context-path /test /mnt/test/
-> test.war -> deploy and then work?
Thanks for any solution
Best Regards
Max Devainei have the same issue.
I put a alias in dads.conf in apex folder.
Alias /u/ "E:\ApexUserData\/"
restarted apex listener (standalone).
but unable to read file from the folder "e:\apexuserdata\aaa.txt"
the link i used is
http://host:port#/u/aaa.txt
unable to read the file. but able to read
http://host:port#/i/arrow.gif
directly without problem. -
APEX Listener , Trying to logging in apex_admin, forbidden message.
Hi,
i am using the listener 1.1
I have installed apex listener.
trying to login apex_admin. http://localhost:8085/apex/apex_admin
After entring the admin/password getting frobidden message..
like this..
http://localhost:8085/apex/wwv_flow.accept
HTTP-403 forbidden..
Can u tel the cause ofthis error, how can i fix this..Hi,
you shouldn't get 403 for the apex_admin page, but the regular login page with message "Invalid Login Credentials".
Questions that might be helpful for troubleshooting:
Are you able to call a regular APEX page, e.g. login to an existing workspace or login to an application different from the APEX administration?
Is there any entry on the APEX Listeners application log/console output that is generated during your login attempt?
Are you using the APEX Listener in standalone mode or deployed on a J2EE container (WLS, GlassFish, OC4j, ...)? If the latter, which is it (including version)?
Which database user did you configure your Listener to use for connecting to your APEX instance for?
Is this user unlocked and is the password still valid and the same you entered when you configured the Listener?
-Udo -
Apex Listener : Servlet error
Hello,
I have installed Apex Listener.1.0.2.238.15.24 on Oracle Containers for J2EE 10g standalone (10.1.3.1.1)
I have got this error whn trying to cofgure listener and create connection to database
12/12/31 14:39:27.625 apex: Servlet error
ava.lang.IllegalAccessError: class oracle.jdbc.driver.$Proxy6 cannot access its superinterface oracle.jdbc.driver.ScrollRsetStatement
at java.lang.reflect.Proxy.defineClass0(Native Method)
at java.lang.reflect.Proxy.getProxyClass(Proxy.java:504)
at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
at oracle.ucp.jdbc.proxy.CallableStatementProxyFactory.createCallableStatementProxy(CallableStatementProxyFactory.java:64)
at oracle.ucp.jdbc.proxy.ConnectionProxyFactory.proxyInvokeAfterTargetInvoke(ConnectionProxyFactory.java:154)
at oracle.ucp.jdbc.proxy.JDBCConnectionProxyFactory.invoke(JDBCConnectionProxyFactory.java:266)
at $Proxy0.prepareCall(Unknown Source)
at oracle.dbtools.apex.OWA.getStatement(OWA.java:425)
at oracle.dbtools.apex.OWA.resetSession(OWA.java:181)
at oracle.dbtools.apex.ModApex.close(ModApex.java:143)
at oracle.dbtools.apex.ModApex.doGet(ModApex.java:88)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:712)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
at java.lang.Thread.run(Thread.java:619)
Any idea ???Hello,
sorry for the late reply.
I have installed Apex Listener.1.0.2.238.15.24 on Oracle Containers for J2EE 10g standalone (10.1.3.1.1) That's a pretty old version of OC4J, and a pretty old one of APEX Listener, too. Is there any reason for not choosing a more recent release?
Despite that, your OC4J might also be using an unsupported (and outdated) Java version. APEX Listener needs at least a JDK 1.6 Update 20.
Please check whether your OC4J is using an appropriate JDK.
-Udo -
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! -
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 -
Hi all,
I tryed to install Apex Listener 2.0.3.221.10.13 into Tomcat 7.0.42 and I got the error :
INFO: Deploying web application archive C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\apex.war
ago 16, 2013 9:15:19 AM oracle.dbtools.common.util.Files checkLegal
WARNING: File path syntax error: ILLEGAL_CHARACTER, path: C:/
ago 16, 2013 9:15:19 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
ago 16, 2013 9:15:19 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/apex] startup failed due to previous errors
and also
ago 16, 2013 9:15:19 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class oracle.dbtools.rt.web.SCListener
java.lang.IllegalArgumentException: oracle.dbtools.common.util.FilePathSyntaxException: ILLEGAL_CHARACTER
at oracle.dbtools.common.util.Files.checkLegal(Files.java:262)
at oracle.dbtools.common.util.Files.file(Files.java:127)
at oracle.dbtools.common.config.file.ConfigurationFolder.chooseExistingFile(ConfigurationFolder.java:172)
at oracle.dbtools.common.config.file.ConfigurationFolder.choose(ConfigurationFolder.java:151)
at oracle.dbtools.common.config.file.ConfigurationFolder.setup(ConfigurationFolder.java:64)
at oracle.dbtools.rt.web.SCListener.contextInitialized(SCListener.java:72)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1653)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: oracle.dbtools.common.util.FilePathSyntaxException: ILLEGAL_CHARACTER
at oracle.dbtools.common.util.FilePathSyntax.check(FilePathSyntax.java:45)
at oracle.dbtools.common.util.Files.checkLegal(Files.java:255)
... 19 more
My platform is :
OS : Windows 7 64 bit
JRE : 1.7.0_25-b17 -
%USERPROFILE% : C:\Users\SERGIO
%TEMP% : C:\Users\SERGIO\AppData\Local\Temp
Apex Listener Configuration Folder : C:\Users\SERGIO\AppData\Local\Temp\apex
Can anyone help me, please?
SergioYou need to configure your config directory before you deploy. If you never configured v2 listener before then create a new folder like "c:\apex\config". Then use
java -jar apex.war configdir c:\apex\config
Then do your configuration as required and then deploy again. -
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. -
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.1Hey 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 -
PDF Printing with Apex Listener: XSL over 32k gives error
I'm using Ape Listener 2.0.2 deployed in GlassFish. We do have some custom designed XSL which are over 32k. We tried apex_util api but get the error
Error processing branch. ORA-00942: table or view does not exist
My XML is 5966 bytes and XSL is 36551 bytes.
Please help.Apples and Oranges really.. Why do you want TWO App Servers running on your server? The HTTP Server requires a 3rd party product to produce PDF files (FOP)... The Apex Listener is the PREFERRED App Server over the HTTP server. I would suggest switching your access to the APEX Listener based port and try shutting down the HTTP server unless it offers you something the Listener is NOT providing..
Thank you,
Tony Miller
LuvMuffin Software -
APEX LISTENER Install troubleshooting
Hi, I need help.. :-)
Default Database connection not configured properly
What I have done:
ALTER USER APEX_LISTENER ACCOUNT UNLOCK;
ALTER USER APEX_PUBLIC_USER ACCOUNT UNLOCK;
ALTER USER APEX_REST_PUBLIC_USER ACCOUNT UNLOCK;
connect APEX_LISTENER/mypasswd1
connect APEX_PUBLIC_USER/mypasswd2
connect APEX_REST_PUBLIC_USER/mypasswd1
Check default.xml
password: replaced encrypted one with clear text one for APEX_PUBLIC_USER to ensure it is correct
even tried APEX_LISTENER password just incase
Is there a simple JDBC test to see if it connects? it is APEX_PUBLIC_USER who is connecting isn't it?
======================================================================
java -jar apex.war
Feb 22, 2013 12:44:40 PM oracle.dbtools.standalone.Standalone execute
INFO: NOTE:
Standalone mode is designed for use in development and test environments. It is not supported for use in production environments.
Feb 22, 2013 12:44:40 PM oracle.dbtools.standalone.Standalone execute
INFO: Starting standalone Web Container in: /data/oracle/orawd/product/11.2.0/dbhome_1/apex_listener/apex
Feb 22, 2013 12:44:41 PM oracle.dbtools.standalone.Deployer deploy
INFO: Will deploy application path = /data/oracle/orawd/product/11.2.0/dbhome_1/apex_listener/apex/apex/WEB-INF/web.xml
Feb 22, 2013 12:44:41 PM oracle.dbtools.standalone.Deployer deploy
INFO: Deployed application path = /data/oracle/orawd/product/11.2.0/dbhome_1/apex_listener/apex/apex/WEB-INF/web.xml
Feb 22, 2013 12:44:41 PM oracle.dbtools.common.config.file.ConfigurationFolder logConfigFolder
INFO: Using configuration folder: /data/oracle/orawd/product/11.2.0/dbhome_1/apex_listener/apex
Default Database connection not configured properly
Feb 22, 2013 12:44:42 PM oracle.dbtools.rt.web.SCListener contextInitialized
INFO: Oracle Application Express Listener initialized
Application Express Listener version : 2.0.0.354.17.06
Application Express Listener server info: Grizzly/1.9.49
Feb 22, 2013 12:44:42 PM com.sun.grizzly.Controller logVersion
INFO: GRIZZLY0001: Starting Grizzly Framework 1.9.49 - 2/22/13 12:44 PM
Feb 22, 2013 12:44:42 PM oracle.dbtools.standalone.Standalone execute
INFO: http://localhost:8888/apex started.That could be a problem.
I was answering the question:
BillC wrote:
Is there a simple JDBC test to see if it connects? it is APEX_PUBLIC_USER who is connecting isn't it?Yes - APEX_PUBLIC_USER is the connecting user.
You can use SQLPLUS to make sure you have the correct password.
After that, it is the SERVER, PORT, SID/SERVICE in the APEX listener you need to confirm.
You can TNSPING to confirm you have the correct selections for those.
You can always re-run the java -jar apex.war setup command to all of the basic settings.
The reason I mention that is because if you modify the settings manually - we need to ask "which file?" because there is the default and the database specific one too.
Try making a request to the service in standalone mode and you should get a terminal output (the window stays open) with a more detailed error. I would guess there will be an ORA-12514, TNS listener does not currently know of service requested in descriptor or something similar that will give you the "debug" information you are looking for.
Regards,
--Tim St. -
Apex listener 503 - Service Unavailable
Hi,
I installed APEX LIstener 2.0.5.
This ist my file defaults.XML:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<comment>Saved on Thu Jan 02 13:26:45 CET 2014</comment>
<entry key="db.password">!apex_public_user</entry>
<entry key="debug.printDebugToScreen">false</entry>
<entry key="security.disableDefaultExclusionList">false</entry>
<entry key="cache.maxEntries">500</entry>
<entry key="error.maxEntries">50</entry>
<entry key="security.maxEntries">2000</entry>
<entry key="cache.directory">/tmp/apex/cache</entry>
<entry key="jdbc.DriverType">thin</entry>
<entry key="log.maxEntries">50</entry>
<entry key="db.hostname">localhost</entry>
<entry key="jdbc.MaxConnectionReuseCount">1000</entry>
<entry key="log.logging">false</entry>
<entry key="jdbc.InitialLimit">3</entry>
<entry key="jdbc.MaxLimit">10</entry>
<entry key="cache.monitorInterval">60</entry>
<entry key="cache.expiration">7</entry>
<entry key="jdbc.statementTimeout">900</entry>
<entry key="jdbc.MaxStatementsLimit">10</entry>
<entry key="db.sid">ORPC3</entry>
<entry key="misc.defaultPage">apex</entry>
<entry key="misc.compress"/>
<entry key="jdbc.MinLimit">1</entry>
<entry key="cache.type">lru</entry>
<entry key="cache.caching">false</entry>
<entry key="db.port">1521</entry>
<entry key="error.keepErrorMessages">true</entry>
<entry key="cache.procedureNameList"/>
<entry key="cache.duration">days</entry>
<entry key="jdbc.InactivityTimeout">1800</entry>
<entry key="debug.debugger">false</entry>
</properties>
I startet the listener with java -jar apex.war
When I startet with http://localhost:8080/apex/f?p=4550:1:2983093393191825
I got ORACLE APPLICATION EXPRESS LISTENER 503 - Service Unavailable
Please help me!
Regards
SiegwinHi Jari,
when I start APEX Listener there are the answers:
C:\>java -jar C:\app\Administrator\product\11.2.0\dbhome_2\apex_listener_2_0_5\a
pex.war
Jan 04, 2014 9:04:06 AM oracle.dbtools.standalone.Standalone execute
INFO: HINWEIS:
Der Standalone-Modus ist zur Verwendung in Entwicklungs- und Testumgebungen entw
ickelt worden. Er wird bei Verwendung in Produktionsumgebungen nicht unterst³tzt
Jan 04, 2014 9:04:06 AM oracle.dbtools.standalone.Standalone execute
INFO: Standalone-Webcontainer in C:\app\Administrator\product\11.2.0\dbhome_2\ap
ex_listener_2_0_5\config\apex wird gestartet
Jan 04, 2014 9:04:06 AM oracle.dbtools.standalone.Deployer deploy
INFO: Anwendung wird bereitgestellt, Pfad = C:\app\Administrator\product\11.2.0\
dbhome_2\apex_listener_2_0_5\config\apex\apex\WEB-INF\web.xml
Jan 04, 2014 9:04:07 AM oracle.dbtools.standalone.Deployer deploy
INFO: Anwendung bereitgestellt, Pfad = C:\app\Administrator\product\11.2.0\dbhom
e_2\apex_listener_2_0_5\config\apex\apex\WEB-INF\web.xml
Jan 04, 2014 9:04:12 AM oracle.dbtools.common.config.file.ConfigurationFolder lo
gConfigFolder
INFO: Using configuration folder: C:\app\Administrator\product\11.2.0\dbhome_2\a
pex_listener_2_0_5\config\apex
Default Database connection not configured properly
Jan 04, 2014 9:04:13 AM oracle.dbtools.rt.web.SCListener contextInitialized
INFO: Oracle Application Express Listener initialized
Application Express Listener version : 2.0.5.287.04.27
Application Express Listener server info: Grizzly/1.9.49
Jan 04, 2014 9:04:13 AM com.sun.grizzly.Controller logVersion
INFO: GRIZZLY0001: Starting Grizzly Framework 1.9.49 - 04.01.14 09:04
Jan 04, 2014 9:04:13 AM oracle.dbtools.standalone.Standalone execute
INFO: http://localhost:8080/apex gestartet.
Jan 04, 2014 9:05:05 AM oracle.dbtools.rt.web.HttpEndpointBase modApex
SEVERE: The pool named: apex is not correctly configured, error: ORA-01017: inva
lid username/password; logon denied
oracle.dbtools.common.jdbc.ConnectionPoolException: The pool named: apex is not
correctly configured, error: ORA-01017: invalid username/password; logon denied
at oracle.dbtools.common.jdbc.ConnectionPoolException.badConfiguration(C
onnectionPoolException.java:65)
at oracle.dbtools.common.config.db.DatabaseConfig.badConfiguration(Datab
aseConfig.java:207)
at oracle.dbtools.common.config.db.DatabaseConfig.getPool(DatabaseConfig
.java:346)
at oracle.dbtools.common.config.db.DatabaseConfig.getPool(DatabaseConfig
.java:326)
at oracle.dbtools.common.config.db.DatabaseConfig.access$200(DatabaseCon
fig.java:42)
at oracle.dbtools.common.config.db.DatabaseConfig$DatabaseFactory.apply(
DatabaseConfig.java:380)
at oracle.dbtools.common.config.db.PerThreadConnectionCache$DisposableCo
nnectionFactory.apply(PerThreadConnectionCache.java:233)
at oracle.dbtools.common.config.db.PerThreadConnectionCache$DisposableCo
nnectionFactory.apply(PerThreadConnectionCache.java:217)
at oracle.dbtools.common.util.PerThreadCache.get(PerThreadCache.java:60)
at oracle.dbtools.common.config.db.PerThreadConnectionCache.get(PerThrea
dConnectionCache.java:49)
at oracle.dbtools.common.config.db.DatabaseConfig.getConnection(Database
Config.java:78)
at oracle.dbtools.common.jdbc.ora.OraPrincipal.connection(OraPrincipal.j
ava:69)
at oracle.dbtools.apex.ModApexContext.getConnection(ModApexContext.java:
372)
at oracle.dbtools.apex.Procedure.getProcedure(Procedure.java:167)
at oracle.dbtools.apex.OWA.validateProcedure(OWA.java:386)
at oracle.dbtools.apex.security.Security.isValidRequest(Security.java:22
0)
at oracle.dbtools.apex.ModApex.validateRequest(ModApex.java:264)
at oracle.dbtools.apex.ModApex.doGet(ModApex.java:93)
at oracle.dbtools.apex.ModApex.service(ModApex.java:300)
at oracle.dbtools.rt.web.HttpEndpointBase.modApex(HttpEndpointBase.java:
350)
at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:
132)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at com.sun.grizzly.http.servlet.ServletAdapter$FilterChainImpl.doFilter(
ServletAdapter.java:1059)
at com.sun.grizzly.http.servlet.ServletAdapter$FilterChainImpl.invokeFil
terChain(ServletAdapter.java:999)
at com.sun.grizzly.http.servlet.ServletAdapter.doService(ServletAdapter.
java:434)
at oracle.dbtools.standalone.SecureServletAdapter.doService(SecureServle
tAdapter.java:91)
at com.sun.grizzly.http.servlet.ServletAdapter.service(ServletAdapter.ja
va:379)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java
:179)
at com.sun.grizzly.tcp.http11.GrizzlyAdapterChain.service(GrizzlyAdapter
Chain.java:196)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java
:179)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:8
49)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFil
ter.java:228)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultPro
tocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
a:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
a:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java
:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextT
ask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.
java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadP
ool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool
.java:513)
at java.lang.Thread.run(Unknown Source)
Please help me -
APEX Listener and EPG - strange behaviour
Hi
For some years, I've used EPG for APEX but have struggled with performance particularly as I can have up to 150 student developers using at any one time.
I do a fair amount of work using ORDImage and have successfully developed APEX applications to upload image files and display full-size and thumbnail images.
After upgrading to APEX 4.1 (from 4.0), I decided to install APEX Listener standalone.
Before I did so I checked that my applications still worked in 4.1 and they did.
However, just installing APEX Listener but not configuring it (yet) has meant that my image display in a report using a procedure based on wpg_docload.download_file( l_ordimage_image.source.localData ) no longer works in EPG - the images are not displayed.
Configuring APEX Listener and running the same application through that DOES display the images.
So this part of the application works under APEX Listener but not under EPG.
My application also allows users to upload images from APEX_APPLICATION_FILES using standard code. Under APEX Listener after uploading, I'm left with a blank page with a wwv_flow.accept URL although the image does indeed upload. Under EPG it works as expected and I get a success confirmation.
So this part of the application works under EPG but not under APEX Listener.
Has anyone else come across different behaviour depending on the mode of connection?
Thanks
Brian
[Oracle EE 11gR2, Windows Server 2008R2, APEX 4.1, APEX Listener 1.1.3]Hi Brian,
it sounds like you have both EPG and APEX Listener running on the same machine, so your problem might result from a port conflict. Note that both services use TCP port 8080 as default.
At least a port conflict would explain the strange behaviour in your case, some things working on one web server and some on the other.
Some parts of your initial post hint to that direction, e.g.
However, just installing APEX Listener but not configuring it (yet) has meant that my image display in a report using a procedure based on >wpg_docload.download_file( l_ordimage_image.source.localData ) no longer works in EPG - the images are not displayed.... because the APEX Listener only interfere with the EPG if it is at least running on the same machine as your database and furthermore, if it is unconfigured in terms of ist database connection, a port conflict might be the only way it could cause anything like that.
However, if you are sure that's not the issue, please check if you see any error in the APEX Listener's log for the following action you performed:
My application also allows users to upload images from APEX_APPLICATION_FILES using standard code. Under APEX Listener after uploading, I'm left with a blank >page with a wwv_flow.accept URL although the image does indeed uploadIf you actually see just a blank screen, something very bad must have happened and you should see some kind of stack trace there.
For further investigations, if necessary, it would be helpful to know how you deployed or started your APEX Listener and which JDK version you use.
For the moment, I still think the port conflict is my best guess.
You could avoid it by either changing the port for EPG (I'd not recommend that if you have other users still using it) or by changing the port for your APEX Listener.
-Udo -
Apex Listener Configuration Issue.
Hi there,
As I wanted to try the latest Restful services in apex 4.2, I decided to install Apex Listener 2.0. I downloaded the file and followed the steps as in the installation notes. As a pre-requisite, I configured the Restful services successfully in apex 4.2 along with Oracle 11g Express Edition. However, the installation of listener seems to be not compleated successfully with the following installation feed back.
D:\software\apex_listener>java -jar apex.war
This Listener instance has not yet been configured.
Please complete the following prompts
Enter the location to store configuration data:d:\apexlistnerconf
Dec 27, 2012 3:34:47 PM oracle.dbtools.common.config.cmds.ConfigDir execute
INFO: Set config.dir to d:\apexlistnerconf in: D:\software\apex_listener\apex.war
Dec 27, 2012 3:34:49 PM oracle.dbtools.common.config.file.ConfigurationFolder logConfigFolder
INFO: Using configuration folder: D:\apexlistnerconf\apex
Enter the name of the database server [localhost]:
Enter the database listen port [1521]:
Enter 1 to specify the database service name, or 2 to specify the database SID [1]:2
Enter the database SID [xe]:
Enter the database user name [APEX_PUBLIC_USER]:
Enter the database password for APEX_PUBLIC_USER:
Password must not be empty
Enter the database password for APEX_PUBLIC_USER:
Confirm password:
Enter 1 to enter passwords for the RESTful Services database users (APEX_LISTENER,APEX_REST_PUBLIC_USER), 2 to use the same password as used for APEX_PUBLIC_USER or, 3 to skip this step [1]:3
Dec 27, 2012 3:37:03 PM oracle.dbtools.common.config.file.ConfigurationFiles update
INFO: Updated configurations: defaults, apex
Enter 1 if you wish to start in standalone mode or 2 to exit [1]:
Enter the APEX static resources location or Enter to skip:D:\software\apex42en\apex\images
Enter the HTTP port [8080]:
Dec 27, 2012 3:41:17 PM oracle.dbtools.standalone.Standalone execute
INFO: NOTE:
Standalone mode is designed for use in development and test environments. It isnot supported for use in production environments.
Dec 27, 2012 3:41:17 PM oracle.dbtools.standalone.Standalone execute
INFO: Starting standalone Web Container in: d:\apexlistnerconf\apex
Dec 27, 2012 3:41:17 PM oracle.dbtools.standalone.Deployer deploy
INFO: Will deploy application path = d:\apexlistnerconf\apex\apex\WEB-INF\web.xml
Dec 27, 2012 3:41:17 PM oracle.dbtools.standalone.Deployer deploy
INFO: Deployed application path = d:\apexlistnerconf\apex\apex\WEB-INF\web.xml
Dec 27, 2012 3:41:18 PM oracle.dbtools.common.config.file.ConfigurationFolder logConfigFolder
INFO: Using configuration folder: D:\apexlistnerconf\apex
Default Database connection not configured properly
Dec 27, 2012 3:41:20 PM oracle.dbtools.rt.web.SCListener contextInitialized
INFO: Oracle Application Express Listener initialized
Application Express Listener version : 2.0.0.354.17.06
Application Express Listener server info: Grizzly/1.9.49
Dec 27, 2012 3:41:20 PM com.sun.grizzly.Controller logVersion
INFO: GRIZZLY0001: Starting Grizzly Framework 1.9.49 - 12/27/12 3:41 PM
Dec 27, 2012 3:41:20 PM com.sun.grizzly.SelectorHandlerRunner handleSelectException
SEVERE: doSelect IOException
java.net.BindException: No free port within range: 8080=com.sun.grizzly.http.SelectorThreadHandler@480d41f3
at com.sun.grizzly.TCPSelectorHandler.initSelector(TCPSelectorHandler.java:432)
at com.sun.grizzly.TCPSelectorHandler.preSelect(TCPSelectorHandler.java:378)
at com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:188)
at com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:132)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Dec 27, 2012 3:41:20 PM com.sun.grizzly.http.SelectorThread$3 onException
SEVERE: Exception during starting the controller
java.net.BindException: No free port within range: 8080=com.sun.grizzly.http.SelectorThreadHandler@480d41f3
at com.sun.grizzly.TCPSelectorHandler.initSelector(TCPSelectorHandler.java:432)
at com.sun.grizzly.TCPSelectorHandler.preSelect(TCPSelectorHandler.java:378)
at com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:188)
at com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:132)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.net.BindException: No free port within range: 8080=com.sun.grizzly.http.SelectorThreadHandler@480d41f3
at com.sun.grizzly.TCPSelectorHandler.initSelector(TCPSelectorHandler.java:432)
at com.sun.grizzly.TCPSelectorHandler.preSelect(TCPSelectorHandler.java:378)
at com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:188)
at com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:132)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Dec 27, 2012 3:41:20 PM oracle.dbtools.standalone.Standalone execute
INFO: http://localhost:8080/apex started.It simply hangs at the last line and I couldn't make any further progress.
Can you please help to find out what went wrong?
Thanks in advance.
Regards,
NatarajanThank you Probodh for your quick help. I set the port 8080 to apex listener and it does not give that error now.
However, it still says "Default Database Connection not configured properly"
I gave the SID name as xe which is the default one, and that is the correct SID for my DB also.
Any possible mistakes in there?
D:\software\apex_listener>java -jar apex.war
Dec 27, 2012 7:29:45 PM oracle.dbtools.standalone.Standalone execute
INFO: NOTE:
Standalone mode is designed for use in development and test environments. It is
not supported for use in production environments.
Dec 27, 2012 7:29:45 PM oracle.dbtools.standalone.Standalone execute
INFO: Starting standalone Web Container in: d:\apexlistnerconf\apex
Dec 27, 2012 7:29:45 PM oracle.dbtools.standalone.Deployer deploy
INFO: Will deploy application path = d:\apexlistnerconf\apex\apex\WEB-INF\web.xm
l
Dec 27, 2012 7:29:46 PM oracle.dbtools.standalone.Deployer deploy
INFO: Deployed application path = d:\apexlistnerconf\apex\apex\WEB-INF\web.xml
Dec 27, 2012 7:29:46 PM oracle.dbtools.common.config.file.ConfigurationFolder lo
gConfigFolder
INFO: Using configuration folder: D:\apexlistnerconf\apex
Default Database connection not configured properly
Dec 27, 2012 7:29:48 PM oracle.dbtools.rt.web.SCListener contextInitialized
INFO: Oracle Application Express Listener initialized
Application Express Listener version : 2.0.0.354.17.06
Application Express Listener server info: Grizzly/1.9.49
Dec 27, 2012 7:29:48 PM com.sun.grizzly.Controller logVersion
INFO: GRIZZLY0001: Starting Grizzly Framework 1.9.49 - 12/27/12 7:29 PM
Dec 27, 2012 7:29:48 PM oracle.dbtools.standalone.Standalone execute
INFO: http://localhost:8080/apex started.Regards,
Natarajan
Maybe you are looking for
-
Commercial rounding for capital goods
Commercial rounding off of all duties All the Duties are rounded up in PO & MIGO with some routing development through ABAP. Now client requirement is that in case of capital goods 1. If suppose that in Capital Goods Cenvat is Rs. 45.00, in same
-
Hi, We are on SOA 11.1.1.3 and need some info. Does using huge number of DBAdapters in composites affect on the performance, memory, cpu, db processes etc on the middleware and database. Actually we may end up with large numbr composites exceeding 20
-
Anyone know how to fix the Adobe Illustrator for Yosemite
-
All, I have a question regarding the authorization for the derived roles.Say for example you are combining two derived roles from the same master role role1: z_der_plant100 and role2 :z_der_plant200.Now role1 has only create option for plant 100
-
I phone software update...
I got used i phone 3gs 8Gb and I want know what is the existing firmware and how can i update it ?