ArrayIndexOutOfBoundsException, Response.parseString

java.lang.ArrayIndexOutOfBoundsException
     at com.sun.mail.iap.Response.parseString(Response.java:391)
     at com.sun.mail.iap.Response.readString(Response.java:320)
     at com.sun.mail.imap.protocol.ENVELOPE.<init>(ENVELOPE.java:96)
     at com.sun.mail.imap.protocol.FetchResponse.parse(FetchResponse.java:127)
     at com.sun.mail.imap.protocol.FetchResponse.<init>(FetchResponse.java:63)
     ...Take a look at Response.java
     b = buffer[index];
     if (b == '"') { // QuotedString
          index++; // skip the quote
          int start = index;
          int copyto = index;
          while ((b = buffer[index]) != '"') {     *** LINE 391
     }               We iincrement index, and try to read from buffer without any size checks.
    index++; // skip the quote
    while ((b = buffer[index]) != '"') {
{code}
So if the quoted string was bad formed, e.g. it terminated right after '"', then we would get ArrayIndexOutOfBoundsException error. While comments state that in case of any error it should return 'null' value instead./**
* Generic parsing routine that can parse out a Quoted-String,
* Literal or Atom and return the parsed token as a String
* or a ByteArray. Errors or NIL data will return null.
private Object parseString(boolean parseAtoms, boolean returnString) {
Notice, that the same issues can be seen in other places. E.g. in following code we can easy go out of bounds if string has no '}'.while (buffer[index] != '}')
index++;
Whould be great it this code can be reviewed and fixed :-)
Regards,
  - Alex                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Hello you who are still alive here,
2 years have passed and I tried playing with javax.mail 1.4.6-rc1 (along with gimap 1.4.6-rc1).
The issue appeared for my GMail account while I was trying to test the library.
bshannon wrote:
If anyone is still seeing this exception, I'd love to get the details so I can pass them on to
Google so they can fix this bug in Gmail.
Thanks.buffer seems to contain:
* * 6606 FETCH (X-GM-LABELS ("\Importantt" Notifications "\\Starred"))
(the rest of buffer is filled with \0, the HTMLiser of the forum seems to break the string quoted here, the actual buffer is:
[42, 32, 54, 54, 48, 54, 32, 70, 69, 84, 67, 72, 32, 40, 88, 45, 71, 77, 45, 76, 65, 66, 69, 76, 83, 32, 40, 34, 92, 73, 109, 112, 111, 114, 116, 97, 110, 116, 116, 34, 32, 78, 111, 116, 105, 102, 105, 99, 97, 116, 105, 111, 110, 115, 32, 34, 92, 92, 83, 116, 97, 114, 114, 101, 100, 34, 41, 41, 13, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
After some tests, it appears this is related to the fact that I attempt to fetch:
fp.add(GmailFolder.FetchProfileItem.LABELS);From my INBOX.
Let me know if I can be of some help.
Cheers,
Pierre.

Similar Messages

  • ArrayIndexOutOfBoundsException within Javamail code?

    Hello,
    I have working code that downloads messages from Gmail accounts, and I seem to have run across a specific message that causes an ArrayIndexOutOfBoundsException within the java mail code. I am using javamail 1.42 and here is the relevant part of the stack trace,
    Jul 8 11:07:23 localhost java.lang.ArrayIndexOutOfBoundsException: 256
    Jul 8 11:07:23 localhost at com.sun.mail.iap.Response.parseString(Response.java:391)
    Jul 8 11:07:23 localhost at com.sun.mail.iap.Response.readString(Response.java:320)
    Jul 8 11:07:23 localhost at com.sun.mail.imap.protocol.ENVELOPE.<init>(ENVELOPE.java:96)
    Jul 8 11:07:23 localhost at com.sun.mail.imap.protocol.FetchResponse.parse(FetchResponse.java:127)
    Jul 8 11:07:23 localhost at com.sun.mail.imap.protocol.FetchResponse.<init>(FetchResponse.java:63)
    Jul 8 11:07:23 localhost at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:132)
    Jul 8 11:07:23 localhost at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:260)
    Jul 8 11:07:23 localhost at com.sun.mail.iap.Protocol.command(Protocol.java:319)
    Jul 8 11:07:23 localhost at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:1313)
    Jul 8 11:07:23 localhost at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:1294)
    Jul 8 11:07:23 localhost at com.sun.mail.imap.IMAPMessage.fetch(IMAPMessage.java:1026)
    Jul 8 11:07:23 localhost at com.sun.mail.imap.IMAPFolder.fetch(IMAPFolder.java:1020)
    My code is making a call to folder.fetch(msgs, fp); , were folder is an instance of an IMAPFolder, and msgs is a non empty and non null Messages[], and fp is a non null FetchProfile.
    Any ideas? I can provide the actual message that seems to be causing this problem, if necessary.
    Thanks,
    Rom

    Bill, here's the full response from the gmail server for the problematic message for the pre fetch request:
    * 4586 FETCH (RFC822.SIZE 5721 INTERNALDATE "01-Jul-2009 12:45:53 +0000" ENVELOPE ("Wed, 01 Jul 2009 12:42:34 GMT" "How to Successfully Market Your Women's Healthcare Program and Build Com
    as you can see, it is an incomplete response. for example, here is the full (and complete) response for the previous message, which is fine:
    * 4594 FETCH (RFC822.SIZE 2342 INTERNALDATE "08-Jul-2009 21:01:32 +0000" FLAGS () ENVELOPE ("Wed, 8 Jul 2009 21:01:30 +0000 (UTC)" "timing tonight" ((NIL NIL "kristin_goldman" "hotmail.com")) ((NIL NIL "kristin_goldman" "hotmail.com")) ((NIL NIL "kristin_goldman" "hotmail.com")) ((NIL NIL "rgoldman" "gmail.com")) NIL NIL NIL "<[email protected]>") BODY[HEADER.FIELDS (X-Mailer Message-ID Message-Id Date)] {106}
    Message-ID: <[email protected]>
    Date: Wed, 8 Jul 2009 21:01:30 +0000 (UTC)
    The other issue the problematic message surfaced is that when one message is bad (for whatever reason) the whole folder.fetch(Messages[], FetchProfile) fails for all the messages in the array. In order to be able to process the other messages, I also had to modify the "while (!done)" loop on line 317 in Protocol.java. I basically added a "catch (Exception e) {
    continue;
    }" to the loop. Do you have a better suggestion on how to handle this? Maybe catching a less generic exception than Exception?
    Thanks,
    Rom

  • Issue in receiving custom header in response SOAP message

    Hi,
    I have created a simple BPEL process with custom headers in request and response message.
    I tried to send SOAP message through SOAPUI tool. Service is getting instantiated, able to access the request header and able to send response message. But only body is send as response message. Header is not sent in the response message.
    Also tried to invoke the above service through another BPEL process. I could able to send the header through request but not able to receive the header in response message.
    Pls. throw some light on this..
    Regards
    Jude.

    Hi,
    Input request is working as you mentioned but the output custom headers are not working. When I use bpelx:outputHeaderVariable="varOutManifest" I am getting exception while running the interface. So I used bpelx:outputHeaderVariables="varOutManifest" but I am not getting back the custom header from the partner service to the variable.
    Any hint.
    receive:
    bpelx:headerVariable="varManifest varSecurity"
    reply:
    bpelx:inputHeaderVariable="varOutManifest"
    Invoke:
    bpelx:outputHeaderVariables="varOutManifest"
    bpelx:inputHeaderVariable="varManifest varSecurity"
    Is anything wrong?
    I am on 10.1.3.3.1 MLR # 14. I am getting following exception when I use bpelx:outputHeaderVariable.
    <2009-03-06 17:33:36,840> <ERROR> <default.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "delivery": [com.oracle.bpel.client.ServerException: 1] -> [java.lang.ArrayIndexOutOfBoundsException: 1]
    java.lang.ArrayIndexOutOfBoundsException: 1
         at com.collaxa.cube.ejb.impl.DeliveryBean.request(DeliveryBean.java:109)
         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:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
         at com.evermind.server.ThreadState.runAs(ThreadState.java:646)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at DeliveryBean_RemoteProxy_4bin6i8.request(Unknown Source)
         at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processNormalOperation(SOAPRequestProvider.java:451)
         at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processBPELMessage(SOAPRequestProvider.java:274)
         at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processMessage(SOAPRequestProvider.java:120)
         at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:956)
         at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:349)
         at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:466)
         at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:114)
         at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:96)
         at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:177)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
         at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__callback(BPELInvokeWMP.java:626)
         at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:436)
         at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:195)
         at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3703)
         at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1652)
         at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:184)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:281)
         at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5689)
         at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1082)
         at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.createAndInvoke(CubeEngineBean.java:132)
         at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.syncCreateAndInvoke(CubeEngineBean.java:161)
         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:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
         at com.evermind.server.ThreadState.runAs(ThreadState.java:646)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiresNewInterceptor.invoke(TxRequiresNewInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at CubeEngineBean_LocalProxy_4bin6i8.syncCreateAndInvoke(Unknown Source)
         at com.collaxa.cube.engine.delivery.DeliveryHandler.initialRequestAnyType(DeliveryHandler.java:515)
         at com.collaxa.cube.engine.delivery.DeliveryHandler.initialRequest(DeliveryHandler.java:457)
         at com.collaxa.cube.engine.delivery.DeliveryHandler.request(DeliveryHandler.java:131)
         at com.collaxa.cube.ejb.impl.DeliveryBean.request(DeliveryBean.java:95)
         ... 48 more
    Thanks,
    Arul
    Edited by: user599098 on Mar 6, 2009 2:42 PM

  • Uncaught exception java.lang.ArrayIndexOutOfBoundsException in J2ME

    hi all,
    i found a strange error (uncaught exception java.lang.ArrayIndexOutOfBoundsException) every time when i tried to developed a MIDlet and servlet to retrieve data from database. can anyone tell me why this error occur? this is example of MIDlet code:
    public void checkResult() {
    HttpConnection conn = null;
    InputStream is = null;
    OutputStream os = null;
    byte[] receivedData = null;
    String userid = "123";
    try {
    String url = getAppProperty("Result.URL");
    conn = (HttpConnection)Connector.open(url);
         byte postData [] = ("userid=" + userid).getBytes();
    conn.setRequestMethod(HttpConnection.POST);
    conn.setRequestProperty("User-Agent", "Profile/MIDP-1.0 Configuration/CLDC-1.0");
    conn.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
         conn.setRequestProperty ( "Content-Length", Integer.toString (postData.length));
    conn.setRequestProperty("Connection", "close" );
    conn.setRequestProperty("Content-length",Integer.toString(postData.length));
         os = conn.openOutputStream();
         os.write(postData);
         os.close();
         is = conn.openInputStream();
         String contentType = conn.getType();
    int len = (int)conn.getLength();
    if (len > 0)
    receivedData = new byte[len];
    int nb = is.read(receivedData);
    else
    receivedData = new byte[1024];
    int ch;
    len = 0;
    while ((ch = is.read()) != -1)
    receivedData[len++] = (byte)ch;
    response.setText(new String(receivedData,0,len));
    display.setCurrent(outputForm);
    catch (IOException e) {
    System.out.println(e.getMessage());
    e.printStackTrace();
    finally {
    try {
    if (is != null) {
    is.close();
    if (os != null) {
    os.close();
    if (conn != null) {
    conn.close();
    catch (IOException e) {
    from alice

    That would be a point where I miss bounds checking on your part:
    receivedData = new byte[1024];
    int ch;
    len = 0;
    while ((ch = is.read()) != -1)
    receivedData[len++] = (byte)ch; // what happens if more than 1024 characters come along??
    }Otherwise the exact line of error, the stack trace or some context would be helpful.

  • Why im getting too long time in getting response from server in RMI???

    I'm using RMI architecture. On my server side I put this method getRubricHierarchy() which returns the ArrayList of Test class objects. everything is working properly fine.
    Im getting response properly, problem is its taking very long time in getting the response. method populate and create ArrayList in 0 second at server side but its taking more than 20 seconds to get response at client side.
    My arraylist size is 30,000.
    Any suggestions to reduce the time.
    below you can see the code.
    public List<Test> getRubricHierarchy(String strTree,String gblCombinedRepSectionID,String gblCompleteRepSectionID,String gblCompleteRepertoryID,Map authMap) {
            Connection con=null;
              ResultSet rs = null;
              List<Test> l = new ArrayList<Test>();
              List allList = new ArrayList();
              con = createDBCon();
              rs = con.createStatement().executeQuery("select * from rubric where sectionid='"+gblCombinedRepSectionID+"' order by orders");
              Map parentMap = new HashMap();
              while (rs.next()) {
                   Test rNode = new Test();
                String rubrid = rs.getString("id");
                   final String desc = rs.getString("name");
                   rNode.setRubricName(desc);
                   rNode.setRubricID(rubrid);
                   rNode.setAuthor(rs.getString("repid"));
                   final int levlId = rs.getInt("levelid");
                   rNode.setRubLevel(levlId);
                   rNode.setCrossRef(rs.getString("CROSSREFERENCE"));
                   final String parentID = rs.getString("PARENTID");
                   rNode.setParentID(parentID);
                   rNode.setSectionID(rs.getString("sectionid"));
                   if (parentID.equals("0")) {
                        l.add(rNode);
                   allList.add(rNode);
                   List rmdyLst = (List) parentMap.get(parentID);
                   if (rmdyLst == null) {
                        rmdyLst = new ArrayList();
                        parentMap.put(parentID, rmdyLst);
                   rmdyLst.add(rNode);
              rs.close();
              for (Iterator iterator = allList.iterator(); iterator.hasNext();) {
                   Test rNodes = (Test) iterator.next();
                   List remdyLst = (List) parentMap.get(rNodes.getRubricID());
                   if (remdyLst != null) {
                        rNodes.setChildren(remdyLst);
                        for (Iterator iterator2 = remdyLst.iterator(); iterator2.hasNext();) {
                             Test rn = (Test) iterator2.next();
                             rn.setParent(rNodes);
            }catch(Exception e){
                e.printStackTrace();
              return l;
         }here is my Test Class
    public class Test implements  Serializable,Cloneable , MutableTreeNode{
            private String strRubricID,strOldRubricID,strRubricName,strCrossRef,Author,strParentID,strSectionID;
            private int rubLevel;
            private List remedyList;
            private List children = new ArrayList();
            private Test parent;
            private int order;
            private String AuthorName="";
            private String abbr;
            private String treeType="";
            private int noRem=-1;
            private boolean isAddAsChild=false;
            private String strRubricHie="";
            private String user="";
            public static final Enumeration<TreeNode> EMPTY_ENUMERATION = new Enumeration() {
                public boolean hasMoreElements() {
                    return false;
                public TreeNode nextElement() {
                    throw new NoSuchElementException("No more elements");
            public Test(){
            public void setUser(String user){
                this.user = user;
            public String getUser(){
                return user;
            public void setRubricHierarchy(String s){
                this.strRubricHie=s;
            public String getRubricHierarchy(){
                return strRubricHie;
            public Test(String treeType){
                this.treeType = treeType;
            public void setAddAsChild(boolean b){
                this.isAddAsChild=b;
            public boolean isAddAsChild(){
                return isAddAsChild;
            public Test getUserObject(){
                return this;
            public  void setRubricID(String id){
                this.strRubricID = id;
            public  String getRubricID(){
                return strRubricID ;
            public  void setOldRubricID(String id){
                this.strOldRubricID = id;
            public  String getOldRubricID(){
                return strOldRubricID ;
            public  void setParent(Test r){
                this.parent = r;
            public  Test getParent(){
                return parent;
            public  void setParentID(String id){
                this.strParentID = id;
            public  String getParentID(){
                return strParentID;
            public  void setSectionID(String id){
                this.strSectionID= id;
            public  String getSectionID(){
                return strSectionID;
            public  void setRubricName(String name){
                this.strRubricName = name;
            public  String getRubricName(){
                return strRubricName;
            public  void setAuthorName(String name){
                this.AuthorName = name;
            public  String getAuthorName(){
                return AuthorName;
            public  void setAuthorAbbrivation(String a){
                this.abbr = a;
            public  String getAuthorAbbrivation(){
                return abbr;
            public void setRubLevel(int rubLevel) {
                this.rubLevel = rubLevel;
            public int getRubLevel() {
                return rubLevel;
            public void setCrossRef(String strCrossRef) {
                this.strCrossRef = strCrossRef;
            public String getCrossRef() {
                return strCrossRef ;
            public void setRemedyList(List remedyList) {
                this.remedyList = remedyList;
            public List getRemedyList() {
                return remedyList;
            public void setAuthor(String Author) {
                this.Author = Author;
            public String getAuthor() {
                return Author;
            public void setChildren(List list) {
                this.children = list;
            public List getChildren() {
                return children;
            public void setOrder(int o){
                this.order = o;
            public int getOrder(){
                return order;
            public void setNumberOfRemedies(int no)
                this.noRem = no;
            public int getNumberOfRemedies()
                return noRem;
            public String toString() {
                String value="";
                value=strRubricName+ " ("+abbr+")";
                return value;
            public Object clone(){
                Test rubric = new Test();
                rubric.Author = Author;
                rubric.children = children;
                rubric.order = order;
                rubric.parent = parent;
                rubric.remedyList = remedyList;
                rubric.rubLevel = rubLevel;
                rubric.strCrossRef = strCrossRef;
                rubric.strParentID = strParentID;
                rubric.strRubricID = strRubricID;
                rubric.strRubricName = strRubricName;
                rubric.strSectionID = strSectionID;
                return rubric;
         @Override
         public TreeNode getChildAt(int paramInt) {
              if (this.children == null) {
                   throw new ArrayIndexOutOfBoundsException("node has no children");
              final TreeNode node = (TreeNode) children.get(paramInt);
              return node;
         @Override
         public int getChildCount() {
              if (this.children == null) {
                   return 0;
              return children.size();
         @Override
         public int getIndex(TreeNode paramTreeNode) {
              // TODO Auto-generated method stub
              return 0;
         @Override
         public boolean getAllowsChildren() {
              return true;
         @Override
         public boolean isLeaf() {
              return children.isEmpty();
         @Override
         public Enumeration children() {
              if (this.children == null) {
                   return EMPTY_ENUMERATION;
              Vector v = new Vector(this.children);
              return v.elements();
         @Override
         public void insert(MutableTreeNode newChild, int paramInt) {
              if (newChild == null) {
                   throw new IllegalArgumentException("new child is null");
              MutableTreeNode oldParent = (MutableTreeNode) newChild.getParent();
              if (oldParent != null) {
                   oldParent.remove(newChild);
              newChild.setParent(this);
              if (children == null) {
                   children = new ArrayList();
              children.add(paramInt, newChild);
         @Override
         public void remove(int childIndex) {
              MutableTreeNode child = (MutableTreeNode) getChildAt(childIndex);
              children.remove(childIndex);
              child.setParent(null);
         @Override
         public void remove(MutableTreeNode aChild) {
              if (aChild == null) {
                   throw new IllegalArgumentException("argument is null");
              if (!isNodeChild(aChild)) {
                   throw new IllegalArgumentException("argument is not a child");
              remove(getIndex(aChild)); // linear search
         public boolean isNodeChild(TreeNode aNode) {
              boolean retval;
              if (aNode == null) {
                   retval = false;
              } else {
                   if (getChildCount() == 0) {
                        retval = false;
                   } else {
                        retval = (aNode.getParent() == this);
              return retval;
         @Override
         public void setUserObject(Object paramObject) {
              // TODO Auto-generated method stub
         @Override
         public void removeFromParent() {
              MutableTreeNode parent = (MutableTreeNode) getParent();
              if (parent != null) {
                   parent.remove(this);
         @Override
         public void setParent(MutableTreeNode paramMutableTreeNode) {
              parent = (Test) paramMutableTreeNode;
          * Returns the path from the root, to get to this node. The last element in
          * the path is this node.
          * @return an array of TreeNode objects giving the path, where the first
          *         element in the path is the root and the last element is this
          *         node.
         public TreeNode[] getPath() {
              return getPathToRoot(this, 0);
          * Builds the parents of node up to and including the root node, where the
          * original node is the last element in the returned array. The length of
          * the returned array gives the node's depth in the tree.
          * @param aNode
          *            the TreeNode to get the path for
          * @param depth
          *            an int giving the number of steps already taken towards the
          *            root (on recursive calls), used to size the returned array
          * @return an array of TreeNodes giving the path from the root to the
          *         specified node
         protected TreeNode[] getPathToRoot(TreeNode aNode, int depth) {
              TreeNode[] retNodes;
               * Check for null, in case someone passed in a null node, or they passed
               * in an element that isn't rooted at root.
              if (aNode == null) {
                   if (depth == 0)
                        return null;
                   else
                        retNodes = new TreeNode[depth];
              } else {
                   depth++;
                   retNodes = getPathToRoot(aNode.getParent(), depth);
                   retNodes[retNodes.length - depth] = aNode;
              return retNodes;
        }

    You have an O(N**2) algorithm at the end that is rather ill-considered. It seems to me at first glance that it could be combined int the previous loop.

  • SAX Parser: ArrayIndexOutOfBoundsException

    Attachments: "1|type=text/xml|desc=test xml file|16821|file=test.xml|"
    I am using your Java XML parser v2.0.0.2. With some XML files
    the SAX parser raises an ArrayIndexOutOfBoundsException:
    Exception in thread "main"
    java.lang.ArrayIndexOutOfBoundsException
    at oracle.xml.parser.v2.XMLCharReader.fillBuffer
    (XMLCharReader.java, Compiled Code)
    at oracle.xml.parser.v2.XMLReader.tryRead
    (XMLReader.java, Compiled Code)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement
    (NonValidatingParser.java, Compiled Code)
    at
    oracle.xml.parser.v2.NonValidatingParser.parseRootElement
    (NonValidatingParser.java:227)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument
    (NonValidatingParser.java:192)
    at oracle.xml.parser.v2.XMLParser.parse
    (XMLParser.java:119)
    at RegisterXMLParser.DocParser.parseDocument
    (DocParser.java:51)
    at RegisterXMLParser.RegisterParser.main
    (RegisterParser.java, Compiled Code)
    For testing purposes I used the SaxSample java code to test when
    this exception was raised. I found out that the number of tags
    used, and the length of the tags had their influence on the
    moment of exception. Even when I added some comment lines after
    the XML processing instruction, the exception was raised earlier.
    I Used a test XML file with the following layout:
    <?xml version="1.0" encoding="Cp850"?>
    <!-- edited with XML Spy v2.5 NT - http://www.xmlspy.com -->
    <!--Gegenereerd door: Jeen Landstra-->
    <!--Versie programma: 1.0-->
    <!--Datum creatie: 10251999-->
    <!--Tijd creatie: 161709-->
    <HOOFD>
    <RECHT-1910>
    <RECHT>
    <AANVRAGER_HOUDER>test</AANVRAGER_HOUDER>
    <AANVRAGER_HOUDER>test</AANVRAGER_HOUDER>
    ... repeated 359 times ...
    <AANVRAGER_HOUDER>test</AANVRAGER_HOUDER>
    <AANVRAGER_HOUDER>test</AANVRAGER_HOUDER>
    </RECHT>
    </RECHT-1910>
    </HOOFD>
    Deleting only one
    row '<AANVRAGER_HOUDER>test</AANVRAGER_HOUDER>' makes the parser
    work properly.
    I hope you can explain why this can't be parsed, and how i
    should fix this problem.
    thanks for your response!
    Rolf van Deursen
    null

    Rolf van Deursen (guest) wrote:
    : rolf van Deursen (guest) wrote:
    : : I am using your Java XML parser v2.0.0.2. With some XML
    files
    : : the SAX parser raises an ArrayIndexOutOfBoundsException:
    : : Exception in thread "main"
    : : java.lang.ArrayIndexOutOfBoundsException
    : : at oracle.xml.parser.v2.XMLCharReader.fillBuffer
    : : (XMLCharReader.java, Compiled Code)
    : : at oracle.xml.parser.v2.XMLReader.tryRead
    : : (XMLReader.java, Compiled Code)
    : : at
    : oracle.xml.parser.v2.NonValidatingParser.parseElement
    : : (NonValidatingParser.java, Compiled Code)
    : : at
    : : oracle.xml.parser.v2.NonValidatingParser.parseRootElement
    : : (NonValidatingParser.java:227)
    : : at
    : oracle.xml.parser.v2.NonValidatingParser.parseDocument
    : : (NonValidatingParser.java:192)
    : : at oracle.xml.parser.v2.XMLParser.parse
    : : (XMLParser.java:119)
    : : at RegisterXMLParser.DocParser.parseDocument
    : : (DocParser.java:51)
    : : at RegisterXMLParser.RegisterParser.main
    : : (RegisterParser.java, Compiled Code)
    : : For testing purposes I used the SaxSample java code to test
    : when
    : : this exception was raised. I found out that the number of
    tags
    : : used, and the length of the tags had their influence on the
    : : moment of exception. Even when I added some comment lines
    : after
    : : the XML processing instruction, the exception was raised
    : earlier.
    : : I Used a test XML file with the following layout:
    : : <?xml version="1.0" encoding="Cp850"?>
    : : <!-- edited with XML Spy v2.5 NT - http://www.xmlspy.com -->
    : : <!--Gegenereerd door: Jeen Landstra-->
    : : <!--Versie programma: 1.0-->
    : : <!--Datum creatie: 10251999-->
    : : <!--Tijd creatie: 161709-->
    : : <HOOFD>
    : : <RECHT-1910>
    : : <RECHT>
    : : <AANVRAGER_HOUDER>test</AANVRAGER_HOUDER>
    : : <AANVRAGER_HOUDER>test</AANVRAGER_HOUDER>
    : : ... repeated 359 times ...
    : : <AANVRAGER_HOUDER>test</AANVRAGER_HOUDER>
    : : <AANVRAGER_HOUDER>test</AANVRAGER_HOUDER>
    : : </RECHT>
    : : </RECHT-1910>
    : : </HOOFD>
    : : Deleting only one
    : : row '<AANVRAGER_HOUDER>test</AANVRAGER_HOUDER>' makes the
    : parser
    : : work properly.
    : : I hope you can explain why this can't be parsed, and how i
    : : should fix this problem.
    : : thanks for your response!
    : : Rolf van Deursen
    : I downloaded the newest version (2.0.2.4) of the Java parser.
    : This one is working correctly!
    Great! That was going to be my answer.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • Server returned HTTP response code: 500

    Hi,
    First time in here, so please be patient...
    This is the error message I get on the Java Console.
    I suspect that the problem is related to the DB. (MYSQL)
    Can someone elaborate more on this error message? It is the first time I encounter such an error.
    Any help will be appreciated.
    2008-06-11 11:55:21,312  Chart - createLowerChart(int) - end
    2008-06-11 11:55:21,312  Chart - createLowerCharts() - end
    2008-06-11 11:55:21,328  Chart - populateToolBar(JToolBar) - start
    2008-06-11 11:55:21,359  AxisZoomHistory - addHistoryListener(HistoryListener) - start
    2008-06-11 11:55:21,359  AxisZoomHistory - addHistoryListener(HistoryListener) - end
    2008-06-11 11:55:21,359  BackwardAction - computeEnabled() - start
    2008-06-11 11:55:21,359  BackwardAction - computeEnabled() - end
    2008-06-11 11:55:21,375  AxisZoomHistory - addHistoryListener(HistoryListener) - start
    2008-06-11 11:55:21,375  AxisZoomHistory - addHistoryListener(HistoryListener) - end
    2008-06-11 11:55:21,437  Chart - populateToolBar(JToolBar) - end
    2008-06-11 11:55:21,609  Chart - installDefaultInteractors() - start
    2008-06-11 11:55:21,609  Chart - installDefaultInteractors() - end
    2008-06-11 11:55:21,609  Chart - loadPatient(JFrame) - start
    2008-06-11 11:55:21,625  Chart - startLoading() - start
    2008-06-11 11:55:21,625  Chart - startLoading() - end
    network: Connecting https://xxx.xxx.xxx.xxx/patientfile/PatientFile with proxy=DIRECT
    start : calling patient servlet 16
    end : called patient servlet 16
    network: Connecting https://xxx.xxx.xxx.xxx/patientfile/PatientFile with cookie "__utma=212142292.1094118687.1212604421.1213197694.1213199701.38; __utmz=212142292.1212604421.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); __utmb=212142292; appname=e4095ce3ceadc7b3d8900bd7ba07113c; __utmc=212142292"
    java.io.IOException: Server returned HTTP response code: 500 for URL: https://xxx.xxx.xxx.xxx/patientfile/PatientFile
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
         at utility.ServletConnection.GetPatientFile(ServletConnection.java:128)
         at graphModule.Chart.loadPatient(Chart.java:1849)
         at graphModule.Chart.init(Chart.java:481)
         at graphModule.AbstractChartExample.init(AbstractChartExample.java:202)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
         at java.util.Vector.get(Unknown Source)
         at graphModule.Chart.loadPatient(Chart.java:1856)
         at graphModule.Chart.init(Chart.java:481)
         at graphModule.AbstractChartExample.init(AbstractChartExample.java:202)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    basic: Exception: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
    java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
         at java.util.Vector.get(Unknown Source)
         at graphModule.Chart.loadPatient(Chart.java:1856)
         at graphModule.Chart.init(Chart.java:481)
         at graphModule.AbstractChartExample.init(AbstractChartExample.java:202)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    ...

    Why do you think this an appropriate forum to discuss a PHP and/or Apache configuration error?

  • Cascading LOV in 11.1.2.1 gives me an ArrayIndexOutOfBoundsException

    I am using JDeveloper 11.1.2.1 and was following the tutorial in the following YouTube video:
    http://www.youtube.com/watch?v=nXwL2_RP7AQ&feature=player_embedded#!
    It looks to have been for an older version of JDeveloper, so I then followed the text in the 11.1.2.1 Fusion Developer Guide. In both cases, the result was the same. I get the following error when using the JSF page. The ApplicationModule testing application worked perfect.
    Use case:
    0) LOVs are based on the selectOneChoice control.
    1) Select country USA
    2) Select State California
    3) Select country Canada
    4) Exception below is raised.
    5) Dependent selectChoice LOV is NOT generated properly using PPR.
    ADF_FACES-60096:Server Exception during PPR, #1
    java.lang.ArrayIndexOutOfBoundsException: 3
    It is like there is a pointer used to point to the correct selected entry, instead of the actual value. Thoughts anyone?
    Thanks,
    BradW
    Edited by: BradW on Apr 16, 2012 12:31 PM

    Hi,
    thanks for pointing this out and I'll try and reproduce what you report using the HR Oracle schema.
    In general there are two options to handle the refresh, one is to set the auto submit on the View Object using the attribute properties, another is to set auto submit on the component itself. One thing you want to be aware of is that by default ADF is setting the changeEventPolicy on the iterator to "ppr", which means that it implicitly set the PPR refresh. This means that explicitly setting this option is kind of a double registration that is not required. So have you tried disabling changeEventPolicy on teh iterators (PageDef file) by setting them to none and instead setting this on the component (dependent box) ?
    Changing it so that PPR does not happen seems to allow the selectOneChoice to work, but requires a round trip and is not as pretty as the PPR with AutoSubmit which most people are used to.
    PPR also issues a server rond trip. Autosubmit and PPR is doing a partial submit and partial refresh. PPR settings are only a flag to indicate components that should be refreshed upon the next response sent from the server
    Frank

  • ArrayIndexOutOfBoundsException with large XML

    Hello,
    I have some java code that queries the DB and displays the XML in a browser. I am using the oracle.jbo.ViewObject object with the writeXML() method. Everything works well until I try to process a large XML file, the I get the following error:
    java.lang.ArrayIndexOutOfBoundsException: 16388
         at oracle.xml.io.XMLObjectOutput.writeUTF(XMLObjectOutput.java:215)
         at oracle.xml.parser.v2.XMLText.writeExternal(XMLText.java:354)
         at oracle.xml.parser.v2.XMLElement.writeExternal(XMLElement.java:1459)
         at oracle.xml.parser.v2.XMLElement.writeExternal(XMLElement.java:1459)
         at oracle.xml.parser.v2.XMLElement.writeExternal(XMLElement.java:1459)
         at oracle.xml.parser.v2.XMLElement.writeExternal(XMLElement.java:1459)
         at oracle.xml.parser.v2.XMLElement.writeExternal(XMLElement.java:1414)
         at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1267)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
         at com.evermind.server.ejb.EJBUtils.cloneSerialize(EJBUtils.java:409)
         at com.evermind.server.ejb.EJBUtils.cloneObject(EJBUtils.java:396)
    etc...
    I can put in the query to only allow a specific size to be displayed, but the users need to be able to access the larger XML files also. Has anyone else run into this issue?
    Oracle 10g
    Any help or pointers are greatly appreciated.
    Thank you.
    S

    No. We are not limiting the size in our code. Here is a snip of the offending code. The exception occurs on the " results = batchInterfaceView.writeXML(0, 0);" line, but only with larger files.
    <pre>
    try {
    // Request and response helper classes
    XMLHelper request = new XMLHelper(inputXML);
    response = new ResponseXMLHelper();
    if (request.doesValueExist(APP_ERROR_ID)) {
    //get input parameter
    strAppErrorId = request.getValue(APP_ERROR_ID);
    appErrorId = NumberConverter.toBigDecimal(strAppErrorId);
    //get Pos location view
    ViewObject batchInterfaceView =
    findViewObject(GET_ERROR_VIEW, PACKAGE_NAME);
    // get data for selected BatchInterface
    batchInterfaceView.setWhereClauseParam(0, appErrorId);
    batchInterfaceView.executeQuery();
    results = batchInterfaceView.writeXML(0, 0);
    response.addView(results);
    } catch (JboException e) {
    </pre>
    Thank you again for any help.
    S

  • ArrayIndexOutOfBoundsException receiving byte array

    I'm transferring the contents of a file from a web service as the result of the invocation of a WebService procedure call. That is, the client interface for this procedure is
    byte[] getImage (String strImageURL) ....
    The image comes in binary 64 encoding. The WebService was developed in VB6.0 with MSSoapToolkit 3.0, and all other methods are working fine.
    When I call getImage I get an ArrayIndexOutOfBoundsException.
    What is the problem? The image is 70Kb. Is the size a problem?
    java.rmi.RemoteException: Runtime exception; nested exception is:
    deserialization error: java.lang.ArrayIndexOutOfBoundsException: -11
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:234)
    at classis.ContentsSoapPort_Stub.getImage(ContentsSoapPort_Stub.java:175)
    at classis.ClassisWSClient.main(Unknown Source)
    Caused by: deserialization error: java.lang.ArrayIndexOutOfBoundsException: -11
    at com.sun.xml.rpc.encoding.SimpleTypeSerializer.deserialize(SimpleTypeSerializer.ja
    va:143)
    at com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.deserialize(ReferenceableSer
    ializerImpl.java:115)
    at classis.ContentsSoapPort_GetImage_ResponseStruct_SOAPSerializer.doDeserialize(Con
    tentsSoapPort_GetImage_ResponseStruct_SOAPSerializer.java:42)
    at com.sun.xml.rpc.encoding.ObjectSerializerBase.deserialize(ObjectSerializerBase.ja
    va:165)
    at com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.deserialize(ReferenceableSer
    ializerImpl.java:115)
    at classis.ContentsSoapPort_Stub._deserialize_GetImage(ContentsSoapPort_Stub.java:53
    6)
    at classis.ContentsSoapPort_Stub._readFirstBodyElement(ContentsSoapPort_Stub.java:48
    4)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:170)

    This bug existed in EA1...my partner and I fixed it (and sent the fix back to Sun) before EA2 came out. But I just ran into it again with JWSDP v1.0_01.
    The reason for the exception is that MS-based web services embed newlines every 76 characters in a Base64 encoded response (which is how an image is typically returned). Whitespace is invalid in a Base64 encoding and hence causes the array out of bounds exception with the decoding logic tries to index whitespace into the decode tables.
    The code Sun put in to strip whitespace prior to decoding Base64 data was supposed to fix this....but they screwed up on the very simple code that just strips whitespace. <sheesh> You would think that Sun developers could write a half dozen lines of code to correctly strip whitespace from a string! See my other post on this...
    I have a fix (again)....email me privately and I will send you the corrected source/class files that will solve this problem for you (till Sun gets around to releasing v1.0_02...and if they manage to write simple whitespace removal code correctly this time).
    Andrzej Taramina
    Chaeron Corporation
    http://www.chaeron.com

  • Responsive Mobile Menus: Open and close on browser, but not in mobile?

    I have two responsive jquery menus I am working with. In the desktop browser they both look and operate fine (full screen and mobile size), but when that same responsive page with menu is viewed on an actual phone (Android and iphone), the menus both: SHOW FULLY OPENED WITH ALL PARENT AND CHILDREN?
    I believe I installed everyting properly (especially since it resizes and works perfect in a normal desk browser) -Dropsdown and Contracts back.
    Does anyone have any experience with this issue (Responsive menus works fine in a desktop browser, but shows completely opened, and will not drop or contract when viewed on an actual mobile phone, like Android or iphone?), and if so any guidance?
    Thanks very much

    Wow, you save me alot of time and headaches. You really know alot and are very helpful and taught me alot. Thank you for helping me, this is my first site I am still trying to build/get up, after years of on-off trying / learning/ abandoning (for other pursuits). This site is really important for me, and would mean alot for me to finally follow through on building.
    Do you know if this forums allows (or do you ever) add friends/contacts so you can message each other? I am somewhat a 'newbie', so I understand if problem, I would not bug/bother you, just curious and fully understand if not. (or do you ever contact via email, website, or other)?
    Also re: Vanilla Testing: I always test all my stuff on a blank HTML page with only the Boilerplate and JS that Dreamweaver provides. I don't know if I have the capability to fully do in something like notepad? Will this method (Boiler, JS, and blank HTML) suffice--No other Scripts--Not even my stylesheet?
    What do you think about this menu. Features seem good, has the most sales, good developer and support?
    http://themes.pixelworkshop.fr/?theme=MegaMenuCompleteSet

  • Report on campaign response

    Hi All,
    There was a campaign launch at beginning of month, and now we are trying to do analysis on the campaign response. We have a field at contact level called Subsegment which can have values like Experienced RIA, Inexperienced Stock Broker etc. Now, I need to develop a report that would give a count of click through, open response, opt out, hard bounce and also their % based on sub segment field. I am able to develop report with count of click through, open response, opt out, hard bounce but when I develop a field with formula as (Metrics."# of Click Through"/Metrics."# of Recipients")*100 and put this field in pivot table, I get all erroneous data. The formula gives me all weird values, it display 0 then there should be 15 etc.
    Can anybody please help in indentifying what wrong am I doing.
    Thanks in Advance,

    Hi All,
    Never Mind Guys, i figured it out, i had to cast the data type as float to get the desired output, the system was orginally converting everything into integer and that's why i was getting weird results.
    Thanks,

  • Multiple (but separate) domain problem & Apple's slow and useless response

    I am having problem with multiple (but separate) domain. I opened a ticket.
    Here is Apple's slow and useless response and my follow up.
    This follow up is not going to resolve the issues I am having. The sites are not in one domain file. I have split them into separate domains. I found that the simplest change to any page made the publishing process extremely and reasonably slow. If I updated a single site, iWeb republishes the whole conglomeration; hardly the most efficient way.
    I have several directories under the ~/Library/Application Support/iWeb/ directory with separate Domain.sites2 files for each site:
    consultingAM.com
    DarkAssassinMovie.com
    Fuzzy Llama Junior Optimist Club
    GulfportOptimist.com
    OptimistView
    pAwesomeProductions.com
    www.nfdoi.com
    With the previous version of iWeb, I navigated to a specific ~/Library/Application Support/iWeb/ directory, selected the Domain.site file, and opened it. This would open iWeb with the selected domain. Several of the sites have their blog page with the RSS subscribe option.
    Once I made the update, all I usually had to do was publish site and all was well. Occasionally, I would have to do a publish all if I changed domains. All in all, I had no problems with publishing once I found the right steps to be able to maintain multiple domains.
    Now, using the default publish or publish all process, all I get is the last site I published. In order to get things semi-functional, I published a site, then I would go to iDisk/Web/Sites/ directory, select the folder name for the site I had just published, then copy it or move it to iDisk/Web/Sites/iWeb directory. This was rather slow and I suspect it is not an approved solution, but it semi-worked. My sites are back up, but they are not fully functional.
    Is there anyway to get back to using the ~/Library/Application Support/iWeb/ directory (separate Domain.sites file for each site) process to publish multiple sites? If not, is there any way to suck in the various domains back into one? If that is possible, will it take hours to publish the combined 2-3GB like it did with the previous version?
    How do I reverse the 'personal domain' process? I do not want to do this at this time. I just wanted to see what the steps were. I have done the first step, but not the second.
    I was glad to see some of the changes made in the upgrade (web widgets, maps, html snippets, theme switching), but I am too happy about the changes made by the upgrade process. In the past, I upgraded my Apple related stuff as soon as it came out. Based on this upgrade, that won't happen again.
    It took you guys 5 days to get back to me (during which time several of my sites were down) and I do not believe the information you provided is going to solve my specific problems. I am very disappointed with the results of this upgrade. Clearly there was inadequate testing of this product before it was released. I cannot recall seeing the Apple discussion forums with hundreds of topics and thousands of posts within a week or two of a new release. Apple had to upgrade iWeb in the first week, another poor sign.
    Apple is beginning to slip back to the pack; all vendors all below average. Apple is getting more like Microsoft everyday. First Apple delays the release of an OS upgrade so they can concentrate on a freaking phone, now you release software that is so buggy it should be classified as beta at best.
    Some of the changes/problem I am seeing since the upgrade (in addition to the problems mentioned previously) are:
    layout changes; some of my pages no longer look the same; same of the changes are so bad the pages are unreadable
    broken photo pages; some of my photo pages no longer work; some of them have no text or pictures
    file/page name changes; why would Apple change the location of the files; now my domains are not pointing right location; special characters (like spaces, ampersands, etc.) are handled differently in this version; specifically, I see that spaces are changed to underscores (_); iWeb used to use '%20' for spaces; what was Apple thinking?
    broken 3rd party themes; I know Apple is not responsible for 3rd party themes, but you should certainly be aware that they exist
    Based on what I am seeing online, most of the people who are complaining about major iWeb issues are not newbies; based on the technical details in the threads, there are clearly some experienced people who are trying to figure things outw. I have lost many hours trying to figure this mess out. I now have to review hundreds of pages to try get things to look and work the way they did before the upgrade. I have had to handle dozens of phone calls and emails from my viewers and subscribers trying to explain the situation.
    I googled 'iweb 08 *****' and got nearly 50,000 hits! I think Apple better get in front of this train before it gets run over.
    On Aug 19, 2007, at 11:09 AM, .Mac Support wrote:
    Dear David,
    I understand that you are experiencing an issue viewing some of your websites published in iWeb:
    I have examined all of the published pages and they appear to load and function as expected. If you published your website to .Mac, you can visit it either of these ways:
    - In iWeb, click the Visit button in the lower-left corner.
    - Enter the following URL into a web browser:
    http://web.mac.com/daviddawley/
    If you have published more than one website, the URL above will take you to the default website, which is the first website listed in iWeb. To visit another website you have created in iWeb, use the following URL format:
    http://web.mac.com/daviddawley/iWeb/YourSiteName
    Using this form, the web addresses for the two sites you mentioned would be:
    http://web.mac.com/daviddawley/iWeb/FuzzyLlamaJuniorOptimist.com
    http://web.mac.com/daviddawley/iWeb/pAwesomeProductions.com
    To change the default website, simply open iWeb, and in the Site Organizer, drag the desired default website to the top and republish to .Mac.
    NOTE: Be sure to give each website a unique name. This will help prevent one website from overwriting another. For further information, refer to the following article:
    iWeb: Do not use similar names for your sites
    http://www.info.apple.com/kbnum/n303042
    If you still experience issues with the website, try the following troubleshooting steps:
    WAIT SEVERAL MINUTES
    If your website has movies, you may need to wait several minutes after going to the website before the movies are ready to play. The QuickTime Player icon indicates that a movie is still loading.
    CLEAR YOUR BROWSER CACHE
    If you use Safari, you can clear your browser cache by choosing Empty Cache from the Safari menu. If you use another browser, consult that browser’s documentation if you need assistance in clearing your browser cache.
    UPDATE YOUR BROWSER
    Make sure you are using the latest available version of your web browser when viewing pages published in iWeb. If you use Safari, you can check for updates by choosing Software Update from the Apple menu. If there are any available Safari, Security, or Mac OS X updates, install those updates and try looking at your website again.
    If you use another browser, consult that browser’s documentation if you need assistance in updating the browser.
    TRY ANOTHER BROWSER
    If you use a Mac, try viewing your website with Safari or Firefox. If you use Windows, try Internet Explorer 6 or Firefox. Firefox is a free download available here: http://getfirefox.com
    TRY ANOTHER NETWORK
    If possible, try viewing your website from another network or Internet connection. If you can successfully view the website from another network, please consult your network administrator or Internet service provider (ISP) to resolve this issue.
    Important: Mention of third-party websites and products is for informational purposes only and constitutes neither an endorsement nor a recommendation. Apple assumes no responsibility with regard to the selection, performance, or use of information or products found at third-party websites. Apple provides this only as a convenience to our users. Apple has not tested the information found on these sites and makes no representations regarding its accuracy or reliability. There are risks inherent in the use of any information or products found on the Internet, and Apple assumes no responsibility in this regard. Please understand that a third-party site is independent from Apple and that Apple has no control over the content on that website.
    Sincerely,
    Mel
    .Mac Support
    http://www.apple.com/support/dotmac
    http://www.mac.com/learningcenter
    Support Subject : iWeb
    Sub Issue : I can't publish to .Mac from iWeb
    Comments : I was interested in forwarding one of several iWeb based sites to one of my domains. I wanted to see what the steps were. I believe I inadvertently started the process for moving the site to www.nfdoi.com site. I have several sub directories under the ~/Library/Application Support/iWeb directory with separate domain.sites files (now domain.sites2).
    I was going through all of my domain.sites files and opening them in iWeb08; then publishing them. Somewhere along the line everything blew up. Most of my iWeb sites no longer function, It appears that every other iweb site other www.nfdoi.com is down EXCEPT the last one I published. I have made a mess of things and would appreciate any help.
    Don't work:
    http://web.mac.com/daviddawley/FuzzyLlamaJuniorOptimist.com
    http://web.mac.com/daviddawley/pAwesomeProductions.com
    Works:
    http://web.mac.com/daviddawley/Optimist_View/OptimistView.com/OptimistView.com.h tml
    ========= PLEASE USE THE SPACE ABOVE TO DESCRIBE THE ISSUE BASED ON THE QUESTIONS BELOW =========
    1. What version of iWeb are you using to publish to .Mac? iLife 08
    2. When did you first notice this issue? After publishing a few sites.
    3. What happens, including any error messages, when you try to publish your site?
    --------------------- Additional Info -------------------------
    Alternate email address : [email protected]
    OS Version : Mac OS X 10.4.10
    Browser Type : Safari 2.x
    Category : I can't publish to .Mac from iWeb
    Connection Type :Other
    TrackID: 4154168

    Just got off the phone with Apple Support.  There procedure was the following:
    1.  Go to the Apple TV, select settings, general and scroll down to reset.
    2.  Select reset and then select reset all
    Apple TV will go through a restart after the reset and you will have to select your network then log in with your network or Airport Express password.  You will then have to turn on home sharing and It will then ask you for your Apple ID for the iTunes store and then the password.  At this point you may not see your library, because the Apple TV wants you to turn on home sharing on your home computer that is hosting the movie library.  Turn off home sharing on that computer, restart iTunes and turn on home sharing again.  After this is done you should be able to see you library listed under the computer.
    After going through these steps, when I select an HD movie from my iTunes library the movie comes up after about a 5 second delay.
    Hope this helps!  I am back up for business.

  • I have one apple ID for multiple devices in my family.  I'd like to keep it that way for itunes/app purchases.  I would like a simple step 1, step 2, step 3 response on what I need to do to separate all other features like imessage, contacts, emails, etc.

    I have one apple ID for multiple devices in my family.  I'd like to keep it that way for itunes/app purchases.  I would like a simple step 1, step 2, step 3 response on what I need to do to separate all other features like imessage, contacts, emails, etc.
    I have been reasearching how to do this on the internet, but I haven't found an easy explanation yet.  My family is going crazy over each others imessages being sent to others in the family and not being able to use FaceTime because of conflicting email addresses.  I have read that if each person gets their own iCloud account, this would work.  However, I need to know what to do after I set everyone up with their own iCloud account.  Do I make that the default email address to be contacted or can they still use their hotmail email addresses.  Any help- with easy explanation- would be much appreciated!!

    We do this in my family now.  We have one account for purchases, so it is used to share music and apps (I think that is in Settings/iTunes & App Stores).  Each iDevice has this configured.
    Then, each of us has our own iCloud account that is configured under Settings/iCloud.  That then allows us to have our own Mail/Contacts/Calendars/Reminders/Safari Bookmarks/Notes/Passbook/Photo Stream/Documents & Data/Find My iPhone/and Backup.  That Backup piece is pretty sweet and comes in handly if you replace your iDevice.  You can just restore from it.
    So we all share the Apple Store account but we all have our own iCloud accounts to keep the rest seperate or things like you mentioned are a nightmare.
    In answer to what iCloud does for you: http://www.apple.com/icloud/features/
    Think of it as an internet based ("cloud") area for all of those items listed in my response.  What you need to remember is photo stream only maintans the last 1000 pictures so don't count it as a complete backup solution for your pictures.  Even though I rarely sync with a computer these days, I do still try to sync my phone with iPhoto (I have an iMac) so that I have copies of all of my pictures.  1000 may not stretch as far as it sounds.
    Message was edited by: Michael Pardee

  • Is there a way to create a rule that sends and Auto Response for a shared mailbox?

    I have a shared mailbox set up that receives emails that are sent to 3 different addresses:
    [email protected]
    [email protected]
    [email protected]
    I would like to create a rule that would send an auto response when someone emails one of these addresses.  However, I don't want an auto response sent to [email protected] so I can't just set up an "out of office" reply for the mailbox.
    Is there a way that I can create a rule to send an automated response to 2 of the 3 addresses?
    Nate

    Hi 
    we can enable the shared mailbox in ADUC and create Outlook rules for it in Outlook to achieve it. please follow these steps:
    1. In Active Directory Users and Computers, right-click the shared mailbox and click Enable Account.
    2. Configure the Outlook account for the shared mailbox in Outlook.
    3. Click Rules > Manage Rules & Alerts.
    4. Create a rule like the following format:
         Apply this rule after the message arrives
         Have server reply using a specific message
         Except if the subject contains specific words
         Select exception(s) (if necessary) of the Outlook Rule - (“except if from people or public group“)
    5. Apply the auto reply rules for this shared mailbox.
    Then users can receive auto reply of the shared mailbox except the exceptions we have set  when they send messages to this shared mailbox.
    Remember to mark as helpful if you find my contribution useful or as an answer if it does answer your question.That will encourage me - and others - to take time out to help you

Maybe you are looking for

  • Need help for hotspot linking from an ALV Grid to another transaction

    Hi all, I have to make a field in an ALV Grid link to a transaction. I activated the hotspot for the field in the field catalog and created a 'User_command' that i call in the REUSE_ALV_GRID_DISPLAY, but when i click on the hotpsot, it doesnot take m

  • Grid control design and agent deployment

    To give you a brief overview of the setup here, it is currently an agent per instance instead of an agent per host. This was done to allow an agent to be moved along with an instance to another host in a cluster (we are using IBM AIX LPAR, and Sun Cl

  • Dropdown menue or selectlist from fetched SQL results

    Hello i try to build a selectlist or a dropdown menue from fetched Sql results i tryed many ways to realise this but nothing works is anybody here knowing how to do this? heres my code example but it isnt work: <?php if ($conn=OCILogon($HTTP_POST_VAR

  • Is it possible to have subchapters to chapters in iDVD

    It is possible to have multiple movies in iDVD each with chapters. Is there also a way to have subchapters to chapters so that the entire movie would play without stopping at the end of each chapter?

  • Goods Movement user-exit - message capable

    I am searching for a user-exit during goods movement. I have found several enhancements (MCBF*) but none of them allow me to set an error message if a specific condition exists.  None of the enhancements contain a message-id statement.  I want to tes