Weblogic.utils.NestedRuntimeException when using javax.servlet.Filter
IDE: JDev 10gR3.4 & JDev 11gR2.3
ViewController technology: JSF/ADF Faces
Example code flow:
Run page2.jsf
MyFilter intercepts request, checks for parameter on session.
If parameter not null, goto page2.jsf
Else redirect to page1.jsf
page1.jsf has a button that sets the value on the session scope after clicking.
In jdev 11gR2.3, I get an weblogic.utils.NestedRuntimeException after clicking the button on page1.jsf. This error does not occur in jdev 10gR3.5. Although the application continues to execute and proper info is displayed, I’m wondering why this occurs and also if I should be concerned. Has anyone experienced a similar issue when using javax.servlet.Filter in 11g?
MyFilter code snipet:
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) {
try {
HttpServletRequest httpRequest = (HttpServletRequest)servletRequest;
HttpServletResponse httpResponse = (HttpServletResponse)servletResponse;
String redirect = httpRequest.getContextPath() + "/faces/page1.jsf"; //only difference here is 11g uses jsf, 10g uses jsp.
String uri = httpRequest.getRequestURI().toString();
Boolean mySessionAttribute = (Boolean)httpRequest.getSession().getAttribute("MYSESSIONATTRIBUTE");
if (uri.endsWith(redirect) || mySessionAttribute != null) {
filterChain.doFilter(servletRequest, servletResponse);
} else {
httpResponse.sendRedirect(redirect);
return;
} catch (IOException e) {
e.printStackTrace();
} catch (ServletException e) {
e.printStackTrace();
page1.jsf/jsp
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html">
<h:form id="f1">
<h:commandButton value="Submit" id="cb1" action="#{Page1Bean.clicked}" type="submit"/>
</h:form>
</f:view>page2.jsf/jsp
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<af:document title="main.jsf" id="d1">
<af:form id="f1">
<af:outputText value="This is the main content" id="ot1"/>
</af:form>
</af:document>
</f:view>Page1Bean.java
public class Page1Bean {
public void clicked() {
FacesContext context = FacesContext.getCurrentInstance();
ExternalContext externalContext = context.getExternalContext();
externalContext.getSessionMap().put("MYSESSIONATTRIBUTE", Boolean.TRUE);
try {
externalContext.redirect("/11gFilterExample-ViewController-context-root/faces/page2.jsf");
} catch (IOException e) {
e.printStackTrace();
}Full exception
weblogic.utils.NestedRuntimeException: Cannot parse POST parameters of request: '/11gFilterExample-ViewController-context-root/faces/page1.jsf'
at weblogic.servlet.internal.ServletRequestImpl$RequestParameters.mergePostParams(ServletRequestImpl.java:2144)
at weblogic.servlet.internal.ServletRequestImpl$RequestParameters.parseQueryParams(ServletRequestImpl.java:2024)
at weblogic.servlet.internal.ServletRequestImpl$RequestParameters.getQueryParams(ServletRequestImpl.java:1918)
at weblogic.servlet.internal.ServletRequestImpl$RequestParameters.getParameter(ServletRequestImpl.java:1995)
at weblogic.servlet.internal.ServletRequestImpl$RequestParameters.access$800(ServletRequestImpl.java:1817)
at weblogic.servlet.internal.ServletRequestImpl.getParameter(ServletRequestImpl.java:804)
at javax.servlet.ServletRequestWrapper.getParameter(ServletRequestWrapper.java:169)
at org.apache.myfaces.trinidadinternal.context.external.ServletRequestParameterMap.getAttribute(ServletRequestParameterMap.java:43)
at org.apache.myfaces.trinidadinternal.context.external.ServletRequestParameterMap.getAttribute(ServletRequestParameterMap.java:31)
at org.apache.myfaces.trinidadinternal.context.external.AbstractAttributeMap.get(AbstractAttributeMap.java:73)
at oracle.adfinternal.controller.state.ControllerState.getRootViewPortFromRequest(ControllerState.java:788)
at oracle.adfinternal.controller.state.AdfcContext.initialize(AdfcContext.java:185)
at oracle.adfinternal.controller.state.AdfcContext.initialize(AdfcContext.java:79)
at oracle.adfinternal.controller.application.AdfcConfigurator.beginRequest(AdfcConfigurator.java:53)
at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl._startConfiguratorServiceRequest(GlobalConfiguratorImpl.java:562)
at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.beginRequest(GlobalConfiguratorImpl.java:212)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:174)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at weblogic.servlet.internal.PostInputStream.read(PostInputStream.java:177)
at weblogic.servlet.internal.ServletInputStreamImpl.read(ServletInputStreamImpl.java:228)
at weblogic.servlet.internal.ServletRequestImpl$RequestParameters.mergePostParams(ServletRequestImpl.java:2118)
... 39 more
<UIXEditableValue> <_isBeanValidationAvailable> A Bean Validation provider is not present, therefore bean validation is disabled
I dont believe that solution pertains to my case. clicked() is invoked from standard jsf page and the adf controller is not acquired yet. i put a couple of print statements in the filter and it seems that the doFilter is called twice! This is not the case when running in 10g.
if (uri.endsWith(redirect) || mySessionAttribute != null) {
System.out.println("URI dofilter: "+uri);
filterChain.doFilter(servletRequest, servletResponse);
} else {
System.out.println("URI sendRedirect: "+uri);
httpResponse.sendRedirect(redirect);
}11g weblogic console log:
URI sendRedirect: /11gFilterExample-ViewController-context-root/faces/page2
URI dofilter: /11gFilterExample-ViewController-context-root/faces/page1.jsf
URI dofilter: /11gFilterExample-ViewController-context-root/faces/page1.jsf
10g oc4j console log:
13/01/07 15:48:13 URI sendRedirect: /10gFilterExample-ViewController-context-root/faces/page2.jsp
13/01/07 15:48:13 URI dofilter: /10gFilterExample-ViewController-context-root/faces/page1.jsp
I believe whatever thats causing this occur could be why the exception is thrown...
Similar Messages
-
Weblogic 7.0 and 6.1 javax.servlet.filter implementation
Hi All,
I was using weblogic 6.1 and as my organization wants to go for 7.0, we
are in the process of evaluating 7.0 ver.
WL6.1 javax.servlet.filter interface provides the methods doFilter(), setFilterConfig(),
getFilterConfig(). We have an implementation for the Filter which also contains
a private method init(FilterCongig filterConfig).
In 7.0 javax.servlet.filter interface the methods are doFilter(), init(), destroy().
Because of the obvious reason i have a private implementation of init(FilterConfig
)in my code the build does not succeed. When i checked the java specifications
from Sun site I found 1.3.1 and 1.4(beta) specs provide doFilter(), init() and
destroy().
Question is: Is weblogic 6.1, JDK 1.3.1 compliant, if so why there is not init()
method in the filter interface??. (Otherwise its a bug)
Because of this the porting has become a serious issue as in some cases we need
to support both 6.1 and 7.0
6.1 did not implement the final version of the Servlet 2.3 specification, that's
why you see differences.
http://edocs.bea.com/wls/docs61/notes/new.html#1064420
Sanjeev <[email protected]> wrote:
> Hi All,
> I was using weblogic 6.1 and as my organization wants to go for 7.0, we
> are in the process of evaluating 7.0 ver.
> WL6.1 javax.servlet.filter interface provides the methods doFilter(), setFilterConfig(),
> getFilterConfig(). We have an implementation for the Filter which also contains
> a private method init(FilterCongig filterConfig).
> In 7.0 javax.servlet.filter interface the methods are doFilter(), init(), destroy().
> Because of the obvious reason i have a private implementation of init(FilterConfig
> )in my code the build does not succeed. When i checked the java specifications
> from Sun site I found 1.3.1 and 1.4(beta) specs provide doFilter(), init() and
> destroy().
> Question is: Is weblogic 6.1, JDK 1.3.1 compliant, if so why there is not init()
> method in the filter interface??. (Otherwise its a bug)
> Because of this the porting has become a serious issue as in some cases we need
> to support both 6.1 and 7.0
Dimitri
-
We have defined the web app to use Form based authentication. Some of the images internal to our application we would like to allow access without having to formally log into the system. In order to accomodate this we have created an javax.servlet.Filter where we strip off some parameters off of the end of the url to log them in.
This works great for everything EXCEPT urls that are in <img src> tags. urls in these tags will never hit the filter. You can take the same url and place it in the browser and it will hit the filter. Its just urls in <img src> tags.
The images cannot be moved to a public place, they must stay where they are.
Does anyone know why the <img src> tag is doing this? It is fairly easy to replicate. Just use form based authentication, create a filter, and try to access an image from an img src tag.
Be sure to clear your browser cache and try again if you think you have it working.
Any security gods out there?
Thanks,
MarkSince nobody responded, I will tell you what we decided to do. For images, we use a servlet outside of the security wall that loads and streams an image back to the browser instead of a direct image url.
So we do something like this:
<img src="https:\\foo.com\Servlet\ImageDisplay?id=1234&user=23432">
Then our servlet parses the params, finds and streams back the image, and instead of returning back "html\text" in the servlet, the servlet returns something like this:
HttpServletResponse response = blah...
BufferedImage bi = new BufferedImage("load in the image resource");
try {
response.setContentType("image/gif");
ServletOutputStream out = response.getOutputStream();
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
encoder.encode(bi);
catch (IOException ioe) {
servlet.log("DrawMapAction: IO Exception encoding JPEG to ServletOutputStream.", ioe);
} -
Weblogic.utils.NestedRuntimeException
weblogic.utils.NestedRuntimeException
--------------- nested within: ------------------
weblogic.utils.NestedRuntimeException:
java.lang.NoSuchMethodException:couldn't find getter for 'EJBHomes' on weblogic.management.runtime.EJBComponentRuntimeMBean
weblogic.utils.NestedRuntimeException
--------------- nested within: ------------------
weblogic.utils.NestedRuntimeException:
java.lang.NoSuchMethodException:couldn't find getter for 'EJBHomes' on weblogic.management.runtime.EJBComponentRuntimeMBean
-
Implenting javax.servlet.Filter issue in Eclipse
I received a java class from my team, and am trying to compile it in Eclipse. However, its complaining that I need to define getFilterConfig() and setFilterConfig().
I mean, I can easily implement those methods, but the odd thing is, my teamates have been able to compile it fine without those two methods.
Any ideas why this is happening?To implement a javax.servlet.Filter all you need to override are just the three methods mentioned in the Filter API: [http://java.sun.com/javaee/5/docs/api/javax/servlet/Filter.html].
Is it actually a javax.servlet.Filter which you're implementing? Check the implements clause of your class. -
Accessing External Url using Http Utility | Error when using from Weblogic on Solaris
We are using Http Utility (http://jakarta.apache.org/commons/httpclient/) from
Apache for accessing external URL. A XML string is sent as POST parameter to the
URL and the response is also an XML string. The URL is accessed over HTTPS protocol.
I am setting the following parameters in the java class:
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
// set the property
System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
The java class written to access the external URL using Http Utility works perfectly
fine when it is run from either the command line (of Windows or Solaris using
main() ) or from weblogic on windows. The same java class throws an exception
when run from Solaris instance of Weblogic
2003-09-30 11:02:12,411 FATAL [com.bp.beyondbp.presentation.userregistration.action.LloydsValidator]
EXCEPTION: com.bp.beyondbp.presentation.userregistration.exception.LlyodsValidationFailedException,
MESSAGE: Write Channel Closed, possible SSL handshaking or trust failure;
CAUSE: (java.io.IOException: Write Channel Closed, possible SSL handshaking or
trust failure)
at com.bp.beyondbp.presentation.userregistration.action.LloydsValidator.postXMLtoLloyd(LloydsValidator.java:243)
at com.bp.beyondbp.presentation.userregistration.action.LloydsValidator.validateLlyodsForNewUser(LloydsValidator.java:95)
at com.bp.beyondbp.presentation.userregistration.action.PreferencesActionForm.validate(PreferencesActionForm.java:326)
at org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:942)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:255)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
java.io.IOException: Write Channel Closed, possible SSL handshaking or trust failure
at com.certicom.tls.record.WriteHandler.write(Unknown Source)
at com.certicom.tls.interfaceimpl.TLSConnectionImpl.fireAlertSent(Unknown
Source)
at com.certicom.tls.record.handshake.HandshakeHandler.fireAlert(Unknown
Source)
at com.certicom.tls.record.handshake.HandshakeHandler.fireAlert(Unknown
Source)
at com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessage(Unknown
Source)
at com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessages(Unknown
Source)
at com.certicom.tls.record.ReadHandler.interpretContent(Unknown Source)
at com.certicom.tls.record.ReadHandler.readRecord(Unknown Source)
at com.certicom.tls.record.ReadHandler.readUntilHandshakeComplete(Unknown
Source)
at com.certicom.tls.interfaceimpl.TLSConnectionImpl.completeHandshake(Unknown
Source)
at com.certicom.tls.record.WriteHandler.write(Unknown Source)
at org.apache.commons.httpclient.HttpConnection$WrappedOutputStream.write(HttpConnection.java:1344)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:67)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:125)
at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:779)
at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2179)
at org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2534)
I tried to debug the problem by looking at system properties on windows and solaris,
the difference that I found was
On Windows
[exec] tModelInstanceInfo_description : com.sun.net.ssl.internal.www.protocol
On Solaris
[exec] tModelInstanceInfo_description : weblogic.utils|weblogic.tils|weblogic.net|weblogic.management
After this I changed the startWLS.sh on Solaris and set
-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol in java options.
On looking the system properties again, the output was
[exec] tModelInstanceInfo_description : com.sun.net.ssl.internal.www.protocol|weblogic.utils|weblogic.utils|weblogic.net|weblogic.management
But still the error is same. Can somebody help me out here as to what is going
wrong? Please find the java class attached for reference, please have a look at
postXMLtoLloyd() method in the class file..
[LloydsValidator.java]We are using Http Utility (http://jakarta.apache.org/commons/httpclient/) from
Apache for accessing external URL. A XML string is sent as POST parameter to the
URL and the response is also an XML string. The URL is accessed over HTTPS protocol.
I am setting the following parameters in the java class:
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
// set the property
System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
The java class written to access the external URL using Http Utility works perfectly
fine when it is run from either the command line (of Windows or Solaris using
main() ) or from weblogic on windows. The same java class throws an exception
when run from Solaris instance of Weblogic
2003-09-30 11:02:12,411 FATAL [com.bp.beyondbp.presentation.userregistration.action.LloydsValidator]
EXCEPTION: com.bp.beyondbp.presentation.userregistration.exception.LlyodsValidationFailedException,
MESSAGE: Write Channel Closed, possible SSL handshaking or trust failure;
CAUSE: (java.io.IOException: Write Channel Closed, possible SSL handshaking or
trust failure)
at com.bp.beyondbp.presentation.userregistration.action.LloydsValidator.postXMLtoLloyd(LloydsValidator.java:243)
at com.bp.beyondbp.presentation.userregistration.action.LloydsValidator.validateLlyodsForNewUser(LloydsValidator.java:95)
at com.bp.beyondbp.presentation.userregistration.action.PreferencesActionForm.validate(PreferencesActionForm.java:326)
at org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:942)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:255)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
java.io.IOException: Write Channel Closed, possible SSL handshaking or trust failure
at com.certicom.tls.record.WriteHandler.write(Unknown Source)
at com.certicom.tls.interfaceimpl.TLSConnectionImpl.fireAlertSent(Unknown
Source)
at com.certicom.tls.record.handshake.HandshakeHandler.fireAlert(Unknown
Source)
at com.certicom.tls.record.handshake.HandshakeHandler.fireAlert(Unknown
Source)
at com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessage(Unknown
Source)
at com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessages(Unknown
Source)
at com.certicom.tls.record.ReadHandler.interpretContent(Unknown Source)
at com.certicom.tls.record.ReadHandler.readRecord(Unknown Source)
at com.certicom.tls.record.ReadHandler.readUntilHandshakeComplete(Unknown
Source)
at com.certicom.tls.interfaceimpl.TLSConnectionImpl.completeHandshake(Unknown
Source)
at com.certicom.tls.record.WriteHandler.write(Unknown Source)
at org.apache.commons.httpclient.HttpConnection$WrappedOutputStream.write(HttpConnection.java:1344)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:67)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:125)
at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:779)
at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2179)
at org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2534)
I tried to debug the problem by looking at system properties on windows and solaris,
the difference that I found was
On Windows
[exec] tModelInstanceInfo_description : com.sun.net.ssl.internal.www.protocol
On Solaris
[exec] tModelInstanceInfo_description : weblogic.utils|weblogic.tils|weblogic.net|weblogic.management
After this I changed the startWLS.sh on Solaris and set
-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol in java options.
On looking the system properties again, the output was
[exec] tModelInstanceInfo_description : com.sun.net.ssl.internal.www.protocol|weblogic.utils|weblogic.utils|weblogic.net|weblogic.management
But still the error is same. Can somebody help me out here as to what is going
wrong? Please find the java class attached for reference, please have a look at
postXMLtoLloyd() method in the class file..
[LloydsValidator.java] -
Hi,
I am using BEA WebLogic Server 9.2
When I deployed my [ear] apllication (Struts 1, Java 1.4, EJB2) I get this error:
Message icon - Error javax.servlet.ServletException: [HTTP:101250][weblogic.servlet.internal.WebAppServletContext@11c2137 -
appName: 'test-ear', name: 'TEST', context-path: '/TEST']: Servlet class de.general.TestActionServlet for servlet action could not be loaded because a class on which
it depends was not found in the classpath . java.lang.NoClassDefFoundError:
org/apache/struts/action/ActionServlet.
Please help me in this ClassLoader problem,
RegardsHi
you can set the classpath struts.jar in setDomainEnv.cmd
you can get this file in your root domain under the bin directory.
set classpath=%classpath%;/struts.jar; -
Weblogic.utils.AssertionError when getting attributes of EJBComponentMBean
when i get the attributes of this mbean, i get an assertion error. the
javadocs do not say anything about this...so how can i prevent this
assertion error?
here is the code, and below is the error on weblogic
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
p.put(Context.PROVIDER_URL, "t3://yscadt207:7001");
p.put(Context.SECURITY_PRINCIPAL, "weblogic");
p.put(Context.SECURITY_CREDENTIALS, "weblogic");
Context ctx = null;
try {
ctx = new InitialContext(p);
MBeanHome home = (MBeanHome)ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
MBeanServer server = home.getMBeanServer();
Set set = server.queryNames(new
ObjectName("*:Type=EJBComponent,*"), null);
System.out.println("found " + set.size() + " mbeans");
int show = 1;
int count = 0;
for(Iterator i = set.iterator(); show > count && i.hasNext();
count++){
ObjectName on = (ObjectName)i.next();
System.out.println(on);
MBeanInfo info = server.getMBeanInfo(on);
MBeanAttributeInfo[] attinfo = info.getAttributes();
for(int j = 0; j < attinfo.length; j++){
try {
System.out.println(attinfo[j].getName() + " (" +
attinfo[j].getType() +
"): " +
server.getAttribute(on,
attinfo[j].getName()));
} catch(Exception ex){
System.err.println("error for att " + attinfo[j].getName()
+ " (" + attinfo[j].getType() + "): " + ex);
ex.printStackTrace();
} finally {
if(ctx != null) ctx.close();
<Feb 23, 2004 10:54:36 AM PST> <Warning> <RMI> <BEA-080003>
<RuntimeException thrown by rmi server: weblogic.management.
internal.RemoteMBeanServerImpl.getAttribute(Ljavax.management.ObjectName;Ljava.lang.String;)
javax.management.RuntimeErrorException: Error thrown by the
getAttribute method of the DynamicMBean for the attribute
EJBModuleDDEditor.
>
weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ DD Editing
is disabled. ]
at weblogic.utils.Debug.assertion(Debug.java:57)
at
weblogic.management.mbeans.custom.EJBComponent.getEJBModuleDDEditor(EJBComponent.java:164)
at
weblogic.management.mbeans.custom.EJBComponent.getEJBNames(EJBComponent.java:146)
at sun.reflect.GeneratedMethodAccessor237.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
weblogic.management.internal.DynamicMBeanImpl.getAttribute(DynamicMBeanImpl.java:592)
at
weblogic.management.internal.ConfigurationMBeanImpl.getAttribute(ConfigurationMBeanImpl.java:177)
at
com.sun.management.jmx.MBeanServerImpl.getAttribute(MBeanServerImpl.java:1183)
at
com.sun.management.jmx.MBeanServerImpl.getAttribute(MBeanServerImpl.java:1153)
at
weblogic.management.internal.RemoteMBeanServerImpl.getAttribute(RemoteMBeanServerImpl.java:284)
at
weblogic.management.internal.RemoteMBeanServerImpl_WLSkel.invoke(Unknown
Source)
at
weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:466)
at
weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:409)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:353)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:404)
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
<Feb 23, 2004 10:54:36 AM PST> <Error> <Management> <BEA-140001> <An
error occurred while getting attribute EJBNames on
MBean
examples:Application=_appsdir_ejb20_message_ear,Name=ejb20_message.jar,Type=EJBComponent.
Method: public java.util
.Set weblogic.management.mbeans.custom.EJBComponent.getEJBNames() throws
weblogic.ejb20.WLDeploymentException. Exception
: weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ DD
Editing is disabled. ].
weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ DD Editing
is disabled. ]
at weblogic.utils.Debug.assertion(Debug.java:57)
at
weblogic.management.mbeans.custom.EJBComponent.getEJBModuleDDEditor(EJBComponent.java:164)
at
weblogic.management.mbeans.custom.EJBComponent.getEJBNames(EJBComponent.java:146)
at sun.reflect.GeneratedMethodAccessor237.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
weblogic.management.internal.DynamicMBeanImpl.getAttribute(DynamicMBeanImpl.java:592)
at
weblogic.management.internal.ConfigurationMBeanImpl.getAttribute(ConfigurationMBeanImpl.java:177)
at
com.sun.management.jmx.MBeanServerImpl.getAttribute(MBeanServerImpl.java:1183)
at
com.sun.management.jmx.MBeanServerImpl.getAttribute(MBeanServerImpl.java:1153)
at
weblogic.management.internal.RemoteMBeanServerImpl.getAttribute(RemoteMBeanServerImpl.java:284)
at
weblogic.management.internal.RemoteMBeanServerImpl_WLSkel.invoke(Unknown
Source)
at
weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:466)
at
weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:409)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:353)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:404)
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>
<Feb 23, 2004 10:54:36 AM PST> <Warning> <RMI> <BEA-080003>
<RuntimeException thrown by rmi server: weblogic.management.
internal.RemoteMBeanServerImpl.getAttribute(Ljavax.management.ObjectName;Ljava.lang.String;)
javax.management.RuntimeErrorException: Error thrown by the
getAttribute method of the DynamicMBean for the attribute
EJBNames.
>I am also getting the exact same errors.
In my case it's when I have MC4J connected to WLS8.1SP3 and I am trying to simply look at the deployed EJB's.
Why has no one answered Simon's question since being posted back in Feb? -
Weblogic.utils.AssertionError when JBuilder 7 + Weblogic
when i complie the jsp file,the following errors occur:
java.lang.NullPointerException
--------------- nested within: ------------------
"Jsp1.jsp": weblogic.utils.AssertionError: ***** ASSERTION FAILED ***** - with nested exception:
[java.lang.NullPointerException]
java.lang.NullPointerException
--------------- nested within: ------------------
"Jsp1.jsp": weblogic.utils.AssertionError: ***** ASSERTION FAILED ***** - with nested exception:
[java.lang.NullPointerException]
why?Maybe one way you can do is to upgrade weblogic to sp4 (or above).
Before my xx.jsp can compile ok when using jbuilder7 + tomcat, later when i use weblogic 6.1sp1, this error occurs.
With my coworker's help, just upgrade to sp4, there is no error anymore.
You guys may try this. -
Error when using javax.script package
Hi
I want to call a javascript method from a .js file from .java class.
when i searched, i came to understand that using jdk1.6 i can use javax.script package tht provide me what i needed.
using the reply i got from i earlier post, i tried one example.
public void show() {
ScriptEngineManager engineMgr = new ScriptEngineManager();
ScriptEngine engine= engineMgr.getEngineByName("JavaScript");
try {
engine.eval(new FileReader("D:/ShowScript.js"));
Invocable invocableEngine = (Invocable) engine;
//show_message is my function in ShowScript.js file
invocableEngine.invokeFunction("show_message",null);
} catch (Exception e) {
e.printStackTrace();
ShowScript.js
function show_message()
println("===> hi");
alert("hi");
When i execute my program, im getting the following error
javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "alert" is not defined. ( #8) in at line number 8
at com.sun.script.javascript.RhinoScriptEngine.invoke(RhinoScriptEngine.java:184)
at com.sun.script.javascript.RhinoScriptEngine.invokeFunction(RhinoScriptEngine.java:142)
at testbuiltin.backing.Show_alert.show(Show_alert.java:81)
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:597)
at com.sun.el.parser.AstValue.invoke(AstValue.java:151)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
When i remove the alert() from the js file, the println is working. But what i neede is the alert.
Can anyone plz help me to solve this problem.As you're talking about "backing beans", are you using JSF?
After all, this is definitely not the way to let Java and JS interact with each other. Java runs at the server side. JS runs at the client side. Java can write JS code to the response, but definitely cannot call it. JS can access the HTML DOM and invoke requests to the server (form.submit() and AJAX and so on) and send parameters along the request, but definitely cannot call Java classes and methods independently. Nothing more and nothing less than that. -
Problem when using javax.crypto.KeyGenerator in netbeans
This is my IDE information:
Product Version: NetBeans IDE 6.0.1 (Build 200801291616)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
I am trying to develop a Test jar file. I created some simple jar files and could upload it in mobile.
Now I want to implement some encryption. For that I started writing codes. But when trying to import javax.crypto.KeyGenerator class, netbeans is showing "cannot find symbol" error. I can use javax.crypto.Cipher/BadPaddingException/IllegalBlockSizeException/NoSuchPaddingException/spec/ShortBuffrException only. If i try to use any other class of javax.crypto, i get an error.
I am new to mobility.I downloaded netbean mobility package and Installed it.
Please provide some help.. thank you....This is my IDE information:
Product Version: NetBeans IDE 6.0.1 (Build 200801291616)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
I am trying to develop a Test jar file. I created some simple jar files and could upload it in mobile.
Now I want to implement some encryption. For that I started writing codes. But when trying to import javax.crypto.KeyGenerator class, netbeans is showing "cannot find symbol" error. I can use javax.crypto.Cipher/BadPaddingException/IllegalBlockSizeException/NoSuchPaddingException/spec/ShortBuffrException only. If i try to use any other class of javax.crypto, i get an error.
I am new to mobility.I downloaded netbean mobility package and Installed it.
Please provide some help.. thank you.... -
Weblogic throws NullPointerException when using ServiceControl.setTimeout
We are invoking a SOAP service via a com.bea.control.ServiceControl that was generated from a WSDL (right click WSDL, Generate Service Control) using Weblogic 8.1.6.
SOAP service execution is successful using an http and https endpoint. However, when setting a timeout via ServiceControl.setTimeout(int millisecods) method, the Weblogic API is throwing a NullPointerException when using an https endpoint. When using an http endpoint with the setTimeout method execution is successful.
DEBUG com.bea.wlw.runtime.jws.call.SoapHttpCall [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: opening connection to https://[... edit removed ...]
DEBUG com.bea.wlw.runtime.jws.call.SoapHttpCall [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: Response generation exception
Throwable: java.lang.NullPointerException
Stack Trace:
java.lang.NullPointerException
at weblogic.net.http.HttpsClient.openWrappedSSLSocket(HttpsClient.java:455)
at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:235)
at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:389)
at weblogic.net.http.HttpsClient.<init>(HttpsClient.java:209)
at weblogic.net.http.HttpClient.New(HttpClient.java:228)
at weblogic.net.http.HttpsURLConnection.getHttpClient(HttpsURLConnection.java:246)
at weblogic.net.http.HttpsURLConnection.connect(HttpsURLConnection.java:217)
at weblogic.net.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:189)
at com.bea.wlw.runtime.jws.call.SoapHttpCall.invoke(SoapHttpCall.java:179)
at com.bea.wlw.runtime.jws.call.SoapHttpCall.invoke(SoapHttpCall.java:80)
at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:1288)
at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:1155)
at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:377)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:433)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:406)
at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:388)
DEBUG com.bea.wlw.runtime.jws.call.SoapFault [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: SoapFault exception throwable e
DEBUG com.bea.wlw.runtime.jws.call.SoapHttpCall [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: response code=0, responseMsg=null
DEBUG com.bea.wlw.runtime.jws.call.SoapHttpCall [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: closed connection to https://[... edit removed ...]
WARN WLW.INVOKE.[... edit removed ...] [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: Id=[... edit removed id ...] Method=[... edit removed method ...]; Failure=com.bea.control.ServiceControlException: SERVICE FAULT:
Code:java.lang.NullPointerException
String:null
Detail:
END SERVICE FAULT
ERROR [... edit removed ...]
[ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: ServiceControlException
com.bea.control.ServiceControlException: SERVICE FAULT:
Code:java.lang.NullPointerException
String:null
Detail:
END SERVICE FAULT
at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:1268)
at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:377)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:433)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:406)
at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:388)Thanks for the suggestion. But with -DUseSunHttpHandler=true the Weblogic API is throwing a ClassCastException with or without the timeout value set.
Failure=com.bea.control.ServiceControlException: SERVICE FAULT:
Code:java.lang.ClassCastException
String:null
Detail:
END SERVICE FAULT
ERROR: ServiceControlException
com.bea.control.ServiceControlException: SERVICE FAULT:
Code:java.lang.ClassCastException
String:null
Detail:
END SERVICE FAULT
at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:1268)
at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:377)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:433)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:406)
at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:388) -
Image Preview grey out when using the Radial Filter
Hi,
I am trying to use the radial filter on my photo in the Lightroom 5, but my problem is that when I tried to create the eclipse with my mouse drag on my photo, the photo immediate disapper and grey out, once then, I cannot do anything with my photo
Even I tried to change other parameter for example changing the color temperature....etc., the photo is still disappearing and grey out, nothing showin in the photo display area.
The program is not hanged, it's just that the photo not displaying, I have to click the Library module and then click again the Develop module, then the photo appears again.
Is there anyone encountering this issue and share with me any solution ?
( I wonder if it's because my laptop below the Lightroom required spec, my laptop is Intel i5 2.4G with 4G RAM)
Thanks.My sincere thanks to those trying to help me. I've found the problem and feel extraordinarily stupid. In looking at screenshots in a tutorial, I realized the box that pops up for the controls for the graduated filter was collapsed on my screen. Once I clicked the arrow and got the proper controls, it works like it should. It's been a while since I felt this dumb!! But I guess that's why they call it the Beginner's forum, eh?
Thanks again! -
Hi, I'm just trying to learn to use the gradient filter in Lightroom 4, and I've watched several videos, but when I place the gradient on the photo (I've tried several different photos) and make adjustments, the entire image changes. Can anyone suggest a fix for this?
Thanks!
MicheleMy sincere thanks to those trying to help me. I've found the problem and feel extraordinarily stupid. In looking at screenshots in a tutorial, I realized the box that pops up for the controls for the graduated filter was collapsed on my screen. Once I clicked the arrow and got the proper controls, it works like it should. It's been a while since I felt this dumb!! But I guess that's why they call it the Beginner's forum, eh?
Thanks again! -
Weblogic access.log when using apache plugin
Hello,
If I use the apache plugin with weblogic, what will be the IP address in
access.log of weblogic ? Will they only be apache's IP ?
Regards,
DomIs it possible that Apache itself is doing some url rewriting? I would
suggest turning on debugging and check what is happening in the wlproxy.log.
Set Debug ON in the httpd.conf.
Regards,
Eric
"Volker Mader" <[email protected]> wrote in message
news:3bf29c25$[email protected]..
>
Hi all,
I am using Weblogic 5.1 SP 10 and Apache 1.3.19 on Solaris 7.
When I am using the Weblogic Webserver on port 7001 the WebLogicSession isinvisible
(it is a cookie).
When using the apache plugin on Port 80 I get the WebLogicSession in theurl (not
very nice).
I have enabled cookies in my browser in both cases.
Is there any way to get the sessionid as a cookie again?
Thanks
Volker
Maybe you are looking for
-
Name of the structure needed for sales order user exit
Hi, I am planning to write a user exit which will insert the data into my ztable the moment the new sales order is created and is saved. I have identified FORM USEREXIT_SAVE_DOCUMENT as the necessary user exit. But the problem is that while inserting
-
Is there a way to sync apps and pictures between iphone and ipad.
I am going back to work in a few weeks and I am looking for a way to sync the iPad/iPhone so that I have quick saccess to see my son and keep track of his baby app that I use. Plus I want to be able to have easy access to any photos takne with the i
-
Message could not be delivered. Never happened with Entourage.
I have tried to migrate from Entourage to Mail. However, I keep getting the message could not be delivered....message. After the message sits in the outbox for a while some messages will finaly send. I have checked the outgoing settings and everythin
-
Client Authentication based on source IP
Hi All, I am using a CSS 11503 to load balance 2 intranet web servers. Currently, the web server checks for the source IP and if it is from the internet, it authenticates the users using LDAP. Now, application folks are asking me if CSS could prompt
-
Getting list of operations for a service Order
I have to List the operation activities which are Planned and Confirmed in a service order. I'm unable to link the operation in service order for some ZREPORTING purpose as it links through structures only. Kindly suggest how we can obtain operation