Getting ClassCastException when accessing Blob object

I am using weblogic 5.1 with service pack 10.
I need to query pdf data stored in a blob field in Oracle
8.1.6 server. The native code c:\weblogic\bin\oci816_8
is part of the path. When I query the database with
Oracle 8 client, I can get data.
driver: weblogic.jdbc20.oci.Driver
url: jdbc20:weblogic:oracle:mydb
What I have done is to get the blob object with:
Blob blob = rs.getBlob(5);
long len = blob.length();
But when I call the blob.length();
I got the a ClassCastException. I really appreicate
your comment.
The exception message is:
====================================================
java.lang.ClassCastException: java.lang.String
at weblogic.jdbc20.oci.Blob.length(Blob.java:75)
at com.agf.profile.ProfileServlet.doProcess(ProfileServlet.java:126)
at com.agf.profile.ProfileServlet.doGet(ProfileServlet.java:37)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletSt
pl.java:120)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Servle
textImpl.java:922)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Servle
textImpl.java:886)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(Ser
ContextManager.java:269)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP
a:380)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
====================================================
Thanks,
Jian

hi jian,
it seems you are trying to access a column as a blob type when the data in
that column is not blob.
Make sure that your column number 5 is defined as Blob in the database.
I tried the following code and it worked fine for me.
Blob b=rs.getBlob("data");
long l=b.length();
byte bt[]=b.getBytes(1,(int)b.length());
File f=new
File("d:\\bea\\wlserver6.1\\config\\jdbcdomain\\applications\\defaultwebapp\
\blob_new.pdf");
FileOutputStream fos=new FileOutputStream(f);
fos.write(bt);
fos.close();
It was able to create the file blob_new.pdf
But when I tried the following code it gave me the same exception as you are
getting
Blob bb=rs.getBlob("id");
long ll=bb.length();
Where id is a column in the database of varchar type
I am using the following settings
driver: weblogic.jdbc.oci.Driver
url: jdbc:weblogic:oracle
i am using wl 6.1 and oracle 8
Hope this helps you.
johnny
"jian zhang" <[email protected]> wrote in message
news:[email protected]...
>
I am using weblogic 5.1 with service pack 10.
I need to query pdf data stored in a blob field in Oracle
8.1.6 server. The native code c:\weblogic\bin\oci816_8
is part of the path. When I query the database with
Oracle 8 client, I can get data.
driver: weblogic.jdbc20.oci.Driver
url: jdbc20:weblogic:oracle:mydb
What I have done is to get the blob object with:
Blob blob = rs.getBlob(5);
long len = blob.length();
But when I call the blob.length();
I got the a ClassCastException. I really appreicate
your comment.
The exception message is:
====================================================
java.lang.ClassCastException: java.lang.String
at weblogic.jdbc20.oci.Blob.length(Blob.java:75)
atcom.agf.profile.ProfileServlet.doProcess(ProfileServlet.java:126)
at com.agf.profile.ProfileServlet.doGet(ProfileServlet.java:37)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletSt
pl.java:120)
atweblogic.servlet.internal.ServletContextImpl.invokeServlet(Servle
textImpl.java:922)
atweblogic.servlet.internal.ServletContextImpl.invokeServlet(Servle
textImpl.java:886)
atweblogic.servlet.internal.ServletContextManager.invokeServlet(Ser
ContextManager.java:269)
atweblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP
a:380)
atweblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:
>
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
====================================================
Thanks,
Jian

