Weblogic server node start up error: java.lang.ClassCastException
Can anyone please help me with the below error?
I am trying to deploy a custom authorization provider, while weblogic is already configured with other custom authorization providers. I set my provider on high precedence and tried restarting all the nodes...
Adminserver started successfully but one of the node failed to start with the below error.. can anyone assist me here?
####<Aug 5, 2010 10:23:10 AM CDT> <Error> <Deployer> <cas5s033z3> <node_gfw_c_1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1281021790177> <BEA-149231> <Unable to set the activation state to true for the application 'memrApp'.
java.lang.ClassCastException: $Proxy37
at com.bea.p13n.entitlements.management.internal.SecurityPolicyDelegate.policyExists(SecurityPolicyDelegate.java:290)
at com.bea.p13n.entitlements.management.internal.SecurityPolicyDelegate.policyExists(SecurityPolicyDelegate.java:273)
at com.bea.p13n.entitlements.management.internal.RDBMSSecurityPolicyManager.getSecurityPolicy(RDBMSSecurityPolicyManager.java:204)
at com.bea.p13n.entitlements.management.SecurityPolicyManager.getSecurityPolicy(SecurityPolicyManager.java:119)
at com.bea.content.manager.internal.ContentUpgradeListener.hasUpgradeBeenDone(ContentUpgradeListener.java:105)
at com.bea.content.manager.internal.ContentUpgradeListener.postStart(ContentUpgradeListener.java:58)
at weblogic.application.internal.flow.BaseLifecycleFlow$PostStartAction.run(BaseLifecycleFlow.java:209)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.application.internal.flow.BaseLifecycleFlow$BaseAction.invoke(BaseLifecycleFlow.java:95)
at weblogic.application.internal.flow.BaseLifecycleFlow.postStart(BaseLifecycleFlow.java:62)
at weblogic.application.internal.flow.TailLifecycleFlow.activate(TailLifecycleFlow.java:33)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:641)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:229)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:181)
at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:352)
at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:52)
at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:186)
at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
java.lang.ClassCastException: $Proxy37
at com.bea.p13n.entitlements.management.internal.SecurityPolicyDelegate.policyExists(SecurityPolicyDelegate.java:290)
at com.bea.p13n.entitlements.management.internal.SecurityPolicyDelegate.policyExists(SecurityPolicyDelegate.java:273)
at com.bea.p13n.entitlements.management.internal.RDBMSSecurityPolicyManager.getSecurityPolicy(RDBMSSecurityPolicyManager.java:204)
at com.bea.p13n.entitlements.management.SecurityPolicyManager.getSecurityPolicy(SecurityPolicyManager.java:119)
at com.bea.content.manager.internal.ContentUpgradeListener.hasUpgradeBeenDone(ContentUpgradeListener.java:105)
at com.bea.content.manager.internal.ContentUpgradeListener.postStart(ContentUpgradeListener.java:58)
at weblogic.application.internal.flow.BaseLifecycleFlow$PostStartAction.run(BaseLifecycleFlow.java:209)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.application.internal.flow.BaseLifecycleFlow$BaseAction.invoke(BaseLifecycleFlow.java:95)
at weblogic.application.internal.flow.BaseLifecycleFlow.postStart(BaseLifecycleFlow.java:62)
at weblogic.application.internal.flow.TailLifecycleFlow.activate(TailLifecycleFlow.java:33)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:641)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:229)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:181)
at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:352)
at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:52)
at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:186)
at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
Thanks Sharat. Can you please specify more details about the class / jar you are talking about? What Jar do you think is duplicated? I verified the classpath and the jars in the server/lib and web-inf/lib. Everything seems ok to me.
Your input will be highly appreciated.
Similar Messages
-
Hi Gurus,
Trying to pass an OAG XML 9.0 payload to a remote trading Partner, over an AS2 channel -- message is both Signed and Encrypted, Cert has been imported.
I get the B2B-50014: General Error.
B2B is able to identify the Agreement correctly.
LOGS:
[2011-05-12T12:27:03.292+00:00] [soa_ms_1] [ERROR] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@243d15ed] [userId: <anonymous>] [ecid: bb3e7e8ee8316823:74cad781:12fc9c42815:-7ff5-0000000000172f4e,0] [APP: soa-infra] Error -: B2B-50014: General Error: java.lang.ClassCastException: oracle.xml.parser.v2.XMLParseException cannot be cast to oracle.tip.b2b.system.B2BDomainException[[
at oracle.tip.b2b.engine.Engine.processOutgoingMessageImpl(Engine.java:1571)
at oracle.tip.b2b.engine.Engine.processOutgoingMessage(Engine.java:800)
at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:3785)
at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:3127)
at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:619)
at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:220)
at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)
at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:183)
at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
Caused by: java.lang.ClassCastException: oracle.xml.parser.v2.XMLParseException cannot be cast to oracle.tip.b2b.system.B2BDomainException
at oracle.tip.b2b.document.oag.OagDocumentPlugin.validateXMLDocument(OagDocumentPlugin.java:1237)
at oracle.tip.b2b.document.oag.OagDocumentPlugin.processOutgoingDocument(OagDocumentPlugin.java:819)
at oracle.tip.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1483)
at oracle.tip.b2b.msgproc.Request.outgoingRequest(Request.java:990)
at oracle.tip.b2b.engine.Engine.processOutgoingMessageImpl(Engine.java:1511)
... 8 more
java.lang.ClassCastException: oracle.xml.parser.v2.XMLParseException cannot be cast to oracle.tip.b2b.system.B2BDomainException
at oracle.tip.b2b.document.oag.OagDocumentPlugin.validateXMLDocument(OagDocumentPlugin.java:1237)
at oracle.tip.b2b.document.oag.OagDocumentPlugin.processOutgoingDocument(OagDocumentPlugin.java:819)
at oracle.tip.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1483)
at oracle.tip.b2b.msgproc.Request.outgoingRequest(Request.java:990)
at oracle.tip.b2b.engine.Engine.processOutgoingMessageImpl(Engine.java:1511)
at oracle.tip.b2b.engine.Engine.processOutgoingMessage(Engine.java:800)
at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:3785)
at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:3127)
at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:619)
at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:220)
at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)
at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:183)
at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
Error -: B2B-50014: General Error: java.lang.ClassCastException: oracle.xml.parser.v2.XMLParseException cannot be cast to oracle.tip.b2b.system.B2BDomainException
at oracle.tip.b2b.engine.Engine.processOutgoingMessageImpl(Engine.java:1571)
at oracle.tip.b2b.engine.Engine.processOutgoingMessage(Engine.java:800)
at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:3785)
at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:3127)
at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:619)
at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:220)
at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)
at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:183)
at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
Caused by: java.lang.ClassCastException: oracle.xml.parser.v2.XMLParseException cannot be cast to oracle.tip.b2b.system.B2BDomainException
at oracle.tip.b2b.document.oag.OagDocumentPlugin.validateXMLDocument(OagDocumentPlugin.java:1237)
at oracle.tip.b2b.document.oag.OagDocumentPlugin.processOutgoingDocument(OagDocumentPlugin.java:819)
at oracle.tip.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1483)
at oracle.tip.b2b.msgproc.Request.outgoingRequest(Request.java:990)
at oracle.tip.b2b.engine.Engine.processOutgoingMessageImpl(Engine.java:1511)
... 8 more
Kindly advise.
Regards,
Sambhav.Hi Anuj,
Thanks, i disabled the agreement validation, ran the file through. It worked.
Also, tried to validate the XML instance with the XSD, and it threw no errors, so the payload conforms to the XSD, but will validate.
Other thing being, this is an OAG-XML PO, so had the XSD, not the Guideline file.
Regards,
Sambhav. -
Hi,
when promoting "Crystal Report 2013" report (with data connectivity BW MDX Query) from BO DEV to BO PROD with BO Promotion Mgmt (LCM), we get the following error message in LCM jobs history:
Resolution Status=Overwritten, Dependency Status=All the required dependencies are included.,
Commit Status=Commit attempted and failed.,
Promotion Status=Failure : Object promoted. Update failed.
Error: java.lang.ClassCastException: class com.crystaldecisions.sdk.occa.report.lib.ByteArray:java.net.URLClassLoader@1d634758 incompatible
with class com.crystaldecisions.sdk.occa.report.lib.PropertyBag:java.net.URLClassLoader@1d634758
The report itself is present on BO PROD, but the overwrite (BW DEV MDX Query-> BW PROD MDX Query) is not applied, so report connectivity still points to the BW Query on the development system :-( .
Moreover, the overwrite itself is detected when the job is "test promoted" ("active overwrite").
Before, we successfully were able to transport crystal reports 2013 with overwrite (the connection then pointed to BW PROD). No idea yet what suddenly changed that...
Any ideas what causes the error and what can fix it (no posts found, no SAP note, google also no hits)?
Best regards
Florian PitschiUpdate:
After more investigation, it looks as if the BO Server "CrystalReports2013ReportApplicationServer"
from time to time has an issue - not only when promoting, but also when viewing publications that contain Crystal Report documents or when executing them, the java class error or similar issue is thrown.
Did sb face similar behaviour and knows what is the root cause for "CrystalReports2013ReportApplicationServer" not working probably and throwing the java-class error? - it was running fine for several months, now, the class error showed up twice in one month.
We need to find out what is causing the issue (aleady checked tomcat and BO-logfiles...).
Best Regards
Florian -
ERROR:JAVA.LANG.CLASSCASTEXCEPTION WITH JDEVELOPER 10.0.1.3
I´m trying to use JSTL functions but I have the error
"Error:java.lang.ClassCastException with JDeveloper 10.0.1.3".
When I make or rebuild the code I have the error.
The test <c:when test="${fn:length(P_LIGACOES) > 0}" > has error. I´ve been
used others functions and the error is the same.
Please, see JSP code as follows:
<%@ page import="java.text.DateFormat"%>
<%@ page import="java.text.SimpleDateFormat"%>
<%@ page import="java.text.NumberFormat"%>
<%@ page import="com.celesc.tf.BilheteTelefonico"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Ligações Telefônicas</title>
<style type="text/css">
Body{
background-image: url(images/fdo.jpg);
background-repeat: no-repeat;
background-color: #FFFFFF;
</style>
<link href="css/ligtel.css" rel="stylesheet" type="text/css">
</head>
<body>
<h1 align=center> </h1>
<h1 align=center> </h1>
<c:choose>
<c:when test="${!empty mensagem}">
<h1 align=center>
<img src="images/erro.jpg"><font size="5" face="Verdana, Arial, Helvetica,
sans-serif"><c:out value="${mensagem}"/></font></h1>
</c:when>
<c:otherwise>
<%
Vector ligacoes = (Vector) request.getAttribute("P_LIGACOES");
SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yyyy
HH:mm:ss");
double totalligacoes = 0;
NumberFormat preco = NumberFormat.getCurrencyInstance();
%>
<c:choose>
<c:when test="${fn:length(P_LIGACOES) > 0}" >
<h1 align=center><font size="5" face="Verdana, Arial, Helvetica,
sans-serif">Nenhuma ligação Realizada</font></h1>
</c:when>
<c:otherwise>
<h1 align=center><font size="5" face="Verdana, Arial, Helvetica,
sans-serif">Relação das Ligações</font></h1>
<table class="table-normal" width="70%" align="center">
<tr class="table-result">
<td colspan="5"><b><%= ligacoes.size()%> </b> Ligações Realizadas</td>
</tr>
<tr class="table-title">
<td>Fone Chamado</td>
<td>Ramal</td>
<td>Data</td>
<td>Duração</td>
<td>Custo(R$)</td>
</tr>
<c:forEach items="${P_LIGACOES}" var="bilhete">
<tr class="table-content">
<td><c:out value="${bilhete.numeroChamado}"/></td>
<td><c:out value="${bilhete.ramalOrigem}"/></td>
<td><c:out value="${bilhete.dataLigacao}"/></td>
<td><c:out value="${bilhete.duracao}"/></td>
<!--<td><c:out value="${bilhete.custo}"/></td>-->
<td><c:out value="${bilhete.custo}"/></td>
<c:set var="totalligacoes" value="${totalligacoes +
bilhete.custo}"/>
</tr>
</c:forEach>
<tr class="table-result">
<td colspan="4" align="right"><B>Total</B></td>
<!-- <td ><B><%= preco.format(totalligacoes)%></B></td> -->
<td><B><c:out value="${totalligacoes}" /></B></td>
</tr>
</table>
</c:otherwise>
</c:choose>
</c:otherwise>
</c:choose>
</body>
</html>Hi,
Please make sure that there is no other version of *"net.nrj.alf.DimensionLabel"* class present in any other Class Loader
There are various kind of Class Loaders : PreMordial Class Loader, BootStrap ClassLoader, System Class Loader (WebLogic ClassLoader), Application ClassLoader, Module Class Loader....
net.nrj.service.SearchServiceProcessor java.lang.ClassCastException: net.nrj.alf.DimensionLabel java.lang.ClassCastException: net.nrj.alf.DimensionLabel If your code is working fine in WLS9.2 it means in WLS10.3.3 the same class is getting loaded from different Class Loaders...In order to find out which classLoader is being used to load that class please do the following:
<b><font color=maroon>
Class dimentionLevel=Class.forName("net.nrj.alf.DimensionLabel")
ClassLoader cl=dimentionLevel.getClassLoader();
System.out.println("\n\n\t DimentionLevel is loaded from ClassLoader: "+cl);
</font></b>
Above 3 Lines of code you need to write for "net.nrj.service.SearchServiceProcessor" class as well...Because i suspect that these two classes are getting loaded from two different class Loaders.
If the Application Code is 100% correct The Main reason of ClassCastException is Classes are getting Loaded from two Different Class Loaders. You can also look at the Filtering ClassLoader Feature of WebLogic to Tell WebLogic to Load some Classes from a Specific ClassLoaders...As described Here .*http://middlewaremagic.com/weblogic/?page_id=192*
Thanks
Jay SenSharma
http://middlewaremagic.com/weblogic/?page_id=2261 (Middleware magic Is Here) -
hi
i am accessing dot net web service from java using jax rpc dii. Input to web service is simple string and output is also string.
i am getting following error
serialization error: java.lang.ClassCastException: [Ljava.lang.Object;
the above exception is coming from following code
call.setProperty(ENCODING_STYLE_PROPERTY ,"");
QName qts = new QName("http://www.w3.org/2001/XMLSchema", "string");
call.addParameter("String_1", qts, ParameterMode.IN);
call.setReturnType( qts);
call.setOperationName( new QName(URI , "hello")); //hello mthd name
TypeMappingRegistry dt=
(TypeMappingRegistry)svc.getTypeMappingRegistry();
Object[] inParams = new Object [] {"win"} ;
String res = (String)call.invoke(inParams) ;
i am not able to find out what the error is ??
pls help.............I tried using
String [] lparams = new String {"win"};
but no success same eror
serialization error: java.lang.ClassCastException
do we have to register any serializer for the parameters we pass ??
any solution will be of great help ...
my code is as follows
String URI ="http://tempuri.org/";
String SOACT="http://tempuri.org/hello";
QName qname=new QName(URI,"AddNumbers");
ServiceFactory serviceFactory= ServiceFactory.newInstance();
Service svc=serviceFactory.createService( qname );
Call call=svc.createCall();
call.setTargetEndpointAddress("http://samrat/service/addservice.asmx" );
call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
call.setProperty(Call.SOAPACTION_URI_PROPERTY, SOACT);
String ENCODING_STYLE_PROPERTY = "javax.xml.rpc.encodingstyle.namespace.uri";
call.setProperty(ENCODING_STYLE_PROPERTY ,"");
call.setOperationName( new QName(URI , "hello"));
TypeMappingRegistry dt=(TypeMappingRegistry)svc.getTypeMappingRegistry();
Object inParams [] = new String [] {"win"} ;
Object res = (String)call.invoke(inParams) ; <--here i am getting error
i am accessing simple dot net web service servicename is hello which takes a string and returns same string ..
Any way thanxs for your suggestions .. keep on replying hope to solve this error asap ..
thanx once again
Samrat.A.Barve -
ALC-WKS-007-027 error - java.lang.ClassCastException
Hi
I've seen a few references to this error on the forums but I have encountered a variation that does not appear to be covered.
When I try invoking a process from workspace I get the error dialog showing the ALC-WKS-007-027 error and when I look at my server.log file I get the following ...
2008-03-26 15:27:44,317 INFO [STDOUT] [Flex] Error handling message: flex.messaging.MessageException: java.lang.ClassCastException : com.adobe.idp.scheduler.trigger.OneShotTrigger cannot be cast to com.adobe.idp.scheduler.trigger.Trigger
incomingMessage: Flex Message (flex.messaging.messages.RemotingMessage)
operation = invoke
clientId = D771AC36-FB09-CA71-D0D1-F3933CAD9B8D
destination = endpoint-actions
messageId = 6A6CEC1E-3103-1BAB-4147-EBB3AE15E9E4
timestamp = 1206545264171
timeToLive = 1206545264171
body = null
hdr(DSId) = D769E5BE-6F1A-4150-02DE-30CB8A7E165F
hdr(DSEndpoint) = workspace-polling-amf
errorReply: Flex Message (flex.messaging.messages.ErrorMessage)
clientId = D771AC36-FB09-CA71-D0D1-F3933CAD9B8D
correlationId = 6A6CEC1E-3103-1BAB-4147-EBB3AE15E9E4
destination = endpoint-actions
messageId = D771AD9B-6D08-049A-4CD0-81A25E061B3B
timestamp = 1206545264317
timeToLive = 0
body = null
code = Server.Processing
message = java.lang.ClassCastException : com.adobe.idp.scheduler.trigger.OneShotTrigger cannot be cast to com.adobe.idp.scheduler.trigger.Trigger
details = null
rootCause = java.lang.ClassCastException: com.adobe.idp.scheduler.trigger.OneShotTrigger cannot be cast to com.adobe.idp.scheduler.trigger.Trigger
body = null
extendedData = null
I have just upgraded to service pack 2 of LiveCycle ES.
I'd really appreciate some help on this.
Thanks
Bernardsend me your process lca
[email protected], will take a look at your problem -
When running weblogic 4.5.1 on our staging server we get the following
exceptions happening intermitently
Our other servers have identical code and properties files and they are fine
Tue Jul 11 12:03:53 GMT+01:00 2000:<E> <ServletContext-Servlets> Servlet
failed with RuntimeException
Tue Jul 11 12:03:53 GMT+01:00 2000:<E> <ServletContext-Servlets>
java.lang.ClassCastException: javax.servlet.http.NoBodyOutputStream
at weblogic.servlet.FileServlet.sendFile(Compiled Code)
at weblogic.servlet.FileServlet.doGet(Compiled Code)
at javax.servlet.http.HttpServlet.doHead(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
Code)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
Code)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
Tue Jul 11 12:03:53 GMT+01:00 2000:<E> <HTTP> Servlet request terminated
with IOException:
Tue Jul 11 12:03:53 GMT+01:00 2000:<E> <HTTP> java.net.ProtocolException:
Exceeded stated content-length of: 1230 bytes
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.io.IOException.<init>(Compiled Code)
at java.net.ProtocolException.<init>(Compiled Code)
at weblogic.servlet.internal.ServletOutputStreamImpl.print(Compiled Code)
at javax.servlet.ServletOutputStream.println(ServletOutputStream.java:252)
at
weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.
java:307)
at weblogic.servlet.internal.ServletResponseImpl.sendError(Compiled Code)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
Code)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
Code)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
Any ideas ?When running weblogic 4.5.1 on our staging server we get the following
exceptions happening intermitently
Our other servers have identical code and properties files and they are fine
Tue Jul 11 12:03:53 GMT+01:00 2000:<E> <ServletContext-Servlets> Servlet
failed with RuntimeException
Tue Jul 11 12:03:53 GMT+01:00 2000:<E> <ServletContext-Servlets>
java.lang.ClassCastException: javax.servlet.http.NoBodyOutputStream
at weblogic.servlet.FileServlet.sendFile(Compiled Code)
at weblogic.servlet.FileServlet.doGet(Compiled Code)
at javax.servlet.http.HttpServlet.doHead(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
Code)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
Code)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
Tue Jul 11 12:03:53 GMT+01:00 2000:<E> <HTTP> Servlet request terminated
with IOException:
Tue Jul 11 12:03:53 GMT+01:00 2000:<E> <HTTP> java.net.ProtocolException:
Exceeded stated content-length of: 1230 bytes
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.io.IOException.<init>(Compiled Code)
at java.net.ProtocolException.<init>(Compiled Code)
at weblogic.servlet.internal.ServletOutputStreamImpl.print(Compiled Code)
at javax.servlet.ServletOutputStream.println(ServletOutputStream.java:252)
at
weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.
java:307)
at weblogic.servlet.internal.ServletResponseImpl.sendError(Compiled Code)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
Code)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
Code)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
Any ideas ? -
Runtime Error: java.lang.ClassCastException
My project is to creat a postfix with boolean. I finished my code, it compiled great, than I got an java.lang.ClassCastException. So obviously I have a casting problem. Any help or hints in the right direction would be greatly appreciated.
import java.util.*;
import javax.swing.*;
public class KimbelPostfix
public static void main(String[] args)
String expression;
String token;
String operator;
String myString = "true";
StringTokenizer tokens;
Boolean operand1, operand2, result = true;
//create empty stack of pending boolean operands
Stack operandStack = new Stack();
expression = JOptionPane.showInputDialog( "Enter postfix expression" );
tokens = new StringTokenizer(expression);
while (tokens.hasMoreTokens())
token = tokens.nextToken();
if (!isOperator(token)) //operand
new Boolean(myString);
myString = token;
operandStack.push(token);
// printStack(operandStack); //display stack at each step. Debugging
else
{ //token is an operator
//pop two booleans off stack.
//convert popped Object to boolean, extract boolean
operand2 = ((Boolean)operandStack.pop()).booleanValue();
operand1 = ((Boolean)operandStack.pop()).booleanValue(); //"first" one
if (token.equals("!"))
operandStack.push(token);
result = operand1 && !operand2;
else if (token.equals("&&"))
result = operand1 && operand2;
else if (token.equals("||"))
result = operand1 || operand2;
operandStack.push(new Boolean(result));
//only object in stack is the answer
result = ((Boolean)operandStack.pop()).booleanValue();
JOptionPane.showMessageDialog(null,expression+" = "+result);
System.exit(0);
static boolean isOperator(String t) {
if (t.equals("!") || t.equals("&&") || t.equals("||"))
return true;
else
return false;
static void printStack( Stack s)
System.out.print("Stack is: ");
Iterator items = s.iterator();
while (items.hasNext())
System.out.print(items.next()+" ");
System.out.println();
When I run the program and enter "false false ||" I get the slightly more useful error message:
Exception in thread "main" java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean\\ at KimbelPostfix.main(KimbelPostfix.java:38)Now line 38 is the one in the else part of the while loop, that says:operand2 = ((Boolean)operandStack.pop()).booleanValue();Evidently what you were casting to a Boolean - operandStack.pop() - is a String. And you can't cast Strings to Booleans like that. So the questions are "what were you expecting to be on the stack?" and "what was actually on the stack?".
You already have a method that will help answer the second question. As regards the first, if you were expecting a Boolean on the stack you had better go back to whereever you push things onto the stack and see why it's a String not a Boolean.
Edited by: pbrockway2 on Dec 17, 2007 2:05 PM
I've just read the edit of your last post, and I agree with petes1234. No-one here is going to write the code for you. That's not trying to be discouraging or dismissive: just saying how things are.
There are signs of dispair in the myString variable, and the way you (attempt to) handle the unary ! operator. If you're tired and "fiddling around" to no productive effect your best bet would be to step away from the computer and do something else for a few hours. -
Hi,
How to solve this error?
I get the error at this line of code in my program.
java.util.ArrayList list= (java.util.ArrayList)obj;
Please help how to solve this problem.
Thanks,
cmblcmbl wrote:
How to solve this error?
I get the error at this line of code in my program.
java.util.ArrayList list= (java.util.ArrayList)obj; Don't do this cast.
Why are you doing this cast anyway? I think you need to show a small bit of compilable code (or almost compilable except perhaps for this error) and some more explanation. -
Hi,
I am trying to deploy ejb3.0 on weblogic 10 server. I am able to find the JNDI name of the stateless session bean correctly, but getting an exception while narrowing it down. My ejb3.0 client is a standalone java client. I am trying to access the stateless session ejb3.0 bean.Please help me. i have been trying it for many days.
thanks in advance,
Sanjeev
[sanpraka@localhost certEjb]$ java -cp ./:/usr/weblogic/bea/wlserver_10.0/server/lib/weblogic.jar:/usr/weblogic/bea/wlserver_10.0/server/lib/wlclient.jar com.titan.clients.Client
Object is weblogic.rmi.internal.BasicRemoteRef - hostID: '5337880647112897730S:127.0.0.1:[7001,7001,-1,-1,-1,-1,-1]:wl_server:examplesServer', oid: '302', channel: 'null'
java.lang.ClassCastException: Cannot narrow remote object weblogic.rmi.internal.BasicRemoteRef - hostID: '5337880647112897730S:127.0.0.1:[7001,7001,-1,-1,-1,-1,-1]:wl_server:examplesServer', oid: '302', channel: 'null' to com.titan.travelagent.TravelAgentRemote
at weblogic.corba.server.naming.ReferenceHelperImpl.narrow(ReferenceHelperImpl.java:206)
at weblogic.rmi.extensions.PortableRemoteObject.narrow(PortableRemoteObject.java:88)
at weblogic.iiop.PortableRemoteObjectDelegateImpl.narrow(PortableRemoteObjectDelegateImpl.java:32)
at javax.rmi.PortableRemoteObject.narrow(Unknown Source)
at com.titan.clients.Client.main(Client.java:24)
[sanpraka@localhost certEjb]$We have a similar problem. We have a web application (on server A) that invokes an EJB on a remote server (server B). This works fine, until we deploy another web application to server A at which point the existing web application starts to throw java.lang.ClassCastException when narrowing the remote EJB interface. The exception starts to be thrown at the moment the latter web application is deployed - start is not required.
The latter web application contains (actually in APP-INF/lib) the old version of the EJB remote interface, that somehow gets to be loaded into the classpath of the existing web application. The solution is to delete the old version of the EJB remote interface from APP-INF/lib of the latter web application (we didn't need it anyway), but it would be interesting to know in which circumstances classes can get mixed between enterprise applications.
I failed to reproduce the error in simple scenario, so this does not happen always. -
Error: java.lang.NullPointerException in BI Broadcasting
I am having this issue when I am trying Email broadcasting form SAP BI Query and set the filter navigation for one of the characteristic value. Any Idea???
When I execute the Information broadcasting it gives following message
Error: java.lang.NullPointerException
Thanks,
AddyHi Janine,
The query works in Java Web and in BEx Excel analyzer. This query even works in the BI email broadcasting for different filter value for the same characteristic in the filter navigation tab setting in broadcasting.
The same filter value works in Broadcasting when I am broadcasting the query as Excel attachment but does not work when I try to do a PDF report.
The popup error message is this:
Execution of Broadcast Setting
Setting Z_ORD_PTYP_SM_INT_YN_WK were started from the BEx Broadcaster
Processing for user USERID, language EN
Processing setting Z_ORD_PTYP_SM_INT_YN_WK
Error: java.lang.NullPointerException
When I checked the log file here is the Java Log
#1.5#0023AEFCB3200030000001F4000003D000047DAE57A2B7C0#1264087654806#com.sap.ip.bi.base.application.message.impl.MessageBase#sap.com/com.sap.prt.application.rfcframework#com.sap.ip.bi.base.application.message.impl.MessageBase#adadsena#13065##sap-bip_BIP_4188451##0a4b90f006a111dfad9f0023aefcb320#SAPEngine_Application_Thread[impl:3]_33##0#0#Error#1#/Applications/BI#Plain###A message was generated:
ERROR
Error while processing the control query
Message: Error while processing the control query
Stack trace: com.sap.ip.bi.broadcasting.runtime.BroadcastingException: Error while processing the control query
at com.sap.ip.bi.broadcasting.runtime.impl.precalculation.PrecPageAssembler.processControlQuery(PrecPageAssembler.java:559)
at com.sap.ip.bi.broadcasting.runtime.impl.precalculation.PrecPageAssembler.run(PrecPageAssembler.java:186)
at com.sap.ip.bi.broadcasting.runtime.impl.ProducerPrecalculation.produce(ProducerPrecalculation.java:409)
at com.sap.ip.bi.broadcasting.runtime.RfcListenerRSRD_X_PRODUCE.handleRequest(RfcListenerRSRD_X_PRODUCE.java:130)
at com.sap.ip.bi.portalrfc.dispatcher.services.BIServicesRfcDispatcherService.doHandleRequest(BIServicesRfcDispatcherService.java:239)
at com.sap.ip.bi.portalrfc.services.BIRfcService.handleRequest(BIRfcService.java:247)
at com.sapportals.portal.prt.service.rfc.RFCEngineService.handleEvent(RFCEngineService.java:345)
at com.sapportals.portal.prt.service.rfc.PRTRFCBean.processFunction(PRTRFCBean.java:37)
at com.sapportals.portal.prt.service.rfc.PRTRFCRemoteObjectImpl0_0.processFunction(PRTRFCRemoteObjectImpl0_0.java:118)
at sun.reflect.GeneratedMethodAccessor851.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187)
at $Proxy129.processFunction(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.call(RFCDefaultRequestHandler.java:284)
at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:219)
at com.sap.engine.services.rfcengine.RFCJCOServer$J2EEApplicationRunnable.run(RFCJCOServer.java:254)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
Caused by: com.sap.ip.bi.base.exception.BIBaseRuntimeException: EXPORT XFA exception when calling the PDF object after 180596 msec
at com.sap.ip.bi.export.xfa.impl.Document.writePxxToByte(Document.java:687)
at com.sap.ip.bi.export.xfa.impl.Document.writePdfToByte(Document.java:709)
at com.sap.ip.bi.export.xfa.impl.PDFConverter.getBinaryContent(PDFConverter.java:160)
at com.sap.ip.bi.export.impl.ExportController.getBinaryContent(ExportController.java:863)
at com.sap.ip.bi.export.controller.ExportResult.getExportResult(ExportResult.java:103)
at com.sap.ip.bi.export.controller.ExportResult.createExport(ExportResult.java:73)
at com.sap.ip.bi.webapplications.pageexport.broadcasterapi.PageExport.createExportResult(PageExport.java:212)
at com.sap.ip.bi.webapplications.pageexport.broadcasterapi.PageExport.getPdfForPage(PageExport.java:236)
at com.sap.ip.bi.webapplications.pageexport.broadcasterapi.PageExport.getExports(PageExport.java:253)
at com.sap.ip.bi.broadcasting.runtime.impl.precalculation.PrecPageAssembler.processPage(PrecPageAssembler.java:260)
at com.sap.ip.bi.broadcasting.runtime.impl.precalculation.PrecPageAssembler.processControlQuery(PrecPageAssembler.java:556)
... 24 more
Caused by: com.sap.tc.webdynpro.pdfobject.core.PDFObjectRuntimeException: Service call exception; nested exception is:
java.net.SocketTimeoutException: Read timed out
at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:408)
at com.sap.tc.webdynpro.pdfobject.core.PDFObject.createPDF(PDFObject.java:337)
at com.sap.ip.bi.export.xfa.impl.Document.writePxxToByte(Document.java:648)
... 34 more
Caused by: java.rmi.RemoteException: Service call exception; nested exception is:
java.net.SocketTimeoutException: Read timed out
at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:84)
at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:94)
at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:385)
... 36 more
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.readLine(HTTPSocket.java:889)
at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.getInputStream(HTTPSocket.java:375)
at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.getResponseCode(HTTPSocket.java:284)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.HTTPTransport.getResponseCode(HTTPTransport.java:415)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.outputMessage(MimeHttpBinding.java:563)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1444)
at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:77)
... 38 more
com.sap.ip.bi.broadcasting.runtime.BroadcastingException ErrProcessControlQuery#
#1.5#0023AEFCB320000E000000000000028800047DAECCE1F4B6#1264089621987#com.sap.security.core.persistence##com.sap.security.core.persistence.[cf=com.sap.security.core.persistence.datasource.imp.LDAPMasterCheck][md=checkAvailability][cl=57038]#######SAPEngine_System_Thread[impl:5]_67##0#0#Error##Plain###Main server available again#
#1.5#0023AEFCB320000F000000000000028800047DAECCEB0B7D#1264089622581#com.sap.security.core.umap.imp.UserMappingUtils##com.sap.security.core.umap.imp.UserMappingUtils.getMasterSystem()#######SAPEngine_System_Thread[impl:5]_30##0#0#Error##Plain###Cannot provide the current ABAP master system because the responsible system landscape is currently not available.#
#1.5#0023AEFCB3200010000000000000028800047DAECCF17BBE#1264089623003#com.sap.caf.um.metadata.imp.MetaDataTools##com.sap.caf.um.metadata.imp.MetaDataTools.MetaDataTools()#######SAPEngine_System_Thread[impl:5]_53##0#0#Info#1#/System/Server#Plain###sap.com caf/um/metadata/imp MAIN_APL70VAL_C 1528581#
#1.5#0023AEFCB3200011000000010000028800047DAECCF2B562#1264089623081#com.sap.engine.services.security##com.sap.engine.services.security#######SAPEngine_System_Thread[impl:5]_99##0#0#Error#1#/System/Security#Plain###migrateSystemRole() {#
#1.5#0023AEFCB3200011000000030000028800047DAECCF2C102#1264089623081#com.sap.engine.services.security##com.sap.engine.services.security#######SAPEngine_System_Thread[impl:5]_99##0#0#Error#1#/System/Security#Plain###migrateSystemRole() } OK#
#1.5#0023AEFCB3200012000000000000028800047DAECCF4D943#1264089623222#com.sap.caf.um.relgroups.imp.persistence.DataSource##com.sap.caf.um.relgroups.imp.persistence.DataSource.DataSource()#######SAPEngine_System_Thread[impl:5]_15##0#0#Info#1#/System/Server#Plain###sap.com caf/um/relgroups/imp MAIN_APL70P19_C 2877021#
#1.5#0023AEFCB3200013000000000000028800047DAECCF4E368#1264089623222#com.sap.tc.lm.ctc.confs.service.ServiceFrame##com.sap.tc.lm.ctc.confs.service.ServiceFrame#######SAPEngine_System_Thread[impl:5]_72##0#0#Info#1#/System/Server/CTC#Plain###Starting Configuration util service...#
#1.5#0023AEFCB3200013000000010000028800047DAECCF617AD#1264089623300#com.sap.tc.lm.ctc.confs.service.ServiceFrame##com.sap.tc.lm.ctc.confs.service.ServiceFrame#######SAPEngine_System_Thread[impl:5]_72##0#0#Info#1#/System/Server/CTC#Plain###Configuration util service started successfully.#
#1.5#0023AEFCB3200012000000010000028800047DAECCF9715F#1264089623519#com.sap.caf.um.relgroups.imp.principals.RelGroupFactory##com.sap.caf.um.relgroups.imp.principals.RelGroupFactory.RelGroupFactory()#######SAPEngine_System_Thread[impl:5]_15##0#0#Info#1#/System/Server#Plain###sap.com caf/um/relgroups/imp MAIN_APL70P19_C 2877021#
#1.5#0023AEFCB3200014000000000000028800047DAECCFA84EF#1264089623597#com.sapportals.trex.tns.TNSClient##com.sapportals.trex.tns.TNSClient#######SAPEngine_System_Thread[impl:5]_34##0#0#Error##Plain###verifyNameServerAddress: NameServer = tcpip://<nameserverhost>:<nameserverport> caught exception: java.net.MalformedURLException: For input string: "<nameserverport>"#
#1.5#0023AEFCB3200014000000010000028800047DAECCFA999F#1264089623597#com.sapportals.trex.tns.TNSClient##com.sapportals.trex.tns.TNSClient#######SAPEngine_System_Thread[impl:5]_34##0#0#Error##Plain###Invalid Entry for nameserver: tcpip://<nameserverhost>:<nameserverport> caught Exception: com.sapportals.trex.TrexException: TREX Name Server (including back-up servers) is down or not accessable. (Errorcode 7217)#
#1.5#0023AEFCB3200014000000020000028800047DAECCFAA3AE#1264089623597#com.sapportals.trex.tns.TNSClient##com.sapportals.trex.tns.TNSClient#######SAPEngine_System_Thread[impl:5]_34##0#0#Error##Plain###verifyNameServerAddress: NameServer = tcpip://<nameserverhost>:<nameserverport> caught exception: java.net.MalformedURLException: For input string: "<nameserverport>"#
#1.5#0023AEFCB3200014000000030000028800047DAECCFAA48A#1264089623612#com.sapportals.trex.tns.TNSClient##com.sapportals.trex.tns.TNSClient#######SAPEngine_System_Thread[impl:5]_34##0#0#Error##Plain###Invalid Entry for nameserver: tcpip://<nameserverhost>:<nameserverport> caught Exception: com.sapportals.trex.TrexException: TREX Name Server (including back-up servers) is down or not accessable. (Errorcode 7217)#
#1.5#0023AEFCB3200015000000000000028800047DAECDDEEF82#1264089638566#System.err##System.err####n/a##1e36f46006a611dfa01a0023aefcb320#Thread[Thread-64,5,SAPEngine_System_Thread[impl:5]_Group]##0#0#Error##Plain###com.sap.security.core.server.userstore.UserstoreException: Could not get user dfrench
at com.sap.security.core.server.userstore.UserContextUME.engineGetUserInfo(UserContextUME.java:198)
at com.sap.engine.services.security.userstore.context.UserContext.getUserInfo(UserContext.java:102)
at com.sap.engine.services.security.server.AuthorizationContextImpl.getUserFromRole(AuthorizatiMessage: Error: java.lang.NullPointerException
Stack trace: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Error: java.lang.NullPointerException
at com.sap.ip.bi.portalrfc.dispatcher.services.BIServicesRfcDispatcherService.doHandleRequest(BIServicesRfcDispatcherService.java:277) -
Struts Application java.lang.ClassCastException
We have deployed struts1.2.1 application on Oracle Application server 10g
We are getting inconsistent error java.lang.ClassCastException pointing to struts html:form tag once the server restarts the exception is removed this is happening at runtime.
Since this is a production issue its very critical .If any one has faced similar issue Please provide the solution.Take a look at the stack trace, it shows you exactly where the error is coming from:
java.lang.ClassCastException: org.theclass.candidate.view.SearchForm
org.theclass.candidate.view.CandidateListAction.execute(CandidateListAction.java:41)Line 41 in your CandidateListAction.
Probably it is failing on a cast of your action form.
Taking a closer look at your struts-config, you are "chaining" actions.
Your AddCandidateAction uses the candidateForm, and forwards to CandidateListAction.do
Your CandidateListAction uses the searchForm.
That will be the cause of your class cast exception.
<action path="/Add"
name="candidateForm"
type="org.theclass.candidate.view.AddCandidateAction"
validate ="true"
input="/jsp/addcandidate.jsp">
<forward name="success" path="/CandidateList.do"/>
</action>
<action path="/CandidateList"
type="org.theclass.candidate.view.CandidateListAction"
name="searchForm"
scope="request" >
<forward name="failure" path="/jsp/list.jsp"/>
<forward name="success" path="/jsp/candidatelist.jsp"/>
</action>Check out: http://struts.apache.org/1.x/faqs/newbie.html#chaining
Solutions?
- don't chain actions ;-)
- use the same action form for both actions (possible?)
- make the actionForward a "redirect" one. That means a new request, and losing any request parameters/attributes but should prevent this class cast exception.
Hope this helps,
evnafets -
Hi all,
i am new to java. I am trying to parse an xml document. the code is as follows:-
Document document = null;
DocumentBuilderFactory factory = ocumentBuilderFactory.newInstance();
try {
DocumentBuilder builder = factory.newDocumentBuilder();
document = builder.parse( new File(xmlFile) );
after this i am trying to traverse using treewalker :-
Element docElem = document.getDocumentElement();
DocumentTraversal docTrav = (DocumentTraversal) document;
TreeWalker treeWalk = docTrav.createTreeWalker(docElem, NodeFilter.SHOW_ELEMENT, new ConfigNodeFilter(), false);
Node node = treeWalk.nextNode();
when i compile all is fine but while runnig it. i get the following error:-
java.lang.ClassCastException: org.apache.crimson.tree.XmlDocument
at - DocumentTraversal docTrav = (DocumentTraversal) document;.
my import statements are as follows:-
import java.io.File;
import java.io.IOException;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Vector;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.traversal.DocumentTraversal;
import org.w3c.dom.traversal.NodeFilter;
import org.w3c.dom.traversal.TreeWalker;
import org.xml.sax.SAXException;
i am not able to understand why the error is coming.
any help will be appreciated."In DOMs which support the Traversal feature, DocumentTraversal will be implemented by the same objects that implement the Document interface. "
My guess is that the DOM parser you are using doesn't support the DocumentTraversal interface which is why you can not cast to that class. -
Help with java.lang.ClassCastException in JSSE
I need an urgent help.
i am writing code in JSSE for getting Server certificater(through SSL)
i wrote
public class url
public static void main(String[] args)
try
System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
Security.addProvider(new Provider());
URL url=new URL("https://localhost:8443");
HttpsURLConenction urlc=(HttpsURLConnection) url.openConnection();
catch(Exception e)
System.out.println(e);
when i am executing this programing, i am getting the following run time error
java.lang.ClassCastException
I think i am getting error for the following line of code
" HttpsURLConenction urlc=(HttpsURLConnection)url.openConnection(); "
Please help me out to overcome this run time error.
I would be grateful to you if you can solve my errorHi all
I have the same error:
java.lang.ClassCastException: com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl
MY CODE IS:
// Set the system and security properties
System.setProperty("javax.net.ssl.trustStore",
"C:\\certificados\\cacerts");
System.setProperty("javax.net.ssl.trustStorePassword", "changeit");
// Keystore location and password
System.setProperty("javax.net.ssl.keyStore",
"C:\\certificados\\keystore");
System.setProperty("javax.net.ssl.keyStorePassword", "changeit");
//Set the request
String url_ = "https://195.235.160.165";
//Creamos la petici�n html
StringBuffer buffer = new StringBuffer();
buffer.append(url_);
buffer.append("/GPP/WLServer?Method=M_FINDIT&CLIENT=");
buffer.append(client);
buffer.append("&CLI_PASSWD=");
buffer.append(cli_passwd);
buffer.append("&USER=");
buffer.append(user_login);
buffer.append("&USER_PASSWD=");
buffer.append(user_passwd);
buffer.append("&TUSERID=");
buffer.append(MSISDN);
buffer.append("&TUSERID_TYPE=MSISDN");
buffer.append("&GROUP=");
buffer.append(group_id);
buffer.append("&SRS=GPP:UTM28");
url_ = buffer.toString();
URL url = new URL(url_);
HttpsURLConnection conn = (HttpsURLConnection)url.openConnection();
conn.setHostnameVerifier(new HostnameVerifier() {
public boolean verify(String hostname, SSLSession session)
// I don't care if the certificate doesn't match host name
return true;
BufferedReader in = new BufferedReader(
new InputStreamReader(
conn.getInputStream()));
//Creates a writer with the encoding parameter as "UTF-8"
Writer out_ = new OutputStreamWriter(response.getOutputStream(), "UTF-8" );
String inputLine;
String fichero_in = "";
while ((inputLine = in.readLine()) != null){
if(inputLine.length()!=0){
System.out.println(inputLine);
fichero_in = inputLine;
out_.write(inputLine);
in.close();
//Sets the Content-Type header
response.setContentType("application/xml; charset=utf-8");
//response.setContentType("text/html; charset=UTF-8");
//Sends the response XML to the client
out_.write(url_);
//out_.write(fichero_in);
out_.flush();
response.sendRedirect(response.encodeRedirectURL("out_"));
Anyone can hel me??
Thanks in advance -
ArrayOfString gives a java.lang.ClassCastException
Hi,
I've got a .Net webservice and calling it using a java axis client. I've got a method that takes an int as a parameter and returns a String array and when I generated the classes using wsdl2java it created a class called ArrayOfString. When I call this method it executes fine for the first couple of times and then it starts giving a java.lang.ClassCastException, but when I restart Tomcat it works fine again for the first couple of times then it starts breaking again. This exception only happens on this method, other methods run fine.
What exactly is wrong?
Here is the exception:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.IllegalArgumentException: java.lang.ClassCastException@...
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.lang.IllegalArgumentException: java.lang.ClassCastException@...
at org.apache.axis.encoding.ser.BeanPropertyTarget.set(BeanPropertyTarget.java:142)
at org.apache.axis.encoding.DeserializerImpl.valueComplete(DeserializerImpl.java:249)
at org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.java:509)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1083)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:171)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1140)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:238)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:386)
at org.apache.axis.client.Call.invoke(Call.java:2402)
at org.apache.axis.client.Call.invoke(Call.java:2301)
at org.apache.axis.client.Call.invoke(Call.java:1758)
at org.tempuri.ServiceSoapStub.getFields(ServiceSoapStub.java:729)
at za.co.test.common.service.ServiceFacade.loadFields(ServiceFacade.java:131)
at za.co.test.ca.MyServlet.processRequest(MyServlet.java:47)
at za.co.test.ca.MyServlet.doGet(MyServlet.java:109)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2414)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
{http://xml.apache.org/axis/}hostname:localhost
java.lang.IllegalArgumentException: java.lang.ClassCastException@...
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.client.Call.invoke(Call.java:2405)
at org.apache.axis.client.Call.invoke(Call.java:2301)
at org.apache.axis.client.Call.invoke(Call.java:1758)
at org.tempuri.ServiceSoapStub.getFields(ServiceSoapStub.java:729)
at za.co.test.common.service.ServiceFacade.loadFields(ServiceFacade.java:131)
at za.co.test.ca.MyServlet.processRequest(MyServlet.java:47)
at za.co.test.ca.MyServlet.doGet(MyServlet.java:109)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2414)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.IllegalArgumentException: java.lang.ClassCastException@...
at org.apache.axis.encoding.ser.BeanPropertyTarget.set(BeanPropertyTarget.java:142)
at org.apache.axis.encoding.DeserializerImpl.valueComplete(DeserializerImpl.java:249)
at org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.java:509)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1083)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:171)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1140)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:238)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:386)
at org.apache.axis.client.Call.invoke(Call.java:2402)
... 37 moreI've also discovered that when I call the method it reaches the .Net webservice and throws the exception when it's returning the results. I found this other exception in the logs,
StandardManager[/axis] Session event listener threw exception
java.lang.IllegalStateException: getAttribute: Session already invalidated
at org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:953)
at org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:171)
at org.apache.axis.transport.http.AxisHTTPSessionListener.destroySession(AxisHTTPSessionListener.java:43)
at org.apache.axis.transport.http.AxisHTTPSessionListener.sessionDestroyed(AxisHTTPSessionListener.java:72)
at org.apache.catalina.session.StandardSession.expire(StandardSession.java:658)
at org.apache.catalina.session.StandardSession.expire(StandardSession.java:607)
at org.apache.catalina.session.StandardManager.processExpires(StandardManager.java:793)
at org.apache.catalina.session.StandardManager.run(StandardManager.java:870)
at java.lang.Thread.run(Thread.java:534)can these 2 exceptions be related?
I'm running:
java=1.4.2_04-b05
axis1.2
Tomcat 4.1.30
Thanks in advanceuser13457082 wrote:
But I can't isolate the offending code in a large libraryI'd start by isolating all the places where you have complex generic types.
Maybe you are looking for
-
Purchase orders and sales documents
hi what r the transaction codes for purchase orders and sales documents.
-
Can you lock a window open?
I've been having a problem that I can't seem to solve. Command-k allows me to connect to the company server quickly, at least it does the first time I use it after startup. If I close the window to the server, subsequent connections take forever. Our
-
When I try to drag files into my hard drive, it says the Finder can't complete the operation because some data can't be read or written (Error Code -36). This is happening even when dragging files back into the external drive which had originally com
-
Creative Cloud app for desktop is not loading Home tab.
The "loading" icon is continuosly moving, but nothing happens. I already tried to uninstall, reinstall newer app, delete OP file in OOEB, but no success. The other tabs are working OK. A week ago I didn´t have this problem. Im on Windows x64. Adobe S
-
How to use field symbols in program
how to use field symbols can any one explain with example please.. Regards, venki...