Delta_avi_delta ......unknown source problem...

When i try to put in the lines that you posted on the forum, i manage to compile but when i actually read from the serial port, error occurs....The error is
java.lang.NullPointerException
at java.io.ByteArrayOutputStream.writeto(Unknown source)
at Read.serialEvent(Read.java:99)
import javax.comm.*;
import java.io.*;
import java.util.*;
public class Read implements Runnable, SerialPortEventListener {
     // Attributes for Serial Communication
     static Enumeration portList;
     static CommPortIdentifier portId;
     SerialPort serialPort;
     static OutputStream outputStream;
     InputStream inputStream;
     Thread readThread;
     ByteArrayOutputStream buffer;
     public static void main(String s[])
     portList=CommPortIdentifier.getPortIdentifiers();
     while(portList.hasMoreElements())
          portId=(CommPortIdentifier)portList.nextElement();
          if(portId.getPortType()==CommPortIdentifier.PORT_SERIAL)
               if(portId.getName().equals("COM1"))
                    System.out.println( portId.getName());
                    Read ss=new Read();
          }     // end of while
}          // end of main
public Read()     {
try{
          serialPort=(SerialPort)portId.open("Read", 2000);
catch(PortInUseException e)     {}
     try{
          inputStream=serialPort.getInputStream();
          System.out.println(inputStream);
catch(IOException e)     {}
     try{
          serialPort.addEventListener(this);
catch(Exception e)     {}
          serialPort.notifyOnDataAvailable(true);
     try{
          serialPort.setSerialPortParams(9600,
          SerialPort.DATABITS_8,
          SerialPort.STOPBITS_1,
          SerialPort.PARITY_NONE);
          }catch(UnsupportedCommOperationException e)     {}
          readThread=new Thread(this);
          readThread.start();
     }//end of constructor
     public void run()
          try     {
               Thread.sleep(200);
          }catch(InterruptedException e)     {}
     public void serialEvent(SerialPortEvent event)
     {buffer=new ByteArrayOutputStream();
       int i;
           switch(event.getEventType())
                case SerialPortEvent.BI:
                case SerialPortEvent.OE:
                case SerialPortEvent.FE:
                case SerialPortEvent.PE:
                case SerialPortEvent.CD:
                case SerialPortEvent.CTS:
                case SerialPortEvent.DSR:
                case SerialPortEvent.RI:
                case SerialPortEvent.OUTPUT_BUFFER_EMPTY:
                break;
                case SerialPortEvent.DATA_AVAILABLE:
                byte[]readBuffer=new byte[8];
               try{
                    while((i=inputStream.available())>0)
                         inputStream.read(readBuffer, 0, i);
                         buffer.write(readBuffer, 0, i);
                         buffer.writeTo(outputStream);
                         buffer.reset();
                    }catch(IOException e)     {}
               break;
               }     // end of switch
               try     {
                    inputStream.close();
                    }catch(Exception e5)     {}
     }          // end of serialEvent

Hey I_ws,
glad I could be some help!
Other poster is right, you need some particular outputstream to output to, say you're outputting to a text file, (I can't remember your original post, but other outputs are similar)
you'd do something like:
DataOutputStream out;
//initialise with constructor...
         try{
              out = new DataOutputStream(
                  new FileOutputStream("log.txt"));
         }catch (FileNotFoundException e) {}
// creating a new data output stream to
//write data to the specified underlying FileOutputStream...
//output part:
inputStream.read(readBuffer, 0, i);   
buffer.write(readBuffer, 0, i);
buffer.writeTo(out);
buffer.reset();
[\code]
hope that helps (and hope it runs!)  I'm reading over my pathetic resume to counteract the ego boost of seeing my handle as a thread subject!
take care :)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • RMI: Unknown source problem with connection & security

    When I try to run the RMI server code, after I have granted all permissions in my policy, after compiling through RMIC generating my stub and skeleton classes, and finally after running the RMI registry, I receive an error. The error that I have been getting is pasted below. I have searched through several java forums trying to find an answer and have not found one. If you recognized this error, please let me know if you have suggestions. Thanks.
    TestRmiServer exception: access denied (java.net.SocketPermission 192.168.0.152:
    1099 connect,resolve) //note: I'm using the default RMI port
    java.security.AccessControlException: access denied (java.net.SocketPermission 1
    92.168.0.152:1099 connect,resolve)
    at java.security.AccessControlContext.checkPermission(Unknown Source)
    at java.security.AccessController.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkConnect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown S
    ource)
    at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown S
    ource)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
    at sun.rmi.server.UnicastRef.newCall(Unknown Source)
    at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
    at java.rmi.Naming.rebind(Unknown Source)
    at irad.nmi.services.util.testRmi.TestRmiServer.main(TestRmiServer.java:
    64)
    Anyway, a response would be welcome. Thanks.

    look at thread :
    http://forum.java.sun.com/thread.jspa?threadID=597299&tstart=0
    most likely you did not specify the -Djava.security.policy property properly.

  • Problem : It is question about unknown source.

    Following error of applet program practice that use jtable happened.Can not find correct position coming out by Unknown Source.Receive impression that do Oryuindeut from painted again part.During light bulb try ~ by catch catch can, is no there method that can solve error?
    java.lang.NullPointerException
         at sun.awt.image.SunVolatileImage.isGCValid(Unknown Source)
         at sun.awt.image.SunVolatileImage.validate(Unknown Source)
         at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
         at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
         at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
         at java.awt.Container.paint(Unknown Source)
         at sun.awt.RepaintArea.paint(Unknown Source)
         at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)

    You used a language translation program to say that, didn't you? Try a different program, that one is no good.

  • Windows cannot verify the digital signature for the drivers required for this device. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source. (Code

    I get this message when I check the Device manager for my Ipod
    Windows cannot verify the digital signature for the drivers required for this device. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source. (Code 52)
    How do I resolve this I have reinstalled iTunes but it still doesn't recognise my ipod

    I reinstalled Itunes a couple of times.  I unistalled all programs that I never use, I updated all of my drivers, Windows swept my computer and found no problems.  I have a yellow causion lite when I look at the USB-port with the phone connected.  All other devices work without a problem.

  • NullPointerException (Unknown Source) in Serializable class

    Hi, I have a Serializable class, and I just added a new class variable to it, with its get and set methods. When I try to call either the get or the set method from outside the class, I get a NullPointerException, which refers to the method in the following format:
    java.lang.NullPointerException
    at setMethod (Unknown Source)
    or at getMethod (Unknown Source)I'm very confused about why this is happening, and I can't seem to come up with any solutions as to why it happens only for this variable and not for the other ones.
    I wrote the two following files, trying to reproduce this problem outside work, but I wasn't successful. Please help out!
    import java.io.Serializable;
    public class Profile implements Serializable {
         private static final long serialVersionUID = 1835312781905234523L;
        private String name;
        private String phone;
        private String city;
        private int age;
        public Profile() {}
        public Profile(String name, String phone, String city, int age)
             this.name = name;
             this.phone = phone;
             this.city = city;
             this.age = age;
        public String getName()
             return name;
        public void setName(String name)
             this.name = name;
        public String getPhone()
             return phone;
        public void setPhone(String phone)
             this.phone = phone;
        public String getCity()
             return city;
        public void setCity(String city)
             this.city = city;
        public int getAge()
             return age;
        public void setAge(int age)
             this.age = age;
    public class ProfileTester {
        Profile profile;
         public ProfileTester()
             profile = new Profile();
             profile.setName("Nazli");
             profile.setPhone("650-234-1234");
             profile.setCity("Menlo Park, CA");
             profile.setAge(30);
             System.out.println("Name: "+profile.getName());
             System.out.println("Phone: "+profile.getPhone());
             System.out.println("City: "+profile.getCity());
             System.out.println("Age: "+profile.getAge());
         public static void main (String [] args)
              ProfileTester tester = new ProfileTester();
    }

    My guess is that your get or set method is a little more complex than a simple retrieval or assignment.
    Make sure there are no null references in the body of those methods.

  • Getting a java.awt.Window.pack(unknown source) error

    Hello,
    This is the exact error stack:
    ERROR: 10:48:21,503 - TcLogger$IC_PrintStream.println:?
    java.lang.NullPointerException
    java.lang.NullPointerException
         at com.teamcenter.rac.util.PropertyLayout.askRowPreferredSize(Unknown Source)
         at com.teamcenter.rac.util.PropertyLayout.preferredLayoutSize(Unknown Source)
         at com.teamcenter.rac.util.PropertyLayout.layoutContainer(Unknown Source)
         at java.awt.Container.layout(Unknown Source)
         at java.awt.Container.doLayout(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validate(Unknown Source)
         at java.awt.Window.pack(Unknown Source)
         at com.honda.ergo.pergo.ProcErgoJDialog.createProcErgoDialog(ProcErgoJDialog.java:789)
         at com.honda.ergo.pergo.ProcErgoJDialog.<init>(ProcErgoJDialog.java:328)
         at com.honda.cme.actions.ErgoAssessmentAppAction.run(ErgoAssessmentAppAction.java:139)
         at java.lang.Thread.run(Unknown Source)
    I'm sure it has something to do with the PropertyLayout (Layout Manager) that I'm using but I don't know what. It works fine on one system but does not work or another.
    Thanks,

    dumas9 wrote:
         at java.awt.Window.pack(Unknown Source)
         at com.honda.ergo.pergo.ProcErgoJDialog.createProcErgoDialog(ProcErgoJDialog.java:789)
         at com.honda.ergo.pergo.ProcErgoJDialog.<init>(ProcErgoJDialog.java:328)
         at com.honda.cme.actions.ErgoAssessmentAppAction.run(ErgoAssessmentAppAction.java:139)
         at java.lang.Thread.run(Unknown Source)It looks like you're not running the Swing GUI on the EDT and since your problem is intermittent it's a likely cause of the problem. Search on "java swing concurrency tutorial" for more information.

  • Unknown source in stack trace

    I've deployed my app onto iWS 6.0, when an Exception is thrown, the stack trace is displayed but it doesnt supply the line numbers where the exception occurred. Instead it says Unknown Source. how can I fix this, or get round this problem?

    Check if your IDE is adding -g:none to the javac command line. If so, tell it to stop.

  • Exception with (Unknown Source), possible to specify source file?

    Hi, I'm getting exceptions of the kind
    java.lang.NullPointerException
            at blockworld.EnvView.paintComponent(Unknown Source)The class EnvView is loaded from a .jar at runtime (it's a plugin-like construction). Is it possible to tell the VM where my source files are so that it shows at what file/line nr this exception occurred? Or do I need to compile the .jar in a special way to include such information?
    Thanks!

    I have the same question. However, I think the problem is not related to the IDE. I am having the same output with a webapp.
    Tomcat console does not show me the source line number of the exception. Is the re any way to link the WAR file to the actual source code?
    2006-06-19 17:40:11,640 [http8080-Processor25] ERROR mx.org.ifai.persona.proxy.BusinessProxy - updateTransmisionVigencia: Exception!!
    java.lang.NullPointerException
         at mx.org.ifai.persona.helper.transmisiones.HelperTransmision.sendEmailToDestinatario(Unknown Source)
         at mx.org.ifai.persona.proxy.BusinessProxy.updateTransmisionVigencia(Unknown Source)
         at mx.org.ifai.persona.action.transmisiones.DispatchTransmisionMgr.terminarPorSistema(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    Any help will be appreciated.

  • ReportPageViewer "Unknown Source" error

    I have a problem with JRC in WebSphere Portal 6.1.
    It does not work and returns the error below.
    Crystal Reports 11.8
    Java 5.0
    Java Server Faces 1.1
    regards
    E.
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R java.lang.NullPointerException
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at com.crystaldecisions.report.web.jsf.e.<init>(Unknown Source)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at com.crystaldecisions.report.web.jsf.UIReportPageViewer.if(Unknown Source)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at com.crystaldecisions.report.web.jsf.ViewerHtmlRenderer.encodeEnd(Unknown Source)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at com.ibm.faces.renderkit.DefaultAjaxRenderer.encodeEnd(DefaultAjaxRenderer.java:83)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:754)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:630)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:553)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at com.ibm._jsp._test4View._jspx_meth_bocrv_reportPageViewer_0(_test4View.java:212)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at com.ibm._jsp._test4View._jspx_meth_h_form_0(_test4View.java:233)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at com.ibm._jsp._test4View._jspx_meth_hx_scriptCollector_0(_test4View.java:256)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at com.ibm._jsp._test4View._jspx_meth_f_view_0(_test4View.java:283)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at com.ibm._jsp._test4View._jspService(_test4View.java:152)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1096)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1037)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:118)

    I really need this answer and I don't have another place to ask. I explain much more what I did herebelow.
    I created a portlet project and created a faces portlet. I created "report" folder under WEB-INF and put a report in it. The report can be previewed successfully. Then I  added Report Page Viewer to portlet. It asked file path of the report. I entered /test8/WebContent/WEB-INF/report/IPRPSD001.rpt. Then jsf page looks like below.
    I see that "reportWrapper" managed bean was created in faces_config.xml and points the report I selected.
    When I run this project following errors come:
    [5/28/10 9:53:42:664 EEST] 0000009f SystemErr     R java.lang.NullPointerException
    [5/28/10 9:53:42:664 EEST] 0000009f SystemErr     R      at com.crystaldecisions.report.web.jsf.e.<init>(Unknown Source)
    What's wrong with this code?
    Regards
    E.
    <
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%-- jsf:pagecode language="java" location="/src/pagecode/Test8View.java" %><% /jsf:pagecode --%><%@taglib
         uri="http://java.sun.com/jsf/core" prefix="f"%><%@taglib
         uri="http://java.sun.com/portlet_2_0" prefix="portlet"%><%@taglib
         uri="http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portlet-client-model"
         prefix="portlet-client-model"%><%@taglib
         uri="http://www.businessobjects.com/jsf/crystalreportsviewers"
         prefix="bocrv"%><%@taglib uri="http://www.ibm.com/jsf/html_extended"
         prefix="hx"%><%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%><%@page
         language="java" contentType="text/html" pageEncoding="ISO-8859-1"
         session="false"%><portlet-client-model:init>
         <portlet-client-model:require module="ibm.portal.xml.*" />
         <portlet-client-model:require module="ibm.portal.portlet.*" />
    </portlet-client-model:init>
    <portlet:defineObjects />
    <link rel="stylesheet" type="text/css" title="Style"
         href='<%= renderResponse.encodeURL(renderRequest.getContextPath() + "/theme/stylesheet.css") %>'>
    <f:view><hx:scriptCollector id="scriptCollector1">
              <h:form styleClass="form" id="form1">
                   <p>Place content here.<bocrv:reportPageViewer
                        viewerName="CrystalViewer"
                        reportSource="#{reportWrapper.reportSource}"></bocrv:reportPageViewer></p>
              </h:form>
         </hx:scriptCollector>
    </f:view>
    >

  • URGENT URGENT: MySQL unknown source error

    Hi, need ur help again.
    I have a web application that uses mysql 4.1.1 as database and tomcat 4.1.29. This application connects to 5 databases.
    First database is main database for application.
    Second database is used to retrieve records for report generation only.
    Third and forth database do the same as second database.
    Fifth database uses for authentication, which is in different machine.
    NOTE that 1st, 2nd, 3rd and 4th database are on same machine.
    All the database connection work fine (can make connection and retrieve records) in windows platform (where the tomcat and database server are installed in window).
    However, when i test the application in linux platform (where the tomcat and database server are installed in linux), the connection to 2nd,3rd and 4th database fail. The log files shows that there are error known as 'Unknown source'.
    What can i do?

    Ok, i found the problem.
    There is a case-sensitve issue: the table name.
    thanks.

  • Why am I getting (Unknown Source) instead of a line number?

    In the past couple of weeks, using Tomcat with a Servlet/java bean app, I've started getting exceptions listing such as this:
    Exception in: R( /webman + /servlet/CreateJobServlet + null) - java.lang.NullPointerException
    at CreateJobServlet.service(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
    at org.apache.tomcat.core.Handler.service(Handler.java:286)
    The thing that bothers me is the "(Unknown Source)" bit. I no longer get the line numbers where the error occured on any of my source files, whereas I'm sure I DID get line numbers a few weeks ago. I thought it might have to do with my changing to JDK1.4, but after changing back to 1.3, the problem persists. Why are the line numbers no longer available, and what can I do to fix it? I've always accepted the frustration of getting NullPointerExceptions in JSP pages, but I don't want to be forced to put lots of System.outs in to help me track down the problems in compiled files!!

    It could be one of the following:
    - you have not specified -g on compile
    (means debug info, check IDE or ANT task if you dont
    use command line)
    - you have specified -O on compile
    (means optimize, which could hinder debug infos)
    bottom line:
    you should have debuginfos on and optimze off during
    compile. Most IDEs have debug info default-on during
    compile, when using ANT most people forget to define
    the debug=on
    <javac srcdir="${src}"
    destdir="${build}"
    classpath="xyz.jar"
    debug="on"
    />
    Hope this helps

  • Pls help. unknown source position error. returnvalue == -12

    Hi,
     i have encouter a problem during debugging external Dll. some of times i receive a error. unknown source position. library function error( return value == -12) out of memory.
    however,  after you pressing continue in popup windowns . program can continue without any error .   so do someone recognize this error. ?
    B.R
    gerry
    Attachments:
    outofmemory.jpg ‏119 KB

    Gerry,
    Its difficult to say much without more information,  but when I have encountered this problem while debugging a dll, the program flow halts at the function returning the error.  Default behavior in CVI 2010 environment I believe is to break on library errors.  This can be verified/set in the Run->Break on->Library errors menu setting.  Also important, both the calling application AND the .dll must have been built in debug mode.  If that is true, and the "break on Library errors" mode is checked, when the program is executed, program flow will halt at the first occurrence of a library error, with a description in the Run-Time Errors box.  If the error is thrown within the .dll, then you will see execution stop there. 
    Once this happens, you can right click on the offending function to open the function panel, and use the built in help to determine what -12 means.
    If you need further help, please provide more information about the problem
    Regard,
    Ryk

  • Compiling with ant--getting 'Unknown Source' in my exceptions

    I am compiling using this ant stanza:
         <property name="src" value="src"/>
         <property name="resources" value="src/resources"/>
         <property name="target" value="target"/>
        <target name="compile">
               <javac sourcepath="" srcdir="${src}"
                      destdir="${target}"  compiler="javac1.5" debuglevel="lines,source">
                    <include name="**/*.java"/>
               </javac>   
             <copy todir="${target}/resources">
                 <fileset dir="${resources}"/>
               </copy>
        </target> Note the debuglevel="lines,source" specification. But I'm still getting 'Unknown Source' in exceptions in this code. Yes, I've done a clean compile. Yes, I checked, and it's recreating the files and the jars. I'm reasonably sure there aren't any other build.xml files I could be running.
    I don't see why this wouldn't work.

    I have the same problem. Even If I have something like this.
    <javac debug="on" debuglevel="lines,vars,source" ... />

  • Com.sun.security.auth.login.ConfigFile.init(Unknown Source)

    Hello,
    Currently am working with Java SDK BI 4.1 to create stand alone application.
    I have Authentication problem though secWnAD for the below code.
    ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();
    enterpriseSession = sessionMgr.logon("xxxxx","xxxxx", "xxxxxxx", "secWinAD");
    Error:
    Caused by: java.io.IOException: Unable to locate a login configuration
    at com.sun.security.auth.login.ConfigFile.init(Unknown Source)
    when I tried to implement the same through VBA I am not getting any error for authentication.
    Kindly help me.
    Regards
    Arun

    Now I have created the two files and
    added the below content
    krb5.ini
    [libdefaults]
        default_realm = xx.COM
        dns_lookup_kdc = true
        dns_lookup_realm = true
    [realms]
    XX.com = {
        default_domain = xxxx.xx.COM
        kdc = xx.COM
    bscLogin.conf
    com.businessobjects.security.jgss.initiate {
      com.sun.security.auth.module.Krb5LoginModule required;
    Now am getting
    KrbException: Cannot get kdc for realm XX.COM
    at sun.security.krb5.KrbKdcReq.send(Unknown Source)
    at sun.security.krb5.Credentials.sendASRequest(Unknown Source)
    at sun.security.krb5.Credentials.acquireTGT(Unknown Source)
    Regards
    Arun

  • How Solve this iaik.pkcs.pkcs1.b.b(Unknown Source) Error.

    Hi Experts
    I am trying to decrypt the user login credentials while logging to SAP portal.  Bellow code is used.
      PrivateKey privKey = bean.getRandomKey();
      Cipher cipher = Cipher.getInstance("RSA");
      cipher.init(Cipher.DECRYPT_MODE,privKey);
      cipherData = cipher.doFinal(new BASE64Decoder().decodeBuffer(enPwd));
    But I am getting the error specified below, May I kindly request you please give me some approach to resolve this problem if you have come across the same issue earlier.
    iaik.pkcs.pkcs1.b.b(Unknown Source)
    iaik.pkcs.pkcs1.RSACipher.a(Unknown Source)
    iaik.pkcs.pkcs1.RSACipher.engineDoFinal(UnknownSource)
    javax.crypto.Cipher.doFinal(DashoA12275)
    We use SAP Portal version 7.01 SP12 and JDK 1.4.2_19.
    Configtool to set the path  of the cookie and domain of the cookie are Changed.
    "cluster-data" -> "Global Server Configuration" -> "services" -> "servlet_jsp"
    Please find the attached image.
    But Default setting are there that time it's working,But some security region that settings customized.the following way
    JSESSIONID.CookieDomain = SERVER (Default value)
    SESSIONID.CookiePath = APPLICATION(Custom values)
    SAPLB.CookiePath = APPLICATION(Custom values)
    SAPLB.CookieDomain = SERVER(Custom values)
    This below settings is there that time working fine.
    SESSIONID.CookiePath = / (Default values)
    SAPLB.CookiePath = / (Default values)
    SAPLB.CookieDomain = NONE(Default values)
    Please give your suggestion and Help...Solution is Required.
    Thank you && Regards,
    Durga Rao

    Dear Experts This is My Enter Error
    iaik.pkcs.pkcs1.b.b(Unknown Source)iaik.pkcs.pkcs1.RSACipher.a(Unknown Source)iaik.pkcs.pkcs1.RSACipher.engineDoFinal(Unknown Source)javax.crypto.Cipher.doFinal(DashoA12275)sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)java.lang.reflect.Method.invoke(Method.java:331)com.sapportals.htmlb.page.DynPage.doProcessCurrentEvent(DynPage.java:173)com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:119)com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)com.sapportals.portal.ume.component.logon.SAPMLogonCertComponent.doContent(SAPMLogonCertComponent.java:33)com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:235)com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:557)java.security.AccessController.doPrivileged(Native Method)com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:430)javax.servlet.http.HttpServlet.service(HttpServlet.java:853)com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1060)com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)java.security.AccessController.doPrivileged(Native Method)com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)

Maybe you are looking for