Creating control flow graph in java using list
i am making control flow graph in java by making use of stacks and list but i am unable to get to previous nodes of the current node.
how to code for the same and make a graph that is randomly generated.
Don't double post. I've removed the thread you started in the Java Desktop Application forum 4 minutes after this one, with the identically same question.
db
Similar Messages
-
About control flow graph on java
i want to ask if there are some papers about control flow graph based on java or another object oriented language.
thanks> i have search already on google. the problem is that i
didnt find anything usefull on this.
Once again, we have no idea what may or may not be useful to you or why the Google search results don't meet your satisfaction.
> i have to do a research on this subject.
Okay.
so i asked if u have already
found some papers about control flow graph based on
java or with some other object oriented language.
And the answer is, "Yes, I have found many". I found them easily with Google. Again, I have no idea which ones may or may not be useful to you, so it doesn't make much sense to just start posting a bunch of links only to have you say, "Nope, that's not what I'm looking for".
Keep researching, and best of luck.
~ -
Hi friends,
Hope u r all fine..
I actually want to ask about a source code that generate a control flow graph from a java program..LOLO wrote:
Hi friends,We've never met.
Hope u r all fine..It's "you are".
I actually want to ask about a source code that generate a control flow graph from a java program..So what is stopping you? -
I would like to know how i can create a bell graph with out using sub VIs, the data that i created consists in 500 readings with values of 0 to 100, i calculated the mean value and standard diviation. I hope some one can help me
Here's a quick example I threw together that generates a sort-of-bell-curve shaped data distribution, then performs the binning and plotting.
-Kevin P.
Message Edited by Kevin Price on 12-01-2006 02:42 PM
Attachments:
Binning example.vi 51 KB
Binning example.png 12 KB -
Setting Control-Flow- Case on java class/method
hello All :D
i have little problem about control flow case, in my case i've 2 page where before load to the page i'wanna make condition (if-else)
when the user choose the field, the java class get the value for make true condition. In this case, i wanna implement ControlFlowCase in java class/method, so anyone help..?
thx
agungdmtHave you considered using router activity - http://download.oracle.com/docs/cd/E17904_01/web.1111/b31974/taskflows_activities.htm#CJHFFGAF ?
-
How to use watch the control flow in the funation using dbms.output_line?
Hi All,
I have written a function which is working fine.
But i want to see the control and data flow in the function.
I want to see particular variable in the flow.
How can i do that?
Thanks in Advance,
Vinayuser12281717 wrote:
I want to see particular variable in the flow.
How can i do that?The question is where/when/how you want to see it. PL/SQL is a server-side language. A PL/SQL process runs entirely inside an Oracle server process.
That server process does not have a display terminal or a STDOUT device that you can view interactively for output of the process while it is running.
One option, and a common one, is to use DBMS_OUTPUT. This writes to a static PL/SQL session buffer (variable). When the process complete, the client (TOAD/SQL-Developer/SQL*Plus/Java/etc) can interrogate this buffer and display the contents of that to the end-user/developer.
But this is not interactive..
If you want to see interactively what is happening, there are couple of methods. You can run a client session that acts as a database pipe server. It reads data from a pipe and immediately displays it. In your PL/SQL process you then write to this pipe - where the other client process, running the pipe server, can immediately read and display it. See DBMS_PIPE for details.
You can use the same approach using a log file. Again, the PL/SQL process writes to a log file and you, using a client command like Unix/Linux tail, displays the latest additions to the file. See UTL_FILE for details.
If you are merely interested at what processing step a PL/SQL process is at, you can record that data in the action and module columns of your session (visible via the v$session and v$sqlarea views). See DBMS_APPLICATION_INFO for details.
You can create a procedure that inserts a log entry into a log table, using an autonomous transaction. This means that when your PL/SQL code calls this procedure to log something, that log data is immediately committed in its own transaction and visible to other clients.
There are other options too like advance message queues, or creating long operation entries, and so on. Which one to use depends entirely on your requirements.
The details of the above interface packages are available in the [Oracle® Database PL/SQL Packages and Types Reference|http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/toc.htm] guide. -
How Can I Create A .exe file in java using th enetbeans IDE
Dear Friends
i am trying to ceate a .exe file in th e netbeans IDE for jav prorams.
I am uanble to fine the option to create the .exe file.
i will be thankfull if you will help me out.Search for exe4j
-
How to create a tree structure using list items(tlist)
HI every one,
As we know how to create a tree structure using Hierarchy item type.
We have a requirement to create The same tree like structure using List Item(Tlist)
I would be so appreciated If you send with an example
Thanks
RangaReddyHi all
Any one help me please
Actually our client requirement is creation of tree structure using list item,similar to what we used in oracle Application(FNDSCSGN) form.We did the tree structure using hierarchy tree using Htree and Ftree.It working excelently.For client requirement, we want to use list item.How PJC(Pluggable Java Components) is useful for using list item(Tlist).I can't understand how it is useful.
Do you have any example please help me.
Thanks
RangaReddy -
Programatically calling control flows from java code
Hi all,
I have a bounded taskFlow that uses pageFragments. This flow is a region in a page(.jspx).
In my page fragment, I have a inputComboboxListOfValues with a ValueChangeListener code in a java bean.
I want when a value is changed, to programatically call "controll flow" (this one has: "From Activity Id" -the page fragment with that inputComboboxListOfValues, and "To Activity Id" - the default Activity on this task Flow).
So when the value change, practically I want to restart the flow programatically and pass the selected value as input parameter.
Since the inputComboboxListOfValues is not like a button where in the "Action" property you can set the Control Flow and navigate somewhere, the only option I have is to programatically cause navigation from java code (example: the value change listener code).
Can this be achieved?
Any advice is helpfull.Hi,
Absolutely, you can do it using the NavigationHandler. Try the following in you value change listener:
FacesContext context = FacesContext.getcurrentInstance();
NavigationHandler handler = context.getApplication().getNavigationHandler();
handler.handleNavigation(context, null, outcome);
// Render the response after that phase, the button actions should not be called
context.renderResponse();
// Add the following line if you want to prevent further value change listeners to be called
// throw new AbortProcessingException();Regards,
~ Simon -
Is it possible to create an interactive graph/chart using Report Builder 3.0?
Hi All,
I am using Report Builder for the first time. Here is what I am trying to accomplish. The data I plan to use in Report Builder is coming from SQL Server and in the Report Builder I want to create an interactive graph(chart).
For example, The table in SQL Server consists of Hospital Name, Measure name, and Scores for each measures for different quarters.
The idea is to create a graph that will allow the user to pick the measure name(from a drop down list or something similar) and Hospital name, then the graph will display the measure scores for different quarters and corresponding target scores for that
particular Hospital.
The data in SQL server looks like this :
measure
MC_NM
q112
q212
q312
XXY
TARGET
0.9
0.9
0.9
XXY
REGION
0.832879
0.848934
0.865714
XXY
Hospital 1
0.875
0.916084
0.92
XXY
Hospital 2
0.833333
0.876923
0.905797
ZZZ
TARGET
0.979167
0.952381
0.955556
ZZZ
REGION
0.942029
0.945205
0.983871
ZZZ
Hospital 1
0.22
0.270833
0.372549
ZZZ
Hospital 2
0.990291
0.989583
0.98913
YYY
TARGET
0.928934
0.9
0.891429
YYY
REGION
0.590909
0.655172
0.703704
YYY
Hospital 1
1
1
1
YYY
Hospital 2
0.788462
0.82
0.836735
Is this is possible to do in Report Builder 3.0? Please share your thoughts.Thanks a lot for your response.
I was able to create the parameters and now able to select the measure and facility and display that data in the table and chart.
Now I am trying to see if I can add a line(target values) on top of the column chart to show the whether the scores of each measures, for each quarters are how far from the target values.
Please let me know if this is possible. -
Non-built-in type contained in a java.util.List creates a SoapFaultException
I have created a web service that utilizes non-built-in types which uses other
non-built-in types...(simplified example follows)
public class MyService {
public
Foo getFoo( String id ) {
Foo foo = ...; // get persisted foo
return foo;
package mypackage;
public class Foo {
java.util.List barList;
public java.util.List getBars() { return barList; }
public void setBars( java.util.List barList ) { this.barList = barList; }
public class Bar {
// some attributes
I autotyped Bar explicitly and had servicegen/service autotype non-built-in data
types for MyService (aka..Foo)
When I execute the test web page...I get the following soap fault exception (Note:
only if the barList contains some Bar objects)
<env:Fault>
<faultcode>env:Server</faultcode>
<faultstring>Exception during processing: Error at line:1 col:9159 '1' expected
[?! -- [CDATA[ ] (see Fault Detail for stacktrace)</faultstring>
<detail>
<bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">Error
at line:1 col:9159 '1' expected [?! -- [CDATA[ ]
at weblogic.xml.babel.scanner.Scanner.startState(Scanner.java:280)
at weblogic.xml.babel.scanner.Scanner.scan(Scanner.java:176)
at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:510)
at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:487)
at weblogic.xml.babel.baseparser.EndElement.parse(EndElement.java:34)
at weblogic.xml.babel.baseparser.BaseParser.parseElement(BaseParser.java:444)
at weblogic.xml.babel.baseparser.BaseParser.parseSome(BaseParser.java:317)
at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:116)
at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
at weblogic.xml.xmlnode.NodeBuilder.build(NodeBuilder.java:73)
at weblogic.xml.xmlnode.NodeBuilder.<init>(NodeBuilder.java:46)
at weblogic.webservice.core.soap.SOAPEnvelopeImpl.<init>(SOAPEnvelopeImpl.java:147)
at weblogic.webservice.core.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:174)
at weblogic.webservice.core.handler.CheckSoapFaultHandler.handleResponse(CheckSoapFaultHandler.java:21)
at weblogic.webservice.core.HandlerChainImpl.handleResponse(HandlerChainImpl.java:231)
at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:243)
at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:423)
at weblogic.webservice.server.servlet.ServletBase.invokeMultiOutput(ServletBase.java:349)
at weblogic.webservice.server.servlet.WebServiceServlet.invokeMultiOutput(WebServiceServlet.java:354)
at weblogic.webservice.server.servlet.ServletBase.invokeOperation(ServletBase.java:300)
at weblogic.webservice.server.servlet.WebServiceServlet.invokeOperation(WebServiceServlet.java:344)
at weblogic.webservice.server.servlet.ServletBase.handleGet(ServletBase.java:266)
at weblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:158)
at weblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet.java:255)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:313)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6356)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
</bea_fault:stacktrace>
</detail>
</env:Fault>
When barList is empty...the webservice executes without any problems.
I noticed in the generated types.xml...there is a "List" entry and a "java.util.List"
entry. The bars has "List" associated with it...
<?xml version="1.0" encoding="UTF-8"?>
<XMLSchemaAndTypeMapping>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:stns="java:mypackage"
attributeFormDefault="qualified"
elementFormDefault="qualified"
targetNamespace="java:mypackage">
<xsd:complexType name="Foo">
<xsd:complexContent>
<xsd:element xmlns:tp="java:language_builtins.util"
name="bars"
type="tp:List"
nillable="true"
minOccurs="1"
maxOccurs="1">
</xsd:element>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:stns="java:language_builtins.util"
attributeFormDefault="qualified"
elementFormDefault="qualified"
targetNamespace="java:language_builtins.util">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/">
</xsd:import>
<xsd:complexType name="List">
<xsd:complexContent>
<xsd:restriction xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
base="soapenc:Array">
<xsd:attribute xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
ref="soapenc:arrayType"
wsdl:arrayType="xsd:anyType[]">
</xsd:attribute>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
<wsdd:type-mapping xmlns:wsdd="http://www.bea.com/servers/wls70"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<wsdd:type-mapping-entry xmlns:lcl0="java:mypackage"
class-name="mypackage.Bar"
type="lcl0:Bar"
serializer="mypackage.BarCodec"
deserializer="mypackage.BarCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="java:language_builtins.util"
class-name="java.util.List"
type="lcl0:List"
serializer="weblogic.xml.schema.binding.internal.builtin.JavaUtilListCodec"
deserializer="weblogic.xml.schema.binding.internal.builtin.JavaUtilListCodec"
>
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="java:mypackage"
class-name="mypackage.Foo"
type="lcl0:Foo"
serializer="mypackage.FooCodec"
deserializer="mypackage.FooCodec">
</wsdd:type-mapping-entry>
</wsdd:type-mapping>
</XMLSchemaAndTypeMapping>
Any ideas what is causing the problem?
Using WLS 8.1 sp2 on WinXP, JDK 1.4
Thanks in advance.
- DougCertain generic types like java.lang.Object, List etc
may not work properly with the test page, because it
is not possible to figure out how the XML data should
look like.
Can you please try it out using a clientgen generated
stub?
Regards,
-manoj
http://manojc.com
"Doug Leeper" <[email protected]> wrote in message
news:40e32790$1@mktnews1...
>
I have created a web service that utilizes non-built-in types which usesother
non-built-in types...(simplified example follows)
public class MyService {
public
Foo getFoo( String id ) {
Foo foo = ...; // get persisted foo
return foo;
package mypackage;
public class Foo {
java.util.List barList;
public java.util.List getBars() { return barList; }
public void setBars( java.util.List barList ) { this.barList =barList; }
public class Bar {
// some attributes
I autotyped Bar explicitly and had servicegen/service autotypenon-built-in data
types for MyService (aka..Foo)
When I execute the test web page...I get the following soap faultexception (Note:
only if the barList contains some Bar objects)
<env:Fault>
<faultcode>env:Server</faultcode>
<faultstring>Exception during processing: Error at line:1 col:9159 '1'expected
[?! -- [CDATA[ ] (see Fault Detail for stacktrace)</faultstring>
<detail>
<bea_fault:stacktracexmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">Er
ror
at line:1 col:9159 '1' expected [?! -- [CDATA[ ]
at weblogic.xml.babel.scanner.Scanner.startState(Scanner.java:280)
at weblogic.xml.babel.scanner.Scanner.scan(Scanner.java:176)
at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:510)
at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:487)
at weblogic.xml.babel.baseparser.EndElement.parse(EndElement.java:34)
atweblogic.xml.babel.baseparser.BaseParser.parseElement(BaseParser.java:444)
at weblogic.xml.babel.baseparser.BaseParser.parseSome(BaseParser.java:317)
at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:116)
at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
at weblogic.xml.xmlnode.NodeBuilder.build(NodeBuilder.java:73)
at weblogic.xml.xmlnode.NodeBuilder.<init>(NodeBuilder.java:46)
atweblogic.webservice.core.soap.SOAPEnvelopeImpl.<init>(SOAPEnvelopeImpl.java:
147)
atweblogic.webservice.core.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:174
atweblogic.webservice.core.handler.CheckSoapFaultHandler.handleResponse(CheckS
oapFaultHandler.java:21)
atweblogic.webservice.core.HandlerChainImpl.handleResponse(HandlerChainImpl.ja
va:231)
atweblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:243)
atweblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144
atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:423)
atweblogic.webservice.server.servlet.ServletBase.invokeMultiOutput(ServletBase
.java:349)
atweblogic.webservice.server.servlet.WebServiceServlet.invokeMultiOutput(WebSe
rviceServlet.java:354)
atweblogic.webservice.server.servlet.ServletBase.invokeOperation(ServletBase.j
ava:300)
atweblogic.webservice.server.servlet.WebServiceServlet.invokeOperation(WebServ
iceServlet.java:344)
atweblogic.webservice.server.servlet.ServletBase.handleGet(ServletBase.java:26
6)
atweblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:158)
atweblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet
.java:255)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
atweblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:971)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:402)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
atcom.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:
313)
atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
atweblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:6356)
atweblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)
atweblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3635)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
</bea_fault:stacktrace>
</detail>
</env:Fault>
When barList is empty...the webservice executes without any problems.
I noticed in the generated types.xml...there is a "List" entry and a"java.util.List"
entry. The bars has "List" associated with it...
<?xml version="1.0" encoding="UTF-8"?>
<XMLSchemaAndTypeMapping>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:stns="java:mypackage"
attributeFormDefault="qualified"
elementFormDefault="qualified"
targetNamespace="java:mypackage">
<xsd:complexType name="Foo">
<xsd:complexContent>
<xsd:element xmlns:tp="java:language_builtins.util"
name="bars"
type="tp:List"
nillable="true"
minOccurs="1"
maxOccurs="1">
</xsd:element>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:stns="java:language_builtins.util"
attributeFormDefault="qualified"
elementFormDefault="qualified"
targetNamespace="java:language_builtins.util">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/">
</xsd:import>
<xsd:complexType name="List">
<xsd:complexContent>
<xsd:restrictionxmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
base="soapenc:Array">
<xsd:attribute xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
ref="soapenc:arrayType"
wsdl:arrayType="xsd:anyType[]">
</xsd:attribute>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
<wsdd:type-mapping xmlns:wsdd="http://www.bea.com/servers/wls70"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<wsdd:type-mapping-entry xmlns:lcl0="java:mypackage"
class-name="mypackage.Bar"
type="lcl0:Bar"
serializer="mypackage.BarCodec"
deserializer="mypackage.BarCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="java:language_builtins.util"
class-name="java.util.List"
type="lcl0:List"
serializer="weblogic.xml.schema.binding.internal.builtin.JavaUtilListCodec"
>
deserializer="weblogic.xml.schema.binding.internal.builtin.JavaUtilListCodec
>>
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="java:mypackage"
class-name="mypackage.Foo"
type="lcl0:Foo"
serializer="mypackage.FooCodec"
deserializer="mypackage.FooCodec">
</wsdd:type-mapping-entry>
</wsdd:type-mapping>
</XMLSchemaAndTypeMapping>
Any ideas what is causing the problem?
Using WLS 8.1 sp2 on WinXP, JDK 1.4
Thanks in advance.
- Doug -
Use control flow statement to evalute signals
Hi,
I have a number of steps in my sequence file such that when TS runs it looked like this:
SignalA >20 pass
Signal B <= 30 pass
Now I wish to use some control flow statements like While and If loops so that I could create steps like this:
While ( SignalA > 20)
Problem is there are no "SignalA" in the TS expressions. I tried putting together an expression like RunState.Sequence.?? (some unique id of the step)Result.step = "failed". But the While loop can't seem to evaluate to True
Any suggestion would be appreciated.
Thanks!
ph2Hey ph2,
I'm not sure what your goal is with this but there is probably a better way to accomplish what you want.
Where is SignalA coming from? A VI? A dll? Do you only have to acquire it once or do you need to get it every iteration of the loop? Is the step that acquires it inside the While statement or is it an asynchronous thread? Why not just store it to a Local or FileGlobal and then access that. It would be easier.
BTW- If SignalA > 20 step is a Numeric Limit then you can access it by using Step.Result.Numeric.
Let me know exactly what your goal here is and I could possibly help you find a better solution.
Cheers,
jigg
CTA, CLA
teststandhelp.com
~Will work for kudos and/or BBQ~ -
Using List Class in java.awt / java.util ?
have a program that:
import java.util.*;
List list = new LinkedList();
list = new ArrayList();
... read a file and add elements to array
use a static setter
StaticGettersSetters.setArray(list);
next program:
import java.awt.*;
public static java.util.List queryArray =
StaticGettersSetters.getArray();
If I don't define queryArray with the package and class, the compiler
gives an error that the List class in java.awt is invalid for queryArray.
If I import the util package, import java.util.*; , the compiler
gives an error that the list class is ambiguous.
Question:
If you using a class that exists in multiple packages, is the above declaration of queryArray the only way to declare it ?
Just curious...
Thanks for your help,
YAM-SSMSo what you have to do is explicitly tell the compiler which one you really want by spelling out the fully-resolved class name:
import java.awt.*;
import java.sql.*;
import java.util.*;
public class ClashTest
public static void main(String [] args)
java.util.Date today = new java.util.Date();
java.util.List argsList = Arrays.asList(args);
System.out.println(today);
System.out.println(argsList);
}No problems here. - MOD -
How to create a user in UME Database using web dynpro java custom application
Hi,
Can you please suggest me how to create a user in UME Database using web dynpro java custom application.
My Requirement is user can register his/her user id in SAP Portal 7.3 UME database.
Please suggest me.
Thanks and Regards,
AmitHi Amit,
Generated Documentation (Untitled)
This is what you're looking for, there's no real cook-book -- though Amey mentioned there might be some material on SDN, perhaps some tutorials.
You should be looking into com.sap.security.api.IUserFactory, methods newUser(String) which gives you and IUserMaint and commitUser(IUserMaint, IUserAccount) -- IUserAccount can be obtained using com.sap.security.api.IUserAccountFactory, method newUserAccount(String)
Hope it helps,
D. -
How to create and edit a .ini file using java
Hi All...
Pls help me in creating and editing an .ini file using java...
thanks in advance
Regards,
sathyaLet's assume the ini file is a mapping type storage (key=value) so lets use Properties object. (works with java 1.4 & up)
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Properties;
public class Test {
private static Properties props;
public static void main(String[] args) throws IOException {
File file = new File("test.ini");//This is out ini file
props = new Properties();//Create the properties object
read(file);//Read the ini file
//Once we've populated the Properties object. set/add a property using the setProperty() method.
props.setProperty("testing", "value");
write(file);//Write to ini file
public static void read(File file) throws IOException {
FileInputStream fis = new FileInputStream(file);//Create a FileInputStream
props.load(fis);//load the ini to the Properties file
fis.close();//close
public static void write(File file) throws IOException {
FileOutputStream fos = new FileOutputStream(file);//Create a FileOutputStream
props.store(fos, "");//write the Properties object values to our ini file
fos.close();//close
}
Maybe you are looking for
-
Greetings all, I am a brand new iPhone owner (my first smartphone in fact) and am very sad that I don't love my new device as much as I was beginning to. I've come into the Apple family with open eyes and heart, but I am heartbroken and mortified an
-
Rounding value for purchase order quantity
Hi Guru , i need help for logic LOT SIZE MRP. In particolar i need of use the parameters of rounding for create the planned order multiple of the value. Example for a requirement of 3800 pz whit a value rounding of 500 i vould want that the system c
-
Part number ASY-47738-001 (back cover of phone)
I received my BB Curve today but the back cover does not close proper as it seems bent on the right side (if looking at the device from the front). I would want a replacement cover so does anyone know where I could order one. The part number on the p
-
My son is using an old iPhone as an iPod and is using my account. He is getting an iPad for Christmas. And I want to get him his own account that is not linked to my credit card. Can we transfer some of the apps I have already purchased on my Apple I
-
LSMW Batch Input Recording for Create BOM
Dear All, I want to do LSMW for Creating BOM using Batch Input Recording, I know that i have to make 2 time Recording, first for the BOM Header and second for the BOM item For the BOM header i have done it, but for the BOM item i got some trouble wit