Debug the Flex Application with tomcat Server
Hi,
I have the adobe flex builder plugin with my eclipse and I created a Flex project which is running on my Tomcat Server. Now, I would like to run my application in debug mode and I could not see the debug perspective. But, if my application is not configured with tomcat server, I can the debug perspective in my eclipse.
Do we need to do any additional settings for viewing the debug perspective for Flex Applications which is configured in tomcat Server?
You can't debug an app on the server, at least not using the debug perspective. Troubleshooting deployed apps if far more difficult.
If this post answers your question or helps, please mark it as such.
Similar Messages
-
Debugging the FLEX Application
Hi,
How to debug the flexapplication like .NET application
ThanksUse the debugging Flash Player and Flex Builder's debug mode.
Tracy -
Building Flex Application with Flex Builder installed in a remote server
Building Flex Application with Flex Builder installed in a remote server and different developers accessing it via VNC etc
I have a requirement as below..........this is mainly to look for a solution where we can see a environment.............where we can stop developer to install flex builder locally, download/check out code locally and work locally ..............Please have a look ........
1. There is Remote Server hosting our source code say 1st Remote Server
2. There is another 2nd Remote Server which support workspace for each user
3. Flex Builder installed in the 2nd Remote Server
4. Each Developer connects to the 2nd Remote Server via VNC etc log in to their workspace
5. Each developer check out code in their workspace by connecting to 1st Remote Server.
6. Start Flex Builder instance which is running in the 2nd Remote Server
5. Each developer open source code modifies, build application in their workspace and check
Do anyone have any idea whether this kind of environment is possible in Flex or can anyone suggest something which is almost close to this ? I heard Cloud Computing is something that world is looking to represent this kind of solution .............not sure thoughHi
The concept of cloud computing is not even very clear to me
I think this is what I understood about it ...........from this link http://communication.howstuffworks.com/cloud-computing.htm
It says
"Instead of installing a suite of software for each computer, you'd only have to load one application. That application would allow workers to log into a Web-based service which hosts all the programs the user would need for his or her job. Remote machines owned by another company would run everything from e-mail to word processing to complex data analysis programs. It's called cloud computing, and it could change the entire computer industry"
"There's a good chance you've already used some form of cloud computing. If you have an e-mail account with a Web-based e-mail service like Hotmail, Yahoo! Mail or Gmail, then you've had some experience with cloud computing. Instead of running an e-mail program on your computer, you log in to a Web e-mail account remotely"
My issue is not with the license. The solution that I am looking for is
1. Don't want the developer to download the source code in any fashion either checked out or anything else in the local machine
2. Want the developer to work directly on the server
3. Looking for a solution where each developer is not required to install Flex Builder locally and the developer can use Flex Builder that is installed on the server and in his workspace and create/modify build on the server itself
Hope I could make you understand this time ................
Regards
Biswamit -
Building Flex application with Flex Builder in a Remote Server - Cloud Computing
Hey Guys
I have a query or its confusion probably
I was just thinking if this kind of solution is existing or possible with say cloud computing or anything else?
This is what we all probably do for building our flex application?
1. There is Remote Server hosting our source code
2. Developer check out the code in their system locally by some Configuration tool like Perforce, CVS etc
3. Developer Install Flex Builder IDE locally and open the IDE and then create.build locally and then on testing check in the code in repository
All this is fine but we have some problem here
a. We have to get all the source code checked out/downloaded in some local machine
b. We have to install Flex Builder in each every developer machine with license.
A possible modification in the above can be as follows
1. Don't download/check out the source code locally in each machine
2. Create a mapped network drive of the Remote Repository and then work directly with the mapped network drive
3. Install Flex Builder locally
4. Start Flex Builder create a Flex Project with source code in the mapped network drive
But this has some potential problem as now the building of the flex application directly work with the mapped network drive. This is very slow especially when we Keep the "Build Automatically" Check box to true
My question is that can we have a solution like this ?
1. There is Remote Server hosting our source code
2. There is another 2nd Remote Server which support workspace for each user
3. Flex Builder installed in the 2nd Remote Server
4. Each Developer connects to the 2nd Remote Server log in to their workspace
5. Each developer check out code by connecting to 1st Remote Server. This code which is checked out now goes in their workspace in the 2nd Remote Server
6. Start Flex Builder instance which is running in the 2nd Remote Server
5. Each developer open source code modifies, build application in their workspace and check
I think this is something that I heard cloud computing can do ? Do anyone have any idea whether this kind of environment is possible in Flex or can anyone suggest something which is almost close to this ?
Regards
BiswamitHi
The concept of cloud computing is not even very clear to me
I think this is what I understood about it ...........from this link http://communication.howstuffworks.com/cloud-computing.htm
It says
"Instead of installing a suite of software for each computer, you'd only have to load one application. That application would allow workers to log into a Web-based service which hosts all the programs the user would need for his or her job. Remote machines owned by another company would run everything from e-mail to word processing to complex data analysis programs. It's called cloud computing, and it could change the entire computer industry"
"There's a good chance you've already used some form of cloud computing. If you have an e-mail account with a Web-based e-mail service like Hotmail, Yahoo! Mail or Gmail, then you've had some experience with cloud computing. Instead of running an e-mail program on your computer, you log in to a Web e-mail account remotely"
My issue is not with the license. The solution that I am looking for is
1. Don't want the developer to download the source code in any fashion either checked out or anything else in the local machine
2. Want the developer to work directly on the server
3. Looking for a solution where each developer is not required to install Flex Builder locally and the developer can use Flex Builder that is installed on the server and in his workspace and create/modify build on the server itself
Hope I could make you understand this time ................
Regards
Biswamit -
Distributing the Flex SDK with another application
Hi,
I understand that the Flex 2 SDK is a free download from
Adobe, but am I also allowed to redistribute it?
For example, if I write a program where I need to generate
swfs dynamically, can I distribute the Flex SDK with the program,
so that all I need to do is generate SWF files and invoke the
mxmlc?
Thanks,
RoyThe name of the self-signed cert that is generated in the "Create the APK package file" step is sampleCert.pfx, but the name of the file in the next step is sampleCert.p12. This should be fixed.
-
Problem to deploy ADF application on tomcat server
Hi all,
i 'm using this tutorial link to deploy adf application on tomcat server.
https://blogs.oracle.com/dana/entry/how_to_deploy_a_11g_adf_applic_1
but when i have run my application i have got following error
java.sql.SQLException: invalid arguments in call
log-
Jul 29, 2013 11:35:16 AM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b07-FCS) for context '/TestApacheApp_ViewController_webapp1'
Jul 29, 2013 11:35:19 AM oracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack contextInitialized
SEVERE: ADFConnection mbean not registered for defaultApplicationName.
Jul 29, 2013 11:35:19 AM oracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack contextInitialized
SEVERE:
oracle.jrf.UnknownPlatformException: JRF is unable to determine the current application server platform.
at oracle.jrf.ServerPlatformSupportFactory.getInstance(ServerPlatformSupportFactory.java:79)
at oracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack.contextInitialized(ADFConnectionLifeCycleCallBack.java:82)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:515)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1231)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1471)
at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:243)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
at java.lang.Thread.run(Thread.java:662)
Jul 29, 2013 11:35:19 AM oracle.adf.mbean.share.config.ADFConfigLifeCycleCallBack contextInitialized
SEVERE: Failed to register config mbean for defaultApplicationName.
Jul 29, 2013 11:35:19 AM oracle.adf.mbean.share.config.ADFConfigLifeCycleCallBack contextInitialized
SEVERE:
oracle.jrf.UnknownPlatformException: JRF is unable to determine the current application server platform.
at oracle.jrf.ServerPlatformSupportFactory.getInstance(ServerPlatformSupportFactory.java:79)
at oracle.adf.mbean.share.config.ADFConfigLifeCycleCallBack.contextInitialized(ADFConfigLifeCycleCallBack.java:79)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:515)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1231)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1471)
at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:243)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
at java.lang.Thread.run(Thread.java:662)
Jul 29, 2013 11:35:19 AM oracle.bc4j.mbean.BC4JConfigLifeCycleCallBack contextInitialized
SEVERE: Not able to get Deployment Name
Jul 29, 2013 11:35:28 AM oracle.adfinternal.controller.state.ControllerState initializeRequest
WARNING: ADFc: Deserialization of session state detected but ADF scope HA support is not enabled. Please enable ADF scope HA support in the adf-config.xml file to ensure correct functioning of your applicaiton.
Jul 29, 2013 11:35:28 AM oracle.adf.share.http.ServletADFContext initialize
WARNING: Found wrong applictionScope sticking to oldContext for oldApplication defaultApplicationName, while the current one is null
Jul 29, 2013 11:35:28 AM oracle.jbo.uicli.mom.CpxUtils$Visitor logMainApplicationCpx
INFO: jndi:/localhost/TestApacheApp_ViewController_webapp1/WEB-INF/classes/com/in/jagran/view/DataBindings.cpx
Jul 29, 2013 11:35:28 AM oracle.adf.share.jndi.MDSBackingStore documentExists
INFO: MDS-00013: no metadata found for metadata object "/META-INF/connections.xml"
Jul 29, 2013 11:35:32 AM oracle.adf.share.http.ServletADFContext initialize
WARNING: Found wrong applictionScope sticking to oldContext for oldApplication defaultApplicationName, while the current one is null
Jul 29, 2013 11:35:33 AM oracle.adf.share.http.ServletADFContext initialize
WARNING: Found wrong applictionScope sticking to oldContext for oldApplication defaultApplicationName, while the current one is null
Jul 29, 2013 11:35:47 AM org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8086
Jul 29, 2013 11:35:47 AM org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
Jul 29, 2013 11:35:48 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Jul 29, 2013 11:35:48 AM org.apache.coyote.http11.Http11AprProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8086
Jul 29, 2013 11:35:48 AM org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009There is no guideline I know of as this depends on the app itself.
What you should do is to deploy the application onto a test server and check the metrics of the app over a defined period of time with a defined amount of traffic.
Timo -
Integrating J2EE application with SQL Server Reporting Services
Hello everybody,
I want to integrate a J2EE application with SQL Server 2005 Reporting Services. In fact, it is the first time to be involved in developing an interoperability component between .Net web service and Java application. So I have learned for some time how to pass this challenge. Moreover, I found the following virtual lab is an excellent starting point "MSDN Virtual Lab: Implementing SQL Server Reporting Services with a Java Enterprise Edition (EE) Application" [http://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?EventID=1032315323&EventCategory=3&culture=en-US&CountryCode=US]
After going through the lab, I tried to apply the same code in my machine but I have stuck with the following error:
{color:#ff0000}*; nested exception is:*
org.xml.sax.SAXParseException: Premature end of file.
{color}{color:#333333}I use the following tools:
- Netbeans IDE 6.5
- Java SDK: build 1.6.0_01-b06
- Web Server: Apache Tomcat 6.0
- axis Jars (axis.jar, axis-ant.jar, commons-discovery-0.2.jar, commons-logging-1.0.4.jar, jaxrpc.jar, log4j-1.2.8.jar, saaj.jar, wsdl4j-1.5.1.jar)
- Reporting Tool: SQL Server 2005 Reporting Services
I will be so grateful if someone help me. I am waiting your response
this is a snippet of my code :
{color}{color:#333333}
package net;
{color}{color:#333333}
//import java.io.*;
import com.microsoft.schemas.sqlserver._2005._06._30.reporting.reportingservices.*;
import java.io.Serializable;
* @author Abdullah Al Fararjeh
public class NetData implements Serializable
static String[] data;
public NetData(){}
public static String[] getData(String myURL, String searchStr)
try{
CatalogItem[] returnedItems;
String folderName = "/";
returnedItems = FindReports(folderName, myURL, searchStr);
if(returnedItems != null && returnedItems.length > 0){
int count = returnedItems.length;
data = new String[count];
for(int x = 0; x < returnedItems.length; x++){
data[x] = returnedItems[x].getPath();
else
data = new String[] {"No Records Found"};
return (data);
catch(Exception e){
System.out.println(e.getMessage());
String[] s = new String[1];
s[0] = e.getMessage();
return (s);
private static CatalogItem[] FindReports(String folderName, String serverUrl, String searchStr)
try
//CatalogItem find;
ReportingService2005Locator loc = new ReportingService2005Locator();
//retrieve a report from the service locator
ReportingService2005Soap port = loc.getReportingService2005Soap(new java.net.URL(serverUrl));
//set the HTTP Basic Authentication credintials using Stub object methods
javax.xml.rpc.Stub stub = (javax.xml.rpc.Stub) port;
stub._setProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY, "abdullahPC\\abdullah");
stub._setProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY, "mypassword");
//set up a search condition where the item name contains the specified search string
SearchCondition condition = new SearchCondition();
condition.setCondition(ConditionEnum.Contains);
condition.setName("Name");
if(searchStr != null)
condition.setValue(searchStr);
else
condition.setValue("");
//create an array of SearchCondition which will contain our single search condition
SearchCondition[] conditions;
conditions = new SearchCondition[1];
conditions[0] = condition;
//Call the web service with the appropriate parameters
CatalogItem[] returnedItems;
System.out.println("before port.findItems");
returnedItems = port.findItems(folderName, BooleanOperatorEnum.Or, conditions);
System.out.println("after port.findItems");
return returnedItems;
catch(Exception e){
System.out.println(e.getMessage());
return null;
{color}
Edited by: Abdullah on Feb 8, 2009 3:03 AMI also need to do this. Were you successful in getting this to work? Is it possible for you to share how you accomplished this?
-
Help needed in running the RMI application with multiple clients
Hi
I have my RMI application with one server and 6 clients. I keep all the server and client programs in the same directory. When i run the clients, the first 2 clients work properly but when the third or the fourth client starts, it works normally in getting the data and after a while it crashes. If teh third crashes the 4th works and if the 4th crashes the 3rd, 4th and 5th works ...randomly atleast one or 2 clients crash always.
following is the error message generated for a client named controller:
[ code ]
Exception in thread "main" java.lang.NullPointerException
at PostOfficeImpl.isinputAvail(PostOfficeImpl.Java:315)
at PostOfficeImpl_Skel.dispatch(Unknown Source)
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:375)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
at sun,rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun,rmi.transport.Transport.serviceCall(Transport.java:149)
at sun,rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun,rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:595)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
at PostOfficeImpl_Stub.isinputAvail(Unknown Source)
at CONTROLLER.main(CONTROLLER.java:167)
my ser ver program is as follows:
class PostOfficeServer extends java.rmi.server.UnicastRemoteObject implements java.rmi.Remote {
// Instance of ourselves
public static String name;
private static PostOfficeServer rmi;
// public No-argument constructor
public PostOfficeServer() throws RemoteException {
super();
public static void main(String[] args){
if(System.getSecurityManager() == null) {
System.setSecurityManager(new RMISecurityManager());
try {
new PostOfficeServer();
PostOffice postOfficeserver = new PostOfficeImpl();
try {
getIP ipAdd1 = new getIP();
String ip1 = ipAdd1.getIP();
name = "//" + ip1 + "/PostOffice";
catch (Exception e){
System.out.println();
Naming.rebind(name, postOfficeserver);
System.out.println("RemoteServer bound");
System.out.println("initialise Data Structure");
postOfficeserver.initDatastructure();
System.out.println("initilised");
catch (java.rmi.RemoteException e) {
System.out.println("Cannot create remote server object");
catch (java.net.MalformedURLException e) {
System.out.println("Cannot look up server object");
System.out.println("Server started.");
System.out.println("Enter <CR> to end.");
try {
int serve2end = System.in.read();
}catch (IOException ioException) {
System.exit(0);
//endoffilePlease advise as this is very urgentHi
the following is the code for PostOfficeImpl...its a long code but i include it so that I get your help please...
import java.io.*;
import java.net.*;
import java.lang.*;
import java.rmi.*;
import java.rmi.server.*;
import java.rmi.RemoteException;
import java.util.HashMap;
import java.util.*;
public class PostOfficeImpl extends java.rmi.server.UnicastRemoteObject implements PostOffice {
//Implementations must have an explicit constructor in order to declare the
//RemoteException exception
public PostOfficeImpl() throws java.rmi.RemoteException {
super();
public static LinkedListImpl list = new LinkedListImpl();
public static oListImpl ovarList = new oListImpl();
public static iListImpl ivarList =new iListImpl();
public static lipsList llfirst;
public static oList opchannel, ofirst, onext;
public static iList ipchannel, ichan, ifirst;
public static String[] variNumber= new String[100];
public static String[] inoutChan, inChan, outChan,inVAR, invarLIST,outVAR, outvarLIST ;
public static String[][] driveMat;
DriverMatrix_mthds drive = new DriverMatrix_mthds();
private static Boolean All_Vacant;
private static Boolean tAll_Vacant;
public void sendAll_Vacant(Boolean All_Vacant) throws RemoteException {
tAll_Vacant = All_Vacant;
public Boolean getAll_Vacant() throws RemoteException{
return tAll_Vacant;
public void initDatastructure() throws RemoteException{
ifirst = null;
ofirst=null;
int i=0, j=0, k=0, ind1=0, ind2=0;
try{/// initialise list
drive = new DriverMatrix_mthds();
drive.VarTypeArray();
drive.nodeHeadVarType();
String[] variablel = drive.Variablelist();
drive.lipsvariablist();
drive.NodeOrigin();
drive.nodeInput();
drive.numOfnodes();
drive.noOfVariables();
drive.Assignlist();
drive.novarType();
drive.varNameType();
drive.nodeNumName();
drive.driverMat();
String[][] lookupvar = drive.varNameType();
//tempdrive = drive.driverMat();
long leng1 = variablel.length;
int varlistlength = (int) leng1;
int counter;
String s1="";
String s2="";
String s3 = "";
String s4 = "";
String s6 = "";
int s5=0, c=0;
while(variablel[k] !=null){
k=k+1;
int i1, j1;
String varname, varnumber;
varnumber = "";
while(i<=variablel.length-1){
if(variablel!=null){
c=c+1;
i=i+1;
try{
ind1=0; ind2 = 0;i=0;
while(!(variablel[i].equals("end of file"))){
s1 = variablel[i];
i=i+1;
s2 = variablel[i];
i=i+1;
System.out.println(" " + s1+" "+s2);
while(!(variablel[i].equals("end of input variable"))){
s4 = variablel[i];
i1=0;
Brkwhile:while(i1<=lookupvar.length-1){
j1=1;
if(lookupvar[i1][j1] != null){
if(lookupvar[i1][j1].equals(s4)){
s3 = lookupvar[i1][0];
break Brkwhile;
i1=i1+1;
//ifirst.varNum = varnumber;
s5 = 0;
s6 = null;
ifirst= new iList(s3,s4, s5, s6);
ivarList.add(ifirst);
System.out.println(s3+" "+s4+" "+s5+" "+s6);
i=i+1;
i = i + 1;
System.out.println("input list finished ");
while(!(variablel[i].equals("end of output variable"))){
s4 = variablel[i];
i1=0;
j1=1;
Brkwhile:while(lookupvar[i1][j1] != null){
if(lookupvar[i1][j1].equals(s4)){
s3 = lookupvar[i1][0];
break Brkwhile;
i1=i1+1;
s5 = 0;
s6 = null;
ofirst= new oList(s3,s4, s5, s6);
ovarList.add(ofirst);
System.out.println(s3+" "+s4+" "+s5+" "+s6);
i=i+1;
llfirst = new lipsList(s1, s2, ivarList, ovarList);
list.add(llfirst);
System.out.println("output list finished ");
i=i+1;
catch (NullPointerException ne){
catch (Exception d){}
public int isitOK(reqPacket sndNodetail)
throws RemoteException{
String nodnum = sndNodetail.srcNum;
String varnum = sndNodetail.varNum;
int status = 0;
llfirst = list.getFirst();
try{mainbegin:while (llfirst != null){
if((llfirst.nodeNum).equals(nodnum)){
ofirst = ovarList.getFirst();
while(ofirst != null){
if((ofirst.varNum).equals(varnum)){
if(ofirst.varVal==null){
status = 1;
break mainbegin;
ofirst = ofirst.next;
llfirst = llfirst.next;
catch (NullPointerException nl){}
return status;
public int senData(dataPacket sendToRTS)
throws RemoteException{
dataPacket datDetail = sendToRTS;
String nnum, vnum,typename, dval;
String dtype = "";
nnum = datDetail.nodeNum;
vnum = datDetail.varNum;
typename = datDetail.dataType;
dval = String.valueOf(datDetail.dataVal);
String [][] tempdrive, varnametype;
int status =0;
System.out.println("data received is from node " nnum " is "+ dval+"var num " +vnum);
status =0;
try{
//DriverMatrix_mthds drive = new DriverMatrix_mthds();
drive.VarTypeArray();
drive.Variablelist();
drive.NodeOrigin();
drive.nodeInput();
drive.numOfnodes();
drive.noOfVariables();
String[][] lookupvar = drive.novarType();
drive.varNameType();
drive.nodeNumName();
drive.driverMat();
tempdrive = drive.driverMat();
String varname="";
int i,j;
//with the recived var name get the var num
for(i=0; i<=lookupvar.length-1; i++){
j=0;
if(lookupvar[i][j] != null){
if(lookupvar[i][j].equals(typename)){
dtype = lookupvar[i][1];
}//varname is moved to dtype n used for checking
for(i=0; i<=tempdrive.length-1; i++){j=0;
if (tempdrive[i][j] != null){
if (tempdrive[i][0].equals(vnum)){
if (tempdrive[i][1].equals(nnum)){
if(tempdrive[i][2].equals(dtype)){
status = 1;
}//System.out.println("received data " vnum " "+ nnum +" " + dtype +" "+dval);// after checking status if the status is 1 then set the counter n olist// to no of times the value has to be ditributed
int Ccount =0;
//opchannel = llfirst.olist;
try{
System.out.println("status"+status);
if (status == 1){
llfirst = list.getFirst();
mainWhile: while (llfirst != null){
if((llfirst.nodeNum).equals(nnum)){
ofirst = ovarList.getFirst();
while(ofirst != null){
if((ofirst.varNum).equals(vnum)){
ofirst.varVal =dval;
//setting the counter for the varname
//check driver matrix fr the no of occurances
for(i=0; i<=tempdrive.length-1; i++){
j=0;
if (tempdrive[i][j] != null){
if (tempdrive[i][0].equals(vnum)){
for(j= j+3;j<=tempdrive.length-1;j++){
if(tempdrive[i][j] != null){
if(tempdrive[i][j].equals("1")){
Ccount = Ccount + 1;
System.out.println("count"+Ccount);
ofirst.counter = Ccount;
ofirst.varNum = vnum;for(i=0; i<=lookupvar.length-1; i++){
for(j=0; j<=2; j++){
if(lookupvar[i][j] != null){
if(lookupvar[i][j].equals(vnum)){
varname = lookupvar[i][1];
ofirst.varName = varname;
Ccount=0;
break mainWhile;
ofirst = ofirst.next;
llfirst = llfirst.next;
catch(NullPointerException s){}
/*use the vnum in the driver matrix and find out the nodes to which this variable
*has been sent as input , i mean destination nodes..
*find the node numbers ..knowing the node numbers parse through data structure
and set the input values to value and status 1./
llfirst = list.getFirst();
while(llfirst != null){
ifirst = llfirst.ilist.getFirst();
while(ifirst != null){
if (ifirst.varNum.equals(vnum)){
ifirst.varStat = 1;
ifirst.varVal = dval;
// System.out.println("nodenum "+llfirst.nodeNum+" varval " + ifirst.varVal +" stat "+ifirst.varStat+" vnum " + ifirst.varNum);
ifirst=ifirst.next;
llfirst=llfirst.next;
catch (Exception e){};
return status;
public int isinputAvail(reqPacket inputReq)
throws RemoteException{
String srcnum = inputReq.srcNum;
String varnum = inputReq.varNum;
int availstatus =0;
llfirst = list.getFirst();
//System.out.println("llfirst.nodeNum "+ llfirst.nodeNum);
whileloop:while (llfirst != null){
if((llfirst.nodeNum).equals(srcnum)){
ifirst = llfirst.ilist.getFirst();
breakloop: while(ifirst != null){
//System.out.println("var num " + varnum + " " + "status outside" + ifirst.varStat);
if((ifirst.varNum).equals(varnum)){
if (ifirst.varStat == 1){
availstatus = 1;
ifirst.varStat = 0;
// System.out.println("var num " + varnum + " " + "status" + availstatus);
break whileloop;
ifirst = ifirst.next;
llfirst = llfirst.next;
//System.out.println("var num " + varnum + " " + "status" + availstatus);
return availstatus;
public dataPacket senDatatoNode(reqPacket sendFromRTS)
throws RemoteException {
String nnum, vnum, dtype, dval;
//nnum = "";
dtype="";
//opchannel = llfirst.olist;
// ipchannel = llfirst.ilist;
reqPacket sendfromrts = sendFromRTS;
nnum = sendfromrts.srcNum;
vnum = sendfromrts.varNum;
// dtype = sendFromRTS.dataType;
dval = "";
int ctrchk=0;
try{
//send data to process node n reduce the counter by 1
llfirst = list.getFirst();
mainWhile: while (llfirst != null){
if((llfirst.nodeNum).equals(nnum)){
ofirst = llfirst.olist.getFirst();
whileofirst: while(ofirst != null){
if((ofirst.varNum).equals(vnum)){
dval = ofirst.varVal;
ofirst.counter = ofirst.counter - 1;
// System.out.println(ofirst.counter);
ctrchk=ofirst.counter;
break whileofirst;
ofirst = ofirst.next;
//set the status of respective input channel to 0 as data has been sent
ifirst = llfirst.ilist.getFirst();
if(ctrchk == 0){
whileifirst: while(ifirst != null){
if((ifirst.varNum).equals(vnum)){
//ifirst.varVal = dval;
ifirst.varStat =0;
break whileifirst;
llfirst = llfirst.next;
//System.out.println(llfirst);
catch(NullPointerException s){}
//find type
try{
DriverMatrix_mthds driver = new DriverMatrix_mthds();
driver.VarTypeArray();
driver.Variablelist();
driver.NodeOrigin();
driver.nodeInput();
driver.numOfnodes();
driver.noOfVariables();
driver.novarType() ;
String[][] lookupvar = driver.varNameType();
int i, j;
String varNum = vnum;
for(i=0; i<=lookupvar.length-1; i++){
j=0;
if(lookupvar[i][j] != null){
if(lookupvar[i][j].equals(vnum)){
dtype = lookupvar[i][2];
catch (Exception d){}
dataPacket retpac = new dataPacket(nnum, vnum, dtype, dval);
System.out.println("msg sent "+ nnum +" " + vnum+" "+ dtype+" "+ dval);
return retpac;
public String findnodeName(String nodeNum)
throws RemoteException{
String nnum = nodeNum;
llfirst = list.getFirst();
while (llfirst != null){
if((llfirst.nodeNum).equals(nnum)){
return llfirst.nodeName;
llfirst = llfirst.next;
System.out.println("node Number does not match with the list of node numbers generated..try again");
return null;
//find the nodenum given the node name
public String findnodenum(String nodename)
throws RemoteException{
String nodenumber ="";
String nodname = nodename;
try{DriverMatrix_mthds driver = new DriverMatrix_mthds();
driver.VarTypeArray();
driver.Variablelist();
driver.NodeOrigin();
driver.nodeInput();
driver.numOfnodes();
driver.noOfVariables();
driver.novarType() ;
driver.varNameType();
String[][] lookupnode = driver.nodeNumName();
int i, j;
for(i=0; i<=lookupnode.length-1; i++){
for(j=0; j<=2; j++){
if(lookupnode[i][j] != null){
if(lookupnode[i][j].equals(nodname)){
nodenumber = lookupnode[i][2];
catch (Exception d){}
return nodenumber;
public String findvarnum(String variablename)
throws RemoteException{
String varnumber = "";
try{
DriverMatrix_mthds driver = new DriverMatrix_mthds();
driver.VarTypeArray();
driver.Variablelist();
driver.NodeOrigin();
driver.nodeInput();
driver.numOfnodes();
driver.noOfVariables();
driver.novarType() ;
String[][] lookupvar = driver.varNameType();
int i, j;
String varname = variablename;
for(i=0; i<=lookupvar.length-1; i++){
for(j=0; j<=2; j++){
if(lookupvar[i][j] != null){
if(lookupvar[i][j].equals(varname)){
varnumber = lookupvar[i][0];
catch (Exception d){}
return varnumber;
public String findvartype(String varname)
throws RemoteException{
String vartype = "";
try{
DriverMatrix_mthds driver = new DriverMatrix_mthds();
driver.VarTypeArray();
driver.Variablelist();
driver.NodeOrigin();
driver.nodeInput();
driver.numOfnodes();
driver.noOfVariables();
driver.novarType();
String[][] lookupvar = driver.varNameType();
int i, j;
String varName = varname;
for(i=0; i<=lookupvar.length-1; i++){
for(j=0; j<=2; j++){
if(lookupvar[i][j] != null){
if(lookupvar[i][j].equals(varName)){
vartype = lookupvar[i][2];
catch (Exception d){}
return vartype;
public String findtypenum(String vartype){
String varnum = "";int i;
try{
DriverMatrix_mthds driver = new DriverMatrix_mthds();
driver.VarTypeArray();
driver.Variablelist();
driver.NodeOrigin();
driver.nodeInput();
driver.numOfnodes();
driver.noOfVariables();
String varNum[][] = driver.novarType() ;
String varType = vartype;
for(i=0; i<=9-1; i++){
if(varNum[i][0] != null){
if(varNum[i][0].equals(varType)){
varnum = varNum[i][1];
catch (Exception d){}
return vartype;
//return input variable list
public String[] inoutchanlist(String nodenum, String nodenam)
throws RemoteException{
try{
DriverMatrix_mthds drive = new DriverMatrix_mthds();
String[] varLIST = drive.Variablelist();
int i=0;int j;
while(varLIST[i]!=null){
i=i+1;
int arrlength = i;
inoutChan = new String[arrlength];
i=0; j=0;
WHILELOOP:
while(!(varLIST[i].equals("end of file"))){
while(varLIST[i].equals(nodenum)){
i=i+1;
while(varLIST[i].equals(nodenam)){
i=i+1;
while(!(varLIST[i].equals("end of input variable"))){
inoutChan[j] = varLIST[i];
i=i+1;
j=j+1;
System.out.println("endofinput");
inoutChan[j]="endofinchan";
j=j+1;
i=i+1;
while(!(varLIST[i].equals("end of output variable"))){
inoutChan[j] = varLIST[i];
i=i+1;
j=j+1;
System.out.println("endofoutput");
inoutChan[j]="endofoutchan";
break WHILELOOP;
i=i+1;
arrlength =j;
for(j=0; j<=arrlength-1; j++){
System.out.println(inoutChan[j]);
catch (Exception e){}
return inoutChan;
public String[] inchannel(String[] inoutChan) throws RemoteException{
int count=0;int i=0, j=0;
System.out.println("entered");
while(inoutChan[count]!=null){
System.out.println(count + " " +inoutChan[count]);
count=count+1;
inChan = new String[count];
while(!(inoutChan[i].equals("endofinchan"))){
inChan[j] =inoutChan[i];
j=j+1; i=i+1;
return inChan;
public String[] outchannel(String[] inoutChan) throws RemoteException{
int count=0;int i=0, j=0;
System.out.println("entered");
while(inoutChan[count]!=null){
System.out.println(count + " " +inoutChan[count]);
count=count+1;
outChan = new String[count+1];
while(!(inoutChan[i].equals("endofinchan"))){
i=i+1;
i=i+1;
while(!(inoutChan[i].equals("endofoutchan"))){
outChan[j] =inoutChan[i];
j=j+1; i=i+1;
return outChan;
public String[] invarChan(String nodename, int guardno)throws RemoteException{
try{
DriverMatrix_mthds drive = new DriverMatrix_mthds();
invarLIST = drive.invarlist();
int i=0;int j;
while(invarLIST[i]!=null){
i=i+1;
int arrlength = i;
inVAR = new String[arrlength];
i=0; j=0;
WHILELOOP: while(!(invarLIST[i].equals("end of file"))){
if (invarLIST[i].equals(nodename)){
i=i+1;
while(!(invarLIST[i].equals(nodename+String.valueOf(guardno)))){
i=i+1;}
i=i+1;
while(!(invarLIST[i].equals("endofguard"))){
System.out.println(invarLIST[i]);inVAR[j]=invarLIST[i]; i=i+1; j=j+1;}
break WHILELOOP;}
i=i+1;}
}catch (Exception d){}
return inVAR;
public String[] outvarChan(String nodename, int guardcount)throws RemoteException{
try{
DriverMatrix_mthds drive = new DriverMatrix_mthds();
outvarLIST = drive.outvarlist();
int i=0;int j;
while(outvarLIST[i]!=null){
i=i+1;
int arrlength = i;
outVAR = new String[arrlength];
i=0; j=0;
WHILELOOP: while(!(outvarLIST[i].equals("end of file"))){
if (outvarLIST[i].equals(nodename)){
i=i+1;
while(!(outvarLIST[i].equals(nodename+String.valueOf(guardcount)+"guard"))){
i=i+1;}
i=i+1;
while(!(outvarLIST[i].equals("end guard"))){
System.out.println(outvarLIST[i]);outVAR[j]=outvarLIST[i]; i=i+1; j=j+1;}
break WHILELOOP;}
i=i+1;}
}catch (Exception d){}
return outVAR;
private static Boolean start;
private static Boolean tstart;
public void sendstart(Boolean start) throws RemoteException {
tstart = start;
public Boolean getstart() throws RemoteException{
return tstart;
private static Boolean done;
private static Boolean tdone;
public void senddone(Boolean done) throws RemoteException {
tdone = done;
public Boolean getdone() throws RemoteException{
return tdone;
private static Boolean vac_busy1;
private static Boolean tvac_busy1;
public void sendvac_busy1(Boolean vac_busy1) throws RemoteException {
tvac_busy1 = vac_busy1;
public Boolean getvac_busy1() throws RemoteException{
return tvac_busy1;
private static int cus1_rit1;
private static int tcus1_rit1;
public void sendcus1_rit1(int cus1_rit1) throws RemoteException {
tcus1_rit1 = cus1_rit1;
public int getcus1_rit1() throws RemoteException{
return tcus1_rit1;
private static int cus1_rit2;
private static int tcus1_rit2;
public void sendcus1_rit2(int cus1_rit2) throws RemoteException {
tcus1_rit2 = cus1_rit2;
public int getcus1_rit2() throws RemoteException{
return tcus1_rit2;
private static int cus1_rit3;
private static int tcus1_rit3;
public void sendcus1_rit3(int cus1_rit3) throws RemoteException {
tcus1_rit3 = cus1_rit3;
public int getcus1_rit3() throws RemoteException{
return tcus1_rit3;
private static int cus1_it1;
private static int tcus1_it1;
public void sendcus1_it1(int cus1_it1) throws RemoteException {
tcus1_it1 = cus1_it1;
public int getcus1_it1() throws RemoteException{
return tcus1_it1;
private static int cus1_it2;
private static int tcus1_it2;
public void sendcus1_it2(int cus1_it2) throws RemoteException {
tcus1_it2 = cus1_it2;
public int getcus1_it2() throws RemoteException{
return tcus1_it2;
private static int cus1_it3;
private static int tcus1_it3;
public void sendcus1_it3(int cus1_it3) throws RemoteException {
tcus1_it3 = cus1_it3;
public int getcus1_it3() throws RemoteException{
return tcus1_it3;
private static int stkit_11;
private static int tstkit_11;
public void sendstkit_11(int stkit_11) throws RemoteException {
tstkit_11 = stkit_11;
public int getstkit_11() throws RemoteException{
return tstkit_11;
private static int stkit_12;
private static int tstkit_12;
public void sendstkit_12(int stkit_12) throws RemoteException {
tstkit_12 = stkit_12;
public int getstkit_12() throws RemoteException{
return tstkit_12;
private static int stkit_13;
private static int tstkit_13;
public void sendstkit_13(int stkit_13) throws RemoteException {
tstkit_13 = stkit_13;
public int getstkit_13() throws RemoteException{
return tstkit_13;
private static int c1_it1;
private static int tc1_it1;
public void sendc1_it1(int c1_it1) throws RemoteException {
tc1_it1 = c1_it1;
public int getc1_it1() throws RemoteException{
return tc1_it1;
private static int c1_it2;
private static int tc1_it2;
public void sendc1_it2(int c1_it2) throws RemoteException {
tc1_it2 = c1_it2;
public int getc1_it2() throws RemoteException{
return tc1_it2;
private static int c1_it3;
private static int tc1_it3;
public void sendc1_it3(int c1_it3) throws RemoteException {
tc1_it3 = c1_it3;
public int getc1_it3() throws RemoteException{
return tc1_it3;
//endoffile -
Best Testing tool to test the flex application?
Hi
What is the best tool to test the flex application ... and why? any ideas.... We are using flex unittest runner... better than this any thing other tools available....
Thanks
RamHi,
try flexunit associated with SpringActionscript. Very Powerful. You can test over service call, testing UIComponent, validations and many more. -
How to start Flash Media Encoder 3.2 from Flex application with run time parameters?
Hello ,
I'm developing the application to stream High Quality video.While streming by default camera/microphone settings the qulaity of streaming is not upto my expected level.I want to stream through Flash Media Encoder.My aim is the user login to the application.Video/audio qulaity details are retrived from shared object stored in the client machine.The login user name only gathered at run time & it will be the streaming profile name to Encoder.Once the the Encoder started the outgoing video will be come into screen to client.Please guide me How to start Flash Media Encoder 3.2 from Flex application with run time parameters(User name as streaming name) without manually start the FME?
Thanks in advance.
Regards
SasharyuvaHi MarcSaphiron,
Could you please send the samples?It will be much helpful to complete my
job within the deadline.
Thanks in advance.
Regards,
Sasharyuva -
how can flex tell if it's a mouseup event when the user
releases the mouse button outside the flex application? Say for
instance mousedown was done within a 500x500 embedded flex app but
mouseup is outside or relased on the HTML background. One more
thing, when we have something draggable, Flex doesn't execute the
stopDrag() when the user releases the mouse button outside the
embedded swf or fles app. Pls. help me with this. Thanks!I don't think the flex app can tell what happens outside the
app. But it can detect when it leaves the app, so I have found the
following line works fine inside initApp():
this.stage.addEventListener(Event.MOUSE_LEAVE, yourFunction);
and you have to:
import flash.display.Stage;
Doug -
I would like to have an email account that is password-protected that I can access on my Mac, Iphone and Ipad, separate from the Mail application, with an alert button that indicates unread messages
Try a search... I'm sure if you put forth a little effort you can find a solution that will work for you.
-
How can i share the pages application with another computer?
How can U share the pages application with another computer?
Just make sure it is for you or your family.
If you purchased Pages through the Mac App Store, then just login on the other computer using the same Apple I.D. and you can install it at no extra charge.
Peter -
Flash won't run the flex application (swf)
I'm Italian so my english isn't perfect....
I try to run a flex application (swf) on a pc without flash
player 9 (8.5) (on firefox and IE)....the flex application ask
correctly if i want to install the flash player....but anyway,
after the installation....the flex application doesn't run....
also, i try to restart the pc....but....swf doesn't
run.....anybody have the same problem ??Hung program: command-option-esc
Shut down: hold down power button for 5-10 seconds. -
Debugging the portal application
Hi all,
It is possible to debug the portal application.
If yes how.
Regards,
Aravindhan.RHi Aravindhan,
Check out this link
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/com.sap.km.cm.docs/lw/developercontent/sap%20portal%20development%20kit%20for%20.net%20developer's%20Guide/Previewing%20and%20Debugging%20Portal%20Applications_Debugging%20Portal%20Applications.html
Also do not forgot to set iViewProcessorService property, ProductionMode to false.
Regards,
Ashutosh
Maybe you are looking for
-
I've an iphone 4, its headset jack is not working properly, when i insert the earphone no sound is coming, but when i keep the earphone little out i can hear the sound but very low sound is coming out, I've never dropped my iphone please help...
-
COULD NOT OPEN A SCRATCH FILE BECAUSE THE DISK IS NOT AVAILABLE
Any thoughts? I can't open the program. I have a mac pro with four drives who thought I just finished a successful install of legit academic version previously used by myself only. Production Premium CS5. Matt
-
I'm really confused with this issue, Progressive or Interlaced? I've looked over the forum but can't get a solid answer as to which one to use. I know about what they are and how they work but it still doesn't help me understand what I should use. Th
-
Need to find out Rel11.5.10
Installed the Rel 11.5.10 and would like to know. 1. How to find the port for OEM (enterprise manager for DB) Port and URL. 2. Do I need to start some services and please let us know with steps. 3. is there things like OAM- for Apps monitoring. Pleas
-
ADF Mobile Error when deploying iOS
Hi all, i received this error when to try to distribute to iOS package 1. ive created the appid net.pakcikkantin.* [10:55:45 AM] error: /usr/bin/codesign force preserve-metadata=identifier,entitlements,resource-rules sign iPhone Developer: aaaaaaa (E