ERROR 500 when testing webservice
Hy,
I work in 10.3.3 weblogic envirement with AIX OS. I've deployed a web service which calls a datasource. I've done the first test at the deployment tests to see the wsdl but i get the error 500.
Moreover, i saw these errors in the logfile Could you help me to understand this problem and to solve it?
THX
<Error> <HTTP> <BEA-101017> <[ServletContext@591143740[app:checkProvisionService module:checkProvisionService.war path:/checkProvisionService spec-version:2.5]] Root cause of ServletException.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.ws.server.endpoint.adapter.GenericMarshallingMethodEndpointAdapter#0' defined in ServletContext resource [WEB-INF/spring-ws-servlet.xml]: Cannot resolve reference to bean 'marshaller' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'marshaller' defined in ServletContext resource [WEB-INF/spring-ws-servlet.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: com.sun.xml.bind.DatatypeConverterImpl (initialization failure)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:495)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:162)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
Truncated. see log file for complete stacktrace
Caused By: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'marshaller' defined in ServletContext resource [WEB-INF/spring-ws-servlet.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: com.sun.xml.bind.DatatypeConverterImpl (initialization failure)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(AccessController.java:224)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
Truncated. see log file for complete stacktrace
Caused By: java.lang.NoClassDefFoundError: com.sun.xml.bind.DatatypeConverterImpl (initialization failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:140)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl$3.run(JAXBContextImpl.java:287)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl$3.run(JAXBContextImpl.java:286)
at java.security.AccessController.doPrivileged(AccessController.java:202)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:285)
Truncated. see log file for complete stacktrace
>
I have decompiled the offending class and there are many static initializers, one of them fails and cause the NoClassDefFoundError...
additional info is necessary...
If you use JRockit you could enable print exceptions http://blogs.oracle.com/hirt/2008/08/simple_exception_profiling_wit.html
Similar Messages
-
HTTP error code 500 when acessing webservice
Hi Guys,
We are trying to access a webservice through HTTPS. It's a document-oriented webservice implemented using weblogic. Both WSDL and service are accessible from the browser.
Can somebody please, invest sometime on this? We would be grateful for all the effort you spend on this.
Exception on client-side:
java.io.IOException: Server returned HTTP response code: 500 for URL: https://avisheko:7002/handler_log/EchoString?WSDL
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unkn
own Source)
at examples.webservices.ssl2way.SSLCFASAAJclient.main(SSLCFASAAJclient.j
ava:151)
We get some strange information on the server side:
Got a Web Service Request at URL: '/handler_log/EchoString' for web service 'null'
Got a Web Service Request at URL: '/EchoString' for web service 'LogHandler'
Client-code:
KeyStore ks = KeyStore.getInstance(KEYSTORE_TYPE);
ks.load(new FileInputStream("E:/test/keytool/2/cfakeystore"), "cfakeystorepass".toCharArray());
KeyStore ts = KeyStore.getInstance(KEYSTORE_TYPE);
ts.load(new FileInputStream("E:/test/keytool/2/cfatruststore"), "cfatruststorepass".toCharArray());
KeyManagerFactory kmf = KeyManagerFactory.getInstance(SECURE_ALGORITHM);
kmf.init(ks, "cfakeystorepass".toCharArray());
KeyManager[] km = kmf.getKeyManagers();
TrustManagerFactory tmf = TrustManagerFactory.getInstance(SECURE_ALGORITHM);
tmf.init(ts);
TrustManager[] tm = tmf.getTrustManagers();
SSLContext sslCtx = SSLContext.getInstance(SECURE_PROTOCOL);
sslCtx.init(km, tm, null);
System.setProperty("weblogic.webservice.verbose", "true");
URL endpoint= new URL("https://avisheko:7002/handler_log/EchoString?WSDL");
javax.net.ssl.HttpsURLConnection con = (javax.net.ssl.HttpsURLConnection)endpoint.openConnection();
con.setSSLSocketFactory(sslCtx.getSocketFactory());
com.sun.net.ssl.HostnameVerifier hv=new com.sun.net.ssl.HostnameVerifier()
public boolean verify(String urlHostname, String certHostname)
System.out.println("WARNING: Hostname is not matched for cert.");
return true;
com.sun.net.ssl.HttpsURLConnection.setDefaultHostnameVerifier(hv);
con.setDoOutput(true);
con.setDoInput(true);
con.setRequestMethod("POST");
con.setRequestProperty("Connection", "Keep-Alive");
con.setRequestProperty("Content-Type", "text/xml;charset=utf-8");
con.setRequestProperty("SOAPAction", "");
File f1 = new File("Soap6.xml");
BufferedReader inFile = new BufferedReader(new InputStreamReader(new FileInputStream(f1)));
StringBuffer sb = new StringBuffer();
String temp = null;
while((temp = inFile.readLine()) != null && !(temp.startsWith("0000")))
sb.append(temp);
PrintWriter out = new PrintWriter(con.getOutputStream());
BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
out.write(sb.toString());
out.flush();
String answer = in.readLine();
System.out.println(answer);
out.close();
in.close();
WSDL:
<?xml version="1.0" encoding="UTF-8" ?>
<definitions xmlns:tns="http://www.wisor.com/loguser" xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding" xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://www.wisor.com/loguser">
<types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:stns="http://www.wisor.com/loguser" elementFormDefault="unqualified" attributeFormDefault="unqualified" targetNamespace="http://www.wisor.com/loguser">
<xsd:element type="xsd:string" name="echoString" nillable="true" />
<xsd:element type="xsd:string" name="echoStringResponse" nillable="true" />
</xsd:schema>
</types>
<message name="echoString">
<part xmlns:partns="http://www.wisor.com/loguser" name="echoStringRequest" element="partns:echoString" />
</message>
<message name="echoStringResponse">
<part xmlns:partns="http://www.wisor.com/loguser" name="echoStringResult" element="partns:echoStringResponse" />
</message>
<portType name="LogHandlerPort">
<operation name="echoString">
<input message="tns:echoString" />
<output message="tns:echoStringResponse" />
</operation>
</portType>
<binding type="tns:LogHandlerPort" name="LogHandlerPort">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
<operation name="echoString">
<soap:operation style="document" soapAction="" />
<wsr:reliability persistDuration="60000" />
<input>
<soap:body namespace="http://www.wisor.com/loguser" use="literal" />
</input>
<output>
<soap:body namespace="http://www.wisor.com/loguser" use="literal" />
</output>
</operation>
</binding>
<service name="LogHandler">
<port name="LogHandlerPort" binding="tns:LogHandlerPort">
<soap:address location="https://avisheko:7002/handler_log/EchoString" />
</port>
</service>
</definitions>Check for a problem with Windows update KB902400.
Once this update was uninstalled, ActiveSync now works. No
problems with it recognizing my firewall or virus protection
either.
HTH
"Hoggies_Oz2" <[email protected]> wrote in
message
news:g5a105$ifc$[email protected]..
> Hi,
>
> I'm a new user of Dreamweaver having been appointed
webmaster of a local
> club.
> Have been working my way through the
'dw_getting_started' manual (which is
> generally excellent - thanks). Have installed IIS, PHP
and MySQL on my XP
> PRO
> SP3 PC - all OK so far and installed exactly as per the
recommendations in
> the
> dw_getting_started manual. But when I try to do the test
database
> connection
> (page 136) I get HTTP Error 500 Internal Server Error.
When I examine the
> event viewer I can see the error which is Event ID: 1802
' The Windows
> Security
> Center Service was unable to establish event queries
with WMI to monitor
> third
> party AntiVirus and Firewall'. Have spent many hours
scouring the 'net as
> well
> as with McAfee. At one stage I completely uninstalled
McAfee using their
> clean
> out program but the error still occurred with McAfee
totally removed from
> my PC.
>
> Any help will be appreciated.
>
> Thanks, Hoggies_Oz2
> -
Error 500 when displaying WSDL
Hello SOA experts,
I'd like to ask, if someone was troubled with similar issue as we are now. We have developed Java WS, based on PI - ESR definition. All is done on SAP PI 7.1 SP8.
After deployment from NWDI to Java WAS we generated Service Endpoint in Java SOA MANAGER. The service runs correctly, when tested from WS Navigator.
The problem is that when someone/something (SW) wants to display/download WSDL file. First try of WSDL displaying in web browser ends ok, but when the URL is re-entered, we got following error message:
500 Internal Server Error - SAP NetWeaver Application Server 7.10 / AS Java 7.10 - No Service is found using request url <the path of WebService> - Details: No details available
Moreover - as mentioned, the WS runs from WS Navigator and from PI SOAP Commonucation Channel correctly. But when I need to access it from WebDispatcher, the server returns HTTP code 404. The same result is returned, when web service's URL is entered to web browser.
Can anybody suggest, what might be wrong ?
Thank you
Best regards
TomasHello again,
we think we found the problem, but we are not sure, how to solve it. The thing is, that the JavaWebService is developed in NWDI under the development component with connection to CMS track.
It seems, that during generation of Service Endpoint the name of development component is inserted into the path of the service. The development component's name is "core/main/ws1", so the slashes are changed for the symbol
~
in the URL. So at the end, the WSDL URL looks with escaped symbols
~
like this : http://<host>:<port>/sapws/domain.net/core%7Emain%7Ews1ear_domain.net%7Ecore%7Emain%7Ews1_EJB_SIINVOICETSAINSyncImplBean/TSAGenWS/TSAGenWS?wsdl&mode=ws_policy
And as we are trying to call it - the escaped symbols are the problem. The reason is, that some browseres and e.g. SOAP test tools unescape the URL before opening the HTTP connection. It seems that SAP WebDispatcher does the same. And that's why the JavaWebService is not accessible through WebDispatcher.
Are we correct in this and if so can we work around it somehow ?
Thank you in advance.
Regards
Tomas -
Internal Error 500 when trying to open Interactive Form
I ve installed the NetWeaver Java Trial / SUSE Linux 10 Server (VMWare Edition).
It includes a demo scenario, where a new employe needs to confirm the confidentiality aggreement in an interactive form.
When I click on this I get an internal server error 500.
The trial certificate for interactive forms and the svg viewer are installed.
Can anyone bring some light into this?
Thanks in advance.I did this:
http://<server>:<port>/AdobeDocumentServices/Config
Test of ...rpdata.... and entered the CTB_ADMIN/Password and also tried with test user
(Jamie Miller) 14132 when requested for user.
Result is this:
An error has occurred. Maybe the request is not accepted by the server:
User 14132 does not have access to method rpData.
Post
POST /AdobeDocumentServices/Config?style=rpc HTTP/1.1
Host: maf-soft.dyndns.org:50000
Content-Type: text/xml; charset=UTF-8
Connection: close
Authorization: <value is hidden>
Content-Length: 814
SOAPAction: ""
<?xml version="1.0" encoding="UTF-8" ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Header><sapsess:Session xmlns:sapsess="http://www.sap.com/webas/630/soap/features/session/">
<enableSession>true</enableSession>
</sapsess:Session></SOAP-ENV:Header><SOAP-ENV:Body>
<ns1:rpData xmlns:ns1='urn:AdobeDocumentServicesVi'>
<rpStrings xsi:type='tns:ArrayOfRpString' xmlns:tns='urn:com.adobe'>
<tns:RpString><tns:name>
</tns:name><tns:value></tns:value>
</tns:RpString></rpStrings><rpStreams xsi:type='tns:ArrayOfRpStream' xmlns:tns='urn:com.adobe'><tns:RpStream><tns:name>
</tns:name><tns:value>AA==</tns:value>
</tns:RpStream></rpStreams></ns1:rpData></SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Respone:
HTTP/1.1 500 Internal Server Error
Connection: close
Set-Cookie: <value is hidden>
Set-Cookie: <value is hidden>
Server: SAP J2EE Engine/7.00
Content-Type: text/xml; charset=UTF-8
Date: Thu, 17 Apr 2008 19:12:08 GMT
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>
SOAP-ENV:Client</faultcode>
<faultstring>User CTB_ADMIN does not have access to method rpData.</faultstring><detail><ns1:com.sap.engine.services.ejb.exceptions.BaseEJBException
xmlns:ns1='http://sap-j2ee-engine/client-runtime-error'>
User CTB_ADMIN does not have access to method rpData.</ns1:com.sap.engine.services.ejb.exceptions.BaseEJBException>
</detail>
</SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
I looked for ADSCallers Role/User they are available in the .... Services > Security Provider.
I will continue with the recommended check steps, as described in the document:
If some one already know what the cause of the above mentioned error, pls bring some light into this.
Thank you very much. -
Error 500 when I'm running JSP with tomcat on Linux
I'm using Tomcat on linux and when I'm running any JSP file I got this Error:
Error: 500
Location: /examples/jsp/snp/snoop.jsp
Internal Servlet Error:
javax.servlet.ServletException: sun/tools/javac/Main
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
Root cause:
java.lang.NoClassDefFoundError: sun/tools/javac/Main
at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
What I'm doing wrong?
thank you for help, SnirI've got the same problem but on a Win98 platform also in Solaris OS
By copying the file JAVA_HOME/lib/tools.jar to the following path :
JAVA_HOME/jre/lib/ext/
another alternative is to set your classpath so that it point to the .jar files in your environnement variaoble
ex under Win98:
include this line in your autoexec.bat file
SET CLASSPATH=.;c:\jdk1.3\lib\tools.jar;c:\jdk1.3\lib\dt.jar
under Linux:
edit your .source that include environnment variables and add :"anOldPath:/jdk1.3/lib/tools.jar"
run the source in your terminal window then you can run ./startup under solaris or startup.sh
JAVA_HOME : c:\jdk1.3 or c:\jdk1.2.2 under win98
/home/user/auser/jdk1.2.2/ on linux
I hope that you encounter this problem.
Hichem Hassainia. -
Getting Error 500 when pressing the backbutton of the browser after log out
I am working on a web project , and am using AJAX in my application. I need to get list of templates and events stored in the database when my page is being loaded so im using AJAX. the problem is, when i press the logout in my page and after logging out if i press the browsers back button then im getting the Http Error 500.
Regarding this issue i previously also posted but i havent get solved my problem. (may be i havent posted my source code , rather i just posted error message.).
Here is the error message of the browser,
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.koffee.eon.subscriber.action.TemplateNames.doPost(TemplateNames.java:66)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:416)
Here is my source code of the TemplateNames class,
package com.koffee.eon.subscriber.action;
import com.koffee.eon.subscriber.persistence.*;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.http.HttpServlet;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.text.SimpleDateFormat;
import java.util.*;
public class TemplateNames extends HttpServlet {
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
String html="",html1="";
HttpSession session=request.getSession();
UserCompleteDetails sessionDetails=(UserCompleteDetails)session.getAttribute("userdetails");
System.out.println("checking session after logout"+sessionDetails);
if(sessionDetails==null)
System.out.println("session details in if condition is:"+sessionDetails);
response.sendRedirect("/login.jsp");
System.out.println("after checking "+sessionDetails);
String type=null;
type=request.getParameter("type");
String subscriberUserEONId=sessionDetails.getUserEonId();
System.out.println("subscriberUserEONId from session is: "+subscriberUserEONId);
SimpleDateFormat sdfDate=new SimpleDateFormat("yyyy-MM-dd");
SimpleDateFormat sdfTime=new SimpleDateFormat("HH:mm:ss");
TemplateManagement dbObj=new TemplateManagement();
EventManager dbObj1=new EventManager(); // for events
List templateNames=dbObj.getTemplates(subscriberUserEONId);
List eventIds=dbObj1.getEventsCompleteList(subscriberUserEONId); // for events
System.out.println("size of list of templates is:" + templateNames.size());
System.out.println("size of list of events is: "+eventIds.size()); // for events
if(type==null)
html+="<table><tr><td>Select Your Invitation Card: ";
html+="<select name=\"templateName\" class=\"cell\" onchange=getImage(this.value) onblur=checkTemplate() tabindex=\"1\">";
html+= "<option value=\"0\">Select</option>";
HashMap hmap=new HashMap();
try {
for(int i=0;i<templateNames.size();i++) {
TemplateMaster bean=(TemplateMaster)templateNames.get(i);
Integer templateid=bean.getTemplateId();
String templatepath=bean.getTemplateRelevantpath();
hmap.put(templateid,templatepath);
System.out.println("path recevied from db for template is: "+templatepath);
System.out.println("template id received from db is : "+templateid);
html+= "<option value=\"" + templateid + "\">" + templateid + "</option>";
} catch(Exception ee) {ee.printStackTrace();}
session.setAttribute("hmap", hmap);
html+="</select></td></tr><tr><td>";
System.out.println("path new is : "+html);
html+="</td>";
System.out.println(html);
html+="</td></tr><tr><td>Select an Event: ";
html+="<select name=\"eventId\" class=\"cell\">";
try {
for(int j=0;j<eventIds.size();j++) {
EventMaster bean=(EventMaster)eventIds.get(j);
String eventName=bean.getEventName();
Integer eventId1=bean.getEventId();
String eventStartDate=sdfDate.format(bean.getEventStartdate());
String eventStartTime=sdfTime.format(bean.getEventStarttime());
String eventId=eventName+" on "+eventStartDate+" at "+eventStartTime;
System.out.println("event id from database is : "+eventId1);
System.out.println("event list from database is : "+eventId);
html+= "<option value=\"" + eventId1 + "\">" + eventId + "</option>";
} catch(Exception eee) {eee.printStackTrace();}
html+="</select></td></tr></table>";
System.out.println(html);
out.println(html);
out.flush();
out.close();
if(type!=null)
html1+="</td></tr><tr><td>Select an Event: ";
html1+="<select name=\"eventId\" class=\"cell\">";
try {
for(int j=0;j<eventIds.size();j++) {
EventMaster bean=(EventMaster)eventIds.get(j);
Integer eventId1=bean.getEventId();
String eventId2=eventId1.toString();
String eventName=bean.getEventName();
String eventStartDate=sdfDate.format(bean.getEventStartdate());
String eventStartTime=sdfTime.format(bean.getEventStarttime());
String eventId=eventName+" on "+eventStartDate+" at "+eventStartTime;
System.out.println(eventId);
html1+= "<option value=\""
+ eventId2 + "\">" + eventId + "</option>";
} catch(Exception eee) {eee.printStackTrace();}
html1+="</select></td></tr></table>";
out.println(html1);
out.flush();
out.close();
}chinni wrote:
java.lang.NullPointerException
com.koffee.eon.subscriber.action.TemplateNames.doPost(TemplateNames.java:66)Do you understand when a NPE will be thrown? Some object reference at line 66 of TemplateNames.java is null while you didn't expect and you still invoke/access it. To fix this, add a nullcheck or just instantiate the reference. -
Getting Error:500 when trying to "Reset Client" Under setting tab in Mobile
Hi All,
We are getting following error when we are trying to Reset Client Under settings tab in the Mobile Device.
Anyhelp would be highly appreciated.
Client Details: MI70 SP15 0
Application: MAM LAPTOP3.0 with SR04.
DB2e: 9.1.2.
Error: 500
Location: /me/servlet/com.sap.ip.me.apps.jsp.ControllerServlet
Internal Servlet Error:
java.lang.RuntimeException: nested transaction not supported by TransactionManager
at com.sap.ip.me.persist.core.IPersistenceManagerTXWrapper.beginTransaction(IPersistenceManagerTXWrapper.java:183)
at com.sap.ip.me.smartsync.persadp.Transaction.beginTransaction(Transaction.java:69)
at com.sap.ip.me.smartsync.persadp.PersistenceAdapterImpl.beginTransaction(PersistenceAdapterImpl.java:197)
at com.sap.ip.me.smartsync.persadp.PersistenceAdapterImpl.beginTransaction(PersistenceAdapterImpl.java:130)
at com.sap.ip.me.core.ResetClientData.performReset(ResetClientData.java:119)
at com.sap.ip.me.apps.jsp.ControllerServlet.doHandleEvent(ControllerServlet.java:128)
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGetNotThreadSafe(AbstractMEHttpServlet.java:347)
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGet(AbstractMEHttpServlet.java:689)
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doPost(AbstractMEHttpServlet.java:706)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.service(AbstractMEHttpServlet.java:313)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:534)
Regards,
Ameer.Hi Alberto,
I have thought that you are also in NW70.Thats why I have mentioned that note.
Now correct SAP note for you is 1163707.
Regards,
Ameer Baba. -
6i - 10g R2 Migrated forms ROS ERROR: -500 when conevert to FMT
Hi All,
I am trying to make FMT for some of the 10g converted foms which is conevrted from 6i.
Some of the forms are getting converted correctly.Some of them giving error.
The Error is
ROS ERROR: -500.
Thanks in Advance,
Regards,
Ramanan SWe are getting a "ROS ERROR: -550" when trying to save a new form, which has compiled and runs fine, to FMT.
We're using version 9, using Forms Designer to convert.
We have a database with many 10s of forms, all of which are converted to FMT for a version control system.
When the new form is 're-built from scratch' the error eventually crops up, at random points. If you then delete the bit that was just added causing the error, the error remains.
(We have encountered the previously mentioned problem of the size of the form comments - which gives problems if more than 2000 char. In our case the form comments are not this large; and it will fail even with no form comments.
Suggestions please? -
Error "CONVT_NO_NUMBER" When testing Nisto e-orders for Dow integration,
Hi..
When testing Nisto e-orders for Dow integration, a runtime error is generated when the IDOC processes to produce an order.
ST22 details:-
Runtime Errors CONVT_NO_NUMBER
Exception CX_SY_CONVERSION_NO_NUMBER
Date and Time 11/21/2008 13:58:03
Short text
Unable to interpret "IC5001" as a number.
What happened?
Error in the ABAP Application Program
The current ABAP program "SAPLXVED" had to be terminated because
it has come across a statement that unfortunately cannot be executed.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_CONVERSION_NO_NUMBER', was not
caught in procedure "EXIT_SAPLVEDA_011" "FUNCTION" nor was it propaged by a RAISING clause .since the caller of the procedure couldnot have anticipated that the exception could occur,the program is terminated .
The reason for the Exception is :
The program is attemted to interpret the Value"IC5001"as a number but since the value contravenes the rule for correct number format,this was not possible.
How to correct the error pls help me
Thanks,Hi Sanjith,
The error message is very clear and says IC---- can not be interpreted as number.
this may be
while passing the data IC are treated as numbers and processed furhter may be arthimatic operatons.
or it may passed to a NUMERIC type FIELD.
please check once.
regards
Ramchander Rao.K -
Error 500 when accessing View rights option in CMC XI3.1
My customer has installed bo XI3.1 with web sphére serated in an other server, when he want to access view rights in CMC section, he received "error 500 :" he is using QWAS like a web server in a separete server without any fire wall.
Can you help me please.Hi,
This behaviour has been documented here:
https://service.sap.com/sap/support/notes/1508359
Regards,
Julian -
What is: Oops, something blew up (Error 500) when trying to login to Mix
Oops, something blew up (Error 500)
What is that when trying to login to mix.oracle.com
Thanks
SamThis is a 'catch-all' error generated by the Web server.
-
We install a new Exchange 2013 server with CU2 in our Exchange organization with a single Exchange 2007 server. We use a reverse proxy solution for publishing Outlook WebApp and sync. Internal Outlook WebApp works fine, but when we login from internet,
we get the error:
":-( Something went wrong"
In the address bar, we see the following URL:
https://webmail.company.com/owa/auth/errorfe.aspx?httpCode=500
When we try to login on https://webmail.company.com/ecp, it works fine. But OWA fails.
Login on legacy mailboxes works fine. When we login on the new Outlook WebApp URL, we automatically forwarded to the legacy URL.
We try the following reverse proxy solutions:
Citrix Secure Gateway 3.3 on a Windows 2008 server
ISS ARR on a Windows 2012 server (http://blogs.technet.com/b/exchange/archive/2013/07/19/reverse-proxy-for-exchange-server-2013-using-iis-arr-part-1.aspx)
Is there anyone that knows how I can troubleshoot this problem?Hi
Mostly looks like this is host (A) issue.You can check the below things
Just check of the mail host (A) record is created on internal DNS server and ensure its pointed to new Exchange 2013 server.
If the mail host (A) record is pointing to old exchange 2007 server just modify it and make it to point to new Exchange 2013 server
Check the DWS directory in edit binding if loopback 127.0.0.1 is added if not add them
Please mark as helpful if you find my contribution useful or as an answer if it does answer your question.That will encourage me - and others - to take time out to help you.
Regards,
Sathish -
Error 1009 when accessing webservice elements
I'm learning flex and Flash Builder 4.6 and doing a small example project.
I've created a mobile app test using a web service. I got the web service to work, creating xml dataset. I can get the flex code to access the web service and read the file. That works so far. The code reads the whole xml file from the web service and presents it. What I don't quite see is how to read only the elements. When I specify the .LastResult.element.element I get Error #1009: Cannot access a property or method of a null object reference. during runtime.
I can post the webservice xml result if that helps. Thanks for any insights.
Here's the code
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
creationComplete="view1_creationCompleteHandler(event)"
xmlns:service1="services.service1.*"
xmlns:uws_lookups="services.uws_lookups.*"
title="HomeView">
<fx:Script>
<![CDATA[
import mx.rpc.soap.WebService;
import mx.collections.ArrayCollection;
import mx.rpc.AsyncResponder;
import mx.collections.XMLListCollection;
import mx.events.FlexEvent;
import mx.rpc.events.ResultEvent;
import spark.events.IndexChangeEvent;
import spark.events.TextOperationEvent;
]]>
</fx:Script>
<fx:Declarations>
<s:WebService
id="SampleDBwebserviceCS"
wsdl="http://localhost:57074/Service1.asmx?WSDL"
showBusyCursor="true"
useProxy= "false"
makeObjectsBindable="true">
<s:operation name="Getmember" resultFormat="xml">
</s:operation>
</s:WebService>
<s:CallResponder id="GetmemberResult"/>
<service1:Service1 id="service1"/>
</fx:Declarations>
<s:VGroup width="60%" height="60%" color="#10851E" fontFamily="Arial" fontSize="10"
fontWeight="normal" horizontalAlign="center" verticalAlign="middle">
<s:TextArea id="lblResult" x="2" y="0" width="188" height="234"
creationComplete="view1_creationCompleteHandler(event)"
text="{GetmemberResult.lastResult}">
</s:TextArea>
<!-- Returns the whole xml result - all fields all xml definitions -->
<!-- Want to return GetmemberResult.lastResult.Sales.FirstName -->
<!-- however this causes a 1009 error on Sales-->
<s:Button
label="Get Data"
click="SampleDBwebserviceCS.Getmember.send(); lblResult.text = SampleDBwebserviceCS.Getmember.lastResult"
x="10"
y="568">
</s:Button>
</s:VGroup>
</s:View>
1009 error when I insert this property in the <s:Button tag:
click="SampleDBwebserviceCS.Getmember.send(); lblResult.text = SampleDBwebserviceCS.Getmember.lastResult.Sales.FirstName"
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at views::SampleSQLHomeView/___SampleSQLHomeView_Button1_click()[C:\Users\phillip\Adobe Flash Builder 4.6\SampleSQL\src\views\SampleSQLHomeView.mxml:121]I'd have to see the xml to say what, but 1009 is what it says - a null reference has no properties, it is null.
Try tracing out SampleWebServiceCS.GetMember and you'll quickly see where along your .element.element path you have an error.
(BTW, I've not used s:Operation before, but is your syntax correct?)
G -
Error message when testing Submit by Email button
I used Adobe LiveCycle for the first time to create a form. I added both a Submit by email and Print buttons. When I go to Adobe Professional to test my form to email, I get an security error message that the documet is trying to connect to my email address as the correct domain. I then have the option to Allow or Block. When I click Allow nothing happens and I don't get the email in my inbox.
Please assist as I need to send out this form and want users to be able to send w/out an issue.
Thanks.You have multiple options to sending whole PDF format.
1) Set the submit button to submit whole PDF format by using a mailto: [email protected] in the submit button action URL.
2) Set the submit button to fire a javascript that submits whole PDF format. See Adobe's Javascript reference guide for instructions.
Note: Methods #1 and #2 require Adobe Acrobat or Extended Reader Rights; because, Adobe Reader users are restricted to submitting just the data formats; such as FDF,XML, XFDF, XDP, and HTML. Beware extending reader rights to a PDF form using Adobe Acrobat places end user EULA restrictions, such as not more than 500 end user submissions for each form.
My Recommendations:
#3) Set the submit button to point to a URL of a server-side script; such as ASP.net. Then set the format to a data format; such as FDF, XML, XFDF, or XDP; and use ASP.net and iTextSharp (Free) to merge the data with a blank PDF form; and attach the submission to an outbound SMTP mail message and send without 3rd party email software such as MS OUTLOOK.
#4) A combination of #1 and #3; where you enable usage rights on the PDF using Adobe Acrobat; and send to a server-side script which bypasses client-side email software.
Check out the following website for online examples that submit to a server side script:
www.pdfemail.net/examples/ -
Error 500 when trying to invoke discoverer viewer & plus
Hi all,
we recently installed the patch for web services in discoverer.
But since then we've been getting a strange exception. Have you seen this before, or know what it is? The exception is resolved after a restart of the server. I'm getting it when I try to view http://host:port/discoverer/viewer for example.
500 Internal Server Error
oracle.discoverer.applications.share.ShareError: error.null.not.allowed
at oracle.discoverer.applications.share.util.ArgumentChecker.disallowNull(Unknown Source)
at oracle.discoverer.applications.share.util.ArgumentChecker.disallowZeroLengthOrNull(Unknown Source)
at oracle.discoverer.applications.framework.SSOUser.<init>(Unknown Source)
at oracle.discoverer.applications.framework.ApplicationCredentials.<init>(Unknown Source)
at oracle.discoverer.applications.framework.ApplicationController.execute(Unknown Source)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:834)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:340)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:229)
at oracle.discoverer.applications.viewer.url.URLServlet._process(Unknown Source)
at oracle.discoverer.applications.viewer.url.URLServlet.doGet(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.discoverer.applications.framework.ApplicationEncodingFilter.doFilter(Unknown Source)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:673)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:340)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:228)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)Hi,
Contact the Administrator of Oracle Application Server. He has the possibility ton stop Discoverer Viewer and Plus
Maybe you are looking for
-
When iCal in Leopard starts, it is totally empty and unusable
After booting up and starting iCal, it is always totally empty and unusable (none of the buttons work)... There are no calendars, shared calendars, or subscriptions. Quitting and re-opening usually loads as usual and there is no data loss. This happe
-
How to avoid blinking / moving of rows in a data grid when you restore the scroll positions
By Default when an update is made on a data grid, it scrolls to top row. To avoid this when we save the vertical and horizontal scroll positions and restore the scroll positions after the update, it causes a blink in the grid (or moving / jumping) of
-
Document no.1400865219 is blocked in G/L Account 1000 by 252830
Dear Gurus, we had gl account 252830 is for excise duty refund receivable. we are generating provision while posting invoice and we k/off that provision when we received duty refund from Government. Many times it happen that Factory people are stuck
-
Should I get stock 20" 2Ghz with 2 year or upgrade HDD+Wireless mouse+1 yea
Ok In the UK John Lewis sell the iMac with a 2 year warranty as standard. However it has to be a stock one. Looking on the Apple UK store I see the upgrade from 250Gb HDD to 320 HDD is £29 and the Wireless mouse £12, so I was going to go for that, bu
-
Can we host this service internally?
Is this service available through local hosting? Our data is sensitive and we are worried that the product is web based.