Setting Axis.AutoRange

Say I have manually set the range of my X and Y axis. How can I tell the axis/chart to use AutoRange to zoom out and show the entire dataset (i.e. zoom out)?
Axis.setAutoRanging(true) doesn't seem to trigger the chart to redraw the data.
I could manually determine the range, but that doesn't seem like the best solution.
Thanks

I made a lineChart that would autoRange when adding new data. Every time I pressed a button it would grab the data from the textfields then populate the chart.
I grabbed parts of the code, so this should be all of it. Also if it looks ugly it's because I did this a few months ago when I was new to FX since I needed the chart in a Swing app.
I'm not too sure why I put the autoranging in the AWT.Invoke and not the FXThread but it worked soo :P.
    NumberAxis xAxis = new NumberAxis("Number saved", 1, 10.1, 1);
    NumberAxis yAxis = new NumberAxis("Calculated Value", 0, 1000, 1);
    LineChart chart = new LineChart(xAxis, yAxis);     
XYChart.Series<Double,Double> volts = new XYChart.Series<>();
XYChart.Series<Double,Double> ress = new XYChart.Series<>();
XYChart.Series<Double,Double> curs = new XYChart.Series<>();
XYChart.Series<Double,Double> pows = new XYChart.Series<>();
       try
            java.awt.EventQueue.invokeLater(new Runnable()
                @Override
                public void run()
            yAxis.setAutoRanging(true);
                    initComponents();
                        initial();
public void initial() {
        Platform.runLater(new Runnable() {
            @Override
            public void run() {
                if(start == false)
                root.getChildren().add(chart);
           chart.getData().add(volts);
           chart.getData().add(ress);
           chart.getData().add(curs);
           chart.getData().add(pows);
           volts.setName("Voltage");
           ress.setName("Resistance");
           curs.setName("Current");
           pows.setName("Power");
           Scene scene = new Scene(root);
           scene.getStylesheets().add("calculator/chart.css");
          chart.getStyleClass().add("lineChart");
                       fxContainer.setScene(scene);
                       graph.add(fxContainer);
                       start = true;
                else
                       chart();
public void chart()    
    if(add == true)
        volts.getData().add(new XYChart.Data<>((double) c, Double.parseDouble(V1.getText())));
        ress.getData().add(new XYChart.Data<>((double) c, Double.parseDouble(R1.getText())));
        curs.getData().add(new XYChart.Data<>((double) c, Double.parseDouble(C1.getText())));
        pows.getData().add(new XYChart.Data<>((double) c, Double.parseDouble(P1.getText())));
        add = false;
}Edited by: KonradZuse on Apr 21, 2013 4:21 PM

Similar Messages

  • Problem in setting axis(x and y) in line graph

    Hi All,
    I have a database table student with two column score(number data type) and "no of student"(number data type). With this table I want a jsp line graph which will describe the student table.Score col would be in X axis and the other one in y axis.I am not able to set score in x axis. I am using JDeveloper 10.1.3.3.
    By using scatter graph I am able to set score in x axis and "no of student" in y axis.But my requirement is line graph.So, is there any way to achieve a line graph where score would be in x axis and "no of students" would be in y axis?
    Can any body help me regarding this matter?

    Hi,
    If you are still looking for the solution to this, you can change the graph to display the way you require.
    If you have a graph def file like BIGraphDef1.xml you need to select it in the application navigator. Then in the Structure window select the top level (ex. BIGraph1). This will give you the options available in the property inspector.
    If you change the dataRowShownAsASeries from True to False, you should be able to display your data in the line graph.
    Peter

  • Assigning curves to axis (and setting axis color) in report

    I'm creating a script that will generate a report.
    As a template for this report i have a tdr file with one 2D axis system.
    The channels to be displayed are stored in an global array, it can be any number of channels (hypothetically).
    Now for each channel I want to:
    Create a new curve.
    Create a new y-axis (except for the first, cause there is already one present)
    Assign the y-axis to the corresponding curve
    Assign the y-axis color to be the same as the corresponding curve.
    Creating several curves workes fine (and displaying them).
    Creating several y-axis workes fine as well.
    However, the last two operations are not as straightforward. Should the y-axis be assigned to the curve or the other way around (basicly, how is this done)?
    Setting the y-axis color sounds easy enough, from the help file:
    "D2AxisYLineColor: Specifies the color of the selected y-axis."
    However, when i use this command it doesn't change anything. Example:
    Call GraphObjOpen("2DAxis1")
    Call GraphObjOpen(D2AxisYObj(1))
    D2AxisYTxtColor ="red"
    D2AxisYLineColor = "red"
    Call GraphObjClose(D2AxisYObj(1))
    Call GraphObjClose("2DAxis1")
    This code WILL change the label text color (as expected), the line color (which i believe is supposed to be the color of the axis itself) remains unchanged. What am i missing here?

    Hi Salte
    You missed only one line
    Call GraphObjOpen("2DAxis1")
    D2AXISINDIVIDCOL = 1
    Call GraphObjOpen(D2AxisYObj(1))
    D2AxisYTxtColor ="red"
    D2AxisYLineColor = "blue"
    Call GraphObjClose(D2AxisYObj(1))
    Call GraphObjClose("2DAxis1")
    Press CTRL-A when you open the definition dialog to get all parameters.
    Hope this helps
    Winfried

  • Consume Webservices with AXIS from within WebAS

    I have problems invoking Web Services from within a bean running in WebAS. I am using Axis to create the calls to the WebServices.
    From a WebService_A running on WebAS 6.4 I want to call WebServices both running on the same server (WebAS 6.4) and on different servers (e.g. Axis).
    If in the endpoint I use the server machine's IP address, I get a server Timeout (502), if I use the machine's name I get the message "Unknown Host". Only when I call a WebService within WebAs and use "localhost" in the endpoint address, do I get the desired result.
    I have already described the problem of calling a web service on a different server in the topic below,and have also tried to configure the servers proxy settings as described (which however showed no effect):
    Proxy Settings for WebService invocation
    As for the generation of proxies (Developer Studio generated deployable proxies) I do not know if they would work for calls on a different server (e.g. Axis), because Developer Studio for some reason would not generate the proxy for the Axis-generated WSDL file (no detailled error message). However I cannot use the generated proxies anyway, because I need to call on endpoints which are provided from a GUI, so I must do the calls by hand - or can I reset a proxy's endpoint?
    Does anybody know which additional settings I have to set (Axis Engine, or in WebAS Administration?)
    Every hint would be greatly appreciated.

    Hi,
    You don't need LCDS/FDS/BlazeDS to consume a web service. All
    you need to do is to use the WebService component.
    Hope this helps.

  • Graph X-axis format

    Hello,
    I would like to change my X-axis (time axis) values of graduation. I want to make a numeric operation with each graduation.
    For example, now I have got all my graduation from 0 to 0,05 and I want them from 0 to the result of 0,05 / 2E-5. I want to make this operation over all graduation, since when I will zoom on the graph, the scale must be adapted with the operation.
    Cordially,
    BD
    Bonjour,
    Je souhaiterais formater l' axe des abscisses de mon graphe (axe des temps). Je voudrais changer la valeur de mes intervalles en appliquant une opération numérique.
    Par exemple, mon graphe est gradué de 0 à 0,05, et je voudrais qu'il soit de 0 à 0,05 / 2E-5. J'aimerais faire cette opération sur toutes les graduations, pour que lors d'un zoom, je puisse retrouver cette nouvelle échelle.
    Cordialement,
    BD
    ~ La programmeuse compile le C. ~
    http://www.pmeonline.fr.st
    http://www.nihon-fr.com
    http://www.cinemasie.com
    http://ippai.free.fr

    You may use Proprety Nodes to set axis format in your program. Right click on your graph terminal and select Create >> Proprety Node. It initially has one terminal (Visible by default), and you can set the proprety or get the current state of the proprety.
    You can modify the proprety your program will use by right clicking on th terminal and select the proprety you need.
    I think you will find all you need in Proprety >> Scale >> Range.
    To modify the read/write mode of the terminal, right clik on it and select Change To Read or Change To Write.
    Regards,
    Mathieu
    Message Edité par Mathieu R. le 10-17-2005 07:40 AM
    .mrLeft{float:left} .mrInfo{border-left:solid 1px #989898;font-size:x-small;color:#989898}
    Mathieu R.  
      CTD - Certified TestStand Developer / Développeur TestStand Certifié  
      CLAD - Certified LabVIEW Associate Developer  
    Attachments:
    XScaleSample.vi ‏30 KB

  • How integrating AXIS in oracle AS9i

    i installed AXIS under Oracle AS9i and it works except for WSDL creation.
    it inserts an attribute that i suppose it's not necessary.
    the attribute is xmlns:="" inside the tag wsdl:definitions.

    Using AXIS with OC4J 903
    Apache AXIS can be installed on OC4J.
    Installation steps:
    1. add the following in the application.xml:
    <web-module id="axis" path="../../home/applications/axis" />
    2. Add the following in the http-web-site.xml:
    <web-app application="default" name="axis" root="/axis" />
    3.
    Set AXIS=C:\OC4J904\j2ee\home\applications\axis\WEB-INF\lib;
    Set CLASSPATH=%AXIS%\axis.jar; %AXIS%\axis-nt.jar; C:\OC4J904\j2ee\home\applications\axis\WEB-INF\lib\jaxrpc.jar;C:\OC4J904\j2ee\home\applications\axis\WEB-INF\lib\ commons-discovery.jar;C:\OC4J904\j2ee\home\applications\axis\WEB-INF\lib\commons-logging.jar;C:\OC4J904\j2ee\home\applications\axis\WEB-INF\lib\log4j-1.2.4.jar;C:\OC4J904\j2ee\home\applications\axis\WEB-INF\lib\saaj.jar;C:\OC4J904\j2ee\home\applications\axis\WEB-INF\lib\wsdl4j.jar
    java org.apache.axis.client.AdminClient -lhttp://hostname:8888/services/AdminService deploy.wsdd

  • Certificate not Trusted Exception

    Hi,
    I am trying to invoke Axis soap call from webshpere (my requirement is to trust all certificates), but getting certificate not trusted exception. Appreciate any suggestions for fixing this issue.
    Code:
    public String transport(String strMessage, String strParticipantUrl, String methodName, String keyStorePwd) throws RouterException {
         String result = null;
         boolean isErrorOccured = false;
         String errorMessage = null;
         LOGGER.info("Calling Carrier Web Service.......");
         LOGGER.info("Web Service URL is :" + strParticipantUrl);
         LOGGER.info("Web Service Method Name is :" + methodName);
         ServiceFactory serviceFactory = new ServiceFactory();
         Service service = null;
         try {
              service = (Service) serviceFactory.createService(new QName(
              FundTransferConstants.QNAME_SERVICE));
              } catch (ServiceException e) {
              isErrorOccured = true;
         Integer connectionTimeOut = FundTransferContext.getInstance()
         .getConnectionTimeOut();
         org.apache.axis.client.Call call = null;
         if (null != service) {
              try {
                   LOGGER.info("setting ssl status to debug");
                   System.setProperty("javax.ssl.debug", "all");
                   String proxyHost = FundTransferUtil.getProperty("PROXY.HOST");
                   String proxyPort = FundTransferUtil.getProperty("PROXY.PORT");
                   String username = FundTransferUtil.getProperty("PROXY.USER");
                   String password = FundTransferUtil
                   .getProperty("PROXY.PASSWORD");
                   if (proxyHost != null && !"".equals(proxyHost)) {
                   System.setProperty("proxySet", "true");
                   System.setProperty("http.proxyHost", proxyHost);
                   if (proxyPort != null && !"".equals(proxyHost)) {
                        System.setProperty("http.proxyPort", proxyPort);
                   if (username != null && !"".equals(username)) {
                        System.setProperty("http.proxyUser", username);
                   if (password != null && !"".equals(password)) {
                        System.setProperty("http.proxyPassword", password);
                   String keyStoreLocation = FundTransferUtil
                   .getProperty("KEYSTORE_LOCATION");
                   String keystore = keyStoreLocation + "/"
                   + FundTransferConstants.KEYSTORE_FILE_NAME;
                   String storetype = FundTransferConstants.KEYSTORE_FILE_TYPE;
                   String][ props = {
                   { FundTransferConstants.TRUST_STORE, keystore, },
                   { FundTransferConstants.KEY_STORE, keystore, },
                   { FundTransferConstants.KEY_STORE_PWD, keyStorePwd, },
                   { FundTransferConstants.KEY_STORE_TYPE, storetype, },
                   { FundTransferConstants.TRUST_STORE_PWD, keyStorePwd, }, };
                   // Commented loading the keystore to test outbound calls
                   /*for (int index = 0; index < props.length; index++)
                   System.getProperties().setProperty(propsindex[0],
                   propsindex[1]);*/
                   // Commented all trusting trust manager
                   /*LOGGER.info("Creating TrustManager...");
                   TrustManager] trustAllCerts = new TrustManager[ { new X509TrustManager() {
                   public java.security.cert.X509Certificate[] getAcceptedIssuers() {
                   LOGGER.info("Acception all issuers");
                   return null;
                   public void checkClientTrusted(
                   java.security.cert.X509Certificate[] certs,
                   String authType) {
                   LOGGER.info("checkClientTrusted method");
                   public void checkServerTrusted(
                   java.security.cert.X509Certificate[] certs,
                   String authType) {
                   LOGGER.info("checkServerTrusted method");
                   // Install the all-trusting trust manager
                   try {
                        LOGGER.info("Creating SSLContext...");
                        SSLContext sc = SSLContext.getInstance("SSL");
                        LOGGER.info("Created SSLContext..." + sc);
                        sc.init(null, trustAllCerts,
                        new java.security.SecureRandom());
                        LOGGER.info("Created SSLContext initiated...");
                        LOGGER.info("sslDefaultSocketFactory......"
                        + sc.getSocketFactory());
                        HttpsURLConnection.setDefaultSSLSocketFactory(sc
                        .getSocketFactory());
                        LOGGER.info("sslDefaultSocketFactory......"
                        + sc.getSocketFactory());
                   } catch (Exception e) {
                   LOGGER.error("Exception is occuring...");
                   LOGGER.error(e.getMessage());
              call = (Call) service.createCall();
         } catch (ServiceException ex) {
         LOGGER.error(ex.getMessage());
              errorMessage = ex.getMessage();
              isErrorOccured = true;
         if (null != call) {
              LOGGER.info("Web Service TimeOut setting :"
              + connectionTimeOut.intValue());
              LOGGER.info("Setting axis propeties to use IBMFakeTrustSocketFactory");
              // This will allow web service requests using the HTTPS protocol without having a valid SSL certificate installed and configured.
              AxisProperties.setProperty("axis.socketSecureFactory","org.apache.axis.components.net.IBMFakeTrustSocketFactory");
              call.setTimeout(connectionTimeOut);
              call.setTargetEndpointAddress(strParticipantUrl);
              call.setProperty(Call.SOAPACTION_USE_PROPERTY,
              new Boolean(true));
              call.setProperty(Call.SOAPACTION_URI_PROPERTY,
              FundTransferConstants.EMPTY_STRING);
              QName qnameTypeStr = new QName(FundTransferConstants.NS_XSD,
              FundTransferConstants.QNAME_TYPE);
              QName header = new QName(FundTransferConstants.NS_XSD,
              FundTransferConstants.QNAME_TYPE);
              call.setReturnType(qnameTypeStr);
              call
              .setOperationStyle(FundTransferConstants.WEB_SERVICE_OPERATION_RPC_STYLE);
              call
              .setOperationName(new QName(
              FundTransferConstants.BODY_NAMESPACE_VALUE,
              methodName));
              call.addParameter("String_1", qnameTypeStr, ParameterMode.IN);
              String[] params = { strMessage };
              if (FundTransferConstants.CARRIER_RESEND_METHOD
              .equalsIgnoreCase(methodName)) {
                   try {
                        call.invoke(params);
                   } catch (Exception ex) {
                        errorMessage = ex.getMessage();
                        isErrorOccured = true;
                        LOGGER.info(ex.getMessage());
              } else {
              int counter = 0;
              while (counter < 3) {
              counter++;
              try {
                   // Here making the call which is failing
                   result = (String) call.invoke(params);
                   counter = 4;
              } catch (AxisFault axisFault) {
                   axisFault.printStackTrace();
                   errorMessage = axisFault.getMessage();
                   isErrorOccured = true;
                   LOGGER.error(axisFault.getMessage());
              } catch (Exception ex) {
                   ex.printStackTrace();
                   errorMessage = ex.getMessage();
                   isErrorOccured = true;
    if (isErrorOccured) {
    throw new RouterException(errorMessage);
    return result;
    System Error:
    12/7/07 13:43:41:639 EST 000000bb SystemErr R AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificate not Trusted
    faultActor:
    faultNode:
    faultDetail:
    {http://xml.apache.org/axis/}stackTrace: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificate not Trusted
    at com.ibm.jsse2.bx.a(bx.java(Compiled Code))
    at com.ibm.jsse2.by.a(by.java(Compiled Code))
    at com.ibm.jsse2.by.a(by.java:473)
    at com.ibm.jsse2.w.a(w.java(Compiled Code))
    at com.ibm.jsse2.w.a(w.java(Compiled Code))
    at com.ibm.jsse2.v.a(v.java(Compiled Code))
    at com.ibm.jsse2.by.a(by.java(Compiled Code))
    at com.ibm.jsse2.by.l(by.java(Compiled Code))
    at com.ibm.jsse2.by.startHandshake(by.java(Compiled Code))
    at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:224)
    at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:157)
    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:114)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
    at org.apache.axis.client.Call.invoke(Call.java:2553)
    at org.apache.axis.client.Call.invoke(Call.java:2248)
    at org.apache.axis.client.Call.invoke(Call.java:2171)
    at org.apache.axis.client.Call.invoke(Call.java:1691)
    at com.dtcc.insurance.fundtransfer.transport.TransportHandler.transport(TransportHandler.java:245)
    at com.dtcc.insurance.fundtransfer.router.MessageRouter.transport(MessageRouter.java:112)
    at com.dtcc.insurance.fundtransfer.controller.MessageController.processMessage(MessageController.java:155)
    at com.dtcc.insurance.fundtransfer.service.FundTransferServiceImpl.fundTransferRequest(FundTransferServiceImpl.java:88)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
    at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
    at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:402)
    at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:309)
    at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:333)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
    at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:481)
    at org.apache.axis.server.AxisServer.invoke(AxisServer.java:323)
    at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:854)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:339)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:762)
    at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3174)
    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:253)
    at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:229)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1970)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:114)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
    at com.ibm.ws.ssl.channel.impl.SSLConnectionLink.determineNextChannel(SSLConnectionLink.java:950)
    at com.ibm.ws.ssl.channel.impl.SSLConnectionLink$MyReadCompletedCallback.complete(SSLConnectionLink.java:582)
    at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1704)
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
    Caused by: java.security.cert.CertificateException: Certificate not Trusted
    at com.ibm.jsse.bi.a(Unknown Source)
    at com.ibm.jsse.bi.checkServerTrusted(Unknown Source)
    at com.ibm.jsse2.ba.checkServerTrusted(ba.java:16)
    ... 57 more
    12/7/07 13:43:41:640 EST 000000bb SystemErr R AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificate not Trusted
    faultActor:
    faultNode:
    faultDetail:
    {http://xml.apache.org/axis/}stackTrace: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificate not Trusted
    at com.ibm.jsse2.bx.a(bx.java(Compiled Code))
    at com.ibm.jsse2.by.a(by.java(Compiled Code))
    at com.ibm.jsse2.by.a(by.java:473)
    at com.ibm.jsse2.w.a(w.java(Compiled Code))
    at com.ibm.jsse2.w.a(w.java(Compiled Code))
    at com.ibm.jsse2.v.a(v.java(Compiled Code))
    at com.ibm.jsse2.by.a(by.java(Compiled Code))
    at com.ibm.jsse2.by.l(by.java(Compiled Code))
    at com.ibm.jsse2.by.startHandshake(by.java(Compiled Code))
    at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:224)
    at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:157)
    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:114)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
    at org.apache.axis.client.Call.invoke(Call.java:2553)
    at org.apache.axis.client.Call.invoke(Call.java:2248)
    at org.apache.axis.client.Call.invoke(Call.java:2171)
    at org.apache.axis.client.Call.invoke(Call.java:1691)
    at com.dtcc.insurance.fundtransfer.transport.TransportHandler.transport(TransportHandler.java:245)
    at com.dtcc.insurance.fundtransfer.router.MessageRouter.transport(MessageRouter.java:112)
    at com.dtcc.insurance.fundtransfer.controller.MessageController.processMessage(MessageController.java:155)
    at com.dtcc.insurance.fundtransfer.service.FundTransferServiceImpl.fundTransferRequest(FundTransferServiceImpl.java:88)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
    at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
    at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:402)
    at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:309)
    at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:333)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
    at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:481)
    at org.apache.axis.server.AxisServer.invoke(AxisServer.java:323)
    at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:854)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:339)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:762)
    at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3174)
    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:253)
    at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:229)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1970)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:114)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
    at com.ibm.ws.ssl.channel.impl.SSLConnectionLink.determineNextChannel(SSLConnectionLink.java:950)
    at com.ibm.ws.ssl.channel.impl.SSLConnectionLink$MyReadCompletedCallback.complete(SSLConnectionLink.java:582)
    at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1704)
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
    Caused by: java.security.cert.CertificateException: Certificate not Trusted
    at com.ibm.jsse.bi.a(Unknown Source)
    at com.ibm.jsse.bi.checkServerTrusted(Unknown Source)
    at com.ibm.jsse2.ba.checkServerTrusted(ba.java:16)
    ... 57 more
    javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificate not Trusted
    at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:131)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
    at org.apache.axis.client.Call.invoke(Call.java:2553)
    at org.apache.axis.client.Call.invoke(Call.java:2248)
    at org.apache.axis.client.Call.invoke(Call.java:2171)
    at org.apache.axis.client.Call.invoke(Call.java:1691)
    at com.dtcc.insurance.fundtransfer.transport.TransportHandler.transport(TransportHandler.java:245)
    at com.dtcc.insurance.fundtransfer.router.MessageRouter.transport(MessageRouter.java:112)
    at com.dtcc.insurance.fundtransfer.controller.MessageController.processMessage(MessageController.java:155)
    at com.dtcc.insurance.fundtransfer.service.FundTransferServiceImpl.fundTransferRequest(FundTransferServiceImpl.java:88)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
    at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
    at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:402)
    at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:309)
    at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:333)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
    at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:481)
    at org.apache.axis.server.AxisServer.invoke(AxisServer.java:323)
    at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:854)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:339)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:762)
    at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3174)
    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:253)
    at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:229)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1970)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:114)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
    at com.ibm.ws.ssl.channel.impl.SSLConnectionLink.determineNextChannel(SSLConnectionLink.java:950)
    at com.ibm.ws.ssl.channel.impl.SSLConnectionLink$MyReadCompletedCallback.complete(SSLConnectionLink.java:582)
    at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1704)
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
    Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificate not Trusted
    at com.ibm.jsse2.bx.a(bx.java(Compiled Code))
    at com.ibm.jsse2.by.a(by.java(Compiled Code))
    at com.ibm.jsse2.by.a(by.java:473)
    at com.ibm.jsse2.w.a(w.java(Compiled Code))
    at com.ibm.jsse2.w.a(w.java(Compiled Code))
    at com.ibm.jsse2.v.a(v.java(Compiled Code))
    at com.ibm.jsse2.by.a(by.java(Compiled Code))
    at com.ibm.jsse2.by.l(by.java(Compiled Code))
    at com.ibm.jsse2.by.startHandshake(by.java(Compiled Code))
    at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:224)
    at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:157)
    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:114)
    ... 48 more
    Caused by: java.security.cert.CertificateException: Certificate not Trusted
    at com.ibm.jsse.bi.a(Unknown Source)
    at com.ibm.jsse.bi.checkServerTrusted(Unknown Source)
    at com.ibm.jsse2.ba.checkServerTrusted(ba.java:16)
    ... 57 more

    I found the fix from Oracle Support Knowlededge Base
    sslTool serverInfo --url https://HOST:9043 --certFile newcert.cer
    PStoreTool located in REGISTRY_HOME/bin/PStoreTool add -config
    WEBLOGIC_HOME/user_projects/domains/[osr_domain_name]/servers/[osr_server_name]/tmp/_WL_user/registry/[unique id]/public/conf/pstore.xml -certFile newcert.cer
    I was updating wrong file with the certificate. It had to be pstore.xml. This solved my issue.
    Thanks & Regards,
    Parshant

  • How to change the legend value in graph OBIEE

    I have 2 columns A and B are measure columns.
    How can I change "A" and "B" in the legend of my vertical bar graph to "LIA" and "ASSET", without changing the A,B name in my subject area.
    Thanks for any help!
    Edited by: user6388889 on Nov 18, 2012 5:46 PM
    Edited by: user6388889 on Nov 18, 2012 5:55 PM

    Hi,
    You can set Axis titles (Vertical Axis & Horizontal Axis) from Graph Properties --> Titles and Labels --> Axis Titles. In case of multiple columns on the access you will be seeing Vertical Axis 1 and Vertical Axis 2.
    Let me know if this helps.
    Regards,
    Jay

  • 3d plot z scaling

    An aplication we're developing utilizes the 3D Surface.vi to plot a
    surface. However, I'm unable to come up with a way to controle the z
    scaling programmatically by property node or by other means. In
    addition, it would be nice if anyone has a way to generate a cursor
    that reads out the z value on the surface.
    Thanks.
    Devon
    Wavefront Sciences, Inc.
    LV 7.1

    The attached ZIP should get you started.
    The top level VI labeled "3-d Surfaace.VI"
    explicitly sets the scale ranges in the sub VI Set Axis Range
    and creates two cursors. The second of which can be used to probe the suface.
    I hope this helps,
    Ben
    Message Edited by Ben on 10-22-2005 08:22 PM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Code.zip ‏259 KB

  • Report not grouping by year

    Hi
    I have a report that is grouping by month but not year and I can't see why.
    I run the below query:
    select count(case when report_base = 2 then 1 end) as 'Base 1',
    count(case when report_base = 4 then 1 end) as 'Base 2',
    count(case when report_base = 5 then 1 end) as 'Base 3',
    month(Report_Date) as Month,
    year(Report_Date) as Year
    from [dbo].[SRF_Data]
    where Report_Date >= dateadd(month, datediff(month, 0, getDate()) -12, 0)
    group by year(Report_Date),month(Report_Date)
    And get the results below:
    When I put this into a report and run it the report shows broken down by month (it shows a 13 as well?) but not year. It is grouping the results for 2015 in with 2014. The X axis is set to Scalar as I want to show empty months. My category groups are set
    to Year and then month.
    Can someone let me know what I'm doing wrong?
    Thanks.

    Hi rjp1977,
    I tested the issue in my local machine, when we set Axis type to category, since there is no data for October, it will not be displayed. If we set Axis type to Scalar, October will be displayed in the chart, but the data of 2014 and 2015 will be displayed
    together by design.
    If you care about the function, i recommend you that submit the requirement at
    https://connect.microsoft.com/SQLServer/ . If the requirement mentioned by customers for many times, the product team may consider to add this feature in the next SQL Server version. Your feedback is valuable
    for us to improve our products and increase the level of service provided.
    In addition, the screenshot you provided has value of February 2015.
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • C# Joystick interface with SlimDX.DirectInput

    I am trying to create a robot controlled by a joystick.  I am using a Logitech Rumblepad with two POV's and multiple buttons (a gamepad).
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using SlimDX.DirectInput;
    using Rachelbot.API;
    using System.Reflection;
    namespace Rachelbot.API
    public class rumblepad
    private Joystick joystick;
    private JoystickState state = new JoystickState();
    public rumblepad(DirectInput directInput, int number)
    // Search for Device
    var devices = directInput.GetDevices(DeviceClass.GameController, DeviceEnumerationFlags.AttachedOnly);
    if (devices.Count == 0 || devices[number] == null)
    // No Device
    return;
    // Create Gamepad
    joystick = new Joystick(directInput, devices[number].InstanceGuid);
    //joystick.SetCooperativeLevel(game.Window.Handle, CooperativeLevel.Exclusive | CooperativeLevel.Foreground);
    // Set Axis Range for the Analog Sticks between -1000 and 1000
    foreach (DeviceObjectInstance deviceObject in joystick.GetObjects())
    if ((deviceObject.ObjectType & ObjectDeviceType.Axis) != 0)
    joystick.GetObjectPropertiesById((int)deviceObject.ObjectType).SetRange(-1000, 1000);
    joystick.Acquire();
    public JoystickState GetState()
    if (joystick.Acquire().IsFailure || joystick.Poll().IsFailure)
    state = new JoystickState();
    return state;
    state = joystick.GetCurrentState();
    return state;
    I am using the tick function to check the state of the joystick. All I am returning in the state is info from the 1st POV stick and nothing from the 2nd POV stick or the buttons.  It
    looks as if the information is in the non-public members for the buttons, but I am unsure of how to use the reflection to read the pressedbuttuns and released buttons.

    Hello,
    Welcome to MSDN forum.
    I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    SlimDX says that
    if you have questions to ask, or otherwise wish to discuss SlimDX, we ask that you use the
    DirectX forum on GameDev.Net. Please see:
    http://slimdx.org/ So DirectX forum may be a proper forum.
    Thanks,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • 3d applet problem

    I'm new to java 3D and want to create an app that runs both as applet and application. When I load the html I just get the grey background in the browser and a brand new window that runs the program as as application.
    When trying to run as an application, I get an empty window followed by another smaller window that runs the app.
    import java.applet.Applet;
    import java.net.*;
    import java.awt.*;
    import javax.media.j3d.*;
    import javax.vecmath.*;
    import com.sun.j3d.utils.geometry.*;
    import com.sun.j3d.utils.universe.*;
    import com.sun.j3d.utils.image.TextureLoader;
    import com.sun.j3d.utils.applet.MainFrame;
    public class ThreeDReels extends Applet {
    private BoundingSphere bounds = new BoundingSphere( new Point3d( 0.0,0.0,0.0 ), 200.0 );
    public ThreeDReels() {
    setLayout(new BorderLayout());
    Canvas3D c3d = new Canvas3D(null);
    add("Center", c3d);
              SimpleUniverse u = new SimpleUniverse( );
              BranchGroup bgroot = new BranchGroup( );
              TransformGroup tgr1 = setBehaviour(bgroot, 500);
              tgr1.addChild(createReel(new Vector3f(0.3f, 0.0f, 0.0f), 0.4f, 0.2f));
              TransformGroup tgr2 = setBehaviour(bgroot, 500);
              tgr2.addChild(createReel(new Vector3f(0.0f, 0.0f, 0.0f), 0.4f, 0.2f));          
              TransformGroup tgr3 = setBehaviour(bgroot, 500);
              tgr3.addChild(createReel(new Vector3f(-0.3f, 0.0f, 0.0f), 0.4f, 0.2f));          
              u.getViewingPlatform( ).setNominalViewingTransform( );
              addLights( bgroot );
         u.addBranchGraph( bgroot );     
         public BranchGroup createReel(Vector3f position, float diameter, float height)
              BranchGroup bg = new BranchGroup( );
    Appearance app = new Appearance();
    TextureLoader texLoader = new TextureLoader("c:\\javaclasses\\3dreels\\reel1.gif", this);
    app.setTexture(texLoader.getTexture());
         Transform3D translate = new Transform3D();
         Transform3D rotate = new Transform3D();
    translate.set(position);
    TransformGroup ReelTGT = new TransformGroup(translate);          
    rotate.rotZ(Math.PI/2.0d);
    TransformGroup ReelTGR = new TransformGroup(rotate);          
         Cylinder reel = new Cylinder(diameter, height, Primitive.GENERATE_TEXTURE_COORDS, app );
              ReelTGR.addChild( reel );
              ReelTGT.addChild(ReelTGR);
              bg.addChild(ReelTGT);
         bg.compile();          
              return bg;
         public TransformGroup setBehaviour( BranchGroup bg, int speed )     
              TransformGroup objTrans = new TransformGroup( );
              objTrans.setCapability( TransformGroup.ALLOW_TRANSFORM_WRITE );
              Transform3D xAxis = new Transform3D( );
    xAxis.rotZ(Math.PI*1.5f); // set axis of rotation     
    Alpha xAlpha = new Alpha(-1, speed);          
    RotationInterpolator rotator = new RotationInterpolator(xAlpha, objTrans, xAxis, 0.0f, (float)Math.PI*2.0f);          
    rotator.setSchedulingBounds(bounds);
    objTrans.addChild(rotator);
              bg.addChild( objTrans );
              return objTrans;
         public void addLights( BranchGroup bg )
              Color3f color = new Color3f( 1.0f,1.0f,1.0f );
              Vector3f direction = new Vector3f( -1.0f,-1.0f,1.0f );
              DirectionalLight light = new DirectionalLight( color, direction );
              light.setInfluencingBounds(bounds);
              bg.addChild( light );
         public BranchGroup createBackground( )
              BranchGroup backgroundGroup = new BranchGroup( );
              Background back = new Background( );
              back.setApplicationBounds( bounds );
              BranchGroup bgGeometry = new BranchGroup( );
              Appearance app = new Appearance( );     
         Sphere sphere = new Sphere( 1.0f, Primitive.GENERATE_NORMALS_INWARD, app );
              bgGeometry.addChild( sphere );
              back.setGeometry( bgGeometry );
              backgroundGroup.addChild( back );
              return backgroundGroup;
         public static void main( String[] args )
    new MainFrame(new ThreeDReels(), 400, 300);
    }

    replace
    SimpleUniverse u = new SimpleUniverse( );
    by
    SimpleUniverse u = new SimpleUniverse(c3d );

  • Multiple polar plots into a 3d plot

    my test measures a light source, for each iteration (of the test) the detector moves up in elevation 5 deg (starts at 0 deg) and takes a data point every 2.5 degrees in azimuth (for a full 360 deg). My data array is a 3d array where on each page I have 3 columns azimuth, elevation (the elevation is constant for each iteration) and measured data. The question is: I cannot seem to plot it into a 3D graph...polar plot no problem...does any one have any insight?

    “Create color map.JPG” illustrates one way to create the map for the forth dimension.
    “Set Axis Range.JPG” how I manipulated the axis range and properties. Note: It appears all CW 3-d graph items start counting at “1” not “0”.
    “Add Cursors.JPG” shows the cursor work.
    I hope this helps,
    Ben
    Message Edited by Ben on 09-24-2005 03:48 PM
    Message Edited by Ben on 09-24-2005 03:49 PM
    Message Edited by Ben on 09-24-2005 03:49 PM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Create color map.JPG ‏37 KB
    Set Axis Range.JPG ‏71 KB
    Add Cursors.JPG ‏62 KB

  • Assignment in java3d

    hi friends
    i am preparing or constructing a game using java3d
    details: the main aim of my game is
    the cats will move on the floor in a room ...so that the rat have to move from one end to other end of the room with out any collision to cats.
    every thing i have done except collision i.e when rat hits cat
    i have a problem there...
    here is the code
    import com.sun.j3d.utils.behaviors.mouse.*;
    import javax.vecmath.*;
    import com.sun.j3d.utils.geometry.*;
    import javax.media.j3d.*;
    import javax.swing.JFrame;
    import com.sun.j3d.utils.universe.*;
    import com.sun.j3d.utils.image.*;
    import java.io.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import com.sun.j3d.loaders.objectfile.ObjectFile;
    import com.sun.j3d.loaders.Scene;
    import com.sun.j3d.loaders.ParsingErrorException;
    import com.sun.j3d.loaders.IncorrectFormatException;
    import java.util.Enumeration;
    import com.sun.j3d.utils.behaviors.keyboard.*;
    import java.awt.event.*;
    import java.awt.AWTEvent;
    import java.util.Enumeration;
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    import com.sun.j3d.utils.applet.MainFrame;
    import com.sun.j3d.utils.universe.*;
    import javax.media.j3d.*;
    import javax.vecmath.*;
    public class objload1 extends Applet
    private BranchGroup objects;
    public objload1()
    objects = new BranchGroup();
    TransformGroup tg = new TransformGroup();
         ObjectFile OBJECT1 = new ObjectFile(ObjectFile.RESIZE);
         Scene SCENE1 = null;Scene SCENE2= null;Scene SCENE3= null;
         Scene SCENE4 = null;Scene SCENE5= null;Scene SCENE6= null;
         Scene SCENE7 = null;Scene SCENE9 =null;Scene SCENE10 =null;
    try
         SCENE1 = OBJECT1.load(ClassLoader.getSystemResource("objects/fat cat.obj"));
         SCENE2 = OBJECT1.load(ClassLoader.getSystemResource("objects/fat cat.obj"));
         SCENE3 = OBJECT1.load(ClassLoader.getSystemResource("objects/fat cat.obj"));
         SCENE4 = OBJECT1.load(ClassLoader.getSystemResource("objects/earthelemental.obj"));     
         SCENE5 = OBJECT1.load(ClassLoader.getSystemResource("objects/drak.obj"));
         SCENE6 = OBJECT1.load(ClassLoader.getSystemResource("objects/drak.obj"));
         SCENE7 = OBJECT1.load(ClassLoader.getSystemResource("objects/drak.obj"));
         SCENE9 = OBJECT1.load(ClassLoader.getSystemResource("objects/fat cat.obj"));
         SCENE10 = OBJECT1.load(ClassLoader.getSystemResource("objects/earthelemental.obj")); //rat the main object
              catch (FileNotFoundException e)
              System.err.println(e);
              System.exit(1);
              catch (ParsingErrorException e)
              System.err.println(e);
              System.exit(1);
              catch (IncorrectFormatException e)
              System.err.println(e);
              System.exit(1);
    // LOADING OBJECT1
    TransformGroup obj11 = new TransformGroup();
    obj11.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);     
    obj11.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
    TransformGroup obj1 = new TransformGroup();
    obj1.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
    obj1.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
    obj11.addChild(SCENE1.getSceneGroup());
    Transform3D t3d1 = new Transform3D();
         Alpha transAlpha1 = new Alpha(-1,
                        Alpha.INCREASING_ENABLE |
                        Alpha.DECREASING_ENABLE,
                        0, 0,
                        6000, 0, 0,
                        1000, 0, 0);
         t3d1.rotY(-Math.PI/-60.0);
                   PositionInterpolator translator1 =
         new PositionInterpolator(transAlpha1, obj11,t3d1,5.0f,10.0f);
                   BoundingSphere bounds1 =
         new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);// bounds are must
         translator1.setSchedulingBounds(bounds1);
         obj11.addChild(translator1);
         // translating the object
         Transform3D t3d11 = new Transform3D();
              t3d11.setTranslation(new Vector3f(-12.0f,1.0f,5.5f));
         obj1.setTransform(t3d11);
         obj1.addChild(obj11);     
         tg.addChild(obj1);
    // LOADING OBJECT-2     
    TransformGroup obj21 = new TransformGroup();
    obj21.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);     
    obj21.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
    TransformGroup obj2 = new TransformGroup();
    obj2.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
    obj2.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
    obj21.addChild(SCENE2.getSceneGroup());
    Transform3D t3d2 = new Transform3D();
         Alpha transAlpha2 = new Alpha(-1,
                        Alpha.INCREASING_ENABLE |
                        Alpha.DECREASING_ENABLE,
                        0, 0,
                        10000, 0, 0,
                        1000, 0, 0);
         t3d2.rotX(-Math.PI/-60.0);
                   PositionInterpolator translator2 =
         new PositionInterpolator(transAlpha2, obj21,t3d2,2.0f,10.0f);
                   BoundingSphere bounds2 =
         new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);// bounds are must
         translator2.setSchedulingBounds(bounds2);
         obj21.addChild(translator2);
         // translating the object2
         Transform3D t3d21 = new Transform3D();
              t3d21.setTranslation(new Vector3f(-12.0f,1.0f,9.5f));
         obj2.setTransform(t3d21);
         obj2.addChild(obj21);     
         tg.addChild(obj2);
    // LOADING OBJECT-3     
    TransformGroup obj31 = new TransformGroup();
    obj31.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);     
    obj31.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
    TransformGroup obj3 = new TransformGroup();
    obj3.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
    obj3.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
    obj31.addChild(SCENE3.getSceneGroup());
    Transform3D t3d3 = new Transform3D();
         Alpha transAlpha3 = new Alpha(-1,
                        Alpha.INCREASING_ENABLE |
                        Alpha.DECREASING_ENABLE,
                        0, 0,
                        1000, 0, 0,
                        1000, 0, 0);
         t3d3.rotY(-Math.PI/-60.0);
                   PositionInterpolator translator3 =
         new PositionInterpolator(transAlpha3, obj31,t3d3,2.0f,10.0f);
                   BoundingSphere bounds3 =
         new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);// bounds are must
         translator3.setSchedulingBounds(bounds3);
         obj31.addChild(translator3);
         // translating the object3
         Transform3D t3d31 = new Transform3D();
              t3d31.setTranslation(new Vector3f(-8.0f,1.0f,11.5f));
         obj3.setTransform(t3d31);
         obj3.addChild(obj31);     
         tg.addChild(obj3);
    // LOADING OBJECT-4
                   TransformGroup obj41 = new TransformGroup();
    obj41.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);     
    obj41.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
    TransformGroup obj4 = new TransformGroup();
    obj4.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
    obj4.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
    obj41.addChild(SCENE4.getSceneGroup());
    Transform3D t3d4 = new Transform3D();
         Alpha transAlpha4 = new Alpha(-1,
                        Alpha.INCREASING_ENABLE |
                        Alpha.DECREASING_ENABLE,
                        0, 0,
                        9000, 0, 0,
                        1000, 0, 0);
         t3d4.rotY(-Math.PI/-60.0);
                   PositionInterpolator translator4 =
         new PositionInterpolator(transAlpha4, obj41,t3d4,5.0f,10.0f);
                   BoundingSphere bounds4 =
         new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);// bounds are must
         translator4.setSchedulingBounds(bounds4);
         obj41.addChild(translator4);
         // translating the object
         Transform3D t3d41 = new Transform3D();
              t3d41.setTranslation(new Vector3f(-9.0f,1.0f,-1.5f));
         obj4.setTransform(t3d41);
         obj4.addChild(obj41);     
         tg.addChild(obj4);
    // LOADING OBJECT-5
                   TransformGroup obj51 = new TransformGroup();
    obj51.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);     
    obj51.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
    TransformGroup obj5 = new TransformGroup();
    obj5.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
    obj5.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
    obj51.addChild(SCENE5.getSceneGroup());
    Transform3D t3d5 = new Transform3D();
         Alpha transAlpha5 = new Alpha(-1,
                        Alpha.INCREASING_ENABLE |
                        Alpha.DECREASING_ENABLE,
                        0, 0,
                        6000, 0, 0,
                        1000, 0, 0);
         t3d5.rotY(-Math.PI/-60.0);
                   PositionInterpolator translator5 =
         new PositionInterpolator(transAlpha5, obj51,t3d5,5.0f,10.0f);
                   BoundingSphere bounds5 =
         new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);// bounds are must
         translator5.setSchedulingBounds(bounds5);
         obj51.addChild(translator5);
         // translating the object
         Transform3D t3d51 = new Transform3D();
              t3d51.setTranslation(new Vector3f(-5.0f,1.0f,-3.5f));
         obj5.setTransform(t3d51);
         obj5.addChild(obj51);     
         tg.addChild(obj5);
    // LOADING OBJECT-6
    TransformGroup obj6 = new TransformGroup();
    obj6.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
    obj6.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
    obj6.addChild(SCENE6.getSceneGroup());
    Transform3D t3d6 = new Transform3D();
    Alpha alpha6 = new Alpha(-1,12000);
    Point3f[] positions = new Point3f[6];
    float[] knots = {0.0f,0.2f,0.4f,0.6f,0.8f,1.0f};
    AxisAngle4f axis = new AxisAngle4f(1.0f,0.0f,0.0f,0.0f);
    t3d6.set(axis);
    positions[0] = new Point3f(-12.0f,1.0f,-20.0f);
    positions[1] = new Point3f(12.0f,1.0f,-15.0f);
    positions[2] = new Point3f(-12.0f,1.0f,2.0f);
    positions[3] = new Point3f(12.0f,1.0f,12.0f);
    positions[4] = new Point3f(-12.0f,1.0f,17.0f);
    positions[5] = new Point3f(-12.0f,1.0f,-20.0f);
    PositionPathInterpolator pospath = new PositionPathInterpolator(
         alpha6, obj6, t3d6,knots,positions);
    pospath.setSchedulingBounds(new BoundingSphere());
    obj6.addChild(pospath);
    tg.addChild(obj6);
    // LOADING OBJECT-7
    TransformGroup obj7 = new TransformGroup();
    obj7.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
    obj7.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
    obj7.addChild(SCENE7.getSceneGroup());
    Transform3D t3d7 = new Transform3D();
    Alpha alpha7 = new Alpha(-1,13000);
    Point3f[] positions7 = new Point3f[11];
    float[] knots7 = {0.0f,0.1f,0.2f,0.3f,0.4f,0.5f,0.6f,0.7f,0.8f,0.9f,1.0f};
    AxisAngle4f axis7 = new AxisAngle4f(1.0f,0.0f,0.0f,0.0f);
    t3d7.set(axis7);
    positions7[0] = new Point3f(-14.0f,1.0f,-20.0f);
    positions7[1] = new Point3f(14.0f,1.0f,-20.0f);
    positions7[2] = new Point3f(0.0f,1.0f,-10.0f);
    positions7[3] = new Point3f(-14.0f,1.0f,-10.0f);
    positions7[4] = new Point3f(0.0f,1.0f,-5.0f);
    positions7[5] = new Point3f(14.0f,1.0f,-5.0f);
    positions7[6] = new Point3f(0.0f,1.0f,0.0f);
    positions7[7] = new Point3f(-14f,1.0f,-3f);
    positions7[8] = new Point3f(-7f,1.0f,13f);
    positions7[9] = new Point3f(7f,1.0f,13f);
    positions7[10] = new Point3f(-14.0f,1.0f,-20.0f);
    PositionPathInterpolator pospath7 = new PositionPathInterpolator(
         alpha7, obj7, t3d7,knots7,positions7);
    pospath7.setSchedulingBounds(new BoundingSphere());
    obj7.addChild(pospath7);
    tg.addChild(obj7);
    // LOADING OBJECT-9
    TransformGroup obj9 = new TransformGroup();
    obj9.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
    obj9.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
    obj9.addChild(SCENE9.getSceneGroup());
    Transform3D t3d9 = new Transform3D();
    Alpha alpha9 = new Alpha(-1,7000);
    Point3f[] positions9 = new Point3f[11];
    float[] knots9 = {0.0f,0.1f,0.2f,0.3f,0.4f,0.5f,0.6f,0.7f,0.8f,0.9f,1.0f};
    AxisAngle4f axis9 = new AxisAngle4f(1.0f,0.0f,0.0f,0.0f);
    t3d9.set(axis9);
    positions9[0] = new Point3f(-12.0f,1.0f,-20.0f);
    positions9[1] = new Point3f(12.0f,1.0f,-20.0f);
    positions9[2] = new Point3f(0.0f,1.0f,-10.0f);
    positions9[3] = new Point3f(-12.0f,1.0f,-10.0f);
    positions9[4] = new Point3f(0.0f,1.0f,-5.0f);
    positions9[5] = new Point3f(12.0f,1.0f,-5.0f);
    positions9[6] = new Point3f(0.0f,1.0f,0.0f);
    positions9[7] = new Point3f(-12f,1.0f,-3f);
    positions9[8] = new Point3f(-10f,1.0f,13f);
    positions9[9] = new Point3f(10f,1.0f,13f);
    positions9[10] = new Point3f(-12.0f,1.0f,-20.0f);
    PositionPathInterpolator pospath9 = new PositionPathInterpolator(
         alpha9, obj9, t3d9,knots9,positions9);
    pospath9.setSchedulingBounds(new BoundingSphere());
    obj9.addChild(pospath9);
    tg.addChild(obj9);
    // LOADING 3DS OBJECT-10 main object
    TransformGroup obj10 = new TransformGroup();
    obj10.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
    obj10.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
    obj10.setCapability(TransformGroup.ALLOW_COLLISION_BOUNDS_READ);
         obj10.setCapability(TransformGroup.ALLOW_COLLISION_BOUNDS_WRITE);
    obj10.addChild(SCENE10.getSceneGroup());
    Transform3D t3d10 = new Transform3D();
              t3d10.setTranslation(new Vector3f(0.0f,1.0f,15.0f));
         obj10.setTransform(t3d10);
    KeyBehavior keyBeh = new KeyBehavior( obj10);
    keyBeh.setSchedulingBounds(new BoundingSphere(new Point3d(),1000.0));
    obj10.addChild(keyBeh);
    tg.addChild(obj10);
    //-----------------------------------COLLISION DETECTION------------------------------------
    CollisionDetector cd = new CollisionDetector(obj10);
              BoundingSphere bounds =
                   new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);
                   cd.setSchedulingBounds(bounds);
              // Add the behavior to the scene graph
    //tg.addChild(obj9);
    // ADDING tg TO BRANCHGROUP
    objects.addChild(tg);
              public BranchGroup obj()
              return objects;
    ====================================================
    here is collision detection code
    import java.util.Enumeration;
    import javax.media.j3d.*;
    import javax.vecmath.*;
    public class CollisionDetector extends Behavior
    private boolean inCollision = false;
    private WakeupOnCollisionEntry wEnter;
    private WakeupOnCollisionExit wExit;
    private TransformGroup tg;
         public CollisionDetector(TransformGroup tg)
              this.tg = tg;
              inCollision = false;
         public void initialize()
         tg.setCapability(TransformGroup.ALLOW_COLLISION_BOUNDS_READ);
         tg.setCapability(TransformGroup.ALLOW_COLLISION_BOUNDS_WRITE);
              wEnter = new WakeupOnCollisionEntry(tg);
              wExit = new WakeupOnCollisionExit(tg);
              wakeupOn(wEnter);
    public void processStimulus(Enumeration criteria)
         inCollision = !inCollision;
         if(!inCollision)
         wakeupOn(wEnter);
    i tried in so may ways to detect a collision but i dint get it. so i thing any of the members in this forum can help. its urgent for me i have to submit my assignment next week. so plz help
    regards
    satish

    Hi Satish
    I am also doing the same Task and stuck with collision part. Plz let me know if you get the same.
    Your code is missiting KeyBehavio class can you plz share it.
    Santosh
    [email protected]

  • Some promble  about htmldb v 1.6 line chart

    I found there is some promble in htmldb v 1.6 line chart
    First I set two Series using these two sql
    select null l,
    a,
    total from
    select rownum a ,1000 total from tab where rownum <20
    select null l,
    a,
    total from
    select rownum a ,2000 total from tab where rownum <20
    second in Axes Settings
    i set
    Axis Interval Option ="Define axis interval Display"
    Y Axis Gridline Spacing=200
    Y Axis Max =3000
    third run the page
    then I found the two line do not display in the correct place
    the value of the line do not match the coordinate
    is there any patch can fix this promble

    I found this promble in 10G R2 , and in 10G r1( update htmldb from 1.5 to 1.6)
    is there any idea about it?

Maybe you are looking for