Similar Messages

  • Getting ClassCastException while accessing ServletRequest object.

    Hi,
    I am using weblogic 8.1 sp4 and I am trying to deploy a JSF portal application. When I try to access ServletRequest object, it throws a ClassCastException.
    code snippet -
    ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
    ServletRequest servletRequest = (ServletRequest)externalContext.getRequest(); // Throws error at this point.
    It works fine if I use PortletRequest instead of ServletRequest. But I am trying to make it independent of portal API. Is there any way by which I can access servletRequest object?
    If I run this application outside portal environment(i.e. only on JSF fraemwork), it works fine.
    Here is the error i get in my browser -
    javax.portlet.PortletException: Error Invoking Method '#{ValidateServlet.Validate}' : java.lang.ClassCastException at com.sun.faces.portlet.FacesPortlet.processAction(FacesPortlet.java:236) at com.bea.portlet.container.PortletStub.processAction(PortletStub.java:277) at com.bea.portlet.container.AppContainer.invokeProcessAction(AppContainer.java:428) at com.bea.netuix.servlets.controls.content.JavaPortletContent.fireProcessAction(JavaPortletContent.java:202) at com.bea.netuix.servlets.controls.portlet.JavaPortlet.fireProcessAction(JavaPortlet.java:1091) at com.bea.netuix.servlets.controls.portlet.JavaPortlet.raiseChangeEvents(JavaPortlet.java:566) at com.bea.netuix.nf.ControlLifecycle$4.postVisitRoot(ControlLifecycle.java:298) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:315) at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:127) at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:106) at com.bea.netuix.nf.Lifecycle.runInbound(Lifecycle.java:173) at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:137) at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:321) at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:184) at com.bea.netuix.servlets.manager.PortalServlet.doPost(PortalServlet.java:767) at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:138) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) Caused by: javax.faces.el.EvaluationException: Error Invoking Method '#{ValidateServletJ.Validate}' : java.lang.ClassCastException at com.sun.faces.el.MethodBindingImpl.rethrow(MethodBindingImpl.java:109) at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:101) at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72) at javax.faces.component.UICommand.broadcast(UICommand.java:312) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381) at com.sun.faces.portlet.LifecycleImpl$InvokeApplicationPhase.execute(LifecycleImpl.java:524) at com.sun.faces.portlet.LifecycleImpl.phase(LifecycleImpl.java:246) at com.sun.faces.portlet.LifecycleImpl.execute(LifecycleImpl.java:156) at com.sun.faces.portlet.FacesPortlet.processAction(FacesPortlet.java:222) ... 29 more Caused by: java.lang.ClassCastException at work.ValidateServletJ.Validate(ValidateServletJ.java:46) 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.sun.faces.el.impl.MethodInvokeVisitor.handleMethod(MethodInvokeVisitor.java:44) at com.sun.faces.el.impl.MethodAbstractVisitor.visit(MethodAbstractVisitor.java:354) at com.sun.faces.el.impl.AstValue.jjtAccept(AstValue.java:16) at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:93) ... 37 more Nested Exception is javax.faces.el.EvaluationException: Error Invoking Method '#{ValidateServletJ.Validate}' : java.lang.ClassCastException at com.sun.faces.el.MethodBindingImpl.rethrow(MethodBindingImpl.java:109) at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:101) at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72) at javax.faces.component.UICommand.broadcast(UICommand.java:312) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381) at com.sun.faces.portlet.LifecycleImpl$InvokeApplicationPhase.execute(LifecycleImpl.java:524) at com.sun.faces.portlet.LifecycleImpl.phase(LifecycleImpl.java:246) at com.sun.faces.portlet.LifecycleImpl.execute(LifecycleImpl.java:156) at com.sun.faces.portlet.FacesPortlet.processAction(FacesPortlet.java:222) at com.bea.portlet.container.PortletStub.processAction(PortletStub.java:277) at com.bea.portlet.container.AppContainer.invokeProcessAction(AppContainer.java:428) at com.bea.netuix.servlets.controls.content.JavaPortletContent.fireProcessAction(JavaPortletContent.java:202) at com.bea.netuix.servlets.controls.portlet.JavaPortlet.fireProcessAction(JavaPortlet.java:1091) at com.bea.netuix.servlets.controls.portlet.JavaPortlet.raiseChangeEvents(JavaPortlet.java:566) at com.bea.netuix.nf.ControlLifecycle$4.postVisitRoot(ControlLifecycle.java:298) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:315) at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:127) at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:106) at com.bea.netuix.nf.Lifecycle.runInbound(Lifecycle.java:173) at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:137) at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:321) at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:184) at com.bea.netuix.servlets.manager.PortalServlet.doPost(PortalServlet.java:767) at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:138) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) Caused by: java.lang.ClassCastException at work.ValidateServletJ.Validate(ValidateServletJ.java:46) 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.sun.faces.el.impl.MethodInvokeVisitor.handleMethod(MethodInvokeVisitor.java:44) at com.sun.faces.el.impl.MethodAbstractVisitor.visit(MethodAbstractVisitor.java:354) at com.sun.faces.el.impl.AstValue.jjtAccept(AstValue.java:16) at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:93) ... 37 more
    Any pointers will be greatly appreciated.
    Thanks
    Kunal

    Kunal,
    A PortletRequest/RenderRequest is not a ServletRequest - the two are not the same and don't share a common superclass or interface other than java.lang.Object. So simple casting like you're doing won't work.
    Are you trying to call a method that is only found on ServletRequest and not on PortletRequest/RenderRequest. If so, you're out of luck. You don't have a ServletRequest object inside the portal, so you can't call methods that aren't on the RenderResponse object.
    If the method(s) you're calling are common to both classes then you can use reflection to access the desired methods and avoid a CCE. A good pattern for this type of situation is "Duck Typing" - a description of Duck Typing in Java can be found here:
    http://www.coconut-palm-software.com/the_visual_editor/?p=25
    Hope that's helpful.
    Regards,
    Peter

  • How to get event when any library object added to indesign doc?

    I want to do some operation when any library object is added to doc. So please tell me how to get event when any library object is added to the doc. better provide some code snippet.

    Daves61,
    I need to clarify what kind of event you're interested in.
    1. When you click once on page/spead widget in the Pages panel and only widget becomes selected. The layout window remains unchanged. OR
    2. When you doubleclick on page/spread widget the selected master spread appears in the layout window.
    In the first case you work with Pages panel.
    Have a look to file PageTransitionsPanelObserver.cpp from SDK. 
    PageTransitionsPanelObserver::LazyUpdate()
    In the second case you work with Layout window.

  • JSF portal - Getting ClassCastException while accessing ServletRequest obj.

    Hi,
    I am using weblogic 8.1 sp4 and I am trying to deploy a JSF portal application. When I try to access ServletRequest object, it throws a ClassCastException.
    code snippet -
    ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
    ServletRequest servletRequest = (ServletRequest)externalContext.getRequest(); // Throws error at this point.
    It works fine if I use PortletRequest instead of ServletRequest. But I am trying to make it independent of portal API. Is there any way by which I can access servletRequest object?
    If I run this application outside portal environment(i.e. only on JSF fraemwork), it works fine.
    Here is the error i get in my browser -
    javax.portlet.PortletException: Error Invoking Method '#{ValidateServletJ.Validate}' : java.lang.ClassCastException at com.sun.faces.portlet.FacesPortlet.processAction(FacesPortlet.java:236) at com.bea.portlet.container.PortletStub.processAction(PortletStub.java:277) at com.bea.portlet.container.AppContainer.invokeProcessAction(AppContainer.java:428) at com.bea.netuix.servlets.controls.content.JavaPortletContent.fireProcessAction(JavaPortletContent.java:202) at com.bea.netuix.servlets.controls.portlet.JavaPortlet.fireProcessAction(JavaPortlet.java:1091) at com.bea.netuix.servlets.controls.portlet.JavaPortlet.raiseChangeEvents(JavaPortlet.java:566) at com.bea.netuix.nf.ControlLifecycle$4.postVisitRoot(ControlLifecycle.java:298) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:315) at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:127) at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:106) at com.bea.netuix.nf.Lifecycle.runInbound(Lifecycle.java:173) at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:137) at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:321) at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:184) at com.bea.netuix.servlets.manager.PortalServlet.doPost(PortalServlet.java:767) at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:138) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) Caused by: javax.faces.el.EvaluationException: Error Invoking Method '#{ValidateServletJ.Validate}' : java.lang.ClassCastException at com.sun.faces.el.MethodBindingImpl.rethrow(MethodBindingImpl.java:109) at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:101) at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72) at javax.faces.component.UICommand.broadcast(UICommand.java:312) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381) at com.sun.faces.portlet.LifecycleImpl$InvokeApplicationPhase.execute(LifecycleImpl.java:524) at com.sun.faces.portlet.LifecycleImpl.phase(LifecycleImpl.java:246) at com.sun.faces.portlet.LifecycleImpl.execute(LifecycleImpl.java:156) at com.sun.faces.portlet.FacesPortlet.processAction(FacesPortlet.java:222) ... 29 more Caused by: java.lang.ClassCastException at work.ValidateServletJ.Validate(ValidateServletJ.java:46) 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.sun.faces.el.impl.MethodInvokeVisitor.handleMethod(MethodInvokeVisitor.java:44) at com.sun.faces.el.impl.MethodAbstractVisitor.visit(MethodAbstractVisitor.java:354) at com.sun.faces.el.impl.AstValue.jjtAccept(AstValue.java:16) at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:93) ... 37 more Nested Exception is javax.faces.el.EvaluationException: Error Invoking Method '#{ValidateServletJ.Validate}' : java.lang.ClassCastException at com.sun.faces.el.MethodBindingImpl.rethrow(MethodBindingImpl.java:109) at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:101) at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72) at javax.faces.component.UICommand.broadcast(UICommand.java:312) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381) at com.sun.faces.portlet.LifecycleImpl$InvokeApplicationPhase.execute(LifecycleImpl.java:524) at com.sun.faces.portlet.LifecycleImpl.phase(LifecycleImpl.java:246) at com.sun.faces.portlet.LifecycleImpl.execute(LifecycleImpl.java:156) at com.sun.faces.portlet.FacesPortlet.processAction(FacesPortlet.java:222) at com.bea.portlet.container.PortletStub.processAction(PortletStub.java:277) at com.bea.portlet.container.AppContainer.invokeProcessAction(AppContainer.java:428) at com.bea.netuix.servlets.controls.content.JavaPortletContent.fireProcessAction(JavaPortletContent.java:202) at com.bea.netuix.servlets.controls.portlet.JavaPortlet.fireProcessAction(JavaPortlet.java:1091) at com.bea.netuix.servlets.controls.portlet.JavaPortlet.raiseChangeEvents(JavaPortlet.java:566) at com.bea.netuix.nf.ControlLifecycle$4.postVisitRoot(ControlLifecycle.java:298) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:315) at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:127) at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:106) at com.bea.netuix.nf.Lifecycle.runInbound(Lifecycle.java:173) at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:137) at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:321) at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:184) at com.bea.netuix.servlets.manager.PortalServlet.doPost(PortalServlet.java:767) at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:138) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) Caused by: java.lang.ClassCastException at work.ValidateServletJ.Validate(ValidateServletJ.java:46) 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.sun.faces.el.impl.MethodInvokeVisitor.handleMethod(MethodInvokeVisitor.java:44) at com.sun.faces.el.impl.MethodAbstractVisitor.visit(MethodAbstractVisitor.java:354) at com.sun.faces.el.impl.AstValue.jjtAccept(AstValue.java:16) at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:93) ... 37 more
    Any help?
    Thanks
    Kunal

    Kunal,
    A PortletRequest/RenderRequest is not a ServletRequest - the two are not the same and don't share a common superclass or interface other than java.lang.Object. So simple casting like you're doing won't work.
    Are you trying to call a method that is only found on ServletRequest and not on PortletRequest/RenderRequest. If so, you're out of luck. You don't have a ServletRequest object inside the portal, so you can't call methods that aren't on the RenderResponse object.
    If the method(s) you're calling are common to both classes then you can use reflection to access the desired methods and avoid a CCE. A good pattern for this type of situation is "Duck Typing" - a description of Duck Typing in Java can be found here:
    http://www.coconut-palm-software.com/the_visual_editor/?p=25
    Hope that's helpful.
    Regards,
    Peter

  • EJB3 Stateful:ClassCastException when casting the object returned in lookup

    Hi,
    I'm developing a web application that make use of EJB3 stateless and stateful beans. The application server is the Websphere Application Server 6.1.0.15 with the EJB3 Feature Pack installed and the web server is the IBM HTTP Server running in another machine.
    The problem I'm facing is that for every stateful bean after the lookup, it throws a ClassCastExcption when casting the object returned. See part of the log below.
    [7/13/08 3:15:48:869 CDT] 0000001c SystemErr R java.lang.ClassCastException: cannot cast class com.spcs.dsa.ejb.authenticationmanager._AuthenticationManager_Stub to class com.spcs.dsa.ejb.authenticationmanager._AuthenticationManager_Stub
    at com.ibm.rmi.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:396)
    at com.spcs.dsa.ejb.client.DsaEjbClient.getAuthenticationRemote(DsaEjbClient.java:37)
    at com.spcs.dsa.action.NewCardAction.execute(NewCardAction.java:85)
    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:585)
    Please notice in the log above that the cast was done for the correct class.
    Here is the java code:
    AuthenticationManager auth =
    (AuthenticationManager) javax.rmi.PortableRemoteObject.narrow(
    context.lookup("com.spcs.dsa.ejb.authenticationmanager.AuthenticationManager"),
    AuthenticationManagerStub.class);
    This problem doesn't happen for statless beans. If you simply change the class to be stateless, this problem stop to happen.
    If you run this code in a stand alone program, this problem doesn't happen. It only happen when running in the web server.
    Does anybody know what should be done to solve this problem ??
    Thanks,
    Marcos.

    I'm not familiar with any specifics of IBM's implementation but from an EJB 3 spec perspective there is no need to use PortableRemoteObject.narrow() if you're retrieving an EJB 3.0 Remote Business interface, regardless of the component type( stateful vs. stateless). In addition, the "_Stub" class should never have to be part of your client programming model. That should be hidden within the vendor's implementation, if present at all.
    If AuthenticationManager is the Remote 3.0 Business Interface
    @Remote
    public interface AuthenticationManager {
    your client lookup should be :
    AuthenticationManager am = (AuthenticationManager) context.lookup("...");

  • ClassCastException when accessing WS

    I developed a small sample webservice using the JWSDP. It works fine when I invoke it's methods locally and deployment to Tomcat seems to work as well, at least the .war file is unpacked and I get the "A Web Service is installed at this URL......" page when I point my browser to the according URL.
    Now I wrote the simplest possible client to test the service's accessibility. It's supposed just to invoke a SOAP call to one of the methods and display the result, everything hard wired. First weird thing is, when I just use the service's URL, I get a SOAP Fault stating: "Missing port information". I can get past that if I add the port's name. But that doesn't do the job as I now get another SOAP Fault: "Internal server error". In the Tomcat logs, I found out a ClassCastException occurs somewhere in my service class. This is quite strange, because neither the service class nor the client contains any class cast.
    I read that duplicate jar files in the classpath are a common cause for ClassCastException, but not in this case, I made sure I do not have double jars included.
    Any suggestions where I could search for the error?
    Many thanks in advance!

    Hello..
    I am also getting the same ClassCastException , while accesing the deployed webservice from my client program.
    I have deployed a simple webservice which is developed accroding the the article from sun, and deployed it succesfully on Tomcat, (Tomcat has come with JWSDP1.1 installation).
    I can see the following message from the browser after deloying the webservice,
    A Web Service is installed at this URL.
    It supports the following ports: "SunRegPort" (http://localhost:8080/SunReg/jaxrpc/SunRegPort)
    I tested with Tomcat Admin manager (http://localhost:8080/manager )and observed that my service is running on tomcat server,
    BUT....
    while trying to access the webservice from the standalone java client program, I got the "java.rmi.ServerException: Internal Server Error (java.lang.ClassCastException: com.sun.xml.rpc.server.http.ServletEndpointContextImpl) "
    The server logfile is also populated with the same error mesg.
    I made sure that the proper classpath is setup, but stil.... :-(
    Here is my client code snippet:-----------------
    SunRegService_Impl s= new SunRegService_Impl();
              System.out.println("SunRegService_Impl :--> "+s);
              SunRegPort_Stub stub = (SunRegPort_Stub)(s.getSunRegPortPort());
    System.out.println("SunRegPort_Stub :--> "+stub);
    stub._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY,"http://localhost:8080/SunReg/jaxrpc/SunRegPort");
    System.out.println("Property set :Done ");
              Course course = (Course)stub.getCourseInfo();
    System.out.println("Course :--> "+course);
              cid= course.getCourseID();
              cinfo = course.getCourseDesc();
    Is there anything wrong with my code ? anybody has some idea how to get rid of this problem ?? Thanks in advance
    Rgds
    HariKrishna Maharshi
    [email protected]

  • Getting ClassCastException When Trying To Color JTable Row?

    hi there
    i'm trying to set color for JTable Rows Using the method prepareRenderer
    and get the values of the second column which contains integer values
    and if it contain 0 integer value set the color row as red
    its already works and the row with 0 is set to red but when i try to select any cell in the table
    i'm getting
    java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integerat prepareRenderer
    although the second row which i'm trying to test it's values is Integer not String????????????
    here's the code:
    import javax.swing.border.*;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import java.awt.event.*;
    import javax.swing.JFrame;
    public class Column_Filter {
      static JTable table;
    static DefaultTableModel dtm;  
        public static void main(String[] args) {
             String[]columns={"Name","Number","Price"};
             Object[][]data={  {"a",new Integer(5),new Integer(200)}
             ,{"b",new Integer(7),new Integer(400)}
             ,{"c",new Integer(0),new Integer(100)}
             ,{"d",new Integer(8),new Integer(800)}
             ,{"e",new Integer(3),new Integer(300)}         
             dtm=new DefaultTableModel(data,columns);
                        table=new JTable(dtm){
                      public Class getColumnClass(int column)
                        return getValueAt(0, column).getClass();
                             public Component prepareRenderer(TableCellRenderer renderer, int row, int column)
                        Component c = super.prepareRenderer(renderer, row, column);
                        if (!c.getBackground().equals(getSelectionBackground()))
                             Integer type = (Integer)getModel().getValueAt(row, 1);
                             if(type!=null)                                                            
                             c.setBackground(type==0 ? Color.RED : Color.WHITE );
                        else
                        c.setBackground(Color.white);
                        return c;
             TableColumnModel columnModel = table.getColumnModel();
             TableColumn col1 = columnModel.getColumn(1);         
             col1.setCellEditor(new TableEditor());
             TableColumn col2 = columnModel.getColumn(2);
             col2.setCellEditor(new TableEditor());
             table.setPreferredScrollableViewportSize(new Dimension(280,160));
             JScrollPane scroll=new JScrollPane(table);
             JLabel label=new JLabel("Column Stuff",JLabel.CENTER);
             JPanel panel=new JPanel();
             panel.add(scroll);
            JFrame frame=new JFrame("Column Stuff");
            frame.add(label,BorderLayout.NORTH);
            frame.add(panel,BorderLayout.CENTER);
            frame.setSize(300,300);
            frame.setResizable(false);
            frame.setVisible(true);
            frame.setLocationRelativeTo(null);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                 table=new JTable();     
                   table.setModel(new DefaultTableModel(new Object [][][] {},new String [] {"Name", "Number","Price"}) {
                Class[] types = new Class [] {
                    java.lang.String.class, java.lang.String.class,java.lang.String.class
                public Class getColumnClass(int columnIndex) {
                    return types [columnIndex];
          class TableEditor extends DefaultCellEditor
              TableEditor()
                   super( new JTextField() );               
                setClickCountToStart(0);
              public boolean stopCellEditing()
                        String editingValue = (String)getCellEditorValue();
                    if(!editingValue.equals("")){
                 try
                int i = Integer.parseInt(editingValue);
                catch(NumberFormatException nfe)
                ((JComponent)getComponent()).setBorder(new LineBorder(Color.red));       
                getComponent().requestFocusInWindow();      
                JOptionPane.showMessageDialog(null,"Data Input Error","Error",JOptionPane.ERROR_MESSAGE);
                return false;          
                    else{                                             
                     getComponent().requestFocusInWindow();
                     fireEditingCanceled();
                     JOptionPane.showMessageDialog(null,"Data Input Error","Error",JOptionPane.ERROR_MESSAGE);
                  return false;              
                   return super.stopCellEditing();
                   public Component getTableCellEditorComponent(
                   JTable table, Object value, boolean isSelected, int row, int column)
                   Component c = super.getTableCellEditorComponent(table, value, isSelected, row, column);
                   ((JComponent)c).setBorder(new LineBorder(Color.BLACK));
                   return c;
         }

    hi again camickr
    i changed the stopCellEditing as you mentioned
    changed the getCellEditorValue to return an integer
    and give exception and error message if the value can't be converted into integer(non numeric)
    but the problem is when i run the program and change the value in any cell with numeric values
    or with non numeric or not changing the value and press enter
    it give the error message meaning it cannot convert the value to integer
    even if enter an int or don't change the value ????????
    here's what i did
    import javax.swing.border.*;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import java.awt.event.*;
    import javax.swing.JFrame;
    public class Column_Filter {
      static JTable table;
    static DefaultTableModel dtm;  
        public static void main(String[] args) {
             String[]columns={"Name","Number","Price"};
             Object[][]data={  {"a",new Integer(5),new Integer(200)}
             ,{"b",new Integer(7),new Integer(400)}
             ,{"c",new Integer(0),new Integer(100)}
             ,{"d",new Integer(8),new Integer(800)}
             ,{"e",new Integer(3),new Integer(300)}         
             dtm=new DefaultTableModel(data,columns);
                        table=new JTable(dtm){
                      public Class getColumnClass(int column)
                        return getValueAt(0, column).getClass();
                             public Component prepareRenderer(TableCellRenderer renderer, int row, int column)
                        Component c = super.prepareRenderer(renderer, row, column);
                        if (!c.getBackground().equals(getSelectionBackground()))
                             Integer type = (Integer)getModel().getValueAt(row, 1);                                                            
                             c.setBackground(type==0 ? Color.RED : Color.WHITE );
                        return c;
             TableColumnModel columnModel = table.getColumnModel();
             TableColumn col1 = columnModel.getColumn(1);         
             col1.setCellEditor(new TableEditor());
             TableColumn col2 = columnModel.getColumn(2);
             col2.setCellEditor(new TableEditor());
             table.setPreferredScrollableViewportSize(new Dimension(280,160));
             JScrollPane scroll=new JScrollPane(table);
             JLabel label=new JLabel("Column Stuff",JLabel.CENTER);
             JPanel panel=new JPanel();
             panel.add(scroll);
            JFrame frame=new JFrame("Column Stuff");
            frame.add(label,BorderLayout.NORTH);
            frame.add(panel,BorderLayout.CENTER);
            frame.setSize(300,300);
            frame.setResizable(false);
            frame.setVisible(true);
            frame.setLocationRelativeTo(null);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                 table=new JTable();     
                   table.setModel(new DefaultTableModel(new Object [][][] {},new String [] {"Name", "Number","Price"}) {
                Class[] types = new Class [] {
                    java.lang.String.class, java.lang.Integer.class,java.lang.Integer.class
                public Class getColumnClass(int columnIndex) {
                    return types [columnIndex];
          class TableEditor extends DefaultCellEditor
              TableEditor()
                   super( new JTextField() );               
                setClickCountToStart(0);
              public boolean stopCellEditing()
                   try
                        Integer editingValue = (Integer)getCellEditorValue();
                   catch(ClassCastException exception)
               //when i enter any value in any cell this code is executed even i enter an int or don't change the value
                ((JComponent)getComponent()).setBorder(new LineBorder(Color.red));       
                getComponent().requestFocusInWindow();      
                JOptionPane.showMessageDialog(null,"Data Input Error","Error",JOptionPane.ERROR_MESSAGE);
                return false;
                   return super.stopCellEditing();
                   public Component getTableCellEditorComponent(
                   JTable table, Object value, boolean isSelected, int row, int column)
                   Component c = super.getTableCellEditorComponent(table, value, isSelected, row, column);
                   ((JComponent)c).setBorder(new LineBorder(Color.BLACK));
                   return c;
         }

  • General error when accessing blob from oracle

    Hi
    I have successfully uploaded and saved images into oracle(8.1.5) table DATA_TYPE(dtid number, iconname varchar2(30), icon blob). When I try to retrieve icon from the database, I get "javax.servlet.ServletException: General error" at:
    PreparedStatement pstmt = myConnection.prepareStatement(mySQL);
    My code looks like this:
    imgModifyDataType.jsp
    <%
    ResultSet myResultSet = null;
    Statement myStatement = null;
    Connection myConnection = null;
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    myConnection = DriverManager.getConnection("Jdbc:Odbc:Te","te","te");
    String iconName;
    String pDTID = request.getParameter("dtid");
    String mySQL = "Select iconname, icon from data_types where dtid=?";
    //Following statement throws general error exception
    PreparedStatement pstmt = myConnection.prepareStatement(mySQL);
    pstmt.setString(1,pDTID);
    myResultSet = pstmt.executeQuery();
    iconName = myResultSet.getString("iconname");
    myUpload.initialize(pageContext);
    myUpload.downloadField(myResultSet,"icon","application/x-msdownload", iconName);
    %>
    One more thing. The error occurs only when I try to execute query retrieving blob data. The same set of statements works fine for simple text or numbers.
    Please help

    When you read a BLOB with ORACLE,
    you have to lock the corresponding row.
    This means that...
    - the connection must not be in "AUTO COMMIT" mode
    - you have to do a "SELECT ... FOR UPDATE"

  • Bizarre ClassCastException when sending serialized objects

    I have two programs communicating with each other over a network using TCP and serialized objects. One of the programs uses an ObjectOutputStream to send the message, and the other uses an ObjectInputStream to receive it. The receiver has a thread that simply loops, receiving and processing messages one at a time.
    Under normal circumstances, this works fine. However, sometimes the sender program has to send more than one message, one right after the other. I guess my assumption was that on the receiving end, they would somehow just "queue up" in the ObjectInputStream and the receiver would be able to read them one at a time. But instead, I get this bizarre ClassCastException whose message talks about members and objects from both messages that were sent. It is as though somehow the two objects received are being mangled together and interpreted somehow as one object. This is strange to me, since I am pretty sure TCP is supposed to guarantee in-order delivery of packets.
    Can I not send multiple messages right after each other through an ObjectOutputStream and have them received in an ObjectInputStream? If not, what would be a good workaround?
    If you need more details, it works like this. I have two classes that look like this:
    class Class1 extends SerializableSuperclass
      Member1 m1;
    class Class2 extends SerializableSuperclass
      Member2 m2;
    }Sender sends an instance of Class1 and then immediately an instance of Class2. Receiver attempts to readObject() from the input stream and gets this exception:
    Exception in thread "Thread-4" java.lang.ClassCastException: cannot assign instance of Class2 to field Class1.m1 of type Member1 in instance Class1
    Isn't that bizarre? Two separate classes, and it is attempting to merge the two in some odd way.
    How do I fix or work around this?
    Thanks

    These classes do not have those methods. They are simply message classes designed to hold data. Do you need to see the methods that call ObjectOutputStream's writeObject() and ObjectInputStream's readObject() methods?
    The serializable superclass is there because it has other stuff including a field identifying the sender. It's basically a base message class.
    Also, the member classes are serializable (serializability isn't the issue anyway; "class cast" is the issue).

  • ClassCastException when accessing others app ejb

    Hi,
    I have the following problem:
    I use OC4J 9.0.2.0.0.
    I have a stateless SessionBean BeanA deployed in application AppA.
    I have a stateless SessionBean BeanB deployed in application AppB.
    I have a servlet ServletC deployed in application AppC.
    All 3 applications are deployed to the same oc4j instance.
    ServletC needs BeanA and BeanB.
    When ServletC tries to access one of the 2 ejbs a ClassCastException is thrown when the PortableRemoteObject.narrow() should be done.
    In the forum I found some hints using the parent attribute in the application tag of the server.xml file.
    But this only works for a client only using one other application but I have 2.
    Thanks for your help
    Guenther

    Hi Debabrata,
    I use the com.evermind.server.rmi.RMIInitialContextFactory.
    I think it is no good idea to have a chain of parents.
    I lose the separate class loaders.
    I cannot use different versions of libraries.
    There must exist a better solution than chaining applications with the parent attribute.
    Thanks
    Guenther

  • Getting exception when accessing outlook through Redemption COM

    We are accessing outlook through redemption DLL in c#.net. We are using various services like: importing contacts, calendar integration etc.  Sometime we are getting exception from redemption COM like:
    The file abc.ost is in use and cannot be accessed.
    'MyApplication' exited without properly closing your Outlook data file
    Could somebody help us to identify the root cause of this issue?
    Exception details are mentioned below:
    Exception1:
    OutlookServices.OutlookService - System.Runtime.InteropServices.COMException (0x80040119): Error in IMAPISession.OpenEntry: MAPI_E_EXTENDED_ERROR
    Error: 'MyApplication' exited without properly closing your Outlook data file 'C:\Users\abc\AppData\Local\Microsoft\Outlook\[email protected]'. 'MyApplication' must be restarted. If this error message recurs, contact support for 'MyApplication' for assistance.
    at Interop.Redemption.IRDOSession.GetMessageFromID(String EntryIDMessage, Object EntryIDStore, Object Flags)
    Exception2:
    OutlookService - System.Runtime.InteropServices.COMException (0x8004011D): Error in IMAPISession::OpenMsgStore: MAPI_E_FAILONEPROVIDER
    Error: The file C:\Users\abc\AppData\Local\Microsoft\Outlook\[email protected] - abc.ost is in use and cannot be accessed. Close any application that is using this file, and then try again. You might need to restart your computer.
     at Interop.Redemption.IRDOSession.GetDefaultFolder(rdoDefaultFolders FolderType)

    You're more likely to get help on this either directly from the Redemption people or in a .NET group, since you're not using Visual FoxPro.
    Tamar

  • Get error when add new object in crystal report

    hi
    i have this error "You are attempting to use functionality that falls under the Crystal Decisions Report Creation API license. This system does not have a valid license, or the evaluation copy of the license has expired. Please contact Crystal Decisions to obtain a Report Creation API license."
    when i add new object in crystal report with vb.net
    ""CRReport.Sections.Item(ii).AddTextObject("new text", 1000, 0)
    i do same program for 3 months ago but i lost it work without error
    ihave a license key for crystal report
    use cr10 with vb.net 2005
    can help me
    thanks

    Also, check out the blog [Use of the Report Designer Component (RDC) in VS .NET|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414700)ID0468837450DB00359707053703393347End?blog=/pub/wlg/15939].
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Faces Servlet no getting called when accessing JSF portlet

    Hi,
    I have a JSF web application and I am exposing the functionality of this JSF web application using native Weblogic Portal JSF portlets. I have configured this JSF web application as a simple producer and I am consuming these portlets in my portal using WSRP.
    I have written a custom FacesServlet and configured it in the web.xml of the producer web application. When I access the pages in the producer web app like a normal web app, I see that my faces servlet is being called but when I consume these pages via the JSF portlet and view the portlets in the portal then the Faces servlet is not being called.
    Is this normal behavior or is WSRP causing this problem or am I missing something. Your help is greatly appreciated.
    Regards,
    Hitesh

    Hi Hitesh,
    What I was asking you to give a try was, configure the standard faces servlet for example if you are using JSF RI
    the configuration will look like
        <servlet>
            <servlet-name>FacesServlet</servlet-name>
            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
            <load-on-startup>100</load-on-startup>
        </servlet>I am not very sure whether this can solve the problem.
    Thanks
    Sreeram
    Edited by sreeram.jonnalagadda at 06/10/2008 4:46 AM

  • Exception when accessing PCD object from WD code

    Hi All,
    I'm trying to implement iview properties for a Web Dynpro project according to the code on "Maximizing Web Dynpro for Java"  book.
    However, I'm getting "null" exception when running the following method:
    public IAttributeSet getRoleAttributeSet(boolean reloadIt) {
        if (reloadIt) {
          roleAttributeSet = null;
        if (roleAttributeSet == null) {
          try {
            Hashtable env = new Hashtable();
            env.put(Constants.REQUESTED_ASPECT, PcmConstants.ASPECT_SEMANTICS);
            env.put(Context.SECURITY_PRINCIPAL, WDClientUser.getCurrentUser().getSAPUser());
            InitialContext iCtx = new InitialContext(env);
            roleAttributeSet = (IAttributeSet) iCtx.lookup(iViewPath);
          } catch (Exception e) {
        return roleAttributeSet;
    The line "roleAttributeSet = (IAttributeSet) iCtx.lookup(iViewPath);" causes the exception.
    I saw several examples in SDN but none of them worked for me.
    examples like this: /message/2222425#2222425 [original link is broken]
    I used this blog: /people/daniel.wroblewski/blog/2006/07/30/everything-you-wanted-to-know-about-the-pcd
    and this PDF: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/314ae7a5-0c01-0010-c198-9c7c5e8cee46
    But get the same exception.
    I tried to set the iview path with & without "pcd:" prefix - didn't help
    I added the "PORTAL:sap.com/com.sap.portal.pcd.glservice" to my project - didn't help.
    Also, I tried using ASPECT_ADMINISTRATOR instead of ASPECT_SEMANTICS and get the IAttributeSet by using IADMInbase interface - didn't help either.
    I used this code:
    IAdminBase result =(IAdminBase)iCtx.lookup(objectName);
    IAttributeSet myIview = (IAttributeSet) result.getImplementation(IAdminBase.ATTRIBUTE_SET);
    Can someone provide me STEP BY STEP solution for getting IAttributeSet of an iview through Web Dynpro code.
    The iview path exists.
    I tested the code on EP6 SP16 & SP17.
    Thanks,
    Omri

    Hi Bharathwaj,
    I tried using the sharing references:
    PORTAL:sap.com/com.sap.portal.ivs.api_iviewf and
    PORTAL:sap.com/com.sap.portal.pcd.glservice
    both didn't help
    I have 'com.sap.portal.ivs.api_iview_api.jar' under the 'lib' folder.
    Omri

  • Get 403 when accessing apex/listenerStatus on the new install

    Have installes AL on Weblogic 10.3.5
    Have Apex 4.1 on 10.2.0.5 database
    After configuring the listener access to apex/listenerStatus result in athentication dialog, and after providing credentials (member of Admin role configured via the WLS console) get 403 error message.
    TIA

    See this support article: <br />http://support.mozilla.com/en-US/kb/Recovering+important+data+from+an+old+profile
    Your old Profile is located here in Vista & Win7: <br />
    ''drive'':\Users\''Windows login user name''\AppData\Roaming\Mozilla\Firefox\Profiles\''profile_name''

Maybe you are looking for

  • USB 2.0 ports on MS-6398E board

    I'm new to the MSI forums so bear with me if my style of posting is not yet quite right. I've got an MS-6398E motherboard and in Win2K the Device Manager lists one USB 2.0 root hub and 3 USB root hubs (no numeric designation). When I check the proper

  • Can't add files to two different phones

    I have created a ringtone for my iphone 4s and loaded just fine.  I tried to add the ringtone to my fiances phone and I get the red circle with the line through it so I can't add anything to her phone.  No photos, music etc.  I tried signing out of I

  • Photo Gallery Software for Mac OS X Server

    I'm porting my Linux server infrastructure over to Mac OS X Server. I've successfully moved over my DNS, Mail and most of my web sites to Mac without a problem. However, the last website is causing me a bit of pain. In Linux I was using Gallery 2 (ht

  • Clean up duplicated songs in itunes library

    my external harddisk was dead 2 weeks ago , together with my thousands of songs . i ripped some hundred songs from 2 ipods back to my macbook . now , i have problem . i found duplicated songs , one is real but the other with "!" sign and is only a de

  • Using Page Level Summary Column in Report 6i

    Hi Folks, I'm trying to create a report in which I want a Page level Summary column i.e., the Summary column should reset at each page and should display the sum of a particular field on each page depending upon how many records are displayed on each