RE: passing UserWindow across partitions

The "partition" reference is a red-herring. What I mean is, the fact
that you are running across partitions has nothing to do with the error
you are receiving. Consider the error. It says either one of two
things is going wrong. Either:
#1) You are trying to serialize a pointer, or
#2) You are trying to send a pointer across a partition.
You are, most manifestly, NOT receiving an error saying "serialized data
cannot be sent across partitions." In your case, the correct
interpretation of your situation is error #1). That is, you are trying
to serialize a pointer (indirectly).
In short, I have tried to do what you are doing, and the unfortunate
answer to your problem is: you cannot serialize a window. Since the
window contains pointers, and pointers cannot be serialized, windows
cannot be serialized. Sorry...
From: [email protected]
To: [email protected]
Subject: passing UserWindow across partitions
Date: Tuesday, February 25, 1997 4:43PM
I'm trying to pass a UserWindow object as a parameter to a method on a
service object in a separate partition. The idea is to be able to store
the window object on a server and retrieve it (and display it, etc.)
later
from a client. Works great in test mode, but when I run it in
distributed
mode, I get the error:
Attempt to serialize a pointer value or to send a pointer value
between
partitions. Values of type 'pointer' can neither be serialized nor
sent
from one partition to another.
I'm guessing this has something to do with the UserWindow.window
attribute
having attributes that are pointers to system-specific resources. For
what
it's worth, it doesn't work even if I haven't opened the window yet. In
other words, the following code causes the same error:
tempWin: someWindowClass = new();
myServiceObject.takeThisWindow(tempWin);
Has anyone ever tried this kind of thing before and succeeded?

Maybe, just maybe, you can use gparted to move the excess space in your new partition which is above your existing partition size after first identifying it as swap.  Then move it to the end of the drive, leaving space for a new partition which is the same size as your existing partition.
That, maybe, will accept the dd transfer since the partition size is identical.  After all is done, delete the swap.
I hope I made sense.....

