WriteUnshared and class fields of an array type
Greetings.
I am trying to serialize an object multiple times (in the same file) as its state changes. In order to avoid back-references to the first serialization of the object I use ObjectOutputStream,writeUnshared(..) method. This method serializes all the primitive fields correctly. However, this method does not serialize the content of array-type fields as unshared. This is the expected behavior according to the specs http://java.sun.com/j2se/1.4/pdf/serial-spec.pdf (Page 28, end of 3rd paragraph)
My question is if there is a way to propagate unshared serialization to the elements of an array-type field of the object being serialized?
Thanks.
No - the semantics would be difficult to define.
Using wriiteUnshared for this seems precarious anyway. Look at ObjectOutputStreamt.reset() as an alternative.
Sylvia.
Similar Messages
-
Is there a way to know if class field is an array (reflection) ?
Hi, everyone,
Like subject says, is there a way to know if class field
is an array and instance ? I suppose, reflection could
help with that, but don't know exactly.
I have a class:
public class A {
public B b[];
//other fields
B is another class.
public class B {
public C c;
//other fields
So, it is important for me to know if class A field b
is an array and instance.
Oh, and one more thing, how to initialize instance b
through class A using reflection (i suppose), and to
go through class B, and again get information about
what fields and what are they (are they instances,
arrays and so on). The same thing with class C ...
I mean, if class (like A) has an instance b, i would
like to get all information, if class B of this instance
b has its own instances, and so on. And additionally,
as mentioned above, i'd like to know if these instances
(like b) are arrays.
I think you got whole idea - how to go through class
hierarchy and get information about class fields
(instances esspecially).
If someone knows, please reply.
Thanks in advance.Thanks, that'll do for finding out if instance is
an array.
I know that my subject line doesn't sound quite right,
sorry :)
But there is more things i need information about. -
What is the difference between instance variable and class variable?
i've looked it up on a few pages and i'm still struggling a bit maybe one of you guys could "dumb" it down for me or give and example of how their uses differ.
thanks a lotInstance is variable, class is an object.What? "Instance" doesn't necessarily refer to variables, and although it's true that instances of Class are objects, it's not clear if that's what you meant, or how it's relevant.
if you declare one instance in a class that instance
should be sharing within that class only.Sharing with what? Non-static fields are not shared at all. Sharing which instance? What are you talking about?
if you declare one class object it will share
anywhere in the current program.Err...you can create global variables in Java, more or less, by making them static fields. If that's what you meant. It's not a very good practice though.
Static fields, methods, and classes are not necessarily object types. One can have a static primitive field. -
User and group field values not propagating in Sharepoint 2013 variation
Hi,
I have a issue, we have a User and group field in my Content type and this content type is attach to Pages library.
I created one Page in source variation site and fill User and Group field with two user one is domain user and another is sharepoint\system account user.
After variation work and page propagate to target variation , there is only sharepoint\system account and no domain user in user and group field.
*****The main issue is domain user are not propagating in target variation site's fields.
Thanks,
dineshcan any one hep me on this
-
What is the field and Table for "Batch Class" and "Class Type" in QM.
Hi All,
What is the field and Table for "Batch Class" and "Class Type" in QM.
Thanks,Hi,
For batch class the class type value is '023' . This you can find from KLAH table and the fileld for class type is KLART..
And also all the data related to batch class are found in tables INOB, KLAH,KKSK and for the characeteristics of batch materials you can refer AUSP table.
In INOB table, for batch class, you need to give 023 in KLART field and value MCH1 in OBTAB filed.
Please check this and let me know if this you need any more details? -
Model Binding and Calculated Field Syntax for "class" Attribute
Hi,
I tried to use the calculated field syntax from SAP UI5 to change the CSS class attribute of an element based on some model property, i.e., I wanted to change the class in the corresponding formatter function based on the currently bound value. However, my formatter function is not called. When I use the same syntax on a text attribute, it works.
I also tried to use normal property binding, but it did not work on the class attribute either (it just put class="{property}" in the rendered HTML).
Is there anything I missed or is it just not possible to use property binding and calculated field syntax for class attributes? Did anybody try something like this before?
I think it is a standard use case to change the CSS class based on some model property. So, if anybody knows how to do that, could you give a short example?
Best regards
SvenjaThey have a class property. At least, I can do the following in an XML view:
<Button
icon="sap-icon://add"
press="onButtonPress"
class="my-button-class" />
I would expect the following to work as well, but for me it did not:
<Button
icon="sap-icon://add"
press="onButtonPress"
class="{/customClass}" />
This renders the following HTML (cropped to the important parts):
<button type="button" class="sapMBtn {/customClass}">
</button>
It seems like the class attribute is something special although I don't see a reason why. Other HTML templating engines, for example, support things like that. -
Hidding java class field and methods
Hi,
I'm developing an API and I want to know if there's any way to hide all private class, field and methods when exploring the JAR from eclipse or another IDE. In [this capture|http://i8.photobucket.com/albums/a32/darkskimmer/Sinttulo-1-2.jpg] I can see "extra-information" like return type of private methods, etc. I want to keep this in secret...
Cheers!
P.S: I have to improve my english skills, I know... :)darkskimmer wrote:
I'm developing an API and I want to know if there's any way to hide all private class, field and methods when exploring the JAR from eclipse or another IDE. Since the JVM has to be able to see them to access/execute them and and anything it can do you can do then you can't hide them. -
FIELD SELECTION FOR MOVEMENT TYPE AND ACCOUNT
Hi,
I am trying to do the Post Goods Issue (PGI).
But, the system is throwing an error as mentioned below.
Field Selection for Movement Type 901 / Account 4070000001 differs for Customer Goods Movement (015)
I made the Cost Center as Required Entry. But, there was no effect on the PGI.
I could not make out the exact error.
Please guide me properly in this regard and do the needful.
Thanks in advance.
Thanks & Regards,
Srinivasa M.S
+91-9910077829Hi,
On the Error message detail, system will guide you to the Configuration details for Field settings for Movement type & Account, please get in touch with your FI consultant, to make the Field selection for the account similr to that of your movement type, this is a very common issue.
Regards
Chandra Shekhar -
How to get ATINN value based on material number and Class Type ?
I have below SELECT stmt code which gives the correct value of atwrt based on materil no and ATINN.
However in quality system, it is failing because in quality system "atinn" value is not 0000000381. It is different.
So how can I get ATINN(Internal characteristic) value based on material number and Class Type?
-Obtain the batch characterstic value for the Material******************
SELECT atwrt
UP TO 1 ROWS
INTO v_charvalue
FROM ausp
WHERE objek = mcha-matnr
AND atinn = '0000000381' " 'US80_FRENCH_ON_LABEL'
AND klart = '001'.
THANKS N ADVANCE.Hi SAm,
use the Below function module to get the Atinn for Atwrt for thr Class and MAterial combination..
CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
EXPORTING
classtype = '023' "Class type
object = w_object "Material number with Leading zeros
no_value_descript = 'X' "Default X
objecttable = 'MCH1' "Table name Mara or MCH1 or MARC
TABLES
t_class = t_class "It return the Batch class available for the above combination
t_objectdata = t_char "Return Batch characteristics(ATWRT) and their value ATINN in this table
EXCEPTIONS
no_classification = 1
no_classtypes = 2
invalid_class_type = 3
OTHERS = 4.
Regards,
Prabhudas -
From which table I can find the "Class type" and "Class" of the material?
From which table I can find the "Class type" and "Class" of the material?
Thanks in advance for the answers....Hi,
try following table
KSSK Material number to class
KLAS Class description
KSML Characteristic name
CABN/CABNT Characteristic name description
CAWN/CAWNT Characteristic name
[http://www.sap-img.com/materials/classification-view-of-material-master.htm]
[http://wiki.sdn.sap.com/wiki/display/ERPLO/FrequentlyUsedTables]
Regards
kailas Ugale -
How to map journal fields and whats is the better process type
/Journal/JournalSuspenseCostCentre NULL
/Journal/JournalBalancingCentre Lookup from Organisation ID
/Journal/JournalMultiCompany u2018Nu2019
/Journal/JournalBatchNumber NULL
/Journal/JournalNumTransactions Total number of /Journal/JournalLine transactions
/Journal/JournalBaseDRTotal Sum of /Journal/JournalLine/JournalLineBaseValue u2013 Debit Values only
/Journal/JournalBaseCRTotal Sum of /Journal/JournalLine/JournalLineBaseValue u2013 Credit Values only
How to map journal fields and whats is the better process type idoc/proxies?please let me know
Journal Line
Multiple journal lines per header:
Schema Element Data
/Journal/JournalLine/JournalLineCostCentre Bank account control Cost Centre
/Journal/JournalLine/JournalLineAccount Bank account control Account Code
/Journal/JournalLine/JournalLineMoneyTotal Transaction Line Amount
/Journal/JournalLine/JournalLineVolume NULL
/Journal/JournalLine/JournalLineDescription Payee Name
/Journal/JournalLine/JournalLineChequeBookReference NULL
/Journal/JournalLine/JournalLineMatchField Cheque Number
NB Contra accounting entries should be posted to:
Schema Element Data
/Journal/JournalLine/JournalLineCostCentre Bank account control Cost Centre
/Journal/JournalLine/JournalLineAccount Bank account control Account Code
/Journal/JournalLine/JournalLineMoneyTotal Transaction Line Amount * -1
/Journal/JournalLine/JournalLineDescription Payee Name
/Journal/JournalLine/JournalLineMatchField Cheque Number
/Journal/JournalPeriod Current General Ledger Period
/Journal/JournalYear Current General Ledger YearIt looks you are new to PI,
you have to develop scenario end to end, by creating source data type and target data type(if you have XSD's not required),then use Graphical mapping (message mapping) to map source and target structures.
Search in sdn for one end to end scenario you will understand easily
Regards,
Raj -
The types of the parameter field and parameter field current values are not compatible.----
HI,
I am attempting to set report parameters in my .jsp code via URL parameters.
I am able to set the report name, server connection dynamically however when attempting to set the Parameters I receive:
com.crystaldecisions.sdk.occa.report.lib.ReportSDKParameterFieldException: The types of the parameter field and parameter field current values are not compatible.---- Error code:-2147213303 Error code name:invalidParameterField
The parameter on the report is a String Type, named for this example p1.
The value that p1 represents is LERAD
My code:
String stringValue = request.getParameter("p1");
CRJavaHelper.addDiscreteParameterValue( clientDoc, "","p1", stringvalue);
returns the above mentioned error.
I have tried:
String stringValue = (String)request.getParameter("p1");
which returns the above error
And;
String stringValue = new String(request.getParameter("p1")).toString();
which returns
java.lang.NullPointerException
java.lang.String.<init>(Unknown Source)
org.apache.jsp.callReport_jsp._jspService(callReport_jsp.java:105)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
I notice that the CRjavaHelper.java declares this addDiscreteParameterValue as accepting an Object type for the newValue.
Any ideas???Hi,
nevermind.
case sensitivty strikes again.
my URL param was P1 ( case sensitive) -
Environment: -
(Application Machine)
OS Name : -
Microsoft Windows 7 Professional/XP SP2/SP3
OS Bit Version : -
32 Bit
Application Name: - Designer.exe
IDE
: - Visual Studio 2008
EXE Application development: -
VB. Net
Application Type: -
Application “Designer.exe” was designed in vb6.0 and now, it has been upgraded to Visual Studio 2008 and it works properly.
Product Description: -
We have an application Designer.exe, which is used for designing “Forms”.
It has menu option with following option like Panel, Text Box, Combo Box, Button etc. We drag any of this menu items and place it to form.
Requirement: -
We have
critical requirement in product. In Designer.exe, we need to align form margin, while we increase or decrease window. And for that we have searched that
“TableLayoutPanel” components can be helpful.
Problem description: -
Earlier code was in vb6.0, now it has upgraded to Visual Studio 2008. In vb6.0, we have used control array for memory utilization with Combo Box, Group Box, and Text
Box etc.
But, for alignment we have to use “TableLayoutPanel”
control array type functionality on form.
Code Snippet: - For earlier designing component e.g. Frame
'Required by the Windows Form Designer
Public WithEvents Frame1 As Microsoft.VisualBasic.Compatibility.VB6.GroupBoxArray
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Me.Frame1 = New Microsoft.VisualBasic.Compatibility.VB6.GroupBoxArray(Me.components)
CType(Me.Frame1, System.ComponentModel.ISupportInitialize).BeginInit()
. Kindly suggest approach for implementing requirement.
Kindly help us to complete the requirement. I will be really
thankful for any assistance.Hi S.P Singh,
Welcome to MSDN.
I am afraid that as Renee Culver said, these forums donot support VB6, you could refer to this thread:
Where to post your VB 6 questions
You could consider posting this issue in these forums below:
These forums do not support Visual Basic 6, however there are many third-party support sites that do. If you have a VB6-related question please visit these popular forums:
VB Forums
VB City
Thanks for your understanding.
Best Regards,
Youjun Tang
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to transfer SRM PO Condition Type and Custom fields to ECC?
Hi All,
I have a scenario to transfer SRM Line item condition types and few custom fields to ECC.
I have found the following things but structure 'CI_EKPODB' does not exists in ECC.
I am using 'SRM 5.00' and 'SAP ECC 6.0'.
NOTE: I have to transfer condition records when PO is getting created / modified.
1) Earlier I was planning to use BADI 'BBP_CREATE_BE_PO_NEW' in SRM and this will transfer the data to ECC in case of PO
Creation.
It contains the Condition fields to be passed to ECC.
But i am unable to implement the same, whenever i create implementation when i click 'Activate' its getting activate then after few seconds its getting deactivate, i think this is because this BADI is not allowed for multiple use and SAP has already made one implementation on the same.
2) I need to implement BADI 'BBP_ECS_PO_OUT_BADI' in SRM and 'BBP_PO_INBOUND_BADI' in ECC.
SRM BADI will pass verified field details to ECC as a custom fields
It does not contains the Condition fields to be passed to ECC, so i was planning to pass the same as custom field(s).
ECC BADI 'BBP_PO_INBOUND_BADI' will be used to map the fields to correct place and this should work.
i need to modify the structures and pass all the custom fields (z-fields) - (CI_EKPODB but does not exists kindly suggest) as data.
Other required details:
Transfer of PO does not supported by SAP for service PO's, any suggestion on the same?
Expecting quick reply from your end.
Thanks in advance.
Regards,
HemantNaresh,
Thanks for quick response.
My concern is this BADI 'BBP_CREATE_BE_PO_NEW' will trigger only in case of creation, not when PO is changes.
I have to transfer condition types and custom fields to ECC in both the case (create / change)
If i have to do this only in case of creation then i can pass Condition types / custom fields then i can use parameter 'CS_PO1_DOCUMENT' from method 'FILL_PO_INTERFACE1'.
this parameter contains 'IT_POCOND', 'IT_POCONDX' and 'IT_EXTENSIONIN' as parameter so my problem will be solved.
But i dont think this will trigger in both the cases and 2nd thing i cann't implement the BADI since its not marked for multiple use so i am unable to implement the same.
Kindly correct me if i am wrong.
Once again thanks for your reply.
Please suggest on the same.
Regards,
Hemant -
Revision: 14330
Revision: 14330
Author: [email protected]
Date: 2010-02-22 10:03:03 -0800 (Mon, 22 Feb 2010)
Log Message:
BLZ-476 : Getting different error message in server's servlet log and console log when class is not of expected type.
QA: no
Doc: no
checkin test : pass
Ticket Links:
http://bugs.adobe.com/jira/browse/BLZ-476
Modified Paths:
blazeds/trunk/modules/core/src/flex/messaging/MessageBrokerServlet.javaHi, wbracken ,
As known, there are 2 different questions I raised.
Regarding the reply for the second one (Nothing to do with Chinese), I noticed there are several similar issues found in this forum, and it seems no response could solve my that problem. The related methods and classes were also well check, as well as the parameters put.
Any way, your reponse was appreciated.
Thank you for the help.
Maybe you are looking for
-
Xdb_installation_trigger does not support object creation of type SNAPSHOT
hi everyone, i'm using Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit on solaris sparc 5.10 we like to send an email through SSL, and after searching here and there I found out that oracle DB 11g able to go throught the SSL. since
-
White block around text in preferences UI window
I've recently started getting white (or very light grey) blocks around my text and controls in preferences windows. It doesn't do it in primary windows in osX. below is an example from the iTunes preferences window. Not sure when it started doing it.
-
Hi, Normally when we add Users as enterprise resources in the project server. Project manager would be able to add the users in project plan after which the user would be able to access PWA to enter time. My question is does microsoft project ser
-
Server Crash after Updating Licence Key
Hi Team, Recently I had met with a strange issue in which around 5 servers shows recovery screen after the server reboot . The only change happened was the server license key was updated . Initially it was noticed that these servers were showing acti
-
Can't sync music to new iPhone
Hi, My new iPhone arrived today and I have set it all up and used the restore from backup following backing up my old iPhone. However, I can not seem to be able to sync music to it. When I go into the phone when it's connected and go to the music sec