Sei sulla pagina 1di 4

2/8/2018 Document 1053674.

Copyright (c) 2018, Oracle. All rights reserved.

Call to RWSERVLET Fails with "Error 500--Internal Server Error" for New Instance (Doc ID To Bottom
1053674.1)
Modified: 19-Dec-2014 Type: PROBLEM

In this Document

Symptoms
Changes
Cause
Solution
References

APPLIES TO:

Oracle Reports Developer - Version 11.1 to 11.1.1.4.0 [Release 11g]


Information in this document applies to any platform.
***Checked for relevance on 18-DEC-2014***

SYMPTOMS

This is a new installation of Reports 11g (11.1.1.1.0 or 11.1.1.2.0).

When attempting to run reports or access Servlet Command Help page, the following error is shown in browser window:

Error 500--Internal Server Error


From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.5.1 500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.

You encounter this error when trying to run any report (even test.rdf) or when trying to run:

http://<hostname>:<port>/reports/rwservlet
http://<hostname>:<port>/reports/rwservlet/showjobs

However, Forms works fine when trying:

http://<hostname>:<port>/forms/frmservlet

The WLS_REPORTS.log may show the following errors:

ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1263932708107> <BEA-
101020> <[ServletContext@29447462[app:reports module:/reports path:/reports spec-version:2.5
version:11.1.1.2.0]] Servlet failed with Exception
java.lang.NullPointerException
at oracle.reports.rwclient.RWClient.doGet(RWClient.java:344)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

https://support.oracle.com/epmos/faces/DocContentDisplay?_afrLoop=450582779399571&id=1053674.1&_afrWindowMode=0&_adf.ctrl-state=1a… 1/4
2/8/2018 Document 1053674.1
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

The WLS_REPORTS-diagnostic.log may show something like:

[2009-11-25T14:18:04.866-05:00] [WLS_REPORTS] [WARNING] [NOT-0022]


[oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifier] [tid: JMX Framework document
pooling thread] [userId: <WLS Kernel>] [ecid: 0000IKglqp06qIYFLrePOA1B2eGu000001,0] Exception during
change of a document.[[
oracle.as.config.persistence.exceptions.ConfigException: A JAXB error occurred during unmarshalling.
at
oracle.as.config.persistence.jaxb.JAXBXmlPersistenceManagerImpl.load(JAXBXmlPersistenceManagerImpl.java:2
oracle.as.jmx.framework.util.DefaultConfigObjectMBeanAssociationInfo.loadConfigObject(DefaultConfigObject
at
oracle.as.jmx.framework.util.DocumentChangeListenerSupport.documentChanged(DocumentChangeListenerSupport.
at
oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifier$DocumentChangeListenerWrapper.doc
at
oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifier.checkUsingListeners(WatchingDocum
at
oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifier.checkFiles(WatchingDocumentChange
at
oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifier$1.run(WatchingDocumentChangeNotif
at
oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifier.internalCheckFiles(WatchingDocume
at
oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifier.run(WatchingDocumentChangeNotifie
at java.lang.Thread.run(Thread.java:619)

Caused by: javax.xml.bind.UnmarshalException


- with linked exception:
[org.xml.sax.SAXParseException: Element type "property" must be followed by either attribute
specifications, ">" or "/>".]

CHANGES

This is a new installation and/or upgrade (e.g. from 11.1.1.3 to 11.1.1.4).

CAUSE

The Reports Servlet configuration is not correct. This "500--Internal Server Error" can occur when any typo or incorrect configuration
is present in the rwservlet.properties file.

SOLUTION

A. Preferred Method

Using the EM web page editing for the entries in rwservlet.properties related to rwservlet.xsd should b
correct when doing with Fusion Middleware Control :

Goto the option:


->Reports
-> WLS_REPORTS
-> Administration
-> Basic Configuration
-> Reports Application Basis Configuration
-> Reports Application General Parameters
-> Default Character Set

https://support.oracle.com/epmos/faces/DocContentDisplay?_afrLoop=450582779399571&id=1053674.1&_afrWindowMode=0&_adf.ctrl-state=1a… 2/4
2/8/2018 Document 1053674.1

OR

B. Command Line Method

Manual Solution By reloading key file from backup with potential edits:

$<DomainHome>/config/fmwconfig/servers/WLS_REPORTS/applications/reports_11.1.1.2.0/configura

a. rwnetwork.conf.bak

b. rwserver.conf.bak

c. rwservlet.properties.bak

1. Carefully check for any typos in the rwservlet.properties file.

2. In the base release of 11gR1 (11.1.1.1.0), this file is located under:

$DOMAIN_HOME/servers/<WLS_SERVER_NAME>/stage/reports/reports/configuration

However, there was a location change in Patchset 1. In 11g PS1 (11.1.1.2.0), rwservlet.properties can be found under:

$DOMAIN_HOME/config/fmwconfig/servers/<WLS_SERVER_NAME>/applications/reports_<version>/configuration

3. Check the order of the entries. The order matters as they need to be in the same order as specified in the xsd file
($ORACLE_HOME/reports/dtd/rwservlet.xsd). For example:

<xs:element name="rwservlet">
<xs:complexType>
<xs:sequence>
<xs:element name="server" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="singlesignon" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="inprocess" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="reports_servermap" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element ref="cookie" minOccurs="0" maxOccurs="1"/>
<xs:element name="defaultcharset" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element ref="webcommandaccess" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="allowhtmltags" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="helpurl" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="imageurl" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="reloadkeymap" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="dbauth" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="sysauth" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="errortemplate" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element ref="diagtags" minOccurs="0" maxOccurs="1"/>
<xs:element ref="cluster" minOccurs="0" maxOccurs="1"/>
<xs:element ref="oidconnection" minOccurs="0" maxOccurs="1"/>
<xs:element name="allowauthid" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="enabledbproxy" type="xs:string" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>

4. Check for any inaccurate element values. Here is a sample entry that caused failure:

<server>$$Self.inProcessServerName$$</server>

The Servlet is looking for a hard coded value rather than an environment variable. Hence, for this to work, you need to change this
to:

<server>rep_myreportsserver</server>

https://support.oracle.com/epmos/faces/DocContentDisplay?_afrLoop=450582779399571&id=1053674.1&_afrWindowMode=0&_adf.ctrl-state=1a… 3/4
2/8/2018 Document 1053674.1
where rep_myreportsserver is your actual Reports Server name. This is provided only as a sample.

5. After making corrections to your rwservlet.properties file, please restart your managed server (WLS_REPORTS) for the changes to
take effect.

REFERENCES

Didn't find what you are looking for? Ask in Community...

Related
Products
Middleware > Developer Tools > Database & PLSQL > Oracle Reports Developer > SQL*ReportWriter > REPORTS SERVER

Keywords
HTTP FAILS; INSTALLATION; RWSERVLET
Errors
BEA-101020; HTTP-500; RFC-2068

Back to Top

https://support.oracle.com/epmos/faces/DocContentDisplay?_afrLoop=450582779399571&id=1053674.1&_afrWindowMode=0&_adf.ctrl-state=1a… 4/4

Potrebbero piacerti anche