Bea content repository bug (?)
Hi All,
I've encountered a problem working with the Bea weblogic content repository.
I've tried to create a new property for a content type wich has already some contents associated.
The results is that if i try to set the new proprery value, for a content that has been loaded before the new property was created, the admin console displays an error (reported below)
Does someone know if there's a bug on the content managemtent, and if it is, how can be avoided?
Here is a summarization of the steps i followed:
1. Loaded a new content of Image type (named image1)
2. Created a new property (image width) for the type Image
3. Tried to set the new property of the content image1 --> (ERROR)
4. Loaded another content of the same type (named image2)
5. Tried to set the new property of the content image2 --> (OK)
Thank you in advance,
Kind regards.
-- Marco --
--------------------- ERROR LOG ---------------------
java.lang.NullPointerException
at content.node.nodeSelected.properties.NodePropertiesController.saveProperty(NodePropertiesController.java:1032)
at content.node.nodeSelected.properties.NodePropertiesController.saveProperties(NodePropertiesController.java:986)
at content.node.nodeSelected.properties.NodePropertiesController.saveProperties(NodePropertiesController.java:779)
at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
at org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(FlowController.java:869)
at org.apache.beehive.netui.pageflow.FlowController.getActionMethodForward(FlowController.java:808)
at org.apache.beehive.netui.pageflow.FlowController.internalExecute(FlowController.java:477)
at org.apache.beehive.netui.pageflow.PageFlowController.internalExecute(PageFlowController.java:305)
at org.apache.beehive.netui.pageflow.FlowController.execute(FlowController.java:335)
at org.apache.beehive.netui.pageflow.internal.FlowControllerAction.execute(FlowControllerAction.java:51)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.access$201(PageFlowRequestProcessor.java:95)
at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor$ActionRunner.execute(PageFlowRequestProcessor.java:2042)
at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionInterceptors.wrapAction(ActionInterceptors.java:90)
at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processActionPerform(PageFlowRequestProcessor.java:2114)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:554)
at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:851)
at org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:630)
at org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:157)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at org.apache.beehive.netui.pageflow.PageFlowUtils.strutsLookup(PageFlowUtils.java:1169)
at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.executeAction(ScopedContentCommonSupport.java:688)
at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.processActionInternal(ScopedContentCommonSupport.java:144)
at com.bea.portlet.adapter.scopedcontent.PageFlowStubImpl.processAction(PageFlowStubImpl.java:107)
at com.bea.portlet.adapter.NetuiActionHandler.raiseScopedAction(NetuiActionHandler.java:99)
at com.bea.netuix.servlets.controls.content.NetuiContent.raiseScopedAction(NetuiContent.java:180)
at com.bea.netuix.servlets.controls.content.NetuiContent.raiseScopedAction(NetuiContent.java:168)
hi,
I have not verified it with BEA, but I have analyzed the error as I encountered it my self. Seems like the bug arises from a missing row in the CM_PROPERTY table. This seems to trigger a bug of some sort in the content framework.
You could try to make a sql ( should be easy ) to insert the missing rows.
I have blogged about this in my [url http://blog.thej2eestruggle.com]J2EE blog.
- Anders Mathisen
Similar Messages
-
How to Export/Import Datas from BEA content Repository
Hi,
I want to Export the datas from BEA content repository and import into the ORacle Repository. Can anybody please let me know how to do that . Thanks in advance.
Best regards,
Venkat.Scopy the files from
(username)/library/preferences/AICS3settings/en_us/workspaces
to
(username)/library/preferences/AICS5settings/en_us/workspaces -
Does the bea content repository is JSR-170 compliant
Hi ALL,
Actually i want to use the bea content repository form my web service so should i go for SPI interface or i should use the JCR (Java Conetnt repository)API.
But i would be able to use the JCR interface only if the bea content repository is JSR 170 compliant.
Pls. suggest me the right way.
Thanks.........The BEA repository is not yet JSR-170 compliant.
-
Getting uploded file object from bea Content repository
Hi,
This is regarding bea portal 8.1 content repository
I have a content node ,type of content is message or article
Now in this one of the attribute is Attachment..
I have uploded a XMl file to this attribute
How do i retrive this file object using bea cutom tags,,
Are there any custom tag available? or
can i accessthis document using some kind of API..?
Can anyone please throw light on this...
Quick response will be highly appreciated
Thanx a lot
Manish RathiManish,
You can use the GetPropertyTag located in com.bea.content.manager.servlets.jsp.taglib,
or you can also use the API directly. To use the api, you would do something like
this:
Property property = node.getProperty("Attachment");
ID propertyId = property.getId();
ID nodeId = node.getId();
NodeOps nops = repositoryManager.getNodeOps();
InputStream is = nops.getPropertyBytes(nodeId, propertyId);
Regards,
James
"Manish" <[email protected]> wrote:
>
Hi,
This is regarding bea portal 8.1 content repository
I have a content node ,type of content is message or article
Now in this one of the attribute is Attachment..
I have uploded a XMl file to this attribute
How do i retrive this file object using bea cutom tags,,
Are there any custom tag available? or
can i accessthis document using some kind of API..?
Can anyone please throw light on this...
Quick response will be highly appreciated
Thanx a lot
Manish Rathi -
External BEA Content Repository
Good day,
I am attempting to create a new BEA Repository that resides in an external database and have followed the instructions as described in Creating Additional BEA Repositories at http://e-docs.bea.com/wlp/docs81/repository/repository.html
After deploying the content_repo.jar and bouncing the WebLogic Portal Server, I am not able to view or edit repository content. It is also not possible to manage content types in the new repository.
Has anyone managed to create an external repository and published content to it satisfactorily?
The errors I get are of the following types:
1.) Error Retrieving Tree Operation.
EJB Exception: : com.bea.content.RepositoryRuntimeException: Error getting the folders files. Parent Id: {0} Type: {1} at com.bea.content.repo.internal.RepoNodeOpsBean.getNodeChildren(RepoNodeOpsBean.java:1228) at com.bea.content.repo.internal.RepoNodeOpsEJBRefImpl_57333u_ELOImpl.getNodeChildren(RepoNodeOpsEJBRefImpl_57333u_ELOImpl.java:776) at com.bea.content.spi.internal.NodeOpsImpl.getNodeChildren(NodeOpsImpl.java:285) at ... (400 lines trimmed off)
or:
2.) Defined Types for Repository: RefImplRepository An exception has been thrown while trying to render this page.
Exception Message:
Error getting types.; nested exception is: javax.ejb.TransactionRolledbackLocalException: EJB Exception: ; nested exception is: com.bea.content.RepositoryRuntimeException: While trying to look up comp/env/jdbc/contentDataSource in /app/ejb/content_repo.jar#RepoObjectClassReaderEJBRefImpl.... (500 lines trimmed off)
Thanks for your time.Does it work in the admin tools when you click on the placeholder and preview it?
In the admin tools, do you have the primary property configured on your node's type? (to be the binary you want displayed)
Can you retrieve the content by hitting the ShowProperty servlet? (try a url like http://localhost:7001/<webappname>/ShowDoc/<path to your node> -
Bea content repository configuration
Hi All,
Can somebody can tell me that what will be impact of setting
streamble property set to true in BEA repository configuration.
and one more doubt that how can we use multiple BEA systme repository ?
PLs. reply ASAP
Thanks.
Edited by btsl_deepti at 03/16/2007 3:37 AMThese javadocs on the RepositoryConfig class explain what streaming binary content means and the implications for its use:
http://e-docs.bea.com/wlp/docs92/javadoc/com/bea/content/manager/RepositoryConfig.html
For multiple repositories, see the "Configuring Additional BEA Repositories" section on this page:
http://e-docs.bea.com/wlp/docs92/cm/filesystemArchCM.html -
Accessing bea content repository through a webservice
Hi All,
I want to use the bea default database based repository through a web service.
So please suggest me the way to do this.
Can i use the spi interface to do the same if yes
then how should i go ahead ?
Regards,
BTSL_DeeptiYes, it's called InDesign Server :-)
-
Programmatically checking the security in content repository
Hi all,
Is there any way to programmatically check whether a user has access to the documents under a particular node in content repository(in my case I have to use deligated administration role to check for the role in my code)? I am using BEA content repository.
any help appreciated.
thanks
RavindraHello,
I suppose you could meta-tag the content node with a property that specifies the user groups allowed access to the content. And then you could construct a rule which checks (programmatically, using the rule related EJB's) if the user has access rights. This is probably one technique.
cheers,
Deepak -
Content repository - Multiple unrestricted ordering issue for a property
Hi there,
I have a problem in terms of getting the correct ordering for a property that I have defined in the BEA Content Repository. Does anyone know what can be done?
Below is a description of what I am doing. I hope someone can help me order the vector returned or advise me on a better way on doing this. Thanks for your help in advance!
Andrew
Description
In the BE Content Repository, I have set up a type with properties set to "Multiple Unrestricted" and of Data Type "String". Basically the entries for this property will be used to fill in a table on my HTML page.
e.g.
column_1 Multiple Unrestricted String
column_2 Multiple Unrestricted String
column_3 Multiple Unrestricted String
column_4 Multiple Unrestricted String
What I am planning to do is fill this in for say the weather. Column 1 will be the city name, column 2 will be the temperature, column 3 will be another city name and column 4 will be the temperature.
e.g.
Column 1 | Column 2 | Column 3 | Column 4
=========================================
City 1 | 12-20C | City 2 | 14-19C
City 3 | 20-25C | City 4 | 25-30C
City 5 | 5-10C | City 6 | -10-5C
and so on...
So for the defined content item I have entered in the following:
column_1 >> "City 1", "City 3", "City 5"
column_2 >> "12-20C", "20-25C", "25-30C"
column_3 >> "City 2", "City 4", "City 6"
column_4 >> "14-19C", "25-30C", "-10-5C"
However when I reference the content item in my HTML page, the ordering in the returned vector is totally different to the way in which i entered the data into the content repository...
I access the information this way:
<cm:getProperty resultId="vect_col_1" node="<%= content_node%>" name= "<%= RepositoryProps.COLUMN_1%>" isMultiple="true" resultType="String" />
Thanks for your help!Hi there,
I have a problem in terms of getting the correct ordering for a property that I have defined in the BEA Content Repository. Does anyone know what can be done?
Below is a description of what I am doing. I hope someone can help me order the vector returned or advise me on a better way on doing this. Thanks for your help in advance!
Andrew
Description
In the BE Content Repository, I have set up a type with properties set to "Multiple Unrestricted" and of Data Type "String". Basically the entries for this property will be used to fill in a table on my HTML page.
e.g.
column_1 Multiple Unrestricted String
column_2 Multiple Unrestricted String
column_3 Multiple Unrestricted String
column_4 Multiple Unrestricted String
What I am planning to do is fill this in for say the weather. Column 1 will be the city name, column 2 will be the temperature, column 3 will be another city name and column 4 will be the temperature.
e.g.
Column 1 | Column 2 | Column 3 | Column 4
=========================================
City 1 | 12-20C | City 2 | 14-19C
City 3 | 20-25C | City 4 | 25-30C
City 5 | 5-10C | City 6 | -10-5C
and so on...
So for the defined content item I have entered in the following:
column_1 >> "City 1", "City 3", "City 5"
column_2 >> "12-20C", "20-25C", "25-30C"
column_3 >> "City 2", "City 4", "City 6"
column_4 >> "14-19C", "25-30C", "-10-5C"
However when I reference the content item in my HTML page, the ordering in the returned vector is totally different to the way in which i entered the data into the content repository...
I access the information this way:
<cm:getProperty resultId="vect_col_1" node="<%= content_node%>" name= "<%= RepositoryProps.COLUMN_1%>" isMultiple="true" resultType="String" />
Thanks for your help! -
Content Repository sharing across domains
Hello,
Is it possible to share a bea content repository across domains?
Thanks,
-- AnantOk,
But besides caching, would there be any other issues, like entitlements and delegated admin?
If the content cache timeout were to be set to say 20 minutes, then at the most the content would be 20 minutes out of date. So then could you set up a repository in multiple domains, with one domain having the entitlements and delegated admin setup for publishing content and the other domains being read only?
Thanks,
-- Anant -
Use Documentum Content Repository to BEA Repository
Hi,
I want to migrate content from BEA Repository to Documentum Content Repository. I would like to know if there are any standard API's to display content from Documentum to Portal jsp pages?
Any help is greatly appreciated.
Thanks,
LathaYou can use the CMSPI implemented by Documentum. But it is a separate
license.
<Sailatha Kapavarapu> wrote in message news:[email protected]..
Hi,
I want to migrate content from BEA Repository to Documentum ContentRepository. I would like to know if there are any standard API's to display
content from Documentum to Portal jsp pages?
>
Any help is greatly appreciated.
Thanks,
Latha -
How to Upload Mutilple Images in content repository?
Hi
How to Upload Mutilple Images in content repository?
I have a html which shd be displayed and it has 3 images which shd be displayed
in the same page
Here i am able to display the HTML uploaded in content repository
but the images are not displayed,since the path is not valid for the images.
Can any one hint me in this,
wating for the reply
Thanks in Adv
Regards
SureshSuresh, your html specifies an image at resources/images/privacy.gif - is that
image in your repository at the correct relative position to where yout html is?
Your html and repository structure must match. So if the html you posted is at
/BEA Repository/foo.html
then privacy.gif must be at /BEA Repository/resources/images/privacy.gif
James
"Suresh" <[email protected]> wrote:
>
>
>
Hi James
Here i have attached my sample html and image
My Repository Structure is as follows :
Virtual Content Repository
BEA Repository
MainImage type image
Privacy type i created
----StartDate
----EndDate
----File Upload
My HTML
<HTML>
<HEAD>
<TITLE> New Document </title>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</head>
<BODY>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="norBold"><img src="resources/images/privacy.gif"
width="123"
height="73">Privacy
Policy</td>
</tr>
<tr>
<td class="formHeadBack" height="19"><b> Privacy Policy</b></td>
</tr>
</body>
</html>
and
one image
Thanks in Adv
Suresh
"James Owen" <reply.to@newsgroup> wrote:
Suresh, how is your content structured and what does your html looklike?
If you
could post examples, that would be helpful.
thanks,
James
"suresh" <[email protected]> wrote:
Hi
How to Upload Mutilple Images in content repository?
I have a html which shd be displayed and it has 3 images which shd
be
displayed
in the same page
Here i am able to display the HTML uploaded in content repository
but the images are not displayed,since the path is not valid for the
images.
Can any one hint me in this,
wating for the reply
Thanks in Adv
Regards
Suresh -
BEA 8.1 Team,
Is there any limitation on BEA Repository such as number of nodes, etc.
I have a serious production issue. All i could see from the LOG file is the stact trace which i have posted it here.
####<Aug 24, 2006 8:04:57 AM CDT> <Info> <EJB> <websrv11> <PORTALSRVR> <ExecuteThread: '99' for queue: 'weblogic.kernel.Default'> <jdcs1400> <BEA1-60BE09B7462F> <BEA-010051> <EJB Exception occurred during invocation from home: [email protected]67bc75 threw exception: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1438)
at java.lang.String.substring(String.java:1411)
at com.bea.content.PathHelper.removeFirst(PathHelper.java:168)
at com.bea.content.manager.internal.NodeOpsBean.getNode(NodeOpsBean.java:680)
at com.bea.content.manager.internal.NodeOpsEJB_e40s0j_ELOImpl.getNode(NodeOpsEJB_e40s0j_ELOImpl.java:111)
at com.bea.content.manager.servlets.ShowPropertyServlet.printNode(ShowPropertyServlet.java:180)
at com.bea.content.manager.servlets.ShowPropertyServlet.doPost(ShowPropertyServlet.java:72)
at com.bea.content.manager.servlets.ShowPropertyServlet.doGet(ShowPropertyServlet.java:64)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
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)
>
####<Aug 24, 2006 8:04:57 AM CDT> <Error> <HTTP> <websrv11> <PORTALSRVR> <ExecuteThread: '99' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <> <BEA-101020> <[ServletContext(id=30691960,name=myServicePoint,context-path=/myServicePoint)] Servlet failed with Exception
javax.ejb.EJBException: EJB Exception: : java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1438)
at java.lang.String.substring(String.java:1411)
at com.bea.content.PathHelper.removeFirst(PathHelper.java:168)
at com.bea.content.manager.internal.NodeOpsBean.getNode(NodeOpsBean.java:680)
at com.bea.content.manager.internal.NodeOpsEJB_e40s0j_ELOImpl.getNode(NodeOpsEJB_e40s0j_ELOImpl.java:111)
at com.bea.content.manager.servlets.ShowPropertyServlet.printNode(ShowPropertyServlet.java:180)
at com.bea.content.manager.servlets.ShowPropertyServlet.doPost(ShowPropertyServlet.java:72)
at com.bea.content.manager.servlets.ShowPropertyServlet.doGet(ShowPropertyServlet.java:64)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
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)
; nested exception is: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1438)
at java.lang.String.substring(String.java:1411)
at com.bea.content.PathHelper.removeFirst(PathHelper.java:168)
at com.bea.content.manager.internal.NodeOpsBean.getNode(NodeOpsBean.java:680)
at com.bea.content.manager.internal.NodeOpsEJB_e40s0j_ELOImpl.getNode(NodeOpsEJB_e40s0j_ELOImpl.java:111)
at com.bea.content.manager.servlets.ShowPropertyServlet.printNode(ShowPropertyServlet.java:180)
at com.bea.content.manager.servlets.ShowPropertyServlet.doPost(ShowPropertyServlet.java:72)
at com.bea.content.manager.servlets.ShowPropertyServlet.doGet(ShowPropertyServlet.java:64)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
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)
javax.ejb.EJBException: EJB Exception: : java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1438)
at java.lang.String.substring(String.java:1411)
at com.bea.content.PathHelper.removeFirst(PathHelper.java:168)
at com.bea.content.manager.internal.NodeOpsBean.getNode(NodeOpsBean.java:680)
at com.bea.content.manager.internal.NodeOpsEJB_e40s0j_ELOImpl.getNode(NodeOpsEJB_e40s0j_ELOImpl.java:111)
at com.bea.content.manager.servlets.ShowPropertyServlet.printNode(ShowPropertyServlet.java:180)
at com.bea.content.manager.servlets.ShowPropertyServlet.doPost(ShowPropertyServlet.java:72)
at com.bea.content.manager.servlets.ShowPropertyServlet.doGet(ShowPropertyServlet.java:64)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
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)
; nested exception is: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at weblogic.ejb20.internal.EJBRuntimeUtils.throwEJBException(EJBRuntimeUtils.java:152)
at weblogic.ejb20.internal.BaseEJBLocalHome.handleSystemException(BaseEJBLocalHome.java:232)
at weblogic.ejb20.internal.BaseEJBLocalObject.postInvoke(BaseEJBLocalObject.java:326)
at com.bea.content.manager.internal.NodeOpsEJB_e40s0j_ELOImpl.getNode(NodeOpsEJB_e40s0j_ELOImpl.java:122)
at com.bea.content.manager.servlets.ShowPropertyServlet.printNode(ShowPropertyServlet.java:180)
at com.bea.content.manager.servlets.ShowPropertyServlet.doPost(ShowPropertyServlet.java:72)
at com.bea.content.manager.servlets.ShowPropertyServlet.doGet(ShowPropertyServlet.java:64)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
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)
>
Any help would be greatly appreciated!!
Thanks in Advance,
-Nach.Hi Dragan,
First of all we need to put some debug (System.out.println) to findout exactly which object reference is actually becoming NULL. From there only we can start diagnosis on this issue. that's the root. It should be very easy for your Developers to put some debug on that...because the NullPointerException is being thrown by your code...I m not Blaming on your Code... WLS may be responsible for that...but first of all we need to find out Which Object is becoming NULL.
Thanks
Jay SenSharma
http://jaysensharma.wordpress.com (WebLogic Wonders Are Here) -
I'd like to open a bug regarding the Apache connector. We first ran into it back in 7.0 and I just confirmed today it still exists in 8.1 (at least Apache 2.0/win32).
The bug is that the connector only forwards bodies for a subset of HTTP methods, so Webdav, for instance, is unusable via the connector.
For instance, the ACL method, RFC 3744, when sent to apache looks similar to
--- snip --
ACL /dav/testuser/foo2 HTTP/1.1
Host: localhost:80
Depth: Infinity
Content-Length: 690
Content-type: text/xml; charset="utf-8"
Connection: close
<?xml version="1.0" encoding="utf-8" ?>
<D:acl xmlns:D="DAV:">
<D:ace>
<D:principal>
<D:href>xxx</D:href>
</D:principal>
<D:grant>
<D:privilege> <D:read/> </D:privilege>
</D:grant>
</D:ace>
</D:acl>
but the BEA connector forwards this to BEA as:
-- snip---
ACL /dav/testuser/foo2 HTTP/1.1
Host: localhost:80
Depth: Infinity
Content-Length: 690
Content-type: text/xml; charset="utf-8"
Connection: Keep-Alive
WL-Proxy-SSL: false
WL-PATH-TRIM: /
WL-Proxy-Client-IP: 127.0.0.1
Proxy-Client-IP: 127.0.0.1
X-Forwarded-For: 127.0.0.1
X-WebLogic-Force-JVMID: unset
... which of course times out since the body is not sent but CL is (correctly) specified.
We have to ship our product with a separate apache module which changes all methods to a POST, then stuffs the real method in a header. Then in our special servlet that we ship just for BEA, we extract the real method from the header and use it instead of the POST in the ServletRequest.
Can someone with karma at BEA file this bug? Other methods with bodies that I suspect will probably fail include OPTIONS, PROPPATCH, & PROPFIND. I also verified that arbitrary (ie non-RFC'd) http methods will fail to transmit a body as well.
Our last customer who used our application with BEA was supposed to open a bug about this via standard support means but I don't have any record of it ever being done.
Thanks,
KeithHi. Please send me an email address and I'll do what I can.
j
o
e
b
e
a
c
o
m
Keith Wannamaker wrote:
I'd like to open a bug regarding the Apache connector. We first ran into it back in 7.0 and I just confirmed today it still exists in 8.1 (at least Apache 2.0/win32).
The bug is that the connector only forwards bodies for a subset of HTTP methods, so Webdav, for instance, is unusable via the connector.
For instance, the ACL method, RFC 3744, when sent to apache looks similar to
--- snip --
ACL /dav/testuser/foo2 HTTP/1.1
Host: localhost:80
Depth: Infinity
Content-Length: 690
Content-type: text/xml; charset="utf-8"
Connection: close
<?xml version="1.0" encoding="utf-8" ?>
<D:acl xmlns:D="DAV:">
<D:ace>
<D:principal>
<D:href>xxx</D:href>
</D:principal>
<D:grant>
<D:privilege> <D:read/> </D:privilege>
</D:grant>
</D:ace>
</D:acl>
but the BEA connector forwards this to BEA as:
-- snip---
ACL /dav/testuser/foo2 HTTP/1.1
Host: localhost:80
Depth: Infinity
Content-Length: 690
Content-type: text/xml; charset="utf-8"
Connection: Keep-Alive
WL-Proxy-SSL: false
WL-PATH-TRIM: /
WL-Proxy-Client-IP: 127.0.0.1
Proxy-Client-IP: 127.0.0.1
X-Forwarded-For: 127.0.0.1
X-WebLogic-Force-JVMID: unset
... which of course times out since the body is not sent but CL is (correctly) specified.
We have to ship our product with a separate apache module which changes all methods to a POST, then stuffs the real method in a header. Then in our special servlet that we ship just for BEA, we extract the real method from the header and use it instead of the POST in the ServletRequest.
Can someone with karma at BEA file this bug? Other methods with bodies that I suspect will probably fail include OPTIONS, PROPPATCH, & PROPFIND. I also verified that arbitrary (ie non-RFC'd) http methods will fail to transmit a body as well.
Our last customer who used our application with BEA was supposed to open a bug about this via standard support means but I don't have any record of it ever being done.
Thanks,
Keith -
When to use the new file based content repository
In Service Pack 4 there's a new implementation of the CMSPI interfaces which is configured by using the following implementation class:
com.bea.content.spi.internal.FileSystemRepositoryImpl
When should one use this new file based repository versus the existing one (configured by using the following class: com.bea.content.spi.internal.RepositoryImpl).
I've read the edocs, but it doesn't state when to use this new one compared to the previous implementation.
We consider using a third party content repository, but for the time being we will use the content repository provided by BEA.
Trond Andersen, Invenia AS, +4798290811use the new keyword when you don't have an instance of that object in memory that you want to use. For example...
if you have an object already in memory that is holding a property with a "CamelQuery" object, then you can say
var query = myobject.Query;
however, if you have to write the query, or instantiate the object from nothing, then you need to use the "new" keyword. A good example is SPSite object...
if you can get a new SPSite object by either "newing one up and passing the URL" or getting the farm and getting a site from that object.
using(SPSite site = new SPSite("url to my site"))
now I can use site.
//or
SPSite = myWebApp.Sites[0];
// this gives you site at index 0 of current webApp
most of the time in SharePOint you will be using the "new" keyword to open site collections, and then getting your subsites from there. BE CAREFUL using the "new" keyword. If you "new" up an object that is iDisposable... you
MUST dispose of that, but if you use that same object but it comes from the "current context", you mustn't dispose of it.
//dispose of this by using statement
using(SPSite site = new SPSite(<url>))
//do stuff
//after this bracket it is disposed.
//do not dispose of this:
SPSite mysite = SPContext.Current.Site;
//unpredictable behavior can occur because you will still need references to your current site.
Maybe you are looking for
-
Can't turn up the volume on more than one podcast ITunes 11.1.1
This also happened in Itunes 11.1 but when I am in list view and select all podcasts to set the volume between 95 and 100 percent when I choose Get Info a message comes up, "Your selection contains more than one kind of media. All items must be the
-
I converted a PDF document to word. How do I unlock this document for editing?
How do I unlock a document for editing if it is in read only form?
-
How to test the RFC to Flat File scenario
Hi, How to test the RFC to Flat File scenario regards, kiran
-
Is there an easy way to identify which song did not sync correctly? I have performed a sync three times and problem remains. Thank you.
-
InDesign Serious Error, Crashing
I was working on an InDesign file and the program suddenly shut down. When I attempted to reopen, it immediately crashed and gave me the message that a serious error has occurred. I have tried deleting preferences from my Library, made sure I'm using