Catch Get-CsUser exception

hello,
i'm trying to catch an exception form the command Get-CsUser but it doesn't seems to work as i expect and does not catch the exception even if i try to use a chatch all without specifing the exception [Microsoft.Rtc.Management.AD.Cmdlets.GetOcsUserCmdlet]
try{
Get-CsUser username -ErrorAction Stop
catch [Microsoft.Rtc.Management.AD.Cmdlets.GetOcsUserCmdlet]{
'user not found'
thanks,
Marius

This worked for me
Import-Module lync
Try {
get-csuser MichaelADAda -ErrorAction stop
catch [exception]{
Write-Host "TEST" # $_.exception
Uncomment the $_.exception to see the error
Please mark posts as answers/helpful if it answers your question.
Blog
Lync Validator - Used to assist in the validation and documentation of Lync Server 2013.

Similar Messages

  • Error getting application exception message from client EJB 3

    Hi, somebody nkow what is the error?
    I have this simple session bean deploy in a jboss 4.0.5 GA application server
    My interface:
    package server.ejb.usuarios;
    import javax.ejb.Remote;
    @Remote
    public interface Prueba {
         public void getError() throws Exception;
    }My Session bean implementation:
    package server.ejb.usuarios;
    import javax.ejb.Stateless;
    import server.ejb.usuarios.Prueba;
    public @Stateless class PruebaBean implements Prueba {
         public void getError() throws Exception {
              throw new Exception("Mensaje de error");
    }Simple, i can deploy this bean on my application server, now i have this client code:
    package clientold;
    import java.util.Properties;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import server.ejb.usuarios.Prueba;
    public class MainPruebaError {
          * @param args
         public static void main(String[] args) {
              Context ctx;
              try {
                   ctx = getInitialContext();
                   Prueba pruebaSession = (Prueba) ctx.lookup("PruebaBean/remote");
                   pruebaSession.getError();
              } catch (NamingException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch(Exception e){
                   System.out.println("Get error from server: " + e.getMessage());
                   e.printStackTrace();
         private static Context getInitialContext() throws NamingException {
              Properties prop = new Properties();
              prop.setProperty("java.naming.factory.initial",
                        "org.jnp.interfaces.NamingContextFactory");
              prop.setProperty("java.naming.provider.url", "127.0.0.1:1099");
              prop.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming");
              return (new InitialContext(prop));
    }and my client catch the exception but i can�t get the correct exception message. I need pass custom message from my server to my clients and wrap it in a exception, but when i run this example got the next output:
    Get error from server: [Ljava.lang.StackTraceElement;
    java.lang.ClassNotFoundException: [Ljava.lang.StackTraceElement;
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:50)
         at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:139)
         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
         at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1624)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
         at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:128)
         at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:66)
         at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:279)
         at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
         at org.jboss.remoting.Client.invoke(Client.java:525)
         at org.jboss.remoting.Client.invoke(Client.java:488)
         at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:41)
         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
         at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:46)
         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
         at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:40)
         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
         at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:77)
         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
         at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
         at $Proxy0.getError(Unknown Source)
         at clientold.MainPruebaError.main(MainPruebaError.java:21)What is the problem??, i must see on the output
    Get error from server: Mensaje de errorbut i have :
    Get error from server: [Ljava.lang.StackTraceElement;why???, is only a simple application exception and don,t work, somebody can help me??
    i have tried to use an interceptor class for get the exceptions and work, but without interceptor, dont work
    thanks

    I can resolve this problem change the JDK version used to develop my clint application and to run the jboss application server.
    Current, in JBoss 4.0.5, the JDK requirement is JDK 5, and i was using JDK 6.

  • In GP i  am getting Nullpointer Exception

    i created on develpment component in web dynpro.
    In that one comp is created.
    //@@begin others
      private IGPExecutionContext executionContext;
      //@@end
    In that execute is not running.
    public void execute( com.sap.caf.eu.gp.co.api.IGPExecutionContext executionContext )
        //@@begin execute()
         this.executionContext = executionContext;
         IWDTextAccessor textAccessor = wdComponentAPI.getTextAccessor();
         GPWebDynproResourceAccessor resourceAccesor =new GPWebDynproResourceAccessor(textAccessor);
         try{
              //wdComponentAPI.getMessageManager().reportSuccess("Execute");
         catch(Exception er){}
        //@@end
    if call complete
    public void complete( )
        //@@begin complete()
         wdComponentAPI.getMessageManager().reportSuccess("Enter");
         try{
              <b>IGPStructure output = executionContext.getOutputStructure();</b>
         catch(Exception ex1){
              wdComponentAPI.getMessageManager().reportSuccess("exce in complete:"+ex1);
    in that bolded line i am getting nullpointer exception.
    Please slove the probelm

    Hi Satya,
    a) you are in the wrong forum
    b) you forgot to "bold" the relevant errornous line
    Regards Mario

  • How to get an exception when casting a generic collection?

    Hi,
    I have a bit of code that looks more or less like this:import java.util.ArrayList;
    import java.util.Collection;
    public class CollectionTest {
         public static void main (String[] args) {
              try {
                   get (Float.class);
              } catch (ClassCastException e) {
                   System.err.println ("Oops");
                   e.printStackTrace (System.err);
              try {
                   Collection<Short> shorts = get (Short.class);
                   for (Short s : shorts) {
                        System.out.println (s);
              } catch (ClassCastException e) {
                   System.err.println ("Oops");
                   e.printStackTrace (System.err);
              try {
                   Collection<Number> numbers = get (Number.class);
                   for (Number number : numbers) {
                        System.out.println (number);
              } catch (ClassCastException e) {
                   System.out.println ("Oops again");
                   e.printStackTrace (System.err);
         public static <T> Collection<T> get (Class<T> clazz) {
              Collection<T> ret = new ArrayList<T> ();
              if (clazz == String.class) {
                   ret.add (clazz.cast ("Test"));
              } else if (clazz == Integer.class) {
                   ret.add (clazz.cast (Integer.valueOf (1)));
              } else if (clazz == Double.class) {
                   ret.add (clazz.cast (Double.valueOf (1.0)));
              } else if (clazz == Float.class) {
                   ret.add (clazz.cast ("Bug")); // Bug here, blatent
              } else if (clazz == Short.class) {
                   ret.add ((T) "Bug"); // Bug here, latent
              } else if (clazz == Number.class) {
                   ret.addAll (get (Integer.class));
                   ret.addAll (get (Double.class));
                   ret.addAll (get (String.class)); // Another bug here, latent
              return ret;
    }Obviously this doesn't compile as-is, I have to add 3 casts towards the end. Then when I add the casts and run the program I discover I have several bugs, some of which are fail-early and some of which lie hidden until the further away from the bug Since I have the type-token, I use it to check the simple cast, but is there any way I can get a failure more or less at the point where the dodgy Collection cast is made?

    OK, sorry not to be clear. My example code is meant to crash on the erroneous casts - clearly a String cannot be cast to a Float, nor a Short. My point is that in one case the code crashes at the point where the cast is made and in another case the code crashes later on. What I want to achieve is this early failure in case of buggy code. Here is a shorter example:import java.util.ArrayList;
    import java.util.Collection;
    public class CollectionTest {     
         public static <T> Collection<T> get (Class<T> clazz) {
              Collection<T> ret = new ArrayList<T> ();
              if (clazz == String.class) {
                   ret.add (clazz.cast ("Test"));
              } else if (clazz == Integer.class) {
                   ret.add (clazz.cast (Integer.valueOf (1)));
              } else if (clazz == Double.class) {
                   ret.add (clazz.cast (Double.valueOf (1.0)));
              } else if (clazz == Number.class) {
                   ret.addAll ((Collection<? extends T>) get (Integer.class));
                   ret.addAll ((Collection<? extends T>) get (Double.class));
                    // This is a bug, but how can I get an exception at this point?
                   ret.addAll ((Collection<? extends T>) get (String.class));
              return ret;
    }If I mistakenly write this code it will compile (with the addition of the appropriate casts). However, my code is buggy and will fail when the user of the collection receives a String when he is expecting a Number. My question is, how can I get my code to fail where I make the erroneous cast? If you look at the code I originally posted I have two casts of the String "Bug", one of which is done by (T) and the other is clazz.cast. The first example fails late and the second fails early - it is this early failure that I would like to achieve, in the case of buggy code, in my example above.
    Am I making sense yet?

  • How does JAVA catch Trigger's Exception?

    I have a JAVA program which call a SQL (insert a record into table A). On the other hand, I have a trigger written in Oracle DB, which inserts a record to table B after a record has been added to table A.
    Now, I find that when the trigger fails, both table A and table B doesn't have the new record. It seems to rollback the insertion into table A.
    I want to catch the exception in the JAVA, but no exception is returned to the JAVA code. However, when i simulate the insert statement in the Oracle DB, there is some exception returned.
    Do anyone know how to get the exception in JAVA?
    --- java code reference ---
    try
    xxx.executeUpdate("insert into xxx (....) values ('"...."');
    }catch(Exception e)
    e.printStackTrace();

    Further information of the scripts
    ------------------- Script in Oracle ----------
    create table a
    (a1 varchar2(10));
    create table b
    (b1 varchar2(10));
    create table c
    (c1 varchar2(10));
    create table d
    (d1 varchar2(10));
    insert into b values ('1');
    insert into b values ('2');
    insert into b values ('3');
    insert into b values ('4');
    insert into c values ('1');
    insert into c values ('2');
    insert into c values ('3');
    CREATE OR REPLACE TRIGGER abc
    AFTER INSERT ON a
    FOR EACH ROW
    DECLARE
         temp_b1 varchar2(10);
    BEGIN
         SELECT b.b1 INTO temp_b1
         FROM b, c
         WHERE b.b1 = c.c1
         and b.b1 = :New.a1;
         INSERT INTO d(d1) VALUES(temp_b1);
    END;
    ---------------- Run in SQLPLUS --------
    SQL> insert into a values ('4');
    insert into a values ('4')
    ERROR at line 1:
    ORA-01403: no data found
    ORA-06512: at "BCA.ABC", line 6
    ORA-04088: error during execution of trigger 'BCA.ABC'
    ---------------- Script in JAVA ----------
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import oracle.jdbc.OracleDriver;
    import oracle.jdbc.driver.OracleSQLException;
    public class langtest
         public static void main(String args[])
              throws Exception
              DriverManager.registerDriver(new OracleDriver());
              Connection connection = DriverManager.getConnection("jdbc:oracle:thin:[user_name]/[password]@[ip_address]:[port]:[service]");
              PreparedStatement pst = connection.prepareStatement("insert into a values ('4')");
              try {
                   pst.execute();
              } catch (OracleSQLException e)
                   System.out.println(e.getMessage());
                   System.out.println("done");
    ---------------- Run in JAVA Program -----
    There is no error message in JAVA. No exception prompt out. Do you know how I can get the exception in JAVA, just like the Oracle SQLPLUS encountered?
    Kelvin

  • Getting AbstractMethodError exception

    hola....
    i'm running this on a unix server with no display attached to it, i.e. headless server. i have Xvfb running as well. i have set he display variable in the script of the username under which the app server runs.
    did a whole lot of R&D and still have this problem:
    i call this jsp and here is what i get:
    i added the following code to the jsp below
    Graphics g = img.createGraphics();
    g.setColor(Color.white);
    g.fillRect(0, 0, img.getWidth(null),img.getHeight(null));
    g.drawImage(img, 0, 0, null);
    and got the following:
    sun.java2d.SunGraphicsEnvironment.createFontProperties()Lsun/awt/FontProperties;
    see code below. i am running solaris 8, jdk1.4.2 and coldfusionmx. any clue why i'm getting createFontProperties exception???? has anyone encountered this before.
    <%@ page language="java" contentType="text/html"
    import="java.io.*,java.awt.GraphicsEnvironment,
    java.awt.*,
    java.net.*"
    %>
    <html>
    <head>
    <title>Headless</title>
    </head>
    <body bgcolor="#ffffff" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
    Getting headless property : <%=System.getProperty("java.awt.headless")%><BR>
    setting headless property to "true" <BR>
    <%
    System.setProperty("java.awt.headless", "true");
    %>
    check headless property : <%=System.getProperty("java.awt.headless")%><BR>
    <BR>
    java home : <%=System.getProperty("java.home")%><BR>
    classpath : <%=System.getProperty("java.class.path")%><BR>
    <BR>
    <%
    try
    if(java.awt.GraphicsEnvironment.isHeadless())
    {%>java.awt.GraphicsEnvironment.isHeadless<BR>
    <%}
    }catch(Exception e){
    %>headless exceptn
    <%}
    %>
    <%
    java.awt.image.BufferedImage img;
    try
    img = new java.awt.image.BufferedImage(10,10,java.awt.image.BufferedImage.TYPE_INT_ARGB);
    Graphics g = img.createGraphics();
    g.setColor(Color.white);
    g.fillRect(0, 0, img.getWidth(null),img.getHeight(null));
    g.drawImage(img, 0, 0, null);
    %>Got image object<BR>
    <%
    }catch(Exception e)
    %> Exception occured while getting BufferedImage object
    <%
    %>
    </body>
    </html>

    Annoyingly cross-posted at: http://forum.java.sun.com/thread.jsp?forum=4&thread=457706

  • Multiple catch for try -Exception Already caught Running smoothly..

    take this code for example...
    This one runs smoothly..
    public class one
         public static void main(String args[])
              int i=27;
              try
                   System.out.println(i/0);
              catch(ArrayIndexOutOfBoundsException e)
                   System.out.println(e);
              catch(Exception e)
                   System.out.println(e);
    }However if i change the order it would give me a compile time error which in my sun sl-275 book is written it should run fine.
    "If the Exception Catch clause is put first, then it would handle all exceptions, and the MyException or MyOtherException catch clauses would never be invoked."
    which i think is wrong because the code never gets compiled...
    public class one
         public static void main(String args[])
              int i=27;
              try
                   System.out.println(i/0);
              catch(Exception e)
                   System.out.println(e);
              catch(ArrayIndexOutOfBoundsException e)
                   System.out.println(e);
         }please discuss.

    DogsAreBarking wrote:
    take this code for example...
    This one runs smoothly..
    public class one
         public static void main(String args[])
              int i=27;
              try
                   System.out.println(i/0);
              catch(ArrayIndexOutOfBoundsException e)
                   System.out.println(e);
              catch(Exception e)
                   System.out.println(e);
    }However if i change the order it would give me a compile time error Correct. Each exception can be caught only once, Catching an exception implicitly catches every subclass exception of the one caught.
    In the first example, the code is fine, because your first catch block will catch only ArrayIndexOutOfBoundsException, and the second catch block will catch anything that was not caught previously--in other words, everything other than ArrayIndexOutOfBoundsException (and any child classes it may have).
    In the second example, the first catch block handles Exception and all of its subclasses, so catching ArrayIndexOutOfBoundsException is wrong.

  • Catching all possible exceptions in gui thread

    Hi,
    I have such a problem: I am developing Swing app and sometimes it crashes by throwing an Exception which I don't catch. The effect is that this exception prints stack trace on System.err but user is not notified and wonders what is happening... I would prefer to show custom ErrorDialog with stacktrace.
    I am searching for simple and effective way to catch every possible exception thrown from within any library. I think of a few ways from which everyone has some disadvantages.
    The ideal way would be replacing AWT event queue dispatcher so I could process every GUI event inside try { } catch (Exception e) {} block. That would be a good place to catch all exceptions. Unfortunately I don't know if it is possible.
    For now I am trying such a solution:
    I start background thread together with main app. Then I redirect System.err and System.out streams to PipedStream connected to this background thread. This thread can analyze anything that is going to System.err and maybe recognize potential exception stacktraces. Then it can notify main thread of an exception. But it is not ideal as I have to parse the stream and it can always be not ideal in exception recognition. And the code is quite costly.
    Do you have any ideas, had similar problems?

    But how can I cause GUI thread to run in my thread
    group? As I suppose GUI thread is started by JVM and
    is something separate from my code - I can get a
    reference to GUI thread but don't know how to
    manipulate or replace it...One alternative is to completely separate the GUI code from your code.
    Your code, which is wrapped in appropriate try/catch blocks, runs on its own thread and does its own processing. When it's done with that processing, it queues the results on the event thread for display. If an exception occurs during your processing, then you queue something that notifies the GUI.
    The simplest way to implement this is to spawn a new thread for each operation. The Runnable that you give to that thread looks like the following:
    public MyOperationClass implements Runnable
        public void run()
            try
                // do your exception-generating code here
                SwingUtilities.invokeLater( new MyGUIUpdateClass(param1, param2));
            catch (Exception e)
                SwingUtilities.invokeLater(new MyExceptionReporter(e));
    }This is only a bare-bones solution (and hasn't been compiled). Since it separates the GUI from actual processing, you'll probably want to display a wait cursor while the processing thread is doing its thing. You'll probably end up implementing a class that implements this pattern. You may also want to create a producer-consumer thread, so that the user won't invoke, say, a dozen different operations at once.
    However, this sort of code is absolutely essential to Swing programming. Most apps do extensive non-GUI processing, such as database queries. If you run such queries in the GUI thread, your GUI will freeze.
    Sun has named this pattern "SwingWorker", although I don't think they've fleshed it out very fully: http://java.sun.com/products/jfc/tsc/articles/threads/threads2.html

  • Catching System.loadLibrary exceptions

    I looked at the JNI book examples, and none does that. So i conclude that it is better to let that exception propagate up the stack. It makes sense because otherwise class behavior would be undefined. If you have evidence to the contrary, please speak up.
    Thanks.
    chap2/HelloWorld/HelloWorld.java- static {
    chap2/HelloWorld/HelloWorld.java: System.loadLibrary("HelloWorld");
    chap2/HelloWorld/HelloWorld.java- }
    chap2/HelloWorld/HelloWorld.java-}
    chap3/IntArray/IntArray.java- static {
    chap3/IntArray/IntArray.java: System.loadLibrary("IntArray");
    chap3/IntArray/IntArray.java- }
    chap3/IntArray/IntArray.java-}
    chap3/IntArray2/IntArray.java- static {
    chap3/IntArray2/IntArray.java: System.loadLibrary("IntArray");
    chap3/IntArray2/IntArray.java- }
    chap3/IntArray2/IntArray.java-}
    chap3/ObjectArrayTest/ObjectArrayTest.java- static {
    chap3/ObjectArrayTest/ObjectArrayTest.java: System.loadLibrary("ObjectAr
    ayTest");
    chap3/ObjectArrayTest/ObjectArrayTest.java- }
    chap3/ObjectArrayTest/ObjectArrayTest.java-}
    chap3/Prompt/Prompt.java- static {
    chap3/Prompt/Prompt.java: System.loadLibrary("Prompt");
    chap3/Prompt/Prompt.java- }
    chap3/Prompt/Prompt.java-}
    chap3/Prompt2/Prompt.java- static {
    chap3/Prompt2/Prompt.java: System.loadLibrary("Prompt");
    chap3/Prompt2/Prompt.java- }
    chap3/Prompt2/Prompt.java-}
    chap4/InstanceFieldAccess/InstanceFieldAccess.java- static {
    chap4/InstanceFieldAccess/InstanceFieldAccess.java: System.loadLibrary("
    nstanceFieldAccess");
    chap4/InstanceFieldAccess/InstanceFieldAccess.java- }
    chap4/InstanceFieldAccess/InstanceFieldAccess.java-}
    chap4/InstanceFieldAccess2/InstanceFieldAccess.java- static {
    chap4/InstanceFieldAccess2/InstanceFieldAccess.java: System.loadLibrary(
    InstanceFieldAccess");
    chap4/InstanceFieldAccess2/InstanceFieldAccess.java- }
    chap4/InstanceFieldAccess2/InstanceFieldAccess.java-}
    chap4/InstanceMethodCall/InstanceMethodCall.java- static {
    chap4/InstanceMethodCall/InstanceMethodCall.java: System.loadLibrary("In
    tanceMethodCall");
    chap4/InstanceMethodCall/InstanceMethodCall.java- }
    chap4/InstanceMethodCall/InstanceMethodCall.java-}
    chap4/InstanceMethodCall2/InstanceMethodCall.java- static {
    chap4/InstanceMethodCall2/InstanceMethodCall.java: System.loadLibrary("I
    stanceMethodCall");
    chap4/InstanceMethodCall2/InstanceMethodCall.java- initIDs();
    chap4/InstanceMethodCall2/InstanceMethodCall.java- }
    chap4/InstanceMethodCall2/InstanceMethodCall.java-}
    chap4/MyNewString/MyNewString.java- static {
    chap4/MyNewString/MyNewString.java: System.loadLibrary("MyNewString");
    chap4/MyNewString/MyNewString.java- }
    chap4/MyNewString/MyNewString.java-}
    chap4/MyNewString2/MyNewString.java- static {
    chap4/MyNewString2/MyNewString.java: System.loadLibrary("MyNewString");
    chap4/MyNewString2/MyNewString.java- }
    chap4/MyNewString2/MyNewString.java-}
    chap4/StaticFieldAccess/StaticFieldAccess.java- static {
    chap4/StaticFieldAccess/StaticFieldAccess.java: System.loadLibrary("Stat
    cFieldAccess");
    chap4/StaticFieldAccess/StaticFieldAccess.java- }
    chap4/StaticFieldAccess/StaticFieldAccess.java-}
    chap4/StaticMethodCall/StaticMethodCall.java- static {
    chap4/StaticMethodCall/StaticMethodCall.java: System.loadLibrary("Static
    ethodCall");
    chap4/StaticMethodCall/StaticMethodCall.java- }
    chap4/StaticMethodCall/StaticMethodCall.java-}
    chap5/MyNewString/MyNewString.java- static {
    chap5/MyNewString/MyNewString.java: System.loadLibrary("MyNewString");
    chap5/MyNewString/MyNewString.java- }
    chap5/MyNewString/MyNewString.java-}
    chap6/CatchThrow/CatchThrow.java- static {
    chap6/CatchThrow/CatchThrow.java: System.loadLibrary("CatchThrow");
    chap6/CatchThrow/CatchThrow.java- }
    chap6/CatchThrow/CatchThrow.java-}
    chap6/InstanceMethodCall/InstanceMethodCall.java- static {
    chap6/InstanceMethodCall/InstanceMethodCall.java: System.loadLibrary("In
    tanceMethodCall");
    chap6/InstanceMethodCall/InstanceMethodCall.java- }
    chap6/InstanceMethodCall/InstanceMethodCall.java-}
    chap6/ThrowByName/ThrowByName.java- static {
    chap6/ThrowByName/ThrowByName.java: System.loadLibrary("ThrowByName");
    chap6/ThrowByName/ThrowByName.java- }
    chap6/ThrowByName/ThrowByName.java-}
    chap8/NativeString/NativeString.java- static {
    chap8/NativeString/NativeString.java: System.loadLibrary("NativeString")
    chap8/NativeString/NativeString.java- }
    chap8/NativeString/NativeString.java-}
    chap9/OneToOne/OneToOne.java- static {
    chap9/OneToOne/OneToOne.java: System.loadLibrary("OneToOne");
    chap9/OneToOne/OneToOne.java- }
    chap9/OneToOne/OneToOne.java-}
    chap9/OneToOne/OneToOne.java-
    chap9/SharedStubs/CPointer.java- static {
    chap9/SharedStubs/CPointer.java: System.loadLibrary("disp");
    chap9/SharedStubs/CPointer.java- SIZE = initIDs();
    chap9/SharedStubs/CPointer.java- }
    chap9/SharedStubs/CPointer.java-

    There are 2 choices, i guess:
    1) Catch and don't re-throw, thus allowing pure java methods to be called,
    even though native method calls will throw, and state might be undefined.
    2) Catch and don't re-throw: thus making all method calls on such a class
    to throw, since object instantiations will fail. But at least in this
    case, an object w/ undefined behavior won't be in use.
    And i guess one could choose one or the other based on circumstances. In
    my case, the class will pretty much be unworkable w/o native methods, so
    what would be the best choice?
    Looking at NetBeans source, i'm seeing 2 examples of 1, and 1 example of
    2. Both examples of 1 utilize fail-backs if library isn't found, such as
    not calling the native method involved. The example of 2, catches
    Exception but lets Throwables go thru, which means it doesn't catch
    UnsatisfiedLinkError, and NbDdeBrowserImpl is unusable it library isn't
    found. My situation is similar to this. I concluded for myself, that we
    should catch all 3 exceptions from System.loadLibrary, show error dialog
    w/ each exception's message, and re-throw each exception, because
    otherwise, 90% of methods in the class are going to throw, and there is no
    way to get any decent functionality out of it in such a situation. Would
    you agree w/ my conclusion?
    1.1)
    /tasklist/core/src/org/netbeans/modules/tasklist/core/Background.java
    private static void loadLibrary() {
    if (loadfailed) return;
    if (false == loaded) {
    try {
    // XXX be aware of #32080, that changes location of native
    libraries
    System.loadLibrary("tasklist_bgthreads"); // NOI18N
    loaded = true;
    } catch (Throwable t) {
    ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, t);
    loadfailed = true;
    1.2)
    tasklist/timerwin/src/org/netbeans/modules/tasklist/timerwin/AlwaysOnTop.java:
    try {
    setAlwaysOnTopMethod = Window.class.getDeclaredMethod(
    "setAlwaysOnTop", // NOI18N
    new Class[] {Boolean.TYPE});
    } catch (Throwable t) {
    // ignore
    if (setAlwaysOnTopMethod == null) {
    try {
    System.loadLibrary("alwaysontop"); // NOI18N
    libLoaded = true;
    } catch (Throwable t) {
    libLoaded = false;
    2) extbrowser/src/org/netbeans/modules/extbrowser/NbDdeBrowserImpl.java:
    try {
    if (org.openide.util.Utilities.isWindows()) {
    // should be 32 or 64 bit, but it may not be present on
    some jdks
    String sunDataModel =
    System.getProperty("sun.arch.data.model"); //NOI8N
    if (sunDataModel != null) {
    if ("64".equals(sunDataModel)) { //NOI18N
    System.loadLibrary(EXTBROWSER_DLL_64BIT);
    } else {
    System.loadLibrary(EXTBROWSER_DLL);
    } else {
    String javaVMName =
    System.getProperty("java.vm.name"); //NOI8N
    if ((javaVMName != null) && (javaVMName.indexOf("64")
    -1)) { //NOI18NSystem.loadLibrary(EXTBROWSER_DLL_64BIT);
    } else {
    System.loadLibrary(EXTBROWSER_DLL);
    } catch (Exception e) {
    DialogDisplayer.getDefault ().notify (
    new
    NotifyDescriptor.Message(NbBundle.getMessage(NbDdeBrowserImpl.class,
    "ERR_cant_locate_dll"),
    NotifyDescriptor.INFORMATION_MESSAGE)
    }

  • Why  catch any other exception other than Exception ?

    Hi,
    I am under the following impression. Is my understanding correct?
    why do I need to catch any other exception other than Exception in the catch block.
    If I write code :
    try{
    //checked code
    }catch(Exception e){
    e.printStackTrace();
    e.getMessage();
    }the e.printStackTrace(); and e.getMessage(); will belt out the exact error message and the cause of it.
    Why then should I use any narrower excetpion than Exception (Like SQLException, in case of SQL code). ?

    You don't have to catch the specific exceptions. However, it makes the code clearer. If you have catch exception, then the next person to maintain that code, has to then study the try block to determine what, if anything, might be thrown in that block, in order to be able to effectively modify the code, whereas when you have catch CNF, then the next person to maintain the code knows, automatically, that that is the only possible exception (checked anyway) that should be thrown in that block.
    The other reason, is so that when varying (and especially unrelated, i.e. SQL and Parse) exceptions can be thrown, they can be handled differently.
    So, as a summary, it is either a matter of form, or a matter of completeness. But, yes, you can simply catch Exception, if you wish.
    Edit: The first point is also valid even when you are the only one who will ever see the code. I can't count the number of times where I have written something then had to revisit it years later, and thought to myself, WTF. (I have a tendency, if I don't "watch" myself to not comment my code enough, and, at the same time, tend to get a little more "clever" or "cryptic" than I absolutely have to.)

  • Get the Exception:invalid dynamic status

    I have the problem that when I use "Connection.close()" to close the ODBC connection, I get the exception
    "[Microsoft][ODBC Microsoft Access driver]invalid dynamic status"
    I have tested several cases,
    the problem is when I open the ResultSet, then I cannot close the connection.
    The Following is my code:
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection connect=DriverManager.getConnection("jdbc:odbc:final_year");
    Statement state=connect.createStatement();
    connect.setAutoCommit(false);
    ResultSet rs=state.executeQuery("Select .....");
    if (rs.next)
    do the code
    rs.close();
    state.close();
    connect.close();
    when the program run at "connect.close()", it throws Exception

    just check whether it works when the autoCommit() is set to true or
    either commit or roll back before closing the connection

  • Synchronous scenario(ABAP proxy to HTTP_AAE) getting error exception as "Message Expired Exception"

    Dear All,
    I have done all the configuration for ABAP proxy scenario using AAE/ICO as per the below "how to guide" using SOAP as sender adapter using xi protocol. My SAP PI is 7.4 dual stack system. here third party is not a webservice its HTTP based we server so no wsdl.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70066f78-7794-2c10-2e8c-cb967cef407b?overridelayout=t…
    However after running the scenario from ECC I am getting the exception as "Returning to application. Exception: com.sap.engine.interfaces.messaging.api.exception.MessageExpiredException: Message 53289257-97e0-06d0-e100-00000a70d384(OUTBOUND) expired.". I do not have any connection problem to third party(bank) URL. moreover I am able to get the response from bank using classical scenario s in PI, but the response message is not getting pushed to ECC, rather its reaming in PI SXMB_MONI with status "Log version".
    Thats the reason I am trying to do using ICO, but using ICO PI is not even sending the request out of PI to bank. Please see the below receiver communication channel message log.
    Thanks,
    Farhan

    Hi,
    As per the log, the message has started 23:18:02 and failed at 23.23:02 it took 5min time, if message is not process certain time this kind of errors comes up. Have you changed adapter type for existing SOAP communication channel or created new? provide complete log of the message from starting time to ending time if possible.

  • Getting Nullpointer Exception during paypal checkout in ATG 10.0.3

    Hi All,
    I have migrate my source form ATG9.4 to Atg 10.0.3. During checkout when I select paypal gateway for checkout I am getting NullPointerException. Same code is running successfully in ATG9.4 . Can anyone help me why I am getting this exception? I am attaching the log also.
    2013-02-08 03:09:09,171 INFO [nucleusNamespace.atg.commerce.order.purchase.PaymentGroupFormHandler] (ajp-172.18.0.126-10109-7) CMSPaymentGroupFormHandler.handleCheckoutWithPayPal.Profile Id (setExpressCheckoutRequest.getProfile().getRepositoryId()) --> 788240019
    2013-02-08 03:09:09,171 INFO [nucleusNamespace.atg.commerce.order.purchase.PaymentGroupFormHandler] (ajp-172.18.0.126-10109-7) CMSPaymentGroupFormHandler.handleCheckoutWithPayPal.Profile Id set in order (getOrder().getProfileId()) --> 788240019
    2013-02-08 03:09:09,172 INFO [nucleusNamespace.sparkred.paypal.PayPalProcessor] (ajp-172.18.0.126-10109-7) DEBUG PayPalProcessor.setupPayPalPG:Entering method.
    2013-02-08 03:09:09,172 INFO [nucleusNamespace.sparkred.paypal.PayPalProcessor] (ajp-172.18.0.126-10109-7) DEBUG PayPalProcessor.setupPayPalPG:there is no PayPal PG on the order. Creating a new one.
    2013-02-08 03:09:09,172 INFO [nucleusNamespace.sparkred.paypal.PayPalProcessor] (ajp-172.18.0.126-10109-7) DEBUG PayPalProcessor.setupPayPalPG:adding new PayPal PG to the order
    2013-02-08 03:09:09,482 INFO [nucleusNamespace.sparkred.paypal.PayPalProcessor] (ajp-172.18.0.126-10109-7) DEBUG PayPalProcessor.setupPayPalPG:PayPal PG is setup as a remainder PG with amount: 13.95
    2013-02-08 03:09:09,498 INFO [nucleusNamespace.sparkred.paypal.PayPalProcessorHelper] (ajp-172.18.0.126-10109-7) DEBUG CMSPayPalProcessorHelper.filterNVPForSetExpressCheckout.Start
    2013-02-08 03:09:09,498 INFO [nucleusNamespace.sparkred.paypal.PayPalProcessorHelper] (ajp-172.18.0.126-10109-7) DEBUG CMSPayPalProcessorHelper.filterNVPForSetExpressCheckout.End
    2013-02-08 03:09:09,498 INFO [nucleusNamespace.sparkred.paypal.PayPalProcessor] (ajp-172.18.0.126-10109-7) DEBUG PayPalProcessor.call:pNameValuePairs: {PAYMENTREQUEST_0_TAXAMT=0.00, CANCELURL=https://qa1.cms.com/cms/paypal/cancel, MAXAMT=16.74, PAYMENTREQUEST_0_SHIPTOZIP=96814, ADDROVERRIDE=1, PAYMENTREQUEST_0_ITEMAMT=8.0, PAYMENTREQUEST_0_SHIPTONAME=Chandra Mohan, L_PAYMENTREQUEST_0_QTY0=1, PAYMENTREQUEST_0_SHIPTOCITY=Honolulu, PAYMENTREQUEST_0_SHIPTOSTREET=700 Keeaumoku Street, EMAIL=null, PAYMENTREQUEST_0_AMT=13.95, PAYMENTREQUEST_0_SHIPTOSTATE=HI, L_PAYMENTREQUEST_0_NUMBER0=A389669863, PAYMENTREQUEST_0_SHIPTOSTREET2=, PAYMENTREQUEST_0_CURRENCYCODE=USD, ALLOWNOTE=0, useraction=continue, PAYMENTREQUEST_0_SHIPPINGAMT=5.95, PAYMENTREQUEST_0_PAYMENTACTION=Order, RETURNURL=https://qa1.cms.com/cms/paypal/continue, PAYMENTREQUEST_0_INVNUM=A389669863, L_PAYMENTREQUEST_0_AMT0=8.0, PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE=US, L_PAYMENTREQUEST_0_DESC0=cms.com Order #A389669863 (1 items), PAYMENTREQUEST_0_PAYMENTREQUESTID=A389669863, METHOD=SetExpressCheckout}
    2013-02-08 03:09:09,498 INFO [nucleusNamespace.sparkred.paypal.PayPalProcessor] (ajp-172.18.0.126-10109-7) DEBUG PayPalProcessor.call:encodedString: PAYMENTREQUEST_0_TAXAMT=0.00&CANCELURL=https%3A%2F%2Fqa1.cms.com%2Fcms%2Fpaypal%2Fcancel&MAXAMT=16.74&PAYMENTREQUEST_0_SHIPTOZIP=96814&ADDROVERRIDE=1&PAYMENTREQUEST_0_ITEMAMT=8.0&PAYMENTREQUEST_0_SHIPTONAME=Chandra++Mohan&L_PAYMENTREQUEST_0_QTY0=1&PAYMENTREQUEST_0_SHIPTOCITY=Honolulu&PAYMENTREQUEST_0_SHIPTOSTREET=700+Keeaumoku+Street&PAYMENTREQUEST_0_AMT=13.95&PAYMENTREQUEST_0_SHIPTOSTATE=HI&L_PAYMENTREQUEST_0_NUMBER0=A389669863&PAYMENTREQUEST_0_SHIPTOSTREET2=&PAYMENTREQUEST_0_CURRENCYCODE=USD&ALLOWNOTE=0&useraction=continue&PAYMENTREQUEST_0_SHIPPINGAMT=5.95&PAYMENTREQUEST_0_PAYMENTACTION=Order&RETURNURL=https%3A%2F%2Fqa1.cms.com%2Fcms%2Fpaypal%2Fcontinue&PAYMENTREQUEST_0_INVNUM=A389669863&L_PAYMENTREQUEST_0_AMT0=8.0&PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE=US&L_PAYMENTREQUEST_0_DESC0=cms.com+Order+%23A389669863+%281+items%29&PAYMENTREQUEST_0_PAYMENTREQUESTID=A389669863&METHOD=SetExpressCheckout&VERSION=63.0&USER=websup_1286901766_biz_api1.cms.com&PWD=472DXVG5JYQ79HY6&BUTTONSOURCE=SparkRed_ATG_EC_US&
    2013-02-08 03:09:09,500 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[cms].[jsp]] (ajp-172.18.0.126-10109-7) Servlet.service() for servlet jsp threw exception
    java.lang.NullPointerException
    at com.sparkred.paypal.PayPalProcessor.call(PayPalProcessor.java:1390)
    at com.sparkred.paypal.PayPalProcessor.callSetExpressCheckout(PayPalProcessor.java:650)
    at com.cms.order.purchase.CMSPaymentGroupFormHandler.handleCheckoutWithPayPal(CMSPaymentGroupFormHandler.java:468)
    at com.cms.order.purchase.CMSPaymentGroupFormHandler.handleMoveToRewards(CMSPaymentGroupFormHandler.java:1600)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at atg.droplet.EventSender.sendEvent(EventSender.java:582)
    at atg.droplet.FormTag.doSendEvents(FormTag.java:800)
    at atg.droplet.FormTag.sendEvents(FormTag.java:649)
    at atg.droplet.DropletEventServlet.sendEvents(DropletEventServlet.java:523)
    at atg.droplet.DropletEventServlet.service(DropletEventServlet.java:550)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
    at atg.commerce.order.CommerceCommandServlet.service(CommerceCommandServlet.java:128)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
    at atg.commerce.promotion.PromotionServlet.service(PromotionServlet.java:191)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
    at atg.userprofiling.AccessControlServlet.service(AccessControlServlet.java:655)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
    at atg.servlet.sessionsaver.SessionSaverServlet.service(SessionSaverServlet.java:2425)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
    at atg.userprofiling.PageEventTriggerPipelineServlet.service(PageEventTriggerPipelineServlet.java:169)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
    at atg.multisite.SiteSessionEventTriggerPipelineServlet.service(SiteSessionEventTriggerPipelineServlet.java:139)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
    at atg.userprofiling.SessionEventTrigger.service(SessionEventTrigger.java:477)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
    at atg.userprofiling.ProfilePropertyServlet.service(ProfilePropertyServlet.java:208)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
    at atg.search.servlet.SearchClickThroughServlet.service(SearchClickThroughServlet.java:396)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
    at com.cms.servlet.pipeline.ShoppingContextServlet.service(ShoppingContextServlet.java:106)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
    at atg.userprofiling.ProfileRequestServlet.service(ProfileRequestServlet.java:437)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
    at com.cms.servlet.pipeline.ValidateNumericParamsServlet.validateNumberParameter(ValidateNumericParamsServlet.java:149)
    at com.cms.servlet.pipeline.ValidateNumericParamsServlet.service(ValidateNumericParamsServlet.java:102)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
    at com.cms.servlet.pipeline.ProtocolSwitchServlet.service(ProtocolSwitchServlet.java:305)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
    at com.cms.servlet.pipeline.NetscalerServlet.service(NetscalerServlet.java:101)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
    at atg.servlet.pipeline.DynamoPipelineServlet.service(DynamoPipelineServlet.java:469)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
    at com.cms.servlet.pipeline.ValidateParamsPipelineServlet.service(ValidateParamsPipelineServlet.java:60)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
    at atg.servlet.pipeline.URLArgumentPipelineServlet.service(URLArgumentPipelineServlet.java:280)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
    at atg.servlet.pipeline.PathAuthenticationPipelineServlet.service(PathAuthenticationPipelineServlet.java:370)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
    at atg.userprofiling.sso.PassportServlet.service(PassportServlet.java:554)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
    at atg.servlet.security.ThreadUserBinderServlet.service(ThreadUserBinderServlet.java:91)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
    at atg.dtm.TransactionPipelineServlet.service(TransactionPipelineServlet.java:212)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
    at atg.multisite.SiteContextPipelineServlet.service(SiteContextPipelineServlet.java:348)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
    at atg.servlet.pipeline.HeadPipelineServlet.passRequest(HeadPipelineServlet.java:1174)
    at atg.servlet.pipeline.HeadPipelineServlet.service(HeadPipelineServlet.java:857)
    at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:250)
    at atg.filter.dspjsp.PageFilter.doFilter(Unknown Source)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
    at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
    at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:381)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
    at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:436)
    at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:384)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)
    Thanks
    Chandra Mohan

    If you have its source code try to debug/find why NullPointerException is coming within PayPalProcessor.call() execution. Not sure if it is related to your issue but there is null value for email in the log where the name-value pairs being dumped.
    2013-02-08 03:09:09,498 INFO [nucleusNamespace.sparkred.paypal.PayPalProcessor] (ajp-172.18.0.126-10109-7) DEBUG PayPalProcessor.call:pNameValuePairs: {PAYMENTREQUEST_0_TAXAMT=0.00, CANCELURL=https://qa1.cms.com/cms/paypal/cancel, MAXAMT=16.74, PAYMENTREQUEST_0_SHIPTOZIP=96814, ADDROVERRIDE=1, PAYMENTREQUEST_0_ITEMAMT=8.0, PAYMENTREQUEST_0_SHIPTONAME=Chandra Mohan, L_PAYMENTREQUEST_0_QTY0=1, PAYMENTREQUEST_0_SHIPTOCITY=Honolulu, PAYMENTREQUEST_0_SHIPTOSTREET=700 Keeaumoku Street, *EMAIL=null*, PAYMENTREQUEST_0_AMT=13.95, PAYMENTREQUEST_0_SHIPTOSTATE=HI, L_PAYMENTREQUEST_0_NUMBER0=A389669863, PAYMENTREQUEST_0_SHIPTOSTREET2=, PAYMENTREQUEST_0_CURRENCYCODE=USD, ALLOWNOTE=0, useraction=continue, PAYMENTREQUEST_0_SHIPPINGAMT=5.95, PAYMENTREQUEST_0_PAYMENTACTION=Order, RETURNURL=https://qa1.cms.com/cms/paypal/continue, PAYMENTREQUEST_0_INVNUM=A389669863, L_PAYMENTREQUEST_0_AMT0=8.0, PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE=US, L_PAYMENTREQUEST_0_DESC0=cms.com Order #A389669863 (1 items), PAYMENTREQUEST_0_PAYMENTREQUESTID=A389669863, METHOD=SetExpressCheckout}
    You may check if it is related to the NPE by cross verifying it with the environment where it is working fine.

  • Getting Stackclose exception in bluetooth applicaiton!

    Hi,
    All
    I am developing simple file transfer application in which mobile is server and client is pc
    while i am calling Connector.open(url) method after that i will get
    stackclose exception and program stops working.
    and on mobile that is server no exception is thrown.
    i think before opening connection stack close.But how to solve it?
    Help me..
    Thanks in advance..

    Hi,
    because you added the jars to build-path you get no error at build time. But this exception is thrown at runtime.
    You should check whether MDM API is deployed on the server and you are using the same version at build time.
    BR,
    Timo

  • When i run report through OC4J Application i get a exception message

    When i run report through OC4J Application i get a exception message saying Server returning invalid xml and the exception number is JBO -29000. The Reports Server is installed on machine having IP 10.191.99.254.
    Below is the exception message:
    (oracle.jbo.JboException) JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: java.io.IOException, msg=Server returned HTTP response code: 500 for URL: http://10.191.99.254:8888/reports/rwservlet/showjobidnull
    Anybody Please help me out with this issue.....because I am really fed up with this problem....want some urgent help.....
    One possible workaround which I could make out is there needs change to be made in the .rdf files in Report Builder and then inside the User Parameters we change the Initial Value to * from % because the Reports Server encodes every value as %Initial_Value% and hence if the initial value for the parameter is % then it does not get a valid value and hence it returns as an invalid xml
    But unfortunately it seems this workaround does not work.Please help as soon as possible.

    Hi,
    you said that some changes were made in the .xml files but i had said that all the files present in Reports Developer or Reports Builder are .rdf files and I had made changes in the .rdf files for this articular report and then compiled it thereitself and then ran a paper layout of the report but the report did not comprise any data.
    There was sufficient data also to populate the report. So this may not be a database issue. Please help if you can ASAP.

Maybe you are looking for