Getting com.bea.content.expression.ExpressionHelper$ParseException:
Hi when i am doing search operation from controller in weblogic portal 10.2 i am getting the following error.
[line=1,col=6] line 1:6: unexpected token: null
at com.bea.content.expression.ExpressionHelper.convertException(ExpressionHelper.java:1796)
at com.bea.content.expression.ExpressionHelper.parse(ExpressionHelper.java:306)
at com.bea.content.expression.Search.<init>(Search.java:399)
at com.collabera.wiki.SearchResults.SearchResultsController.searchResults(SearchResultsController.java:78)
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)
at org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(FlowController.java:879)
at org.apache.beehive.netui.pageflow.FlowController.getActionMethodForward(FlowController.java:809)
at org.apache.beehive.netui.pageflow.FlowController.internalExecute(FlowController.java:478)
at org.apache.beehive.netui.pageflow.PageFlowController.internalExecute(PageFlowController.java:306)
at org.apache.beehive.netui.pageflow.FlowController.execute(FlowController.java:336)
at org.apache.beehive.netui.pageflow.internal.FlowControllerAction.execute(FlowControllerAction.java:52)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.access$201(PageFlowRequestProcessor.java:97)
at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor$ActionRunner.execute(PageFlowRequestProcessor.java:2044)
at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionInterceptors$WrapActionInterceptorChain.continueChain(ActionInterceptors.java:64)
at org.apache.beehive.netui.pageflow.interceptor.action.ActionInterceptor.wrapAction(ActionInterceptor.java:184)
at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionInterceptors$WrapActionInterceptorChain.invoke(ActionInterceptors.java:50)
at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionInterceptors$WrapActionInterceptorChain.continueChain(ActionInterceptors.java:58)
at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionInterceptors.wrapAction(ActionInterceptors.java:87)
at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processActionPerform(PageFlowRequestProcessor.java:2116)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:556)
at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:853)
at org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:631)
at org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:158)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at org.apache.beehive.netui.pageflow.PageFlowUtils.strutsLookup(PageFlowUtils.java:1199)
at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.executeAction(ScopedContentCommonSupport.java:686)
at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.processActionInternal(ScopedContentCommonSupport.java:142)
at com.bea.portlet.adapter.scopedcontent.PageFlowStubImpl.processAction(PageFlowStubImpl.java:106)
at com.bea.portlet.adapter.NetuiActionHandler.raiseScopedAction(NetuiActionHandler.java:111)
at com.bea.netuix.servlets.controls.content.NetuiContent.raiseScopedAction(NetuiContent.java:181)
at com.bea.netuix.servlets.controls.portlet.events.FirePageFlowActionDecorator.handleEvent(FirePageFlowActionDecorator.java:101)
at com.bea.netuix.events.manager.EventManager.doFireEvents(EventManager.java:282)
at com.bea.netuix.events.manager.EventManager.fireEvents(EventManager.java:217)
at com.bea.netuix.nf.ControlLifecycle$4.postVisitRoot(ControlLifecycle.java:324)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:341)
I am using following code in my controller (i.e SearchResultController.jpf)
I have hardcoded string value (i.e SearchString)
Search search = new Search("SearchString");
search.setUseCache(false);
// Do the search using the ISearchManager.
ISearchManager searchManager = ContentManagerFactory.getSearchManager();
ContentContext ctx= new ContentContext(getRequest());
ctx.setParameter( ICMPagedResult.PAGE_SIZE_KEY, new Integer(5) ); // use pages of size 5
// find the search results
ISortableFilterablePagedList<Node> resultList = searchManager.search(ctx, search);
CMPagedResultFactory<Node> pagedResultFactory= new CMPagedResultFactory<Node>();
ICMPagedResult<Node> pagedResults= pagedResultFactory.createPagedResult( ctx, resultList );
Kindly tell me what is wrong.
Also How will i use Expression in case of String
Hi greg
thanks for the reply.
i got something about Search class. But i am again back to zero as i am not getting any search results.
Following is the code i am using in controller class
String keywordVal= "searchString";
IMetadataQuery mQuery = FullTextQueryFactory.getMetadataQuery();
ITextQuery tQuery = FullTextQueryFactory.getTextQuery();
IFullTextSearch fts = FullTextSearchFactory.buildFullTextSearch(
null, /*mQuery.buildContains("*", new String[]{keywordVal}) Metadata query parameter, match any field with the given string */
tQuery.buildEquals(keywordVal), /* Text query parameter, match binary content with the given string */
true /* isOr */);
//create the search path
String repositoryPath = PathHelper.SEPARATOR + "BEA Repository";
//create the search object
Search search = new Search(repositoryPath, -1, null, fts, true );
// Do not use the global search cache.
search.setUseCache(false);
// Do the search using the ISearchManager.
ISearchManager searchManager = ContentManagerFactory.getSearchManager();
ContentContext ctx= new ContentContext(getRequest());
ctx.setParameter( ICMPagedResult.PAGE_SIZE_KEY, new Integer(5) ); // use pages of size 5
// find the search results
ISortableFilterablePagedList<Node> resultList = searchManager.search(ctx, search);
CMPagedResultFactory<Node> pagedResultFactory= new CMPagedResultFactory<Node>();
ICMPagedResult<Node> pagedResults= pagedResultFactory.createPagedResult( ctx, resultList );
iterator = resultList.iterator();
// We will forward the payload along. This is currently used by the displayResults portlet.
// The displayResults portlet listens for the pageflow action "findResults". In response it fires
// its own pageflow action which will display the results.
return new Forward("success");
and i have also changed something in content-config.xml which looks something like this: -
<?xml version="1.0" encoding="UTF-8"?>
<content-config xmlns="http://www.bea.com/ns/portal/90/content-config">
<!-- This is a default content repository applications can use.
The IDE should copy this to META-INF/content-config.xml of the
application.
This repository is not required for WLP services, so you can remove
it or change it as needed. -->
<content-store>
<name>BEA Repository</name>
<description>Default Content Repository Configuration</description>
<class-name>com.bea.content.spi.internal.ExtendedRepositoryImpl</class-name>
<repository-property>
<description>Data source to use.</description>
<name>CM_DATA_SOURCE</name>
<value>contentDataSource</value>
</repository-property>
<!--<repository-property>
<description></description>
Run additional checks against search criteria searchValidation
<name>cm_fireRepositoryEvents</name>
<value>true</value>
</repository-property>
-->
<repository-property>
<description>Enable repository events for full-text search.</description>
<name>cm_fireRepositoryEvents</name>
<value>true</value>
</repository-property>
<repository-property>
<description>Library Services Enabled</description>
<name>MANAGEMENT_ENABLED</name>
<value>true</value>
</repository-property>
<read-only>false</read-only>
<binary-cache-max-entry-size>1024</binary-cache-max-entry-size>
<!-- metadata search -->
<search-is-enabled>true</search-is-enabled>
<!-- full text search -->
<fulltext-search-is-enabled>true</fulltext-search-is-enabled>
<search-indexing-is-enabled>true</search-indexing-is-enabled>
</content-store>
</content-config>
Kindly tell me if i have to change anything somewhere else.
because from this code i am not getting any results
thanks
Ankur
Similar Messages
-
FullTextSearch giving an exception com.bea.content.RepositoryException:
Hi all,
I'm trying to search a repository with libraries enabled using Full text search.
the code is
queryExpression= this.mQuery.buildContains(IMetadataQuery.SystemProperty.cm_objectClass,new String[]{"Article"});
IFullTextSearch expression = FullTextSearchFactory.buildFullTextSearch(queryExpression, null, true);
Search search = new Search(path, 10000, sort, expression,true);
ISortableFilterablePagedList<Node> results = searchManager.search(context, search);
and when the search is perfomed with searchManager.search it throws me the following Exception:
com.bea.content.RepositoryException: The Type is not specified in the query, so sorting on user-defined properties cannot be performed.
at com.bea.content.repo.internal.server.logic.search.AutonomyExpression.setSortParameters(AutonomyExpression.java:451)
at com.bea.content.repo.internal.server.logic.search.AutonomyClient46.executeQuery(AutonomyClient46.java:88)
at com.bea.content.repo.internal.server.logic.SearchOpsLogic.fullTextSearch(SearchOpsLogic.java:195)
at com.bea.content.repo.internal.server.logic.SearchOpsLogic.search(SearchOpsLogic.java:146)
at com.bea.content.repo.internal.server.bean.SearchOpsBean.search(SearchOpsBean.java:76)
at com.bea.content.repo.internal.server.bean.RepoSearchOps_xxpfs2_ELOImpl.search(RepoSearchOps_xxpfs2_ELOImpl.java:220)
at com.bea.content.spi.internal.SearchOpsImpl.search(SearchOpsImpl.java:89)
at sun.reflect.GeneratedMethodAccessor677.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.bea.content.manager.internal.delegate.LatestInterfaceVersionWrapper.invoke(LatestInterfaceVersionWrapper.java:57)
at $Proxy64.search(Unknown Source)
at com.bea.content.manager.internal.delegate.LatestSearchOpsDelegate.search(LatestSearchOpsDelegate.java:47)
at com.bea.content.manager.internal.SearchOpsImpl.searchRepository(SearchOpsImpl.java:231)
at com.bea.content.manager.internal.SearchOpsImpl.search(SearchOpsImpl.java:167)
at com.bea.content.federated.internal.itemloader.NodeSearchItemLoader.fetchItemIdentifiers(NodeSearchItemLoader.java:74)
at com.bea.content.paging.internal.OnDemandQueryProcessorImpl.initializeItemIdsIfNeeded(OnDemandQueryProcessorImpl.java:90)
at com.bea.content.paging.internal.OnDemandQueryProcessorImpl.fetchItems(OnDemandQueryProcessorImpl.java:330)
at com.bea.content.paging.internal.DirectAccessQueryProcessor.fetchItems(DirectAccessQueryProcessor.java:111)
at com.bea.content.paging.internal.ItemLoadingAdapter.fetchItemsImpl(ItemLoadingAdapter.java:237)
at com.bea.content.paging.internal.ItemLoadingAdapter.fetchItems(ItemLoadingAdapter.java:126)
at com.bea.content.paging.internal.ItemLoadingAdapter.initialize(ItemLoadingAdapter.java:97)
at com.bea.content.paging.internal.PagedListImpl.<init>(PagedListImpl.java:100)
at com.bea.content.federated.internal.SearchManagerImpl.search(SearchManagerImpl.java:60)
Any ideas????
Any help is very appreciated.
Regards, ArmandoSearch search = new Search(path, 10000, sort, expression,true);
What is sort in this? this could either be string or SortCriteria object, or null. I think your query is failing here.
Hope it helps -
i am getting this error while deploying my application containing ejbs: -
java.lang.NoClassDefFoundError: Class not found: <b>com.bea.content.repo.i18n.FileRepoExceptionTextFormatter</b>
Can some on one please tell me which jar contains this class. Thankx.
Regards,
Yazad Khambata.;-)i got same error,expecting answer。。。。。。
-
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) -
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 -
Bea.p13n.expression.Expression
Is the BEA implemetation class for Expression thread safe?
Hi, Brian:
I looked around and I think the WLP 7.0 version of this
documentation inadvertently didn't make it into the online
docs, as far as I can tell. It will be there for SP1 (which
I think is coming soon, but I don't have a date for you).
I found the equivalent reference from the WLP 4.0 docs at:
http://e-docs.bea.com/wlp/docs40/p13ndev/content.htm#1070816
This appears to be roughly the same document as the internal
doc I found that should be on the edocs site for WLP 7.0. As
you'll notice, the edoc references the javadoc, which references
the edoc. :) But there is non-overlapping (and more detailed)
information in the edoc, which is probably what you want. Sorry
about the missing doc.
Wayne
"Brian Remmington" <[email protected]> wrote:
>
I'm looking for a definition of the query language used by WLP for content
searching,
but can't find it anywhere.
There's a little about it in the javadoc for the com.bea.p13n.content.expression.ExpressionHelper#parse(String)
method, but this refers to the Personalization Server documentation for
a full
definition. Unfortunately I can't find this documentation.
Can anyone help?
Thanks
Brian -
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> -
Hi,
I am getting below exceptions in weblogic portal 10.3.5 which is upgraded from 10.3.4 portal. I have a datasync project .when try to run from workshop(eclipse IDE) getting below error.
com.bea.p13n.servlets.jsp.JspException: DivTag: The retrieved advice is incomplete. See the processing error list for more information.
com.bea.p13n.advisor.internal.AdviceImpl@299d48
Identifier: 1377808035572
Complete: true
Last Result: null
ProcessingError List:
(1) com.bea.p13n.advisor.internal.ProcessingErrorImpl@1504ee
Description: Exception evaluating ruleset.
Source: com.bea.p13n.rules.advislets.RulesAdvisletImpl@e6d518
Advisor: com.bea.p13n.advisor.internal.AdvisorImpl@b04a4e
Metadata: com.bea.p13n.common.internal.MetadataImpl@1de62ee
Name: UnmappedRulesAdvislet
Description: Advislet that can evalaute a ruleset and return the instantiated objects.
Author: BEA Systems
Version: com.bea.p13n.common.internal.VersionImpl@13130a2 Description: WLP 9.2 Number: 9.2, Build Number 1.
Parameters: {ruleset-name=/segments/GlobalClassifications.rls, ignore-rule-name=false}
User data: null
Exception: com.bea.p13n.rules.manager.RuleSetNotFoundException: The rule set with URI /segments/GlobalClassifications.rls could not be located by the class named com.bea.p13n.rules.manager.internal.RuleSetPersistenceManager.
at com.bea.p13n.rules.manager.internal.RuleSetPersistenceManager.getRuleSet(RuleSetPersistenceManager.java:408)
at com.bea.p13n.rules.manager.internal.ContextPool.<init>(ContextPool.java:149)
at com.bea.p13n.rules.manager.internal.ContextPoolFactory.getContextPool(ContextPoolFactory.java:214)
at com.bea.p13n.rules.manager.internal.RulesManagerImpl.getContext(RulesManagerImpl.java:480)
at com.bea.p13n.rules.manager.internal.RulesManagerImpl.evaluate(RulesManagerImpl.java:353)
at com.bea.p13n.rules.manager.internal.RulesManagerImpl.evaluateRule(RulesManagerImpl.java:194)
at com.bea.p13n.rules.manager.internal.RulesManager_jswjkk_EOImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
at com.bea.p13n.rules.manager.internal.RulesManager_jswjkk_EOImpl.evaluateRule(Unknown Source)
at com.bea.p13n.rules.advislets.RulesAdvisletImpl.getAdvice(RulesAdvisletImpl.java:190)
at com.bea.p13n.advisor.internal.AdvisorImpl.getAdvice(AdvisorImpl.java:74)
at com.bea.p13n.advisor.internal.CompoundAdvisletImpl.getAdvice(CompoundAdvisletImpl.java:88)
at com.bea.p13n.advisor.internal.AdvisorImpl.getAdvice(AdvisorImpl.java:74)
at com.bea.p13n.advisor.internal.EjbAdvisorImpl.getAdvice(EjbAdvisorImpl.java:62)
at com.bea.p13n.advisor.internal.EjbAdvisor_t707wa_EOImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
at com.bea.p13n.advisor.internal.EjbAdvisor_t707wa_EOImpl.getAdvice(Unknown Source)
at com.bea.p13n.servlets.jsp.taglib.DivTag.includeBody(DivTag.java:103)
at com.bea.p13n.servlets.jsp.taglib.DivTag.doStartTag(DivTag.java:169)
at jsp_servlet._portlets._footerlinks.__footerlinks._jspService(__footerlinks.java:247)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at org.apache.beehive.netui.pageflow.PageFlowPageFilter.continueChainNoWrapper(PageFlowPageFilter.java:455)
at org.apache.beehive.netui.pageflow.PageFlowPageFilter.runPage(PageFlowPageFilter.java:432)
at org.apache.beehive.netui.pageflow.PageFlowPageFilter.doFilter(PageFlowPageFilter.java:284)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at com.bea.netuix.servlets.filters.IncludeSecurityFilter.doFilter(IncludeSecurityFilter.java:103)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:524)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:444)
at com.bea.netuix.servlets.controls.content.JspContent.beginRender(JspContent.java:558)
at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:485)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:399)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:352)
at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:326)
at com.bea.netuix.nf.UIControl.render(UIControl.java:582)
at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:488)
at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:152)
at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag(RenderChild.java:62)
at jsp_servlet._framework._skeletons._ceoportal.__flowlayout._jspService(__flowlayout.java:139)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:183)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:526)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:444)
at com.bea.netuix.servlets.controls.application.laf.JspTools.renderJsp(JspTools.java:148)
at com.bea.netuix.servlets.controls.application.laf.JspControlRenderer.beginRender(JspControlRenderer.java:72)
at com.bea.netuix.servlets.controls.application.laf.PresentationControlRenderer.beginRender(PresentationControlRenderer.java:65)
at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:481)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:399)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:352)
at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:326)
at com.bea.netuix.nf.UIControl.render(UIControl.java:582)
at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:488)
at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:152)
at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag(RenderChild.java:62)
at jsp_servlet._framework._skeletons._ceoportal.__gridlayout._jspService(__gridlayout.java:357)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:183)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:526)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:444)
at com.bea.netuix.servlets.controls.application.laf.JspTools.renderJsp(JspTools.java:148)
at com.bea.netuix.servlets.controls.application.laf.JspControlRenderer.beginRender(JspControlRenderer.java:72)
at com.bea.netuix.servlets.controls.application.laf.PresentationControlRenderer.beginRender(PresentationControlRenderer.java:65)
at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:481)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:399)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:208)
at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:162)
at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:465)
at com.bea.netuix.servlets.manager.UIServlet.processControlTree(UIServlet.java:373)
at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:993)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at com.bea.content.manager.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:178)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:336)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at com.bea.portal.tools.servlet.http.HttpContextFilter.doFilter(HttpContextFilter.java:60)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:336)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3729)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3695)
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:2285)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2184)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1459)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)The following document describes about how datasync data is deployed in various scenarios.
http://download.oracle.com/docs/cd/E13218_01/wlp/docs100/prodOps/preparing.html#wp1029497
Assuming you are making use of workshop for creating the user segment and deploying to a single server which is in development mode, I would recommend you check if you have hit any OOM issues on the server or not, and try restarting the server, and redeploying your app. Generally this should resolve the issue.
If the server to which you are deploying is running in production mode / deploying as an EAR then the above referred doc will guide you on the next steps. -
Re-Indexing BEA Content - SecurityServiceManager not yet initialized
We've recently upgraded from Weblogic 9.2 to 10.2. The upgrade was successful and everything is running fine, except indexing search content. We followed the instructions here:
[url http://edocs.bea.com/wlp/docs100/search/searchProduction.html]
After running index_cm_data.sh, we keep getting the following error:
<ERROR>: Indexing failed. Please use -help for more info.
weblogic.security.service.NotYetInitializedException: [Security:090392]SecurityServiceManager not yet initialized.
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.getSecurityService(Unknown Source)
at weblogic.security.service.SecurityServiceManager.getSecurityService(Unknown Source)
at weblogic.security.service.SecurityServiceManager.getPrincipalAuthenticator(Unknown Source)
at weblogic.security.services.Authentication.login(Authentication.java:69)
at weblogic.security.services.Authentication.login(Authentication.java:51)
at com.bea.p13n.security.Authentication.authenticate(Authentication.java:237)
at com.bea.content.indexer.IndexerRunner.index(IndexerRunner.java:311)
at com.bea.content.indexer.IndexerRunner.main(IndexerRunner.java:931)We'd be very grateful if anyone could direct us to a possible solution.
Edited by mirzaei at 04/21/2008 1:45 AMWe removed p13n_app.jar from the classpath and presto, it works.
-
Content Express and WLPS 3.5
Hi,
We are having a hard time trying to retrieve content not from the WLPS tables
but from Interwoven Content Express new content table, do you have any idea on
wish steps should we follow to achieve this?
Thanx in advanced!!Hi,
This is Prashanth Bhat,based out of Delhi,India.Iam trying to
integrate Content Express with WEBLOGIC PORTAL 4.0.If u have done any integration
with Interwoven's Content Express,pls tell
me the steps (critical ones)to follow.Even if u have integrated
with WLCS 3.5,its fine.
Iam facing these problems after installing the Content Express
1.I could able to deploy the Content Express web application with
portal by modyfying the config.xml file.
2.I could even able to get the page if i access
http://localhost:7501/ContentExpress/Login.
3.The login page appears, but could not get into the content express system.
Pls help me in completing my task.
Thanks in advance,
PRASHANTH BHAT.
"Gerardo Jimenez" <[email protected]> wrote:
>
Hi,
We are having a hard time trying to retrieve content not from the WLPS
tables
but from Interwoven Content Express new content table, do you have any
idea on
wish steps should we follow to achieve this?
Thanx in advanced!! -
Email in BEA Content Management Portlet
I would like to send an email when the user check in content and changes status to Ready for approval. How can I do this?
I would say use content selector. In the query, filter for author's content (here you may need user segment).
Since content selector are capable of displaying more than one content, you should be able to display all author's content. (Use <pz:contentSelector> and <es:forEachInArray> tags).
Since you need to do take user to some other page where he can approve/reject. Embed all the content between a <netui:form../> tag implement appropriate action, your jsp should look like below.
<b><netui:form action="takeAction" >
<pz:contentSelector id="nodes" rule="classic" />
<es:forEachInArray array="<%=nodes%>" id="node" type="com.bea.content.Node" >
<img src=<%=request.getContextPath() + "/ShowBinary" + node.getPath()%> >
<input type="hidden" name="some-content-param" value="<%=some content param value%>"/>
</es:forEachInArray>
</netui:form></b>
In the next page author will take some action, use email control to send email.
Thanks
Srini Vankadaru -
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 -
Get an instance of com.bea.p13n.http.Request in Rolemapper
In my portal project I wrote a Rolemapper, and because
of dynamic nature of role computation for portal
resources, I need to access portal resources and classes
in RoleMapper, P13nResource is available as type of
"Resource", also I am able to get an instance of
"EntitlementRequest" from "P13nContextHandler" which is
of type "ContextHandler", but the attributes of
EntitlementRequest are where I am having problem.
Here's the code snippet from my rolemapper ...
public Map getRoles (Subject subject,Resource resource,
ContextHandler handler)
if(resource instanceof P13nResource)
EntitlementRequest ereq=
com.bea.p13n.entitlements.common.EntitlementRequest)
handler.getValue(
EntitlementConstants.PREDICATE_ENT_REQUEST);
for(int i=0;i<ereq.getAttributes();i++)
Object obj=ereq.getAttributes(); //runs fine
//following code crashes the application without
//the stack trace
if(obj instanceof com.bea.p13n.http.Request)
//some work here
else if(obj instanceof com.bea.p13n.http.Session)
//some work here
I have seen interesting scenarios from intellij
debugger window connected remotely to weblogic server,
showing me the instance of "obj" mentioned in code
exactly of the type I am checking as instanceof, it
beats me now, any help would be appreciated.
Thanks.>Good news folks, I have finally managed to solve the problem using reflection. I can now rest in peace.
-
Getting A com.bea.control.ServiceControlException When Calling External WS
Here is a little background.
Running WLI 8.1.5
Created a jcx/control from an external WSDL
Using the control to call the external WS.
However, in WLI my JPD just freezes/hangs for a few mins and returns the following exception.
Exception : java.lang.ClassCastException: com.bea.control.ServiceControlException
There is no record of my JPD hitting the external WS (checked logs on that side).
Any ideas on what could be causing this?
rluc.Hello,
which version of WLP ?
Please check certificates expiration date in the consumer and producer domains :
security realms/myrealm/Providers/ >SAMLIdentityAsserter >Management >ap_00001 > Certificates/wsrpconsumerrsa
check the expiration date (Valid To)
Summary of Security Realms >myrealm >Providers > Credential Mapping /SAMLCredentialMapper/Management/Certificates/wsrpconsumerrsa
check the expiration date (Valid To)
Emmanuel -
Getting the document content in a variable??
Hi,
How can I get the entire contents of a document into a string variable? I donot
want to print the contents inline but rather have to get them in a variable. Using
printDoc or printProperty tag?? I guess I will have to use printDoc but then how
can I stop the contents from being displayed in the jsp and how can I put them
in a variable??
Please help me...
Thanx.
PriruaYou should always double-check code put on the newsgroups, even if it's
put there by me :)
It probably should be at the beginning:
<es:forEachInArray array="<%=docs%>" id="adoc"
type="com.bea.p13n.content.document.Document">
<%
byte[] bytes = adoc.getContentBlock(0L, -1L);
Notice 'byte[]' instead of 'bytes[]', the type specified as Document
(Content doesn't have the getContentBlock() method, the sub-interface
Document does), and the 'L's on the numbers to specify that they are
longs to help the compiler find the correct method.
Greg
Prirua wrote:
Hi,
Thanx for your propmt reply. My code looks somethinglike this
<es:forEachInArray array="<%=docs%>" id="adoc" type="com.bea.p13n.content.Content"
<%
bytes[] bytes = adoc.getContentBlock(0, -1); // retrieve all the content
String enc = adoc.getPropertyAsString(null, "encoding");
String str = null;
if (enc != null)
str = new String(bytes, 0, bytes.length, enc);
else // use VM default encoding
str = new String(bytes);
%>
<li>The document title is: <cm:printProperty id="adoc" name="Title" encode="html"
/>
</es:forEachInArray>
But it is giving me these two errors...
C:\bea\wlportal4.0\applications\portal\MyPortal\WEB-INF\_tmp_war_portalDomain_po
rtalServer_MyPortal\jsp_servlet\_portlets\__contentq.java:152: cannot resolve
sy
mbol
symbol : class bytes
location: class jsp_servlet._portlets.__contentq
bytes[] bytes = adoc.getContentBlock(0, -1); // retrieve
all the content //[ /portlets/contentQ.jsp; Line: 19]
^
C:\bea\wlportal4.0\applications\portal\MyPortal\WEB-INF\_tmp_war_portalDomain_po
rtalServer_MyPortal\jsp_servlet\_portlets\__contentq.java:152: cannot resolve
sy
mbol
symbol : method getContentBlock (int,int)
location: interface com.bea.p13n.content.Content
bytes[] bytes = adoc.getContentBlock(0, -1); // retrieve
all the content //[ /portlets/contentQ.jsp; Line: 19]
^
2 errors
Could you plz specify if I have to include some file or something ?
Thanx.
Gregory Smith <[email protected]> wrote:
You will need to call the getContentBlock() method on the Document
object to retrieve the bytes of the document's content. Then, you do
whatever you need to with the bytes. When converting it to a String,
you
should be aware of double-byte-character encodings, and should check
the
Document's encoding metadata attribute, e.g.:
<%
bytes[] bytes = doc.getContentBlock(0, -1); // retrieve all the content
String enc = doc.getPropertyAsString(null, "encoding");
String str = null;
if (enc != null)
str = new String(bytes, 0, bytes.length, enc);
else // use VM default encoding
str = new String(bytes);
%>
In 8.1, the new <cm:getProperty> is able to retrieve the BinaryValue
of
a binary property of a Node.
Greg
Prirua wrote:
Hi,
How can I get the entire contents of a document into a string variable?I donot
want to print the contents inline but rather have to get them in a variable.Using
printDoc or printProperty tag?? I guess I will have to use printDocbut then how
can I stop the contents from being displayed in the jsp and how canI put them
in a variable??
Please help me...
Thanx.
Prirua
Maybe you are looking for
-
MD04 - Delivery Date shown as per 1st schedule line in Purchase order
HI , we have an issue in one of our client related to Purchase order .see detials below. we have maintained the configuration " E " under STO configuration with the combinaiton of Purchase order type , Delivery type ,Checking Rule . SPRO = Material M
-
HT201335 How to I watch video from AmZon on Apple TV
I have prime membership on Amazon.com. How to I watch their movies on Apple TV?
-
Fan replacement for Neo2Plat chipset
Ok I just cannot hear anymore the whisper sound of this fan...hiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii iiiiiiiiiiiiiiiiii Anyone know a passive cooling that works on the MSI? I need to shut it down because I'm becoming crazy. All my system is silent but rea
-
Multiple people at my office have and use Dreamweaver 8. When I go to delete a file on the local site, I am prompted if there are links to it elsewhere in the site. However, other people at my office are not given the same prompt. I am sure it is som
-
Object link to STKO_DOC cannot be changed
Hi Guys, I have created document with application winword 6.0 and attached word document, while in changemode trying to acesess object links in BOM HEADER and BOM ITEM are in grey filled and for rest of all links I can able to Give Input Document t