Data retrieval failure: Security Error: Error #2048. (http status 0) ?
How do I fix this popup error ?
It doesn't look to me like it has anything to do with PDF forms, or any Adobe product, so you're unlikely to get an answer here in the Adobe forums.
Similar Messages
-
Data Retrieval Failure - Syntax Error
Being new to Crystal Reports, we are getting an error message when trying to connect to our SQL based payroll software. We are able to select the database and the tables and fields that we want to query so it would seem that Crystal is recognizing the database, however when adding the fields to the report and previewing the results, we get the error:
"Failed to retrieve data from the database. Details: 42000:[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near 'Aid'. [Database vendor code: 170]"
What does this mean??
Our payroll database name contains 4 words with spaces between them. "Aid" is the second word in the DB name. We have contacted the payroll software support group to determine if we can change the name of the payroll database and they have indicated that we cannot. Is Crystal able to retrieve from a database that has spaces in its name? If not, is there a way to refer to or designate the database as something different (i.e. a one-word name like "Payroll") for Crystal Reporting purposes such that Crystal is able to retrieve data from it?
Any help anyone can offer would be greatly appreciated.
Thank you!
Tanja & EdHmmm, that's a good point. We did not ask the PR company if it was possible to connect directly to their DB, we just assumed that we could (the possibility that we couldn't never crossed my mind). We will look into that. We have also tried to connect via Excel (import external data/new database query) and we get a similar syntax error. Both Crystal and Excel seem to be recognizing the database in that they bring up the list of available tables and fields and allow us to select them but it is at the point where they try to return results that we get the error.
The tables themselves do not have spaces in the names, they are either one-word names or use "_" for multi-word names. The fields are the same. It is the database name that has the spaces. And I was wrong, "Aid" is actually the third word in the DB name. "xxxx xxxxxxxxx Aid xxxxxx".
I just tried to query on different tables thinking that maybe some of them could be accessed and some couldn't but I'm still getting the same error message. You may be onto something with respect to not having permission to connect to the DB - I'll contact Paymate and find out.
Thanks! -
Flash Player 10 Security - Error 2048
Hello all, I'm running in to an issue with Flash Player 10
and I can't seem to figure it out. I am using an HTTP server on an
embedded device to serve SWF files which in turn connect back to
the device (and other devices) for XML data. The connections are
made back to
http://deviceip/folder - I have
no way to access the root folder of the server. This folder
contains no crossdomain.xml file. With FP9 I was intercepting HTTP
requests to
http://deviceip/folder/crossdomain.xml
and outputting this:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "
http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>
The debugger says that this file is depreciated but
everything seemed to work fine on FP9. After upgrading to FP10 I
started getting the Security Error #2048. From what I can
understand at
http://www.adobe.com/go/strict_policy_files
the only fix for error 2048 is to specify a strict policy file that
has the meta-policy of "all" at the root of the domain. I have no
access to the root so this presents a problem.
I did see that you can send some HTTP header information
instead of using a crossdomain.xml file, but I couldn't tell where
the FP is looking for that information. I can modify headers on
responses
http://deviceip/folder but not on
the response from
http://deviceip/ I assumed that is
where the headers are checked which leaves me in the same boat.
I'm hoping someone has a creative idea for me to try.
Thanks!Nope, never have found a solution - the fact that someone
actually replied has taken me off guard :) Maybe someone can shed
some light on the issue - but don't hold your breath :) -
Getting Security Error# 2048 while working in Flash 11.2
Hi all,
Greetings to all. Well So i prepared a widget written in Action Script 3. Here are my system configurations:
OS: Windows 7
Flash: 11.2
Now when i make a SWF file and open it in my local host i can see the widget running with no problems.
But when i wrapp the SWF file/ Flash Widget in HTML and then try to run it in my local host it is giving me security error 2048. Below is the error i am getting:
Error 2048
Error Security: 0:[SecurityErrorEvent type="securityError" bubbles=false cancelable=false eventPhase=2 text="Error #2048"] - {"config":{"fragmentOutgoingMessages":true,"maxReceivedFrameSize":1048576,"fragmentationT hreshold":16384,"maxMessageSize":8388608,"closeTimeout":5000,"assembleFragments":true},"de bug":true,"extensions":[],"readyState":0,"bufferedAmount":0,"resource":"/1.0.0/events/anno tation.OQB15MCCCLO49620VHC4R8C8D/","port":25899,"useNullMask":false,"host":"127.0.0.1","pr otocol":null,"secure":false,"uri":"ws://127.0.0.1:25999/1.0.0/events/annotation.OQB15MCCCL O49620VHC4R8C8D/","connected":false}
After some googling and visiting some forums/websites on the internet i also included the following cross domain parameters in the root location of my source code:
<?xml version=\"1.0\"?> <!DOCTYPE cross-domain-policy SYSTEM \"http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd\"> <cross-domain-policy>
<site-control permitted-cross-domain-policies="master-only"/>
<allow-access-from domain="localhost" to-ports="*" secure="false" />
<allow-access-from domain="*" secure="false" to-ports="{0,number,#}"/>" <allow-http-request-headers-from domain="*" headers="*"/>" </cross-domain-policy>
Apart from the above settings i also made a mms.cfg file to include the DisableSocket=0 but still not working.
I am using websocket connections in my widget and using open source lib AS3Websocket library.
Can you guys anyone here can shed some light on this.It will be a huge help.
Thank you and have nice time people.No not exactly...
I am not using the code you pasted in the above post.
Let me try that out and get back to you..
Thanks for taking time and helping to solve this damn issue...;-)
Thanks a lot...
Mayank -
Error message - HTTP Status 500 -
sir,
i deployed my struts application using simple form bean and am getting the error message HTTP Status 500- . please guide me to solve this problem. im presenting you the source code i had written. please kindly check this and give the solution.
this is the login.html
<html>
<body bgcolor=#23533234>
<center>
<pre>
<form action=login.do>
<font size=10 color=pink>welcome</font>
<font size=5 color=pink>
username:<input type=text name=un>
<br><br>
password:<input type=password name=pw>
<br><br>
<input type=submit value=G e t I n>
</font>
</form>
</pre>
</center>
</body>
</html>
this is the AdminHome.jsp
Response from AdminHome page
this is the UserHome.jsp
Response from UserHome.jsp
this is the LoginModel.java
package com.nit.struts;
public class LoginModel
public String validate(String name,String pass)
if(name.equals("user1")&&pass.equals("pass1"))
return "admin";
this is the LoginAction.java
package com.nit.struts;
import javax.servlet.*;
import javax.servlet.http.*;
import org.apache.struts.action.*;
public class LoginAction extends Action
public ActionForward execute(ActionMapping am, ActionForm af, HttpServletRequest req, HttpServletResponse res)throws Exception
UserDetails ud=(UserDetails)af;
String uname=ud.getName();
String upass=ud.getPass();
// String uname=req.getParameter("un");
// String upass=req.getParameter("pw");
LoginModel lm=new LoginModel();
String user_type=lm.validate(uname,upass);
if(user_type==null)
return am.findForward("fail");
return am.findForward(user_type);
this is the UserDetails.java
package com.nit.struts;
import org.apache.struts.action.*;
public class UserDetails extends ActionForm
public void setName(String s)
un=s;
public void setPass(String s)
pw=s;
public String getName()
return un;
public String getPass()
return pw;
String un,pw;
this is the struts-config.xml
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_3.dtd">
<struts-config>
<form-beans>
<form-bean name="userform" type="com.nit.struts.UserDetails"/>
</form-beans>
<action-mappings>
<action name="userform" scope="session" path="/login" type="com.nit.struts.LoginAction">
<forward name="fail" path="/login.html"/>
<forward name="admin" path="/AdminHome.jsp"/>
<forward name="user" path="/UserHome.jsp"/>
</action>
</action-mappings>
</struts-config>
this is the web.xml
<web-app>
<servlet>
<servlet-name>first</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>first</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>login.html</welcome-file>
</welcome-file-list>
</web-app>
if(name.equals("user2")&&pass.equals("pass2"))
return "user";
return null;
*this is thetype Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: java.lang.NullPointerException
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
java.lang.NullPointerException
com.nit.struts.LoginModel.validate(LoginModel.java:7)
com.nit.struts.LoginAction.execute(LoginAction.java:18)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803) -
Security Data : No WS-Security Header - UTL_HTTP for HTTPS calls -Oracle 9i
Hello,
I have a SOAP requests to transmitt a on the fly parsed XML file to UTL_HTTP to connect to a SSL connection. Oracle Wallet is installed and connectivity is working as expected. However, in the SOAP response I am getting
Security Data : No WS-Security Header I am not sure what I am missing? How can I resolve this error?
Below is the SOAP response that shows this error.
<?xml version="1.0" encoding="utf-8" ?>
- <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
- <soap:Header>
- <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
- <wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-17449452">
<wsu:Created>2010-11-20T05:03:40.568Z</wsu:Created>
</wsu:Timestamp>
</wsse:Security>
</soap:Header>
- <soap:Body>
- <soap:Fault xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:c="urn:schemas-asource-com:transaction-data-1.0">
<faultcode>wsse:InvalidSecurity</faultcode>
<faultstring>Security Data : No WS-Security Header</faultstring>
</soap:Fault>
</soap:Body>
</soap:Envelope>Below is my compete code that generated above response.
BEGIN
soap_request :=
'<?xml version="1.0" encoding="utf-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="urn:schemas-asource-com:transaction-data-1.31">
<SOAP-ENV:Header xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wsswssecurity-
secext-1.0.xsd">
<wsse:Security SOAP-ENV:mustUnderstand="1">
<wsse:UsernameToken>
<wsse:Username>NPCOMMERCE_DEV</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wssusername-
token-profile-1.0#PasswordText">Il/vJa0jat7929f8xxklPjYZIMy5eBCqBMILeGaC+E/1NfIWv+I2KfgghlhkSOaN6rme70OQHEo3e4LJMlWvfC7UfYaN9bqyQwYACmrDFpoiQYCOS+XLnRshhLHMio5VY4+P3C/25tCEH4lBAMRjP1LmjIvZI/h4YJ/65x8OQrqO7tdggZ/KAgvOiNc1GSU+NhkgzLl4EKoEwgt4ZoL4T/U18ha/4jYp+CCGWGRI5o3quZ7vQ5AcSjd7gskyVa98LtR9ho31urJDBgAKasMWmiJBgI5L5cudGyGEscyKjlVjj4/cL/bm0IQfiUEAxGM/UuaMi9kj+Hhgn/rnHw5Cug==</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>'
|| '<SOAP-ENV:Body>'
|| '<ns1:requestMessage>'
|| '<ns1:merchantID>'
|| 'ACOMM_DEV'
|| '</ns1:merchantID>'
|| '<ns1:merchantReferenceCode>'
|| lv_sequence
|| '</ns1:merchantReferenceCode>'
|| '<ns1:billTo>'
|| '<ns1:firstName>'
|| p_cc_holder_name_first
|| '</ns1:firstName>'
|| '<ns1:lastName>'
|| p_cc_holder_name_last
|| '</ns1:lastName>'
|| '<ns1:street1>'
|| 'XXX Charleston Road'
|| '</ns1:street1>'
|| '<ns1:city>'
|| 'Mountain View'
|| '</ns1:city>'
|| '<ns1:state>'
|| 'CA'
|| '</ns1:state>'
|| '<ns1:postalCode>'
|| '94043'
|| '</ns1:postalCode>'
|| '<ns1:country>'
|| 'US'
|| '</ns1:country>'
|| '<ns1:email>'
|| '[email protected]'
|| '</ns1:email>'
|| '</ns1:billTo>'
|| '<ns1:item id="0">'
|| '<ns1:unitPrice>'
|| 12.34
|| '</ns1:unitPrice>'
|| '<ns1:quantity>'
|| 2
|| '</ns1:quantity>'
|| '</ns1:item>'
|| '<ns1:purchaseTotals>'
|| '<ns1:currency>'
|| 'USD'
|| '</ns1:currency>'
|| '</ns1:purchaseTotals>'
|| '<ns1:card>'
|| '<ns1:accountNumber>'
|| 111111111111111
|| '</ns1:accountNumber>'
|| '<ns1:expirationMonth>'
|| 12
|| '</ns1:expirationMonth>'
|| '<ns1:expirationYear>'
|| 2020
|| '</ns1:expirationYear>'
|| '</ns1:card>'
|| '<ns1:ccAuthService run="true"/>'
|| '</ns1:requestMessage>'
|| '</SOAP-ENV:Body>'
|| '</SOAP-ENV:Envelope>';
EXCEPTION
WHEN OTHERS
THEN
errx := SQLERRM;
raise_application_error (-20003, errx);
END;
BEGIN
UTL_HTTP.set_wallet
('file:/p01/oracle/prj1db/9.2.0/appsutil/wallet',
'p4ssword'
EXCEPTION
WHEN OTHERS
THEN
errx := SQLERRM;
raise_application_error (-20004, errx);
END;
BEGIN
http_req :=
UTL_HTTP.begin_request ('https://rvcotest.ss.com/commerce/999/tProcessor',
'POST',
'HTTP/1.1'
EXCEPTION
WHEN OTHERS
THEN
errx := SQLERRM;
raise_application_error (-20005, errx);
END;
BEGIN
UTL_HTTP.set_header (http_req, 'Content-Type', 'text/xml');
UTL_HTTP.set_header (http_req,
'Content-Length',
LENGTH (soap_request)
UTL_HTTP.set_header (http_req,
'SOAPAction',
'xmlns="urn:rvcotest.ss.com/commerce/999/tProcessor"'
EXCEPTION
WHEN OTHERS
THEN
errx := SQLERRM;
raise_application_error (-20006, errx);
END;
BEGIN
UTL_HTTP.write_text (http_req, soap_request);
http_resp := UTL_HTTP.get_response (http_req);
UTL_HTTP.read_text (http_resp, soap_respond);
UTL_HTTP.end_response (http_resp);
EXCEPTION
WHEN UTL_HTTP.end_of_body
THEN
UTL_HTTP.end_response (http_resp);
WHEN OTHERS
THEN
errx := SQLERRM;
raise_application_error (-20007, errx);
END;Thank you Fahd for quick response.
I have gone through the note. So, it seems that I have to put a Header tag with username and password. But such tag definitions do not exist neither in my WSDL nor in my XSD that gets validation on destination server. In that case what do I do? :(
-R -
Hi,
I'm trying to make a socket connection using AS3. I am aware
of the new Security policies. I've read all the articles and set up
a socket policy file server and a socket server to handle the
socket.connect().
Im calling
Security.loadPolicyFile("xmlsocket://myhost.com:843") but
continually get this message in the debugger:
Error: Failed to load policy file from
xmlsocket://myhost.com:843 // why did it fail?? the file is there
and port is open
and then:
Error: Request for resource at xmlsocket://myhost.com:11500
by requestor from
http://myhost.com/myswf.swf
has failed because the server cannot be reached. // why can't the
server be reached?? the port is open
I've made sure I have no firewall blocking the port, no
SELinux enabled policies, and I've verified port 843 and 11500 are
actually open using a custom php script.
Also when I type nmap localhost port 843 shows up as open
using tcp. It does however say that the service is unknown. I don't
understand that since I have edited the /etc/services file and
created the service "flashpolicy" in /etc/xinetd.d and restarted
inetd using: /etc/rc.d/init.d/xinetd restart.
Heres the string my socket policy file server is suppose to
return when it receives <policy-file-request/> :
<cross-domain-policy><site-control
permitted-cross-domain-policies="master-only"/><allow-access-from
domain="myhost.com" to-ports="11500"
/></cross-domain-policy>\0
Can anyone give me some clues as to what I'm doing wrong? I
think I've read every article out there regarding this subject. I
even see that there are two bugs listed for the flash player:
http://bugs.adobe.com/jira/browse/FP-67
and
https://bugs.adobe.com/jira/browse/FP-269.
But it seems likes someone out there has achieved socket
connections with AS3.
Thank YouYou might try to force Flash to load the policy file first:
Security.allowDomain(“*”);
Security.loadPolicyFile(“http://server.com/crossdomain.xml”); -
I log onto the following URL:
>http://15thcircuit.co.palm-beach.fl.us/web/guest/adminorders/series1<
I click on a link whose URL is:
>/15thcircuit.co.palm-beach.fl.us/c/document_library/get_file?folderId=149&name=DLFE-1775.pdf<
The screen opens with the error message shown in my question above.put your biplab folder inside root folder under tomcat\webapps\root
http://localhost:8080/biplab/hello.jsp -
Error message http status 500 when I try to sign in to HBO go
Hi, I'm trying to sign into HBO Go and I keep getting this error message. Not sure why. Never had had this problem before. My iPad is about 2-3 months old. I restarted it, and same thing happens. It also says Apache Tomcat/5.5.27 Thanks.
Some other users have been having the some problem over the past few days. This discussion my help:
"Invalid Address Tap Continue to sign...: Apple Support Communities -
My First servlet error-HTTP Status 500
Recently Installed apache-tomcat-5.5.27 ,I followed one documentation when i googled for a while like is here [http://linux-sxs.org/internet_serving/c292.html]
when i try to access from web-browser ,it came up with errors like
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: Error allocating a servlet instance
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
java.lang.Thread.run(Thread.java:595)
root cause
java.lang.UnsupportedClassVersionError: Bad version number in .class file
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:620)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1876)
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:889)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1353)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
java.lang.Thread.run(Thread.java:595)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.27 logs.Here is the directory structure
#/opt/apache-tomcat-5.5.27/webapps/MyFirst
#/opt/apache-tomcat-5.5.27/webapps/MyFirst/WEB-INF
#/opt/apache-tomcat-5.5.27/webapps/MyFirst/WEB-INF/classes
#/opt/apache-tomcat-5.5.27/webapps/MyFirst/WEB-INF/libI placed web.xml file in WEB-INF directory and HelloWorld.class in WEB-INF/classes and MyFirst.xml in /opt/apache-tomcat-5.5.27/conf/Catalina/localhost/
the files typically contains
web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>HelloWorld</servlet-name>
<servlet-class>HelloWorld</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HelloWorld</servlet-name>
<url-pattern>/HelloWorld</url-pattern>
</servlet-mapping>
</web-app>
HelloWorld.java
// Filename : HelloWorld.java
// Description : This servlet merely says hello!
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class HelloWorld extends HttpServlet {
public void doGet ( HttpServletRequest request, HttpServletResponse response )
throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("<html>");
out.println("<head><title>Hello, Cruel World!</title></head>");
out.println("<body>");
out.println("<h1>Hello, Cruel World !</h1>");
out.println("This is my first servlet.");
out.println("</body>");
}// end doGet
}///:~
MyFirst.xml
<!-- MyFirst Context -->
<Context path="/MyFirst" docBase="MyFirst" debug="0" reloadable="true"/>anybody have idea about this error...miriyalasrinivas wrote:
java.lang.UnsupportedClassVersionError: Bad version number in .class fileThe class is compiled with a JDK version which is newer than the JRE version used to run the class. To solve this, just clean up your Java environment and align the versions. You can get version information of the Java compiler using javac -version and of the Java runtime using java -version.
That said, this problem is actually not related to servlets. You didn't get a root exception of javax.servlet package. You just got a root exception of java.lang package, which basically makes it a Java SE problem. Questions related to those actually belongs in the 'New to Java' forum. -
Error while running survlet: http status 505
Hii all,
I have a problem in running servlet from my Firefox and I am using Tomcat 5.5.25. I having a problem in deploying the servlet.
I ran my servlet as:http://localhost:8085/log?user_name=******&password=*****
Servlet Maping looks like this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<display-name>Welcome to Tomcat</display-name>
<description>
Welcome to Tomcat
</description>
<servlet>
<servlet-name>Aboutus</servlet-name>
<servlet-class>AboutusServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>Login</servlet-name>
<servlet-class>LoginServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Aboutus</servlet-name>
<url-pattern>/aboutus</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Login</servlet-name>
<url-pattern>/log</url-pattern>
</servlet-mapping>
</web-app>
Below is my servlet code looks like,
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.sql.*;
public class LoginServlet extends HttpServlet
ServletOutputStream sos;
Connection con;
Statement st,st1,st2;
ResultSet rs,rs1,rs2;
public void doGet(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
String logvalid="";
String medicine="";
//String destination="";
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:health","scott","tiger");
System.out.println("Connection Successfull");
String user_id=req.getParameter("user_id");
String pass=req.getParameter("pass");
res.setContentType("text/html");
sos=res.getOutputStream();
System.out.println("username:"+user_id+"pass:"+pass);
String query="select user_id,pass from newuser where user_id='"+user_id+"' and pass='"+pass+"'";
System.out.println(query);
st=con.createStatement();
rs=st.executeQuery(query);
ResultSetMetaData rsmd= rs.getMetaData();
/* int count=rsmd.getColumnCount();
System.out.println("$$$$$$$$$$$$$$$$"+count);*/
System.out.println("value of rs="+rs);
if(rs!=null)
System.out.println("rs not null");
if(rs.next())
System.out.println("inside while");
if(user_id.equals(rs.getString(1)) && pass.equals(rs.getString(2)))
System.out.println("inside if");
logvalid="Valid";
System.out.println("valid");
String query1="select distinct medicine from prescription";
System.out.println(query1);
st1=con.createStatement();
rs1=st1.executeQuery(query1);
while(rs1.next())
source=source+rs1.getString(1)+"$";
//String query2="select distinct destination from route";
//System.out.println(query2);
//st2=con.createStatement();
//rs2=st2.executeQuery(query2);
// System.out.println(query2);
/*while(rs2.next())
destination=destination+rs2.getString(1)+"$";
} // if loop for checking user id
} // end of if for rs.next()
sos.println(logvalid+":"+medicine);
}// // end of if for rs!=null
if(rs==null)
System.out.println("rs=null");
catch(Exception e)
System.out.println(e);
public void destroy()
try
con.close();
sos.close();
rs.close();
st.close();
catch(Exception e)
System.out.println(e);
Here is the error report:
HTTP Status 500 -Hi all,
The issue is solved now.It was an silly mistake in the source code. I haven't extend the class.
Thanks,
Senthil. -
Error in HTTP to RFC senario?
Hi experts,
iam working on PI7 sandbox,i done a senario HTTP is the sender and RFC is the Receiver.....where i will send material nunber and i need responce from SAP system unit and weight details.
iam using HTTP client tool 2 post the payload into xi,iam geting this error
Result:
http-Status: 500 Internal Server Error
Payload:
<SAP:Error><SAP:Category>XIServer</SAP:Category><SAP:Code>MAPPING.NO_MAPPINGPROGRAM_FOUND</SAP:Code><SAP:P1>http://HTTP.com IM_Material</SAP:P1><SAP:Stack>Interface mapping http://HTTP.com IM_Material does not exist in runtime cache</SAP:Stack></SAP:Error>
i activated all objects in IR and ID i have done TEST CONFIGURATION in ID it was working fine......i checked the message mapping and Interface mapping ......still iam geting error.
iam using BAPI_Material_Get_detailsv this bapi...
Pleace help me in this issue
Regards,
PhaniHi,
1. Just go the Interface Mapping and see whether u have specified same Msg Mpping prog in that.
2.Also go to the Interface determination and chk if u have specified the correct inbound Interface and Interaace Mapping corresponding to it.
Regards,
Ashwin M
Reward if helfpul -
HTTP Status 500 Error java.lang.NullPointerException on BO 4.0 SP2
Hello,
we installed BO 4.0 SP2 with Tomcat 6 on Windows Server 2008 R2 64 Bit.
After installation it is not possible to open the CMC, BI-Launchpad or LCM in a browser. It presents the following error page:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
com.businessobjects.servletbridge.customconfig.Config.<init>(Config.java:37)
com.businessobjects.servletbridge.customconfig.ConfigReader.getConfig(ConfigReader.java:274)
com.businessobjects.pinger.TimeoutManagerFilter.getSessionState(TimeoutManagerFilter.java:192)
com.businessobjects.pinger.TimeoutManagerFilter.doFilter(TimeoutManagerFilter.java:75)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.24 logs.
Apache Tomcat/6.0.24
This is the error message from Tomcat log:
28.09.2011 08:56:46 org.apache.catalina.core.StandardWrapperValve invoke
SCHWERWIEGEND: Servlet.service() for servlet equinoxbridgeservlet threw exception
java.lang.NullPointerException
at com.businessobjects.servletbridge.customconfig.Config.<init>(Config.java:37)
at com.businessobjects.servletbridge.customconfig.ConfigReader.getConfig(ConfigReader.java:274)
at com.businessobjects.pinger.TimeoutManagerFilter.getSessionState(TimeoutManagerFilter.java:192)
at com.businessobjects.pinger.TimeoutManagerFilter.doFilter(TimeoutManagerFilter.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
The installation of 'SBOP BI Platform Servers 4.0 SP02 Patch 5' didn't affect this problem, it still has the same error.
BusinessObjects XI 3.1 is running without problems on that server.
Any help would be very appreciated!
Thanks in advance.Hello together,
I could fix this issue without any reinstalling of tomcat. I had the same problem after installtion of Patch 9 of SP2 for BOE 4.0.
Directly after the installation I changed the session-timeout parameter in some web.xml's because it was requested by our customer. Because I wanted to have a good documentation of those changes in the web.xml's I created a bigger comment in these files.
First I got 404 errors after that - to solve this I followed Knowledgebase article [1639813|https://websmp230.sap-ag.de/sap/support/notes/1639813] but first it didn't help.
So the before mentioned bigger comments seemed to be a problem (or maybe the special characters in there) because after shortening these comments and restarting SIA and Tomcat the 404 error disappeared and suddenly the above described 500 error occured.
After that I changed the Tomcat's localhost directory to localhost.old during downtime of Tomcat (as recommended by Lukas Kostrab). localhost was newly created but it didn't help either.
So last but not least I redeployed tomcat following article [1639813|https://websmp230.sap-ag.de/sap/support/notes/1639813] (wdeploy.bat tomcat6 u2013DAPP=BOE deploy) and started Tomcat and SIA again. I decided to wait a little bit longer with trying to start CMC - maybe 15min - and suddenly it worked.
So in conclusion I would say:
- check any changes you made in any config-files (like e.g. web.xml) and shorten them or remove special characters
- stop SIA and Tomcat
- rename localhost directory (or copy and remove) so it will be recreated at startup of Tomcat
- if that doesn't help check tomcat config according to article [1639813|https://websmp230.sap-ag.de/sap/support/notes/1639813] and redeploy tomcat as mentioned in that arcitle and be a little bit patient
Hope this might help some of you.
Best wishes
Marie -
Trex Indexing giving HTTP Status Code 401:Unauthorized error
Dear All,
We have configured TREX search on KM repository of our EP
production server and trying to search using the same our KM repository.
The TREX is installed on the a separate server.
When we try to Index production repository the documents are failing in
the Preparation failed status with return code 6401 and error message
HTTP Status Code 401: Unauthorized.
I also applied SAP-Note 650521 and checked id index_service user and
found that its active and not locked but still issue didnu2019t get
resolved. Moreover i have gone thru most of the previous post regarding this topic but didt help.
I even checked the URL Generator service too which is fine.
On one test system also where SPNego is configured we are getting same
401 error. On this system we disabled SPnego and Indexing started working
fine. When we reverted back the SPNego configuration for confirmation of
our observation we found that it again started to give 401 error.
Any help in this regard will be appreciated.
Regards,
Srinath Pillai
Edited by: Srinath Pillai on Sep 3, 2009 8:59 AMDear
Open System Administration--> System Configuration> Knowledge Management--> Content Management> Global Services (Mode : Advanced)> Index Management Service--> Check for Crawling Service User it has to be index_service
If still you have problem than do let me know where is your Repository located are the documents are stored on Portal Server itself or it is stored on some external server...
What kind of repository you use CM Repository(Mode:DB,DBFS,FSDB) , File System Repository....e.t.c....
Regards
Akshit -
The server encountered an internal error () - HTTP status 500
Hi
I am working with the Tomcat 5.5 on Eclipse, and is getting the error when my servlet calls the jsp using request dispatcher, the error is:
HTTP status 500
The server encountered an internal error () that prevented it from fulfilling this request.
and the log of the exception is:
Oct 27, 2008 9:41:15 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet Controller threw exception
java.lang.NullPointerException
at Controller.doGet(Controller.java:46)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:627)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:729)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:875)
at org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Unknown Source)
and when I go to the line in the controller.java which is giving me the exception, I do not find anything wrong with it, this is the line:
RequestDispatcher dispatcher = getServletConfig().getServletContext().getRequestD ispatcher("/view.jsp");
dispatcher.forward(request, response);
Any clarifications highly appreciated.
When I debug my code, I find that the config is null just before the RequestDispatcher line. What does that mean ?
thanks.Looks like you have a space in "D ispatcher"?
RequestDispatcher dispatcher = getServletConfig().getServletContext().getRequestD ispatcher("/view.jsp");If that's not the solution than going by your error you need to check your variable because somehow you're pointing to nothing:
java.lang.NullPointerException
Maybe you are looking for
-
I am not able to create a new tab, eventhough i have tried all ways to do it.
Normally the existing (current) tab has at the end an "+", and that gives you the option to make a new tab to the right. My Firefox tab does not have the "+", and I'm not able to create a new tab for another link. The new tab option is not working on
-
I need to know why this crosshatching appears over the text when I print the PDF
-
Any compensation for iPhone 3.0 users
I just recently purchased a 3G iPhone from AT&T in the end of April and they just released the 3GS in June... is there or will there be any type of compensation since there was such poor notification that the 3GS was being released. Because if I woul
-
Order:MHSJN3K4GY I didn't receive this application.
LINE, 200枚LINE代幣 NT$120 I don't buy this. And I re-check my LINE APP's record. It have no the 200枚LINE代幣. Please clear this billing payment. Thank you very much. Order: MHSJN3K4GY Item: LINE, 200枚LINE代幣 NT$120 With best regards, 李智淵 <Email Edited by
-
10.10.3 Update Issues
I just updated my Macbook Pro with Retina display to the latest update from Apple. OS X Yosemite (10.10.3) I feel like the battery drains a lot faster than before. The shutdown and start time is also slower than before. Do any of you know how to fix