Similar Messages

  • Passing UserWindow across partitions

    I'm trying to pass a UserWindow object as a parameter to a method on a
    service object in a separate partition. The idea is to be able to store
    the window object on a server and retrieve it (and display it, etc.) later
    from a client. Works great in test mode, but when I run it in distributed
    mode, I get the error:
    Attempt to serialize a pointer value or to send a pointer value between
    partitions. Values of type 'pointer' can neither be serialized nor sent
    from one partition to another.
    I'm guessing this has something to do with the UserWindow.window attribute
    having attributes that are pointers to system-specific resources. For what
    it's worth, it doesn't work even if I haven't opened the window yet. In
    other words, the following code causes the same error:
    tempWin: someWindowClass = new();
    myServiceObject.takeThisWindow(tempWin);
    Has anyone ever tried this kind of thing before and succeeded?

    There are 2 ways to do it:
    1. Use session varible to store information. If the
    kind of information to be stored in each page is more
    forget this option.
    2. Use an object to store the information. Share this
    object in each JSP page.
    Hope it helpsI like option 2. If you use a JavaBean, not only is it fairly easy to set and get the date, you can also serialize it or store it in XML so the user could log-out and come back later, and the app could remember the user's values...

  • Re: Pointers across Partitions...For YourInformation

    At 09:41 AM 12/3/97 -0500, Sivaram S Ghorakavi wrote:
    Hello Folks,
    This is just FYI.
    My application has got a Server Partition, with a Service Object as aninteraction to a wrapper in 'C' for a DLL, and a Client Partition, which
    basically access the SO on each user interaction. The most of the functions
    in 'C' code expect "pointer to char/pointer to structure etc.,". My
    application CRASHES by declaring the pointers and allocating the memory and
    passing them from client to server partition. But if I pass the forte data
    values, like TextData etc., to the SO and let that do the CASTING of the
    values and passing them to the methods on the Server Partion makes my
    application HAPPY.
    >
    Rule of Thumb: Never pass the pointers across partitions. Pass the fortedatavalues and let the other partitionon handle them.
    >
    Regards,
    Sivaram S Ghorakavi mailto:[email protected]
    International Business Corporation http://www.ibcweb.com/
    Actually, this makes a lot of sense when you think about it.
    First, a little about pointers. As most of you probably know, a pointer is
    simply a variable (usually a long, in C++) that holds a memory address
    where the actual data that you are interested resides. In other words, the
    pointer "points" to the memory location of the data.
    Imagine an application running on some networked computer (call it "Machine
    A"). This application has a partition (call it "Partition 1") that is
    using some data stored in memory location 123456. In Partition 1, a
    pointer variable ("P") has the value "123456", thus P "points" to the data.
    Now lets pass P to another partition ("Partition 2") running on another
    computer (call this "Machine B"). Remember, P really only contains the
    value "123456". When it is accessed by the code in Partition 2, the
    application would actually be looking for data in memory location 123456
    ***on Machine B***! Clearly, this is a violation and would cause all kinds
    of problems.
    In this respect, Forte doesn't differentiate between partitions running on
    different computers vs. partitions running on the same computer, so it
    raises an exception whenever a program tries to pass pointers across any
    partition boundries.
    Passing objects is different, however. Most of you know that Forte uses
    what is called "copy semantics" when passing objects across partition
    boundries. This means that, while to the developer it may appear that an
    object received from a remote partition is the "same" object as the one
    that was passed by that remote partition, it is actually a copy - a
    physically different object containing all of the same state information as
    the original object. Thus, the "address" of an object doesn't really come
    into play across partition boundries.
    I'm not going to take the time to explain here how anchored objects work,
    but they are really object-based, not pointer-based, as well.
    Viola! Mr. Ghorakavi's rule of thumb explained!
    James Urquhart [email protected]
    Product Manager phone: (510) 986-3513
    Forte Software, Inc. fax: (510) 869-2092

    Maybe, just maybe, you can use gparted to move the excess space in your new partition which is above your existing partition size after first identifying it as swap.  Then move it to the end of the drive, leaving space for a new partition which is the same size as your existing partition.
    That, maybe, will accept the dd transfer since the partition size is identical.  After all is done, delete the swap.
    I hope I made sense.....

  • Does hash partition distribute data evenly across partitions?

    As per Oracle documentation, it is mentioned that hash partitioning uses oracle hashing algorithms to assign a hash value to each rows partitioning key and place it in the appropriate partition. And the data will be evenly distributed across the partitions. Ofcourse following following conditions :
    1. Partition count should follow 2^n logic
    2. Data in partition key column should have high cardinality.
    I have used hash partitioning in some of our application tables, but data isn't distributed evenly across partitions. To verify it, i performed a small test :
    Table script :
    Create table ch_acct_mast_hash(
    Cod_acct_no number)
    Partition by hash(cod_acct_no)
    PARTITIONS 128;
    Data population script :
    declare
    i number;
    l number;
    begin
    i := 1000000000000000;
    for l in 1 .. 100000 loop
    insert into ch_acct_mast_hash values (i);
    i := i + 1;
    end loop;
    commit;
    end;
    Row-count check :
    select count(1) from Ch_Acct_Mast_hash ; --rowcount is 100000
    Gather stats script :
    begin
    dbms_stats.gather_table_stats('C43HDEV', 'CH_ACCT_MAST_HASH');
    end;
    Data distribution check :
    Select min(num_rows), max(num_rows) from dba_tab_partitions
    where table_name = 'CH_ACCT_MAST_HASH';
    Result is :
    min(num_rows) = 700
    max(num_rows) = 853
    As per the result, it seems there is lot of skewness in data distribution across partitions. Maybe I am missing something, or something is not right.
    Can anybody help me to understand this behavior?
    Edited by: Kshitij Kasliwal on Nov 2, 2012 4:49 AM

    >
    I have used hash partitioning in some of our application tables, but data isn't distributed evenly across partitions.
    >
    All keys with the same data value will also have the same hash value and so will be in the same partition.
    So the actual hash distribution in any particular case will depend on the actual data distribution. And, as Iordan showed, the data distribution depends not only on cardinality but on the standard deviation of the key values.
    To use a shorter version of that examle consider these data samples which each have 10 values. There is a calculator here
    http://easycalculation.com/statistics/standard-deviation.php
    0,1,0,2,0,3,0,4,0,5 - total 10, distinct 6, %distinct 60, mean 1.5, stan deviation 1.9, variance 3.6 - similar to Iordan's example
    0,5,0,5,0,5,0,5,0,5 - total 10, distinct 2, %distinct 20, mean 2.5, stan dev. 2.64, variance 6.9
    5,5,5,5,5,5,5,5,5,5 - total 10, distinct 1, %distinct 10, mean 5, stan dev. 0, variance 0
    0,1,2,3,4,5,6,7,8,9 - total 10, distinct 10, %distinct 100, mean 4.5, stan dev. 3.03, variance 9.2
    The first and last examples have the highest cardinality but only the last has unique values (i.e. 100% distinct).
    Note that the first example is lower for all other attributes but that doesn't mean it would hash more evenly.
    Also note that the last example, the unique values, has the highest variance.
    So this is no single attribute that is controlling. As Iordan showed the first example has a high %distinct but all of those '0' values will hash to the same partition so even using a perfect hash the data would use 6 partitions.

  • Directory Links across partitions are not allowed.

    See a lot of this in the crawl log - what is this error?
    it's the http://<portal><documents>/Forms/Allitems.aspx 
    No external is crawled in that content source
     how do I fix it ? 

    Hi,
    Based on your description, my understanding is that you got an error that "Directory Links across partitions are not allowed".
    For your issue, change the content source to crawl the individual BDC applications instead of the entire catalog:
    Here is a similar post, you can use as a reference:
    https://social.technet.microsoft.com/Forums/en-US/72a51853-50a8-4062-8d50-8b38d9ecd0d3/directory-links-across-partitions-are-not-allowedwhen-crawl-external-data-source?forum=sharepointsearch
    Here is a possible solution, refer to it:
    http://blogs.technet.com/b/speschka/archive/2013/02/04/resolving-the-directory-links-across-partitions-are-not-allowed-error-when-crawling-odata-bdc-sources.aspx
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Lisa Chen
    TechNet Community Support

  • 3230 Mobile Access Router not Passing Traffic across WMICs

    I'm unable to pass traffic across the WMICs. I've assigned the BVIs ip addresses in the same subnet and I'm seeing the devices associated. I attached the configurations.
    Thanks,

    A ruggedized router in a flexible and compact design, ideally suited to create mobile networks in and around vehicles.
    Here is the URL for the furthere information for grounding in the vehicales and description :
    http://www.cisco.com/en/US/prod/collateral/routers/ps272/prod_presentation0900aecd802948c0.pdf
    http://www.cisco.com/en/US/products/hw/routers/ps272/ps4375/index.html

  • How can I pass objects across neywork?

    How can I pass a ObjectOutputStream to a ObjectInputStream, across a socket?
    Thanks in advance for your posts!

    Or maybe I am misunderstanding your question?-Probably
    Lets see: ObjectOutputStream passes data trought aout
    Stream; ObjectInputStream receives data trought a in
    Stream: so, I suppose that they can use as streamsthe
    connections betwen two sockets, in one point the
    ObjectOutputStream sending, an in another the
    ObjectInputStream receiving.Yes. The sockets provide the connections, and you can
    call getInputStream or getOutputStream on the sockets
    to read what the other guy is sending, or to write to
    the other guy. You don't actually pass the sockets or
    streams back and forth--they're just the channels by
    which you pass your data.I knew that, thanks anyway. But my question is how can I pass objects throught that streams.
    Anyone knows?
    Thanks

  • Passing parameters across reports

    Hi,
    Anybody knows how to pass parameters from one report to another using drill across reports?
    I want to feed parameters of a second report (drill across) with values from parameters from a base report where the second report is called.
    Is it possible?
    Luciano

    Hi,
    I don't found a way to pass parameters between reports with Drill Across feature.
    But I can do that using report actions (inserting a button in the view or report) instead of Drilling Across.
    I would like Oracle develop these two functionalities:
    1) Allow passing parameters between reports with Drill Across (today I can only pass fields to prompts);
    2) Allow replacing a view with a report using report actions - as mentioned (today I can only open the report in a new window).
    This two functionalities are complementary.
    Luciano Gomes

  • Passing Variables across stage in OSB

    Hello All,
    I am using OSB 11g and I am new to this, for my project I have created a proxy service where in the message flow I have created a conditional branch, within that I have given pipeline->stage->assign. In Assign, I am assinging an expression value to a new variable created for that Assign. I need to use this variable outside the stage and branch for another branch activity. Is it possible to make this variable accessible to activities outside the stage and branch??
    Is there any other better method to create variables which can be used across the message flow...like how we use in BPEL.
    Please guide me to proceed with this...

    Can you let us know your use case? If your message flow starts with a pipeline pair and in that pipeline you declare a var, say myVar and after that pipeline you have a conditional branch then in the each and every branch you may access that variable (myVar). If any of the pipeline in any conditional branch defines it's own myVar then the local myVar will override the global one.
    Can I use the variable outside the pipeline or will the variables be accessible only within stages of pipeline??When you say outside, then what do you mean by that?
    Regards,
    Anuj

  • How do i pass recordsets across procedures

    Hi,
    I wanted to know how to pass a record set from one procedure to another procedure using a table of a used defined type and how do i access the values from the recordset for any manipulation within the procedure..
    For eg i have a table/Ref cursor on a user defined type which has two columns empno,deptno... as a out parameter from a procedure... How do i take this in in a different procedure and access the values..
    Thanks
    Kiran

    Hello,
    Thanks for posting to the NI Discussion Forums.  The channel name attribute is one of the
    custom waveform attributes added by the DAQ driver software.  In addition to these items added by DAQ, it seems
    as though any custom attribute added to the waveform is not sent with
    the shared variable.  I have sent notice
    to R&D to take a look at this problem (issue 3VQEIA3A), but I do not have
    any sort of timeline on when/what will come of this.  For now, it looks like you will have to send
    any data about the waveform over to the Windows client machine separately.  For example, you could create a new variable
    of 2-D string data where you would populate the array with <key,value>
    pairs of the waveform data you are concerned with.  If you were interested in how to extract the channel
    name from the waveform, or any of the other properties set by the DAQ software
    check out the “details” in the context help for the “set waveform attribute”
    VI.
    Hope this helps!
    Travis M
    LabVIEW R&D
    National Instruments
    Attachments:
    waveformattributes.zip ‏36 KB

  • Passing query across pages

    Hi all,
    i have an interactive report page based on 3 joined tables, after filtering, ordering and so on i would like to pass the result (source) to another page in order to format all rows and print it.
    can i do this in some way?
    thanks and regards.

    Hello,
    You can preserve the where clause. Look here.
    Maybe that'll help...
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • Passing control across portal component

    Hi Gurus,
    I have a portal componenet A , on clicking a button of the jsp of the compoenent A,
    I open a new window in a javascript function of jsp of A .
    window.open();
    in this window I open a jspdynpage portal component B.
    On click of a button in the jsp of B , I want
    i) To invoke a function in the controller of component B (easily done)
    ii) Close the window (I can close the window through window.close , but the issue is I want to close teh window after i) happend and i) happens through a server side event , which is fired after teh client side event)
    iii) pass the control to component A , such that PBO is fired once to show the updated content.

    the only solution is to use POM.
    See PRT Guide for a very short explanation of this.
    Unfortenately POM was never released public, so you have to find out yourself how it works.
    BR, Oliver

  • PS/CC across partitions?

    I purchased the PS/Lightroom special a week or two ago. At the time I was running OSX Mountain Lion exclusively. Today I partitioned my drive in order to cleanly install OSX Mavericks on it. I was hoping I could use PS cross-partition but when I went to launch it I was refused and got an "Error 16" message.
    Am I attempting the impossible? Does PS have to be on the system drive in order to work? Will I be able to re-download the apps onto the Mavericks partition?

    Mmm, no. While I'm glad to know about the CC Cleaner Tool, this doesn't seem to answer my question. Let me ask it a different way:
    Is it or is it not possible to have PS reside on the OSX Mountain Lion-driven partition (where I had downloaded it) but use it while running on the OSX Mavericks-driven partition?
    This was not a reinstall. I had only subscribed to PS/CC about a week and a half ago and had no problems with it in Mountain Lion. It was only when I added a Mavericks partition and tried running PS from that system while it remained installed on the Mountain Lion partition.
    ab

  • Accessing an iTunes Library across Partition

    Hi, I am running a Macbook pro with bootcamp and 64 bit Windows Vista. I have my iTunes library fully stored on the Vista Partition, but I would like to be able to access all of this data on the Mac Partition without making copies of everything. Preferably I would like to transfer over all my iTunes library information as well. (Playlists, etc. I got this all off my old PC fine.) Also I should note that my Vista drive is NTFS, but I have both MacFUSE 3g-NTFS and MacDrive thus read and write problems should not be an issue. Any help would be greatly appreciated.

    Open the iTunes preferences, click on the Advanced tab, turn off the option to automatically copy the music to the iTunes Music folder, and then drag the library on the Windows partition to the open iTunes window. This will not transfer playlists and other metadata and will not keep the Mac version of the library in sync.
    (33924)

  • Compatibility across partitions.

    Hi everybody,
         Still waiting for iCloud to give me back the ability to retrieve an Excel for Mac spreadsheet that can be continuously updated, from Windows 7 to Mountain Lion and back again.  This is the most important task for iCloud, to me.  I could email it to myself via Outlook, I know; deleting the correct version every time is what scares me. Any fixes on the horizon?

    Hi Templeton Peck,
         First, just because it's so new, I guess.  Also though, can I access Dropbox from a Windows 7 partition?
    Riethul

Maybe you are looking for

  • A question about overheating?

    Hey. Im running Win 7 64 bit on my late 2010 MBP. Im using the Win 7 partition for musicproduction with a TC Konnekt 8 soundcard, and have noticed that the machine sometimes gets rather hot. I´ve heard ppl talking about overheating in bootcamp and wa

  • Unable to print ASCII codes

    Hello, I am facing a problem in printing ASCII code between 128 and 159. these codes are displayed as '?'. All the other codes are printed correctly. Please let me know the reason behind this. Given below is the code for the same class Codes      pub

  • No .file type when saving???....

    hello has anyone had any issues with d/l themes? when I go to d/l I have nothing in the save as box just the name I created for the theme? there is no .file!!!!  

  • "To" field unresponsive in iOS4

    I have noticed this in iOS4 both on a 3GS and an iPhone 4. When you choose to email a link or article to someone using the email option within the article, the "To" field in the email becomes unresponsive and you have to tap in the field multiple tim

  • What is the procedure to package the SAP BI Objects for RDS.

    Hi, We need to create an RDS for HCM Implementation in SAP BI 7.3 & BO4.1. Need help on how to add the Customized and Developed objects into SAP Business Content, so that customers can directly install from business content and run the business. Than