Bug?: Using waveform prims to unbundle class data
I discovered this the other day and figure it's not something that NI intentionally permits. Feel free to correct me if this is expected behavior.
Attaching a class wire to a Get Waveform Components prim allows you to unbundle the class data. This works on IPE waveform border nodes too.
(Cross posted to Lava.)
I discovered this the other day and figure it's not something that NI intentionally permits. Feel free to correct me if this is expected behavior.
Attaching a class wire to a Get Waveform Components prim allows you to unbundle the class data. This works on IPE waveform border nodes too.
(Cross posted to Lava.)
Similar Messages
-
Class data upload through LSMW using BAPI
Hi All,
Plz tell me how to upload class data through LSMW using BAPI.I also need some study material on BAPI.
Bye,
Mithilesh Tiwariits not possible with single file
for this you need to pass two files of data
1 ) Header data ZSOURCE_LIST_HEADER Source List Header
MATNR C(018) Material Number
Selection Parameter for "Import/
WERKS C(004) Plant
2) item data ZSOURCE_LIST_ITEM Source List Item
MATNR C(018) Material Number
LIFNR C(010) Vendor Number
EKORG C(004) Purchasing Organiz
WERKS C(004) Plant
VDATU C(008) Valid From
BDATU C(008) Valid to
for this use below LSMW IDOC method
Message Type SRCLST Source List
Basic Type SRCLST01 Source List -
Using class data in actor user interface?
This may have been asked before but I've not been able to find anything so far...
I'm starting to play with the Actor framework in LV2012 and have run into a dilemma. The system I'm setting up is a fairly common one consisting of test stand control, data acq, logging, control interface, and a "spectator" interface that displays live data for the user(s). To accomplish this, I have a top level actor that implements the control interface and logging which launches several nested actors that handle stand control and data acq across multiple front ends. While this works very well for data that comes purely from the measurement front ends, I'm having trouble cleanly integrating meta-data that is generated by the user.
Each message coming from an actor farther down the tree can be logged by the top level actor by maintaining the log file information in the class private data. However, any data generated on the UI of the Actor Core cannot be logged by using the class data in the Actor Core as there is no guarantee that the class data in the Core is the same as that in the message handler, correct? For instance, say my class data has a log file path and a group name for the TDMS write VI. If my user wants to add a note to that group, I could use the class data in the Actor Core to write the note as a property. No problem. But what if the active group is decided by a message coming from my front end? Then the group name in the parent actor core is different than the one in my Actor Core with the UI. The note would land in the wrong group. So far I have a couple ideas on how to make this work:
1.) Send relevant update messages from the Actor Core to the top level actor using self-to-self enqueuer so that the class data matches. This seems clumsy as it would require a lot of code duplication.
2.) Remove all actual functionality from the Actor Core. Any UI event would pass data via a message using the self-to-self enqueuer. This still seems clumsy, but at least would require less duplication (though the same amount of messages). It would require passing references to all feedback indicators into the class data.
3.) Consolidate all metadata generation in the Actor Core and create an additional actor which only logs data. Any message containing data for logging would be forwarded from the top level actor to the Logging actor. This would provide a consistent strategy for logging data produced by both the user and other actors, and therefore seems like the best idea.
Does anyone have thoughts on this one? I'm still pretty undecided as to how best to solve this little issue, and I'm sure others have encountered this before.
Thanks.
CLADHi testingHotAir
I just wanted to check in to see if things were working for you with your approach to the solution. It looks like you have a pretty good structure going so it seems like things are set. If you still have questions could you post an example of what you are trying to accomplish? I know my brain sometimes has a hard time grasping the concept of words and has an easier time with actually following code paths.
If things are working then great!
Regards,
James W.
Applications Engineer
National Instruments -
How to use waveform chart for slow data
For slow data acquisition (e.g. 1 sample / sec) in the case of using DMM, how to display those data in a chart / graph?
For this sampling rate, there will be only 1 point in the chart.
How to buffer them and display them in a sequence?
Or, any other method?
thanksHere is a quick example showing chart, graph and XY graph. All YOU need to do is use a chart and wire your DMM reading right to it. Charts have their own built in history (you can change the buffer size by right-clicking > Chart History Length)
For more info see the Examples... Building User Interfaces > Displaying Data > Graphs and Charts
Using LabVIEW: 7.1.1, 8.5.1 & 2013
Attachments:
MultiGraphs.vi 17 KB -
Javaagent and class data sharing with Java 6.0
Hi,
I'm trying to use instrumentation (using the -javaagent) but
I noticed that when I run the my application with JDK 1.6 it loads all system
classes from the "shared objects file" and the transformer has no chance to run.
With JDK 1.5 it works fine, as well as in debug mode of JDK 1.6.
Is this normal or it is a bug? If it is normal, how should I instrument the system classes?
Thanks in advance,
GenadyI just found that the reason it was working for me with JDK 1.5 is that my classes.jsa file was corrupted for some reason.
So the behavior is consistent for both JDK 1.5 and 1.6.
I also found that if I add
Can-Redefine-Classes: true to the manifest (even if I don't do any class redefinitions) it causes the class data sharing to be disabled.
This workaround is good enough for me.
Genady -
Mathscript node access to class data
I am trying to implement some code which I developed in Matlab in Labview. The code uses functions from the Control and Optimization toolboxes, and looks like it will port easily to Mathscript. I need to parameterize a state-space model of several drugs from several parameter (age, height,weight, gender). I can see how to create an lvclass Patient with a control which uses these four parameters in the private data. I'd like to be able to duplicate the Matlab-style syntax of Patient.Age, etc, by just wiring the Patient object to a Mathscript node. There doesn't seem to be a way to do this without unbundling first. This seems inelegant, as it requires me to hard-code the names of the private data fields in the mathscript node interface. Is there a simple way to define lvclass data in a class VI's mathscript node?
Matlab 2008a, Labview 8.6, MacPro OSX 10.5.Hello,
The MathScript syntactical element you are referring to is a structure. Unfortunately, we do not have support for structures or cell arrays in MathScript at this time. It is a limitation we are aware of and investigating for a future release. You have discovered the workaround. You will need to unbundle your class data and create separate variables for each member variable in the MathScript node.
Grant M.
Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments -
Hi All,
I am looking at porting over our current Java application from Java 1.4.2 to Java 1.5.
One of the main reasons is because of the CDS facility in Java 1.5.
Running the same app, one on 1.4.2 and the other on 1.5, on 1.5 it uses about 20% more memory !!!!
This application involves 3 JVM's running communicating via RMI.
When I start each of the applications with -Xshare:on, the first starts fine, indicating it is using CDS,
(-showversion parameter will indicate sharing), but then the next two wont start giving an error indicating
the shared archive cannot be accessed.
Before I started the apps I manually created the shared archive using the call java -Xshare:dump which
places the classes.jsa file in the directory jre/lib/i386/client/classes.jsa
I am running an Intel Solaris platform.
Any ideas why this isnt working ?ok, I have some more information after doing more investigation...
Here is the bug which I submitted to Sun...
FULL OS VERSION :
SunOS con1 5.8 Generic_108529-29 i86pc i386 i86pc
A DESCRIPTION OF THE PROBLEM :
I am running an application with 3 JVM's. I have manually enabled Class Data Sharing using the command java -Xshare:dump. This seems to work fine.
When I start the first JVM with the command line option -Xshare:on it seems to start fine and indicates "sharing" when I print out -showversion.
Then when I start any subsequent JVM's with -Xshare:on AND the -Xmx5m parameter I receive the following error:
An error has occured while processing the shared archive file. Unable to reserve shared region. Error occurred during initialization of VM Unable to use shared archive.
It seems to work fine if I dont set the maximum heap size.
THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: No
THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: No
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Try to execute a JVM with class data sharing on, then try it again with class data sharing on, AND trying to set the maximum heap size.
EXPECTED VERSUS ACTUAL BEHAVIOR :
It should still allow CDS.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
An error has occured while processing the shared archive file. Unable to reserve shared region. Error occurred during initialization of VM Unable to use shared archive.
REPRODUCIBILITY :
This bug can be reproduced always.
The error only occurs when using Xshare AND Xms<NUMBER>m as parameters ! -
Namburi,
When you said you used the Reg Exp tool, did you use it only as
preconfigured by the iMT migrate application wizard?
Because the default configuration of the regular expression tool will only
target the files in your ND project directories. If you wish to target
classes outside of the normal directory scope, you have to either modify the
"Source Directory" property OR create another instance of the regular
expression tool. See the "Tool" menu in the iMT to create additional tool
instances which can each be configured to target different sets of files
using different sets of rules.
Usually, I utilize 3 different sets of rules files on a given migration:
spider2jato.xml
these are the generic conversion rules (but includes the optimized rules for
ViewBean and Model based code, i.e. these rules do not utilize the
RequestManager since it is not needed for code running inside the ViewBean
or Model classes)
I run these rules against all files.
See the file download section of this forum for periodic updates to these
rules.
nonProjectFileRules.xml
these include rules that add the necessary
RequestManager.getRequestContext(). etc prefixes to many of the common
calls.
I run these rules against user module and any other classes that do not are
not ModuleServlet, ContainerView, or Model classes.
appXRules.xml
these rules include application specific changes that I discover while
working on the project. A common thing here is changing import statements
(since the migration tool moves ND project code into different jato
packaging structure, you sometime need to adjust imports in non-project
classes that previously imported ND project specific packages)
So you see, you are not limited to one set of rules at all. Just be careful
to keep track of your backups (the regexp tool provides several options in
its Expert Properties related to back up strategies).
----- Original Message -----
From: <vnamboori@y...>
Sent: Wednesday, August 08, 2001 6:08 AM
Subject: [iPlanet-JATO] Re: Use Of models in utility classes - Pease don't
forget about the regular expression potential
Thanks Matt, Mike, Todd
This is a great input for our migration. Though we used the existing
Regular Expression Mapping tool, we did not change this to meet our
own needs as mentioned by Mike.
We would certainly incorporate this to ease our migration.
Namburi
--- In iPlanet-JATO@y..., "Todd Fast" <toddwork@c...> wrote:
All--
Great response. By the way, the Regular Expression Tool uses thePerl5 RE
syntax as implemented by Apache OROMatcher. If you're doing lotsof these
sorts of migration changes manually, you should definitely buy theO'Reilly
book "Mastering Regular Expressions" and generate some rules toautomate the
conversion. Although they are definitely confusing at first,regular
expressions are fairly easy to understand with some documentation,and are
superbly effective at tackling this kind of migration task.
Todd
----- Original Message -----
From: "Mike Frisino" <Michael.Frisino@S...>
Sent: Tuesday, August 07, 2001 5:20 PM
Subject: Re: [iPlanet-JATO] Use Of models in utility classes -Pease don't
forget about the regular expression potential
Also, (and Matt's document may mention this)
Please bear in mind that this statement is not totally correct:
Since the migration tool does not do much of conversion for
these
utilities we have to do manually.Remember, the iMT is a SUITE of tools. There is the extractiontool, and
the translation tool, and the regular expression tool, and severalother
smaller tools (like the jar and compilation tools). It is correctto state
that the extraction and translation tools only significantlyconvert the
primary ND project objects (the pages, the data objects, and theproject
classes). The extraction and translation tools do minimumtranslation of the
User Module objects (i.e. they repackage the user module classes inthe new
jato module packages). It is correct that for all other utilityclasses
which are not formally part of the ND project, the extraction and
translation tools do not perform any migration.
However, the regular expression tool can "migrate" any arbitrary
file
(utility classes etc) to the degree that the regular expressionrules
correlate to the code present in the arbitrary file. So first andforemost,
if you have alot of spider code in your non-project classes youshould
consider using the regular expression tool and if warranted adding
additional rules to reduce the amount of manual adjustments thatneed to be
made. I can stress this enough. We can even help you write theregular
expression rules if you simply identify the code pattern you wish to
convert. Just because there is not already a regular expressionrule to
match your need does not mean it can't be written. We have notnearly
exhausted the possibilities.
For example if you say, we need to convert
CSpider.getDataObject("X");
To
RequestManager.getRequestContext().getModelManager().getModel(XModel.class);
Maybe we or somebody else in the list can help write that regularexpression if it has not already been written. For instance in thelast
updated spider2jato.xml file there is already aCSpider.getCommonPage("X")
rule:
<!--getPage to getViewBean-->
<mapping-rule>
<mapping-rule-primarymatch>
<![CDATA[CSpider[.\s]*getPage[\s]*\(\"([^"]*)\"]]>
</mapping-rule-primarymatch>
<mapping-rule-replacement>
<mapping-rule-match>
<![CDATA[CSpider[.\s]*getPage[\s]*\(\"([^"]*)\"]]>
</mapping-rule-match>
<mapping-rule-substitute>
<![CDATA[getViewBean($1ViewBean.class]]>
</mapping-rule-substitute>
</mapping-rule-replacement>
</mapping-rule>
Following this example a getDataObject to getModel would look
like this:
<mapping-rule>
<mapping-rule-primarymatch>
<![CDATA[CSpider[.\s]*getDataObject[\s]*\(\"([^"]*)\"]]>
</mapping-rule-primarymatch>
<mapping-rule-replacement>
<mapping-rule-match>
<![CDATA[CSpider[.\s]*getDataObject[\s]*\(\"([^"]*)\"]]>
</mapping-rule-match>
<mapping-rule-substitute>
<![CDATA[getModel($1Model.class]]>
</mapping-rule-substitute>
</mapping-rule-replacement>
</mapping-rule>
In fact, one migration developer already wrote that rule andsubmitted it
for inclusion in the basic set. I will post another upgrade to thebasic
regular expression rule set, look for a "file uploaded" posting.Also,
please consider contributing any additional generic rules that youhave
written for inclusion in the basic set.
Please not, that in some cases (Utility classes in particular)
the rule
application may be more effective as TWO sequention rules ratherthan one
monolithic rule. Again using the example above, it will convert
CSpider.getDataObject("Foo");
To
getModel(FooModel.class);
Now that is the most effective conversion for that code if that
code is in
a page or data object class file. But if that code is in a Utilityclass you
really want:
>
RequestManager.getRequestContext().getModelManager().getModel(FooModel.class
So to go from
getModel(FooModel.class);
To
RequestManager.getRequestContext().getModelManager().getModel(FooModel.class
You would apply a second rule AND you would ONLY run this rule
against
your utility classes so that you would not otherwise affect yourViewBean
and Model classes which are completely fine with the simplegetModel call.
<mapping-rule>
<mapping-rule-primarymatch>
<![CDATA[getModel\(]]>
</mapping-rule-primarymatch>
<mapping-rule-replacement>
<mapping-rule-match>
<![CDATA[getModel\(]]>
</mapping-rule-match>
<mapping-rule-substitute>
<![CDATA[RequestManager.getRequestContext().getModelManager().getModel(]]>
</mapping-rule-substitute>
</mapping-rule-replacement>
</mapping-rule>
A similer rule can be applied to getSession and other CSpider APIcalls.
For instance here is the rule for converting getSession calls toleverage
the RequestManager.
<mapping-rule>
<mapping-rule-primarymatch>
<![CDATA[getSession\(\)\.]]>
</mapping-rule-primarymatch>
<mapping-rule-replacement>
<mapping-rule-match>
<![CDATA[getSession\(\)\.]]>
</mapping-rule-match>
<mapping-rule-substitute>
<![CDATA[RequestManager.getSession().]]>
</mapping-rule-substitute>
</mapping-rule-replacement>
</mapping-rule>
----- Original Message -----
From: "Matthew Stevens" <matthew.stevens@e...>
Sent: Tuesday, August 07, 2001 12:56 PM
Subject: RE: [iPlanet-JATO] Use Of models in utility classes
Namburi,
I will post a document to the group site this evening which has
the
details
on various tactics of migrating these type of utilities.
Essentially,
you
either need to convert these utilities to Models themselves or
keep the
utilities as is and simply use the
RequestManager.getRequestContext.getModelManager().getModel()
to statically access Models.
For CSpSelect.executeImmediate() I have an example of customhelper
method
as a replacement whicch uses JDBC results instead of
CSpDBResult.
matt
-----Original Message-----
From: vnamboori@y... [mailto:<a href="/group/SunONE-JATO/post?protectID=081071113213093190112061186248100208071048">vnamboori@y...</a>]
Sent: Tuesday, August 07, 2001 3:24 PM
Subject: [iPlanet-JATO] Use Of models in utility classes
Hi All,
In the present ND project we have lots of utility classes.
These
classes in diffrent directory. Not part of nd pages.
In these classes we access the dataobjects and do themanipulations.
So we access dataobjects directly like
CSpider.getDataObject("do....");
and then execute it.
Since the migration tool does not do much of conversion forthese
utilities we have to do manually.
My question is Can we access the the models in the postmigration
sameway or do we need requestContext?
We have lots of utility classes which are DataObjectintensive. Can
someone suggest a better way to migrate this kind of code.
Thanks
Namburi
[email protected]
[email protected]
[Non-text portions of this message have been removed]
[email protected]
[email protected]Namburi,
When you said you used the Reg Exp tool, did you use it only as
preconfigured by the iMT migrate application wizard?
Because the default configuration of the regular expression tool will only
target the files in your ND project directories. If you wish to target
classes outside of the normal directory scope, you have to either modify the
"Source Directory" property OR create another instance of the regular
expression tool. See the "Tool" menu in the iMT to create additional tool
instances which can each be configured to target different sets of files
using different sets of rules.
Usually, I utilize 3 different sets of rules files on a given migration:
spider2jato.xml
these are the generic conversion rules (but includes the optimized rules for
ViewBean and Model based code, i.e. these rules do not utilize the
RequestManager since it is not needed for code running inside the ViewBean
or Model classes)
I run these rules against all files.
See the file download section of this forum for periodic updates to these
rules.
nonProjectFileRules.xml
these include rules that add the necessary
RequestManager.getRequestContext(). etc prefixes to many of the common
calls.
I run these rules against user module and any other classes that do not are
not ModuleServlet, ContainerView, or Model classes.
appXRules.xml
these rules include application specific changes that I discover while
working on the project. A common thing here is changing import statements
(since the migration tool moves ND project code into different jato
packaging structure, you sometime need to adjust imports in non-project
classes that previously imported ND project specific packages)
So you see, you are not limited to one set of rules at all. Just be careful
to keep track of your backups (the regexp tool provides several options in
its Expert Properties related to back up strategies).
----- Original Message -----
From: <vnamboori@y...>
Sent: Wednesday, August 08, 2001 6:08 AM
Subject: [iPlanet-JATO] Re: Use Of models in utility classes - Pease don't
forget about the regular expression potential
Thanks Matt, Mike, Todd
This is a great input for our migration. Though we used the existing
Regular Expression Mapping tool, we did not change this to meet our
own needs as mentioned by Mike.
We would certainly incorporate this to ease our migration.
Namburi
--- In iPlanet-JATO@y..., "Todd Fast" <toddwork@c...> wrote:
All--
Great response. By the way, the Regular Expression Tool uses thePerl5 RE
syntax as implemented by Apache OROMatcher. If you're doing lotsof these
sorts of migration changes manually, you should definitely buy theO'Reilly
book "Mastering Regular Expressions" and generate some rules toautomate the
conversion. Although they are definitely confusing at first,regular
expressions are fairly easy to understand with some documentation,and are
superbly effective at tackling this kind of migration task.
Todd
----- Original Message -----
From: "Mike Frisino" <Michael.Frisino@S...>
Sent: Tuesday, August 07, 2001 5:20 PM
Subject: Re: [iPlanet-JATO] Use Of models in utility classes -Pease don't
forget about the regular expression potential
Also, (and Matt's document may mention this)
Please bear in mind that this statement is not totally correct:
Since the migration tool does not do much of conversion for
these
utilities we have to do manually.Remember, the iMT is a SUITE of tools. There is the extractiontool, and
the translation tool, and the regular expression tool, and severalother
smaller tools (like the jar and compilation tools). It is correctto state
that the extraction and translation tools only significantlyconvert the
primary ND project objects (the pages, the data objects, and theproject
classes). The extraction and translation tools do minimumtranslation of the
User Module objects (i.e. they repackage the user module classes inthe new
jato module packages). It is correct that for all other utilityclasses
which are not formally part of the ND project, the extraction and
translation tools do not perform any migration.
However, the regular expression tool can "migrate" any arbitrary
file
(utility classes etc) to the degree that the regular expressionrules
correlate to the code present in the arbitrary file. So first andforemost,
if you have alot of spider code in your non-project classes youshould
consider using the regular expression tool and if warranted adding
additional rules to reduce the amount of manual adjustments thatneed to be
made. I can stress this enough. We can even help you write theregular
expression rules if you simply identify the code pattern you wish to
convert. Just because there is not already a regular expressionrule to
match your need does not mean it can't be written. We have notnearly
exhausted the possibilities.
For example if you say, we need to convert
CSpider.getDataObject("X");
To
RequestManager.getRequestContext().getModelManager().getModel(XModel.class);
Maybe we or somebody else in the list can help write that regularexpression if it has not already been written. For instance in thelast
updated spider2jato.xml file there is already aCSpider.getCommonPage("X")
rule:
<!--getPage to getViewBean-->
<mapping-rule>
<mapping-rule-primarymatch>
<![CDATA[CSpider[.\s]*getPage[\s]*\(\"([^"]*)\"]]>
</mapping-rule-primarymatch>
<mapping-rule-replacement>
<mapping-rule-match>
<![CDATA[CSpider[.\s]*getPage[\s]*\(\"([^"]*)\"]]>
</mapping-rule-match>
<mapping-rule-substitute>
<![CDATA[getViewBean($1ViewBean.class]]>
</mapping-rule-substitute>
</mapping-rule-replacement>
</mapping-rule>
Following this example a getDataObject to getModel would look
like this:
<mapping-rule>
<mapping-rule-primarymatch>
<![CDATA[CSpider[.\s]*getDataObject[\s]*\(\"([^"]*)\"]]>
</mapping-rule-primarymatch>
<mapping-rule-replacement>
<mapping-rule-match>
<![CDATA[CSpider[.\s]*getDataObject[\s]*\(\"([^"]*)\"]]>
</mapping-rule-match>
<mapping-rule-substitute>
<![CDATA[getModel($1Model.class]]>
</mapping-rule-substitute>
</mapping-rule-replacement>
</mapping-rule>
In fact, one migration developer already wrote that rule andsubmitted it
for inclusion in the basic set. I will post another upgrade to thebasic
regular expression rule set, look for a "file uploaded" posting.Also,
please consider contributing any additional generic rules that youhave
written for inclusion in the basic set.
Please not, that in some cases (Utility classes in particular)
the rule
application may be more effective as TWO sequention rules ratherthan one
monolithic rule. Again using the example above, it will convert
CSpider.getDataObject("Foo");
To
getModel(FooModel.class);
Now that is the most effective conversion for that code if that
code is in
a page or data object class file. But if that code is in a Utilityclass you
really want:
>
RequestManager.getRequestContext().getModelManager().getModel(FooModel.class
So to go from
getModel(FooModel.class);
To
RequestManager.getRequestContext().getModelManager().getModel(FooModel.class
You would apply a second rule AND you would ONLY run this rule
against
your utility classes so that you would not otherwise affect yourViewBean
and Model classes which are completely fine with the simplegetModel call.
<mapping-rule>
<mapping-rule-primarymatch>
<![CDATA[getModel\(]]>
</mapping-rule-primarymatch>
<mapping-rule-replacement>
<mapping-rule-match>
<![CDATA[getModel\(]]>
</mapping-rule-match>
<mapping-rule-substitute>
<![CDATA[RequestManager.getRequestContext().getModelManager().getModel(]]>
</mapping-rule-substitute>
</mapping-rule-replacement>
</mapping-rule>
A similer rule can be applied to getSession and other CSpider APIcalls.
For instance here is the rule for converting getSession calls toleverage
the RequestManager.
<mapping-rule>
<mapping-rule-primarymatch>
<![CDATA[getSession\(\)\.]]>
</mapping-rule-primarymatch>
<mapping-rule-replacement>
<mapping-rule-match>
<![CDATA[getSession\(\)\.]]>
</mapping-rule-match>
<mapping-rule-substitute>
<![CDATA[RequestManager.getSession().]]>
</mapping-rule-substitute>
</mapping-rule-replacement>
</mapping-rule>
----- Original Message -----
From: "Matthew Stevens" <matthew.stevens@e...>
Sent: Tuesday, August 07, 2001 12:56 PM
Subject: RE: [iPlanet-JATO] Use Of models in utility classes
Namburi,
I will post a document to the group site this evening which has
the
details
on various tactics of migrating these type of utilities.
Essentially,
you
either need to convert these utilities to Models themselves or
keep the
utilities as is and simply use the
RequestManager.getRequestContext.getModelManager().getModel()
to statically access Models.
For CSpSelect.executeImmediate() I have an example of customhelper
method
as a replacement whicch uses JDBC results instead of
CSpDBResult.
matt
-----Original Message-----
From: vnamboori@y... [mailto:<a href="/group/SunONE-JATO/post?protectID=081071113213093190112061186248100208071048">vnamboori@y...</a>]
Sent: Tuesday, August 07, 2001 3:24 PM
Subject: [iPlanet-JATO] Use Of models in utility classes
Hi All,
In the present ND project we have lots of utility classes.
These
classes in diffrent directory. Not part of nd pages.
In these classes we access the dataobjects and do themanipulations.
So we access dataobjects directly like
CSpider.getDataObject("do....");
and then execute it.
Since the migration tool does not do much of conversion forthese
utilities we have to do manually.
My question is Can we access the the models in the postmigration
sameway or do we need requestContext?
We have lots of utility classes which are DataObjectintensive. Can
someone suggest a better way to migrate this kind of code.
Thanks
Namburi
[email protected]
[email protected]
[Non-text portions of this message have been removed]
[email protected]
[email protected] -
Ever since iTunes 10.5.3 on my Windows 7 x64 box, I've been having serious problems keeping iTunes running:
1) Any time I connect my iPhone or iPad, or any time they attempt to sync over WiFi, I get the 'Unable to load class data from sync services' error. It's worth mention that the iPhone or iPad do actually then proceed to sync correctly, and all media / data is synchronized successfully, as far as I've been able to tell. I've reset sync history, restored the iPhone and iPad, manually moved the SyncServices directory, set both the iPhone and iPad up as new, completely uninstalled iTunes and the mobile device software, re-installed, and *nothing* I do fixes this issue or even seems to impact it. Uninstalling iTunes 10.5.3 and reinstalling iTunes 10.5.2 resolves this error.
2) iTunes 10.5.3 has serious crashing problems on my machine, though I've searched through forums and found a lot of other people with the problem. In my case, sporadically as iTunes access the iTunes store (for example, I can always make it happen by subscribing to the Diggnation podcast and telling it to refresh the podcast), I get a full application crash which generates the following event in the event log:
Faulting application name: iTunes.exe, version: 10.5.3.3, time stamp: 0x4f14cc3d
Faulting module name: KERNELBASE.dll, version: 6.1.7601.17651, time stamp: 0x4e211319
Exception code: 0x80000003
Fault offset: 0x0001280c
Faulting process id: 0x564
Faulting application start time: 0x01cce78789dc009a
Faulting application path: D:\Program Files (x86)\iTunes\iTunes.exe
Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
Report Id: ecc77400-537a-11e1-b809-00248c196007
Again, uninstalling iTunes 10.5.3 and re-installing iTunes 10.5.2 fixes this issue as well, but I really shouldn't have to do that. Is there any actual solution to these problems other than dowgrading to an older version?
Yes, I'm running current malware protection (and my system is clean) and yes, I've already checked any other obvious culprits to make sure I don't just have a corrupt library or file somewhere that's causing it. My Windows 7 install is completely up to date from a Windows Update perspective and also from a driver perspective (even including the motherboard and chipset drivers). I made sure to do a system file integrity check (sfc /scannow) and it confirmed my install of Windows isn't suspect, but beyond all that I was able to reproduce these failures on a completely separate machine running Windows 7 x64, without any of my media library or data on it -- iTunes 10.5.3 just seems to be bad news on Windows 7 x64 for me, even though I know there are definitely people are using it successfully. I don't get any other application crashes for any other applications, and I've never had an issue like this with any previous version of iTunes...
Last but not least, in case it matters, I'm running iOS 5.0.1 on both the iPhone4 and the iPad2. The iPhone4 is the GSM AT&T model and the iPad2 is the CDMA Verizon model.OK, I've given up. Uninstalled iTunes 10.5.3 permanently. It's a shame, 10.5.2 works perfectly but 10.5.3 is a complete and total cluster for me.
Anyone with the same problems who hasn't done this already, just uninstall iTunes and the Apple Mobile Device Service in your Add/Remove Programs, then re-install iTunes 10.5.2. You won't lose your library or any settings or apps, it will just go back to working again.
I wish Apple would acknowledge this so that I'd at least know it would be fixed in the future. -
Creation of Material using BDC Session method & global class
Hi
Creation of Material using BDC Session method & global class by using oops.
can anyone plz help me outHi,
it looks like it's not possible to call this BAPI wihtout material number. Here is a quote from BAPI documentation.
When creating material master data, you must transfer the material
number, the material type, and the industry sector to the method. You
must also enter a material description and its language.
Cheers -
Cannot reslove symbol class Date
I am trying to get a clock to show the time in my program. However, when I try to compile the program a "cannot resolve symbol class Date" error appears. I can't figure out where the problem in my program is. Here is my source code. I would appreciate any help.
import javax.swing.*;
import java.io.*;
import java.lang.*;
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
//import java.util.*;
import java.math.*;
public class store
public static void main(String[] args)
String dataInput;
dataInput = JOptionPane.showInputDialog(null, "Input item data: ");
JOptionPane.showMessageDialog(null, "" + dataInput);
EasyReader console = new EasyReader();
int i, j, k, inum, icom, min, nswaps; inum = 0; boolean swap = false;
double num[] = new double[100]; double dsum, T;
do
System.out.println(); System.out.println("Command Menu"); System.out.println();
System.out.println("1 = Display the data");
System.out.println("2 = Bubble Sort the numbers");
System.out.println("3 = Selection Sort the numbers");
System.out.println("4 = Insertion Sort the numbers");
System.out.println("5 = Binary Search for a number");
System.out.println("0 = Exit the program"); System.out.println();
System.out.print("Enter Command - ");
icom = console.readInt(); System.out.println();
switch (icom)
case 1: // Display the data
Display(inum, num);
break;
case 2: // Bubble sort
nswaps = 0;
for (i = 0; i < (inum-1); i++ )
for (j = (i+1); j < inum; j++)
if (num[i] > num[j])
T = num;
num[i] = num[j];
num[j] = T;
nswaps++;
System.out.println("The number of swaps was - " + nswaps);
Display(inum, num);
break;
case 3: // Selection sort
nswaps = 0;
for (i = 0; i < inum - 1; i++) {
min = i; swap = false;
for (j = i + 1; j < inum; j++)
if (num[j] < num[min]) { min = j; swap = true; }
if (swap) {T = num[min];
num[min] = num[i];
num[i] = T;
nswaps++;}
System.out.println("The number of swaps was - " + nswaps);
Display(inum, num);
break;
case 4: // Selection sort
nswaps = 0;
for (i = 1; i < inum; i++)
j = i; T = num[i];
while ((j > 0) && (T < num[j-1]))
num[j] = num[j-1]; j--; nswaps++;
num[j] = T; nswaps++;
System.out.println("The number of swaps was - " + nswaps);
Display(inum, num);
break;
case 5: // Binary Search
System.out.println("Your numbers will be sorted first");
System.out.println();
for (i = 1; i < inum; i++)
j = i; T = num[i];
while ((j > 0) && (T < num[j-1]))
num[j] = num[j-1]; j--;
num[j] = T;
System.out.print("Enter the number to locate - ");
T = console.readDouble(); nswaps = 0; System.out.println();
int left = 0, right = inum, middle; k = -1;
while (left <= right)
middle = (left + right) / 2;
if (T > num[middle]) {left = middle + 1; nswaps++;}
else if (T < num[middle]) {right = middle - 1; nswaps++;}
else { k = middle; break; }
if (k == -1) System.out.println("Your number was not located in the array");
else System.out.println("Your number " + T + " is in position " + (k+1));
System.out.println();
System.out.println(nswaps + " comparisons were needed to search for your number");
Display(inum, num);
break;
} while (icom != 0);
public static void Display(int inum, double num[])
{ int k;
System.out.println();
System.out.println("");
System.out.println();
for (k = 0; k < inum; k++)
System.out.println((k+1) + " - " + num[k]);
return;
class Clock extends Thread
//A Canvas that will display the current time on the calculator
Canvas Time;
//A Date object that will access the current time
private Date now;
//A string to hold the current time
private String currentTime;
//The constructor for Clock, accepting a Label as an argument
public Clock(Canvas _Time)
Time = Time; //Time is passed by reference, so Time
//now refers to the same Canvas
start(); //start this thread
//The overriden run method of this thread
public void run()
//while this thread exists
while (true)
try
draw_clock(); //calls the draw_clock method
sleep(1000); //puts this thread to sleep for one
//second
//catches an InterruptedException that the sleep() method might throw
catch (InterruptedException e) { suspend(); }
//catches a NullPointerException and suspends the thread if one occurs
catch (NullPointerException e) { suspend(); }
//A method to draw the current time onto the Time Canvas on the applet
public void draw_clock()
try
//Obtains the Graphics object from the Canvas Time so that it can
//be manipulated directly
Graphics g = Time.getGraphics();
g.setColor(Color.gray); //sets the color of the Graphics object
//to gray for the rectangle background
g.fillRect(0,0,165,25); //fills the Canvas area with a rectangle
//starting at 0,0 coordinates of the Canvas
//and extending to the length and width
g.setColor(Color.orange); //sets the color of the Graphics object
//to orange for the text color
get_the_time(); //calls the get_the_time() method
//calls the drawString method of the Graphics object g, which will
//draw a string to the screen
//Accepts a string and two integers to represent the coordinates
g.drawString("Current Time - " + currentTime, 0, 17);
//catches a NullPointerException and suspends the thread if one occurs
catch (NullPointerException e) { suspend(); }
//A method to obtain the current time, accurate to the second
public void get_the_time()
//creates a new Date object for "now" every time this is called
now = new Date( );
//integers to hold the hours, minutes and seconds of the current time
int a = now.getHours();
int b = now.getMinutes();
int c = now.getSeconds();
if (a == 0) a = 12; //if hours are zero, set them to twelve
if (a > 12) a = a -12; //if hours are greater than twelve, make a
//conversion to civilian time, as opposed to
//24-hour time
if ( a < 10) //if hours are less than 10
//sets the currentTime string to 0, appends a's value and a
//colon
currentTime = "0" + a + ":" ;
else
//otherwise set currentTime string to "a", append a colon
currentTime = a +":";
if (b < 10) //if minutes are less than ten
//append a zero to string currentTime, then append "b" and a colon
currentTime = currentTime + "0" + b + ":" ;
else
//otherwise append "b" and a colon to currentTime string
currentTime = currentTime + b + ":" ;
if (c < 10) //if seconds are less than ten
//append a zero to string currentTime, then append "c" and a colon
currentTime = currentTime + "0" + c ;
else
//otherwise append "c" to currentTime string
currentTime = currentTime + c;
} //end of the Clock classWow.
1) Please in future use the code tags to format code you post so that it doesn't think you have italics in your code and render it largely1 unreadable. Read this
http://forum.java.sun.com/help.jspa?sec=formatting
2) You commented out the import of java.util which is the problem you are complaining about.
3) Are you planning to stick all the code you ever write into the one source file? Why is all this stuff rammed together. Yoinks. -
Flash Player use to execute the main class entry point before rendering. Now it does not
Adobe Flash Player use to execute the main class entry point before rendering the first frame. Now using the latest browsers and Flash Player 11.8 (11.8.800.94, or 11.8.800.97 for Chrome).
With one of our swf apps, there are visual display objects on the first frame of the timeline. When the main class constructor is executed, those display objects are set to visible = false. So previously those display objects were never displayed because the first frame did not render until after the main class code was ran.
Now when we browse to the our website, we find that those display objects are visible for a split moment of time (such as a quarter of a second).
It appears that this may be a bug. We are wondering this could be new behavior based on loading/unloading the swf to optimize CPU usage and that Flash Player is taking a snapshot of the internal state of the first frame and displaying the cached snapshot before it actually loads.
So...Chris (or other Adobe representative), is Flash Player supposed to be rendering the display before any code executes it runs the main class?Not that I'm aware of. If this is something that just started with 11.8, then we could be running into some sort of bug injection. Could you please open a new bug report on this over at bugbase.adobe.com? When adding the bug, please include sample code, application or URL so we can quickly test this out internally. If you'd like to keep this private, feel free to email the attachment to me directly ([email protected]).
Once added, please post back with the bug number and we'll investigate from there. -
How to upload mass characteristic & class data.
Hi Team,
How to upload mass characteristic & class data. Is any BAPI or program available for this. LSMW is not working for this upload. Pls suggest.
ThanksHi,
Following are BAPI available-
1) BAPI_CLASS_CREATE Create Class BAPI
2) BAPI_CHARACT_CREATE BAPI for Characteristics u2013 Create
For more BAPI List go to link [http://www.sapbapi.com/bapi-list/|BAPI LIST]
You can use Ecatt for upload mass characteristic & class data. For Ecatt you go through this link [http://www.****************/Tutorials/eCATT/SAPGUIRecording/demo.htm|Ecatt Link]
Regards,
Ashish
Edited by: A. A. Vaidya on Aug 14, 2009 9:20 AM -
Associating a certain "useful life" for each "Asset Class" ?
Hi All
Could anyone tell me how to associate a certain "useful life" for each "Asset Class" ?
Which's customizing navigation?
Thanks
GandalfHi Try this..
If you go to IMG (Transaction SPRO) :-
-> Financial Accounting
-> Asset Accounting
-> Master Data
-> Screen Layout
-> Define Screen Layout for Asset Depreciation Areas
-> ScrnLayout XXXX
-> Field group rules
Here, you will find whether column 'Class' is activated -> it should be activated
Hope it helps
Zub -
Using ConnBean and CursorBean with a Data Source
Hi all,
I',m making a web app. using the Jdev (RUP4) with OA Extension. I looked in the help menu under "About Data-Access JavaBeans and Tags". Here I found the following example, but for some stange reason I cannot get the setProperty to work.
Example: Using ConnBean and CursorBean with a Data Source This following is a sample JSP page that uses ConnBean with a data source to open a connection, then uses CursorBean to execute a query.
<%@ page import="java.sql.*, oracle.jsp.dbutil.*" %>
<jsp:useBean id="cbean" class="oracle.jsp.dbutil.ConnBean" scope="session">
<jsp:setProperty name="cbean" property="dataSource"
value="<%=request.getParameter("datasource")%>"/>
</jsp:useBean>
<% try {
cbean.connect();
String sql="SELECT ename, sal FROM scott.emp ORDER BY ename";
CursorBean cb = cbean.getCursorBean (CursorBean.PREP_STMT, sql);
out.println(cb.getResultAsHTMLTable());
cb.close();
cbean.close();
} catch (SQLException e) {
out.println("<P>" + "There was an error doing the query:");
out.println("<PRE>" + e + "</PRE>\n<P>"); }
%>
Does anyone know how to set the "Property" to a datasource and make it work?
Best regards,
MHCIThere is no point-and-click (Import Data Source Metadata) way to use an LDAP server as a datasource. You have to use the Java Function provided on dev2dev. If you need help with it, please post here.
- Mike
Maybe you are looking for
-
A problem when start web dynpro application....
each time I start web dynpro application, I always be asked to provide username and password, but one of my colleague was only ased that for the first time....... it puzzled me very much, anybody helps me out?
-
PO for Material not exixting in material master
Hi all, I am creating a po for a material that is not exixting in material master. I have taken document type NB, Given vendor no, Entered Material No, acc assigment as "X All Aux.acct.assgts". Material Description, Quantity, Price, Currency, Plant,
-
How to display the dynamic region in full size
Hi, I'm not able to display the dynamic region in full size. In my page, i attached a dynamic region which refers a page fragment. This dynamic region contents are showing as small (scroll is there but i want to display fully). How to do this? Thanks
-
When I am burning certain movies iDVD just stops the wheel continues to spin but the counter stays the same forever. It usually gets down to 1 min and never goes any farther I have left it on over night and in the morning it still has not finished bu
-
Is there a Contacts or Address Book app for the iPAD AIR? Can I take the address book data off my iMAC and put it on the iPAD AIR, or can I take the Contacts off my iPHONE and put them on my iPAD AIR? I'm really a beginner, so please make answer bas