CacheStore access to binary value in store/storeAll

What is the best way to get the raw binary value of the entry(ies) in a store/storeAll CacheStore method?

Hi Jk,
Thanks. This is actually what i had been trying without any success (although i mistakenly said BinaryStoreCacheStore rather than BinaryEntryStore in the post above). When the BinaryEntryStore.store is called, i try and convert just the key back to object with:
Object o = ExternalizableHelper.fromBinary(paramBinaryEntry.getBinaryValue());
but like i mentioned above, this throws the following as it seems to think the binary is not pof.
java.io.StreamCorruptedException: invalid type: 171
     at com.tangosol.util.ExternalizableHelper.fromBinary(ExternalizableHelper.java:266)
     at com.tangosol.util.ExternalizableHelper.fromBinary(ExternalizableHelper.java:230)
     at com.b.p.coherence.cacheStore.DatabaseCacheStore.store(DatabaseCacheStore.java:139)
     at com.tangosol.net.cache.ReadWriteBackingMap$BinaryEntryStoreWrapper.storeInternal(ReadWriteBackingMap.java:6035)
     at com.tangosol.net.cache.ReadWriteBackingMap$StoreWrapper.store(ReadWriteBackingMap.java:4814)
     at com.tangosol.net.cache.ReadWriteBackingMap.putInternal(ReadWriteBackingMap.java:1236)
     at com.tangosol.net.cache.ReadWriteBackingMap.put(ReadWriteBackingMap.java:745)
thanks

Similar Messages

  • Binary values corrupted in Content Manager

    Hello,
    When I copy and paste (or move) a content that has a property binary, in the second instance (the copy) these properties are corrupted. When I try to access to these properties, I receive the next exception:
    com.bea.content.RepositoryException: No binary value could be found for property.
    I'm working with WLPortal 10.3.
    Is this a bug of Portal?
    Is there any way to do this and the data are not corrupted?
    Thanks.

    When I copy or move there isn't exception, but when I access to the binary property of copy, it log this exception:
    An error occurred while attempting to download the file. Use the browser back button to continue working.
    com.bea.content.RepositoryException: No binary value could be found for property. Repository: catsrv Repository Property ID: 510536002/Docu_relacionada.archivo/510540053 at com.bea.content.manager.internal.InternalNodeOpsBean.getPropertyBytes(InternalNodeOpsBean.java:1853) at com.bea.content.manager.internal.InternalNodeOpsBean.getPropertyBytes(InternalNodeOpsBean.java:2023) at com.bea.content.manager.internal.NodeOpsEJB_ihurl6_ELOImpl.getPropertyBytes(NodeOpsEJB_ihurl6_ELOImpl.java:181) at com.bea.content.manager.internal.NodeOpsImpl.getPropertyBytes(NodeOpsImpl.java:748) at com.bea.content.federated.internal.NodeManagerImpl.getStream(NodeManagerImpl.java:990) at com.bea.portal.tools.content.controls.ContentNodeControlImpl.getStream(ContentNodeControlImpl.java:281) at com.bea.portal.tools.content.controls.ContentNodeControlBean.getStream(ContentNodeControlBean.java:1223) at content.node.nodeSelected.download.DownloadContentController.begin(DownloadContentController.java:184) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at 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 global.internal.AbstractBaseController.internalExecute(AbstractBaseController.java:360) 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.wrapAction(ActionInterceptors.java:91) 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 javax.servlet.http.HttpServlet.service(HttpServlet.java:707) 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:292) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at com.bea.jsptools.servlet.PagedResultServiceFilter.doFilter(PagedResultServiceFilter.java:82) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:336) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:503) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:251) at org.apache.beehive.netui.pageflow.internal.DefaultForwardRedirectHandler.forward(DefaultForwardRedirectHandler.java:128) at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.doForward(PageFlowRequestProcessor.java:1801) at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processPageFlowRequest(PageFlowRequestProcessor.java:741) at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:474) 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 javax.servlet.http.HttpServlet.service(HttpServlet.java:707) 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:292) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at com.bea.jsptools.servlet.PagedResultServiceFilter.doFilter(PagedResultServiceFilter.java:82) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at com.bea.portal.tools.servlet.http.HttpContextFilter.doFilter(HttpContextFilter.java:60) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:336) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3502) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(Unknown Source) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2186) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2092) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

  • Issues storing binary values

    Hi,
    I am desperately trying to store userCertificate or cACertificate attributes on an OpenLDAP server. I always end up with following exception:
    javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - cACertificate;binary: value #0 invalid per syntax]; remaining name 'cn=1234,�'
    The code I am using looks like this:
    Attributes attrs = new BasicAttributes(true);
    Attribute objclass = new BasicAttribute("objectclass");
    objclass.add("top");
    objclass.add("applicationProcess");
    objclass.add("pkiCA");
    attrs.put(objclass);
    byte[] certBuf = new byte[] {1,2,3,4,5};
    BasicAttribute cert = new BasicAttribute("cACertificate;binary", certBuf);
    attrs.put(cert);
    Context result = _ctx.createSubcontext("cn=1234,�I assume I need the �;binary� option, as I get following exception if I don�t use it:
    javax.naming.directory.InvalidAttributeIdentifierException: [LDAP: error code 17 - cACertificate: requires ;binary transfer]; remaining name 'cn=234,�
    The very strange thing is that I have tried to add a jpegPhoto (same dummy-data as the certificate )to the LDAP server and this works fine - without the �;binary� option:
    BasicAttribute photo = new BasicAttribute("jpegPhoto", photoBuf);I don�t think that it is a matter of the JRE as I have tried version 1.4, 1.5 and 1.6. I am also not sure if it is OpenLDAPs fault because it is possible to add those Attributes by using a LDAP client (in my case LDAPStudio).
    Does anybody know this issue?
    Thanks for any help,
    Phil

    caCertificate has a well known syntax defined in X.509.
    OpenLDAP does have support for these X.509 syntaxes and will verify that the certificate you are adding to the server is valid.
    Clearly certBuf = new byte[] {1,2,3,4,5}; is not a valid certificate.
    Regards,
    Ludovic.

  • Node has binary value or not  ?

    hi ,
    how to know that particular node of repository has binary value or not .
    and how to store all file/content name who is under this node having binary value .

    Basically, you need to get the Node, get the Properties from the Node, iterate over the properties checking if any are of type Binary. If so, get the Binary Property. You can then inspect it to get the file name, if not null.
    Here's some code sample that checks for a binary property on a Version.
    Property[] props = currentVersion.getProperties();
    BinaryProperty = null;
    for(int i=0; i < props.length; i++)
    if (props.getType() == Property.BINARY)
         BinaryProperty = props[i];
         break;
    if (BinaryProperty != null)
    BinaryValue binaryPropertyValue = BinaryProperty .getValue().getBinaryValue();
    fileName = binaryPropertyValue.getName();

  • Assigning a hex value to a variable and getting binary value of a variable.

    I try to develop java programs and I need to do a conversion unicode to EBCDIC and vice versa.
    How can I assign hex values to variables to build UTF-EBCDIC and EBCDIC-UTF table and get hex or binary value of data to compare it to value of in the table?
    I did a conversion like this with PL/1 before. I do not know how can I do it with Java. Because I am new to Java.
    Thank you in advance.

    I will run java code in mainframe and java uses
    unicode for data in default and mainframe environment
    is EBCDIC. So I have to translate the data from
    unicode to ebcdic.I said I think String supports EBCDIC encoding...
    String ebcdic = new String(ebcdicBytes, "Cp500");
    http://java.sun.com/j2se/1.4.2/docs/guide/intl/encoding.doc.html

  • Need to convert a binary value into decimal

    Hi i need to convert a binary value which i would be getting as a string object to a decimal value......need code for the same

    Check Integer.parseInt
    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Integer.html#parseInt(java.lang.String,%20int)

  • How can I access the Attribute Values from the Search Region

    Hi all,
    I have a table which contains Company id, department id, and PositonId. For a particular Company and Department there may be multiple records.
    I have to pupulate a table which contains the position and other details that comes under a particular Department and Position based on the selection in the Three comboBoxes.
    Also I have to populate a select many Shuttle to add new postions and records under a particular Department.
    I created a query panel *(Search Region)* for the serch and a table to display the data. That is working fine.
    Now the issue is I am using a view criteria to populate the shuttle with two bind variables ie, DepartmentId and CompanyId.
    If the serach will return a resuktant set in the table it will also pupulate the correct records, otherwise ie, if the if the serch result is empty the corresponding iterator and the attribute is setting as null.
    SO I want to access the attribute values from the Search Region itsef to populate the shuttle.
    I don't know how can I access the data from the Search Region.
    Please Help.
    Regards,
    Ranjith

    you could access the parameters entered in search region by the user as follows:
    You can get handle to the value entered by the user using queryListener method in af:query.
    You can intercept the values entered as described
    public void onQueryList(QueryEvent queryEvent) {
    // The generated QueryListener replaced by this method
    //#{bindings.ImplicitViewCriteriaQuery.processQuery}
    QueryDescriptor qdes = queryEvent.getDescriptor();
    //get the name of the QueryCriteria
    System.out.println("NAME "+qdes.getName());
    List<Criterion> searchList = qdes.getConjunctionCriterion().getCriterionList();
    for ( Criterion c : searchList) {
    if (c instanceof AttributeCriterion ) {
    AttributeCriterion a = (AttributeCriterion) c;
    a.getValues();
    for ( Object o : a.getValues()){
    System.out.println(o.toString());
    //call default Query Event
    invokeQueryEventMethodExpression("#{bindings.ImplicitViewCriteriaQuery.processQuery}",queryEvent);
    public void onQueryTable(QueryEvent queryEvent) {
    // The generated QueryListener replaced by this method
    //#{bindings.ImplicitViewCriteriaQuery.processQuery}
    QueryDescriptor qdes = queryEvent.getDescriptor();
    //get the name of the QueryCriteria
    System.out.println("NAME "+qdes.getName());
    invokeQueryEventMethodExpression("#{bindings.ImplicitViewCriteriaQuery.processQuery}",queryEvent);
    private void invokeQueryEventMethodExpression(String expression, QueryEvent queryEvent){
    FacesContext fctx = FacesContext.getCurrentInstance();
    ELContext elctx = fctx.getELContext();
    ExpressionFactory efactory = fctx.getApplication().getExpressionFactory();
    MethodExpression me = efactory.createMethodExpression(elctx,expression, Object.class, new Class[]{QueryEvent.class});
    me.invoke(elctx, new Object[]{queryEvent});
    Thanks,
    Navaneeth

  • Get access to a value in a running while (with C++)

    Good morning,
    I have a serious problem. I run a Vi with a while loop (for acquisition). In this loop, there are many values. I want to access to them while the loop is running. The problem of my VI is it does not give me the value until the loop has not finished. But I want to acces to it before the end.
    The ultimate objective is to access to this value in a C++ code. In this code, I implemented threads. But since Labview does give me back the value until the VI has not finised... but it must never finish. What does do Labview when I call the VI with values and pointers from C++ ? Can I access to the value inside the running loop in real time ?
    Thank you for your answers.
    G.D

    I think the best design is to completely separate both components from one another and define an appropriate interface inbetween.
    One possible flavor of a design would be to have two executables (one LV, one .NET) which interface using some ethernet protocol (based on TCP or UDP). The .NET application sends commands, the LV application reacts and sends status information.
    Example (displayed from the .NET application view):
    You have one command to push a new set-point. You receive an acknowledge.
    You have a command to request continuous status updates (potential parameter: update rate). You receive an update of the current value until you send a command to stop updates. This approach is often called "register/unregister" method.
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • TS3297 My 2nd generation ipod touch is giving me the following error when I try accessing Itunes or the app store. "Cannot connect to the Store. A secure connection could not be established. Please check your date & time settings"  I am on a secure networ

    My 2nd generation ipod touch is giving me the following error when I try accessing Itunes or the app store. "Cannot connect to the Store. A secure connection could not be established. Please check your date & time settings"  I am on a secure networkl.

    Can't connect to the iTunes Store
    Make sure that time zone is correct in addition to date and time

  • I still have 5 Gb icloud storage but 2.1 gb on iphone I want to upgrade to 6.0 but need 2.6 gb on my phone can i use icloud to free up some space and still access the apps that I store there on my iphone

    i still have 5 Gb icloud storage but 2.1 gb on iphone I want to upgrade to 6.0 but need 2.6 gb on my phone can i use icloud to free up some space and still access the apps that I store there on my iphone.

    No.
    You need to delete content from your iphone.

  • To get the count of records and able to access the column value in a single

    Hi
    Is there any way to get the number of records in the query and access the column values
    e.g
    select count(*)
    from
    (SELECT department, COUNT(*) as "Number of employees"
    FROM employees
    WHERE salary > 25000
    GROUP BY department ) a
    This wil only get the Count, if i want to access each row from the inline view how can i do that.

    Your question is not clear.
    Are you looking for total record count as well as count by department ?
    Something like this?
    SQL>
    SQL> with temp as
      2  (
      3  select 1 dept ,10000 sal from dual union
      4  select 1 dept ,25100 sal from dual union
      5  select 1 dept ,30000 sal from dual union
      6  select 1 dept ,40000 sal from dual union
      7  select 2 dept ,10000 sal from dual union
      8  select 2 dept ,25100 sal from dual union
      9  select 2 dept ,30000 sal from dual union
    10  select 2 dept ,40000 sal from dual )
    11  select count(*) over( partition by 1 ) total_count,dept,
    12  count(*) over(partition by dept) dept_cnt  from temp
    13  where sal>25000;
    TOTAL_COUNT       DEPT   DEPT_CNT
              6          1          3
              6          1          3
              6          1          3
              6          2          3
              6          2          3
              6          2          3
    6 rows selected
    SQL>

  • My ipod touch is connected to wi-fi but not access safari, youtube, itunes, app store safari even tells me that is not connected to internet, also had trouble at first because I could not connect to wi-fi, afternoon much as told me that the password was i

    my ipod touch is connected to wi-fi but not access safari, youtube, itunes, app store, safari even tells me that is not connected to internet, also had trouble at first because I could not connect to wi-fi, afternoon much as told me that the password was incorrect when it was correct, please tell me as I do to let me access youtube, safari, app store, i tunes...
    thanks

    - Reset the iPOd. Nothing will be lost.
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on the router
    - Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections

  • Access custom variable value in web.xml context-param?

    My requirement or need is to access a variable value either in a class in my Model project or a backing bean in my View project. For example, one variable I need to access is an application server I am integrating with - 'testserver' or 'productionserver' - I want to be able to configure this within an external file so that I do not have to re-compile my application to change the variable.
    I was thinking about placing this variable in the web.xml <context-param> section as:
    <context-param>
    <param-name>servername</param-name>
    <param-value>testserver</param-value>
    </context-param>
    I need to access this value within a class (not a servlet) on an Application Module service method, though if needed, I could access it from a backing bean and pass it to the service method (less desirable.) Is this a good approach and how do access this variable from within a Java class including any imports I need to do (code example)?
    Thanks and Happy New Year!
    Hopefully most everyone is out spending time with friends and family versus stuck trying to complete a project like me...

    I found an example from SRDemo that provides what I was looking for:
    String serverhostaddress =
    FacesContext.getCurrentInstance().getExternalContext().getInitParameter("param-name-var-in-webxml");

  • Assigning a binary value to an integer

    Hi, I am trying to assign a binary value in my program to an integer. In some assembly languages you would do the following:
    mov a, 00010101b
    for binary and for hex:
    mov a, 0E2h
    In java, you can assign a hex value with:
    int a=0x3F;
    What should I do to assign a binary value? Is it possible?
    Regards... Martin Schmiedel

    The static method parseInt in the java.lang.Integer class can be used to convert a String representing a binary number into its decimal integer value. In addition to the string representing the number, you also pass in an integer representing the radix, which for binary would be 2, hex would be 16, etc. So for example:
    int x = Integer.parseInt("00010110", 2);
    Is that what you're trying to do? Cheers,
    Chris

  • HT204406 I purchased music on my iPad (and it works fine).  It populated my purchased list on my home computer but will not download ?? when I access it in the iTunes store I can click on play but nothing happens-how do I get it to download on my computer

    I purchased music on my iPad (and it works fine).  It populated my purchased list on my home computer but will not download (purchase is no longer a given option) ?? when I access it in the iTunes store I can click on play but nothing happens…how do I get it to download on my computer ?

    If you connect your iPad to your computer's iTunes and do File > Devices > Transfer Purchases then it should copy over to your iTunes library. Depending upon what country that you are in you might also be able to redownload it on your computer's iTunes via the Purchased link under Quicklinks on the right-hand side of the iTunes store homepage.

Maybe you are looking for

  • Assigning a hard value to multiple, varying MIDI events

    I have many midi notes that have, say, velocity values of 70-80. I want to select them all, and assign an absolute velocity of 75 to all of them. I can select them in the event list, but still can only change the value of one. Also, of course, I can

  • Reporting Services Cube Status

    Hi all, I am newbie to reporting service of team foundation server 2013. I just want to know what is the use of cube in reporting services in team foundation server environment. please clear my doubts. Thanks for help.

  • Oracle not getting started

    Hi, We just upgraded to oracle patch set 9.2.0.8.0 Now We are not able to start database. OS Win2k3 Logs: trc file: "dev_w0", trc level: 1, release: "640" ACTIVE TRACE LEVEL           1 ACTIVE TRACE COMPONENTS      all, M B  B Mon Nov 10 22:02:15 200

  • Poor Customer Services

    It was deteremined my WRT1900AC router is defective and Linksys/Belkin will send me a replacement.  This was approved last Wednesday  (8/13/2014) at 7:20pm pst.  A shipping label was created yesterday when I was told it was shipped on Monday.  Its on

  • Problem with Named??

    I have an error message that keeps coming up in system.log which has me a little stumpted. Oct 23 17:23:24 mail named[83]: /SourceCache/bind9/bind9-31/bind9/lib/isc/unix/errno2result.c:111: unexpected error: Oct 23 17:23:24 mail named[83]: unable to