NameNotFoundException when looking up DataSource in new Thread

I am trying to run a db procedure in a new Thread within a J2EE app. The actual code to run the procedure is in a class that is called from a JSP page, a controller if you will (not a servlet). When I start the new Thread and try to get a connection from my DataSource, I get a NameNotFoundException. We are using iPlanet and Oracle. Is it a bad idea to start a new Thread from within iPlanet? Is there another way to run the db procedure and not make the user wait for it to finish?
Any help/suggestions would be greatly appreciated.

Okay, here is my Runnable class.
<code>
public class ExtractRunner implements Runnable, Serializable
Extract m_extract;
String m_propfile;
String m_modName;
LogManager m_log;
public void run()
DBConnectionManager conMan = null;
try
conMan = new DBConnectionManager(m_log.getElectronicServicesLog(),
m_propfile, m_modName, "");
int result = m_extract.doExtract(conMan, m_log);
catch (Exception e)
e.printStackTrace();
finally
m_extract = null;
if (conMan != null)
conMan.release();
conMan = null;
m_log = null;
ExtractRunner(Extract extract, String propfile, String modName, LogManager log)
m_extract = extract;
m_propfile = propfile;
m_modName = modName;
m_log = log;
</code>
Here is the code that starts the thread. It is in another class that is called from the JSP.
<code>
public int doExtract(Extract extract)
ExtractRunner er = new ExtractRunner(extract, PROP_FILE, MOD_CODE, m_log);
Thread t = new Thread(er);
t.setName("ExtractRunner");
t.start();
return 0;
</code>
And here is the code that calls the db procedure. It is in the Extract class.
<code>
public int doExtract(DBConnectionManager dbConnMgr, LogManager log)
DBProcedureStatement dbStmnt = null;
DBQuery dbQuery = null;
Vector rs = null;
int sqlResultCode = 0;
dbStmnt = new DBProcedureStatement(this.getExtractProcedure());
dbStmnt.addParameter(this.getParameters());
try
dbQuery = new DBQuery(dbConnMgr);
long start = System.currentTimeMillis();
log.logDebug("ExtractRunner::run()", "debug",
"Starting extract at " + start);
rs = dbQuery.doProcedure(dbStmnt);
long elapsed = System.currentTimeMillis() - start;
log.logDebug("Extract::doExtract()", "debug",
"Done with extract." +
" Elapsed time(ms): " + elapsed);
if (rs != null && !rs.isEmpty())
sqlResultCode = ((BigDecimal)rs.elementAt(0)).intValue();
log.logDebug("Extract::doExtract()", "debug",
"Result = " + sqlResultCode);
//System.out.println("REsult code: " + sqlResultCode);
else
sqlResultCode = GEN_ERROR; //Procedure error
sqlResultCode = 0; // The extract is no longer returning a result code
// so if there's no Exception return SUCCESS
catch (Exception e)
log.logError("Extract::doExtract", "FDE_LOGGING",
"Error doing extract. Exception: " + e);
e.printStackTrace();
sqlResultCode = GEN_ERROR;
finally
DBUtil.releaseResults(rs);
//sql = null;
rs = null;
dbStmnt.finalize();
dbStmnt = null;
dbQuery = null;
log.logDebug("Extract::doExtract", "FDE_LOGGING",
"END: Results: sqlResultCode=" + sqlResultCode);
return sqlResultCode;
</code>

Similar Messages

  • NameNotFoundException when looking up datasource jndi from standalone clien

    Hi,
    I'm trying to lookup datasource jndi from standalone client, but always get exceptions.
    I configured an oralce datasource with jndi name "oracleDataSource". When looking it up in servlet, I can get connection.
    In order to test it from standalone client, I created following code:
    public class DataSourceTest
    * Attempt to authenticate the user.
    public static void main(String[] args)
    String datasource = null;
    if (args.length == 1 ) {
    datasource = args[0];
    System.out.println("datasource = "+datasource);
    if(datasource == null)
    datasource = "oracleDataSource";
    try{
    Connection conn = null;
    Properties env = new Properties();
    env.put("java.naming.factory.initial","com.sun.jndi.cosnaming.CNCtxFactory");
    env.put("java.naming.provider.url", "iiop://localhost:3700");
    Context initial = new InitialContext(env);
    if(datasource != null){
    DataSource ds = (DataSource)initial.lookup(datasource);
    conn = ds.getConnection();
    if(conn != null){
    System.out.println("datasource is gotten.");
    conn.close();
    else
    System.out.println("datasource is error.");
    System.exit(0);
    } catch (Exception ex) {
    System.err.println("Caught an unexpected exception!");
    ex.printStackTrace();
    When running, I get following exception:
    [java] datasource = oracleDataSource
    [java] Caught an unexpected exception!
    [java] javax.naming.NameNotFoundException. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound
    [java] at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:34)
    [java] at org.omg.CosNaming._NamingContextExtStub.resolve(_NamingContextExtStub.java:402)
    [java] at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:368)
    [java] at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:417)
    [java] at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:395)
    [java] at javax.naming.InitialContext.lookup(InitialContext.java:350)
    [java] at com.tbcn.ceap.test.cilent.DataSourceTest.main(DataSourceTest.java:42)
    I also tried many other methods but always got exceptions. What's wrong with it? How can I lookup the datasource jndi from standalone client?
    Thanks in advance!

    Thank Tuan!
    I tried. When running, the server will read security.properties and ejb.properties. But I didn't use ejb and I didn't know how to configure ejb.properties, so I let ejb.properties empty. The security.properties is as following:
    client.sendpassword=true
    server.trustedhosts=*
    interop.ssl.required=false
    interop.authRequired.enabled=false
    interop.nameservice.ssl.required=false
    The result is:
    [java] javax.naming.CommunicationException: Can't find SerialContextProvider
    [java] at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:63)
    [java] at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120)
    [java] at javax.naming.InitialContext.lookup(InitialContext.java:347)
    [java] at com.tbcn.ceap.test.cilent.DataSourceTest.main(DataSourceTest.java:42)
    Also, I tried it with ACC. In sun sample ConverterClient.java under rmi-iiop/simple, I added following code under with ACC and without ACC. With ACC, I can get connection. But without ACC, I can't get it.
    try{
              DataSource ds = (DataSource)initial.lookup("oracleDataSource");
              Connection conn = ds.getConnection();
              if(conn != null){
              System.out.println("datasource oracleDataSource gotten.");
              conn.close();
              else
              System.out.println("oracleDataSource is error.");
    Does it means that we must lookup datasource jndi with ACC?

  • NameNotFoundException when looking up the Recource Adapter

              Hi,
              I am facing a problem when looking-up of the Resource Adapter from the Ejb.
              I am using a session bean to lookup the Resource adapter. I have no problem deploying
              the resource adapter and the ejb. But I am getting an exception when I run the
              client.
              The <resource-ref> tag in ejb-jar.xml is as follows.
              <enterprise-beans>
              <session>
              <ejb-name>connect</ejb-name>
              <home>connect.InsertHome</home>
              <remote>connect.Insert</remote>
              <ejb-class>connect.InsertBean</ejb-class>
              <session-type>Stateless</session-type>
              <transaction-type>Container</transaction-type>
              <resource-ref>
              <res-ref-name>eis/CciBlackBoxNoTx</res-ref-name>
              <res-type>com.sun.connector.cciblackbox.CciConnectionFactory</res-type>
              <res-auth>Container</res-auth>
              </resource-ref>
              </session>
              </enterprise-beans>
              I changed the res-ref-type from javax.sql.Datasource to the connection factory
              as I am using the CCI to connect to the database.
              My weblogic-ejb-jar file contains the following description
              <reference-descriptor>
              <resource-description>
              <res-ref-name>eis/CciBlackBoxNoTx</res-ref-name>
              <jndi-name>eis/CciBlackBoxNoTxConnectorJNDINAME</jndi-name>
              </resource-description>
              </reference-descriptor>
              <jndi-name>Insert</jndi-name>
              When I run my client I am getting the follwing Exception.
              javax.naming.NameNotFoundException: Unable to resolve 'app/ejb/connect.jar#conn
              ect/comp/env/user' Resolved: 'app/ejb/connect.jar#connect/comp/env' Unresolved:
              'user' ; remaining name 'user'
              at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(Basi
              cNamingNode.java:858)
              at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.ja
              va:223)
              at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:1
              87)
              at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:1
              95)
              at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:1
              95)
              at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:337)
              at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:332)
              at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyC
              ontextWrapper.java:36)
              at weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.
              java:124)
              at javax.naming.InitialContext.lookup(InitialContext.java:345)
              at connect.InsertBean.setSessionContext(InsertBean.java:64)
              at connect.InsertBean_fqerje_Impl.setSessionContext(InsertBean_fqerje_I
              mpl.java:93)
              at weblogic.ejb20.manager.StatelessManager.createBean(StatelessManager.
              java:273)
              at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSession
              Pool.java:148)
              at weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPoo
              l.java:101)
              at weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.j
              ava:148)
              at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:1
              27)
              at weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObj
              ect.java:61)
              at connect.InsertBean_fqerje_EOImpl.insertName(InsertBean_fqerje_EOImpl
              .java:28)
              at connect.InsertBean_fqerje_EOImpl_WLSkel.invoke(Unknown Source)
              at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
              at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServer
              Ref.java:114)
              at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
              at weblogic.security.service.SecurityServiceManager.runAs(SecurityServi
              ceManager.java:785)
              at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.ja
              va:308)
              at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteReques
              t.java:30)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
              where connect.jar is the name of my ejb.
              This is the session bean code I am using to looup the resource adpater.
              user = (String) initCtx.lookup("java:comp/env/user");
              password = (String) initCtx.lookup("java:comp/env/password");
              cxf =(ConnectionFactory)initCtx.lookup("java:comp/env/eis/CciBlackBoxNoTx");
              I am using the weblogic 7.0 as the application server and Sun's CciblackboxNoTx
              as the resource adpter.The weblogic-ra.xml file for the resource adpter contains
              the following connection factory and jndi name.
              <connection-factory-name>LogicalNameOfCciBlackBoxNoTx</connection-factory-name>
              <jndi-name>eis/CciBlackBoxNoTxConnectorJNDINAME</jndi-name>
              Can any one please let me know where I am going wrong. Any solution will be of
              great help.
              Thanks,
              Ramya.
              

    Hi Ramya,
              Where you have defined user and password, is you have included those in the
              bean descriptor? Or rar descriptrs?. Server unable to findout the user and
              password.
              The following tags could not able to undestand what for?
              > </reference-descriptor>
              > <jndi-name>Insert</jndi-name>
              >
              Thanks
              Kumar
              "Ramya" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Hi,
              > I am facing a problem when looking-up of the Resource Adapter from the
              Ejb.
              > I am using a session bean to lookup the Resource adapter. I have no
              problem deploying
              > the resource adapter and the ejb. But I am getting an exception when I run
              the
              > client.
              >
              > The <resource-ref> tag in ejb-jar.xml is as follows.
              >
              > <enterprise-beans>
              > <session>
              > <ejb-name>connect</ejb-name>
              > <home>connect.InsertHome</home>
              > <remote>connect.Insert</remote>
              > <ejb-class>connect.InsertBean</ejb-class>
              > <session-type>Stateless</session-type>
              > <transaction-type>Container</transaction-type>
              > <resource-ref>
              > <res-ref-name>eis/CciBlackBoxNoTx</res-ref-name>
              >
              <res-type>com.sun.connector.cciblackbox.CciConnectionFactory</res-type>
              > <res-auth>Container</res-auth>
              > </resource-ref>
              > </session>
              > </enterprise-beans>
              >
              > I changed the res-ref-type from javax.sql.Datasource to the connection
              factory
              > as I am using the CCI to connect to the database.
              >
              > My weblogic-ejb-jar file contains the following description
              >
              > <reference-descriptor>
              >
              > <resource-description>
              > <res-ref-name>eis/CciBlackBoxNoTx</res-ref-name>
              > <jndi-name>eis/CciBlackBoxNoTxConnectorJNDINAME</jndi-name>
              > </resource-description>
              >
              > </reference-descriptor>
              > <jndi-name>Insert</jndi-name>
              >
              > When I run my client I am getting the follwing Exception.
              >
              >
              > javax.naming.NameNotFoundException: Unable to resolve
              'app/ejb/connect.jar#conn
              > ect/comp/env/user' Resolved: 'app/ejb/connect.jar#connect/comp/env'
              Unresolved:
              > 'user' ; remaining name 'user'
              > at
              weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(Basi
              > cNamingNode.java:858)
              > at
              weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.ja
              > va:223)
              > at
              weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:1
              > 87)
              > at
              weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:1
              > 95)
              > at
              weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:1
              > 95)
              > at
              weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:337)
              > at
              weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:332)
              > at
              weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyC
              > ontextWrapper.java:36)
              > at
              weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.
              > java:124)
              > at javax.naming.InitialContext.lookup(InitialContext.java:345)
              > at connect.InsertBean.setSessionContext(InsertBean.java:64)
              > at
              connect.InsertBean_fqerje_Impl.setSessionContext(InsertBean_fqerje_I
              > mpl.java:93)
              > at
              weblogic.ejb20.manager.StatelessManager.createBean(StatelessManager.
              > java:273)
              > at
              weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSession
              > Pool.java:148)
              > at
              weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPoo
              > l.java:101)
              > at
              weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.j
              > ava:148)
              > at
              weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:1
              > 27)
              > at
              weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObj
              > ect.java:61)
              > at
              connect.InsertBean_fqerje_EOImpl.insertName(InsertBean_fqerje_EOImpl
              > java:28)
              > at connect.InsertBean_fqerje_EOImpl_WLSkel.invoke(Unknown Source)
              > at
              weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
              >
              > at
              weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServer
              > Ref.java:114)
              > at
              weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
              > at
              weblogic.security.service.SecurityServiceManager.runAs(SecurityServi
              > ceManager.java:785)
              > at
              weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.ja
              > va:308)
              > at
              weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteReques
              > t.java:30)
              > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
              >
              > where connect.jar is the name of my ejb.
              >
              > This is the session bean code I am using to looup the resource adpater.
              >
              > user = (String) initCtx.lookup("java:comp/env/user");
              > password = (String) initCtx.lookup("java:comp/env/password");
              > cxf
              =(ConnectionFactory)initCtx.lookup("java:comp/env/eis/CciBlackBoxNoTx");
              >
              >
              >
              > I am using the weblogic 7.0 as the application server and Sun's
              CciblackboxNoTx
              > as the resource adpter.The weblogic-ra.xml file for the resource adpter
              contains
              > the following connection factory and jndi name.
              >
              >
              <connection-factory-name>LogicalNameOfCciBlackBoxNoTx</connection-factory-na
              me>
              > <jndi-name>eis/CciBlackBoxNoTxConnectorJNDINAME</jndi-name>
              >
              >
              > Can any one please let me know where I am going wrong. Any solution will
              be of
              > great help.
              >
              > Thanks,
              > Ramya.
              >
              

  • NameNotFoundException when looking up JNDI

    Hi,
    I'm getting the same naming exception you can see @ http://www.coderanch.com/t/51509/Struts/Calling-EJB-action-class when looking up an ejb object.
    How should I lookup the object?
    Thank you in advance,
        Michael Jones

    Hello
    Please try the following.
    Do annotate the EJB with the corresponding name in order to identify it later on:
    @Stateful(name = "MyLostEJB")
    public MyLostEJB implements LostEJBRemoteHome, LostEJBLocalHome
          public String sayHello(){ return "Hello"; }
    And then:
    LostEJBRemoteHome myEjb= null;
    myEjb= (LostEJBRemoteHome ) new InitialContext().lookup("MyLostEJB/remote");
        myEjb.sayHello();
    I hope it helps
    Alejandro

  • Teststand New Thread VS LabVIEW "Call & Forget" Asynchronous call

    Hi everyone,
    Here is an example taken from the ni.com website showing how to use LabVIEW to post a TestStand Notifier.  I have modified the example to fit the situation I needed to use it for.  I have an example which works fine (When I use a TestStand new thread to launch the Notifier VI) and an example which does not work (When I use a LabVIEW "Call & Forget" Asynchronous call to launch the Notifier VI).
    I would like to understand why it doesn't work in the second situation. The reason why I would prefer the 2nd situation which currently doesn't work is that I try to eliminate all multi-threads from an obsolete sequence written by someone else a few years ago so that I can troublesoot it and update the code to make it work with today's new reality.
    Also, for my personal knowledge.  I don't understand why the second strategy doesn't work.  The Testsand notifier reference is the same and hadled the same way.  I have included my example files with the 2 situations in seperate sequences files.
    Thanks in advance to the person who will be able to enlight me.
    Nien 
    Solved!
    Go to Solution.
    Attachments:
    New Thread Or Dynamic Call.zip ‏41 KB

    Hello Nien,
    This isn't a TestStand issue.  I suggest you take this to the LabVIEW forum.  Looking over your code your Notifer and Forget.vi is dependent on the notifier.vi.  So it's not necessarily anything wrong with the sequence steps but actually within your LabVIEW code itself.  One suggestion is to insert a simple error handler.vi in your Call Notifier and Forget.vi.  You have error wires connected to the functions itself, which is good practice but you don't have anything to inform you if an error occurs or not.  I would suggest you to run try to debug your LabVIEW code, such as using highlight execution, while you're running your code so you know where exactly the error is happening.  
    Thanks,
    Jonathan R.
    Applications Engineer
    National Instruments

  • Cannot post new thread in Calendar forum

    I have a question about Oracle Calendar, and I'm trying to post my question in the Calendar forum. But when I click the "Post New Thread" link, I get an error page that says "Error: you do not have permission to view the requested forum or category."
    What am I doing wrong?
    I am signed in as a registered user, not a guest. I originally created this account a few years ago but have not used it in a long time until today.

    How did you get to the forum? Are you trying to post to an archived forum? You may need to use a different forum, perhaps someone can tell which forum to ask such a question, or you can get a clue by searching here (as opposed to google searching). This is a huge site, sometimes it takes a bit of work to find the right place. For me, the google search generally works better, but that may not apply to what you are searching for.

  • I am trying to have some LabVIEW code called in a New thread exit when the testStand sequence terminates

    I have a Sequence that launches a sequence in a New Thread that happens to launch some LabVIEW code.  The problem is when the LabVIEW code finishes, it will not close even when the TestStand sequence terminates. Is there a way to tell this LabVIEW code to Exit, I've tried the Quit LabVIEW function, but that causes a C++ RunTime Error.  The LabVIEW code does end though, and it is set in the VI properties to:
    Checked - Show Front Panel When Called
    Checked - Close Afterwardds if originally closed
    The sequence call that the LabVIEW code is launched from has the following options:
    - New Thread
    Unchecked - Automatically wait for the thread to complete at the end of the current sequence
    Unchecked - Initially Suspended
    Unchecked - Use single threaded apartment
    Any clues on this would be appreciated.

    Hi ADL,
    Everything should close correctly if you check the checkbox "Automatically wait for the thread to complete at the end of the current sequence" in the thread settings.
    With it unchecked, I am seeing the behavior you are. 
    Gavin Fox
    Systems Software
    National Instruments

  • When I try to open a Pages document from iCloud, created on my iPad, I get message stating I need a newer version of Pages.  When I go to app store all I get is "installed" when looking at pages app. my Macbook pro is up to date with all updates.

    When I try to open a Pages document from iCloud, created on my iPad, I get message stating I need a newer version of Pages.  When I go to app store all I get is "installed" when looking at pages app. my Macbook pro is up to date with all updates. Any ideas?

    You have 2 versions of Pages on your Mac.
    Pages 5 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    You are alternately opening the wrong versions.
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5/5.01 can not open Pages 5.1 files and you will get the warning that you need a newer version.
    Pages 5.1 sometimes can not open its own files and you will get the warning that you need a newer version.
    Pages 5 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Anything that is saved to iCloud is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Apple has not only managed to confuse all its users, but also itself.
    Note: Apple has removed over 100 features from Pages 5 and added many bugs:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Archive/trash Pages 5, after exporting all Pages 5 files to Pages '09 or Word .docx, and rate/review it in the App Store, then get back to work.
    Peter

  • Limited subject characters count when creating a new thread in Portal 7.3 forums

    Hello,
    i was wondering if and how you can change the max. characters for the subject when creating a new thread in Portal 7.3 forums.
    It seems like the character count is limited to 75 characters for subjects.
    I didn't find any suitable property, in the forums admin console, for that issue.
    Thanks

    Hi Andrzej,
    Have faced a similar issue in EP 7.01. It was due to the missing Super Admin access - Save was clocking & timing out.
    Upgraded the Admin permissions and this issue was resolved.
    Hope this helps.

  • TestStand 2010 Memory Leak when calling sequence in New Thread or New Execution

    Version:  TestStand 4.5.0.310
    OS:  Windows XP
    Steps to reproduce:
    1) Unzip 2 attached sequences into this folder:  C:\New Thread Memory Leak
    2) Open "New Thread Memory Leak - Client" SEQ file in TestStand 2010
    3) Open Task Manager, click Processes tab, sort A-Z (important), and highlight the "SeqEdit.exe" process.  Note the memory useage.
    4) Be ready to click Terminate All in TestStand after you see the memory start jumping.
    5) Run the "New Thread Memory Leak - Client" sequence.
    6) After seeing the memory consumption increase rapidly in Task Manager, press Terminate All in TestStand.
    7) Right click the "While Loop - No Wait (New Thread)" step and set Run Mode » Skip
    8) Right click the "While Loop - No Wait (New Execution)" step and set Run Mode » Normal
    9) Repeat steps 3 through 6
    I've removed all steps from the While Loop to isolate the problem.  I've also tried the other methods you'll see in the ZIP file but all cause the memory leak (with the exception of the Message Popup).
    I have not installed the f1 patch, but none of the bug fixes listed appear to address this issue.  NI Applications Engineering has been able to reproduce the issue (with Windows 7) and is working on it in parallel.  That said, are we missing something??
    Any ideas?
    Certified LabVIEW Architect
    Wait for Flag / Set Flag
    Separate Views from Implementation for Strict Type Defs
    Solved!
    Go to Solution.
    Attachments:
    New Thread Memory Leak.zip ‏14 KB

    Good point Doug.  In this case parallel sequences are being launched at the beginning of the sequential process model, but I'll keep that in mind for later.  Take away:  be intentional about when to wait at the end of the sequence for threads to complete.
    Certified LabVIEW Architect
    Wait for Flag / Set Flag
    Separate Views from Implementation for Strict Type Defs

  • GUI freezes when new Thread object start()ed. Neat, brief code included :)

    The title says it all really.. I have the code below in a method startScan() that is called when a button is pressed. The thread executes fine, but the GUI locks up while the thread is executing. I don't really understand why, since a new thread is implicitly separate from the event dispatch thread.
    Must I use a SwingWorker to get things working? Would someone be kind enough to explain why, if this is the case?
    private void startScan() throws InterruptedException {
              final Runnable breadthFirstComparer = new Runnable() {
                   /** Sleep interval used when scan paused */
                   private int interval = 1000;
                    * Kills the current thread
                   public void stop() {
                        scanProgressLabel.setText("Scanning complete");
                        scanComplete = true;
                    * Sleeps the currently running thread if user has paused the scan,
                    * otherwise initiates comparison of the trees' next depth node sets
                   public void run() {
                        while (!scanComplete) {
                             while (scanPaused) {
                                  try {
                                       Thread.sleep(interval);
                                  } catch (Throwable exc) {
                                       Gecko.logException("Scanner thread could not be paused", exc);
                             compareTrees();
                        // Stop thread execution once scan is complete, and disable
                        // scanner-related buttons
                        toggleScanButton.setEnabled(false);
                        stop();
              scanner = new Thread(breadthFirstComparer)
                   public void start() {
                        scanProgressLabel.setText("Scanning in progress...");
                        breadthFirstComparer.run();
              scanButton.setEnabled(false);
              scanner.start();
         }Many thanks.

    it's getting really irritating that pretty much every thread out of the last
    20 I've made, you've criticised me for not posting an SSCCE. How do you think I feel. I'm donating my time to help you solve a problem, but you are not willing to spend 5-10 minutes to post a SSCCE so that we can fully understand what you have done and what the problem is.
    You don't have to post a SSCCE if you don't want to. Thats fine, I just won't answer your questions.
    what's the point me spending 30 minutes or more my end creating an
    SSCE, and you spending 10 minutes or more compiling, running and analyzing it your end?It should not take 30 minutes. If it does it just goes to prove that you don't really understand what you are attempting to do. And if you don't know what you are doing how do you expect us to guess what you are doing? One of the benefits of a SSCCE it to help you learn to develop problem solving skills by learning to simplfy the problem.
    Also, what if we can't figure out the problem based on your verbal description of the problem? If you post code it gives us the option of compiling and testing the code if we so desire. Without the code we give up and move on to the next question.
    but since the simple information that you've provided, and the chunk of code that Michal so kindly donated, are likely more than enough of an explanationThis time we were able to guess what the problem was, but that is not true in all cases. You seem to think that we are all miracle workers, that you can place a couple of lines of code in front of us and we can automatically tell whats wrong. Well, thats not true (at least for me). Many times I use my problem solving skills to solve the problem.
    I really should learn to scroll down and read all the posting before replying. es5f2000 pretty much said it all for me.
    Message was edited by:
    camickr

  • I can't find the rich text button when I post a new thread in the sap forum

    I had a EP system witch sp15,and I deploy a sap new forums,but recently I found when I post a new thread,I can't find the" rich text" button and the "plain text"button and the "preview"button,the bold,italics,underline function is invalidate,and I find the IE page has notice "the erroe on page" when my error occured.
    eg:when I want to post a new thread,the post page of IE give me a notice "the error on page",I click the notice,find it said:"error:MultiSelector not defined" or "error:MCTabs not defined".
    Who can help me?
    Edited by: cui zhao on Apr 22, 2008 8:41 AM

    I know this is an old thread but wanted to post the resolution that I found when I had this problem.
    Basically the problem is because the Quicklink is not set properly.
    I had to make sure that the Page Quicklink property was set to 'forums'.
    I also had to make sure that the Email Settings in the Admin Console had the following property:
    'URL for your installation:' had to be set to http://myportalserver.50800/forums.
    Hope that helps someone who has the issue sometime.
    Regards,
    Robin.

  • Error when try to post new thread

    Dear SDN team
    Currently there are and error when posting NEW thread in the forum :
    "SAP Community Network Forums » Application Server » Web Dynpro ABAP"
    The error is a 501 / 505 saying :
    POST to /post!post.jspa not supported.
    Best regards
    Lars

    In my case, the VM Server was set to use DHCP. Once I reconfigured the interface to use a static address, I was able to successfully create the Server Pool.
    Documentation should be reflected to clarify this.

  • As Requested New Thread DSL low speeds and drop outs ref: Anthorny Verizon.

    Please see post by Jerrold concerning the form for information requested, I have never been able to fill this out. Note also I had to sign in three times just to access your private letter to me today.
    Here is a summary of problem:
    When my line was first installed line speed was always between 9 to 12 Mps, which is fine for a 15 Mps line, sometimes would even go higher, so line was ok.
    In October 2012 my line speed dropped to about 5 to 7 Mps, I contacted support and repairs were attemped, but did not correct the problem in fact problem became worst.  My line speed dropped to about 2 to 3 Mps.
    Now from October to end of November, all repairs did not correct problem.  I was told by chat tech support that the problem was being worked on and there was an open ticket.
    In December my line speed returned to normal speed was between 9 to about 13 Mps.  No one had contacted me about this so I again contacted chat tech support who said my line had been fixed and there were no open tickets so have a nice day.  I accepted this at face value and accepted that my line was now ok.
    In January 2013, My line speed dropped again to 2 to 3 Mps.  I contacted chat tech support who tested line and put in a repair request.  No one had responded back to me and a week later my line started to drop in and out losing the connection completely.  I again contacted tech support who told me they had no open tickets on my account, they tested line and while we were talking on voice connection my phone started to have heavy static, both my DSL and Phone dropped out at that point.  Tech support called me back and said he was putting a repair request and that my line had problems. That night Tuesday January 29 my Phone and DSL both died, no dial tone on phone and DSL showed only power light on.  Contacted tech support by a friends cell phone and informed them of this, was told ok it would be fixed by open ticket for next day.
    Repair was to be made on Wednesday January 30, no one showed up, called tech support and told repair would be made on Thursday.  Thursday late repair person showed up around 4:30 or 5:00pm, landlord gave access to building.  I did not know they were here at all, when he told me( my landlord) I tested my DSL and found it running at 1.7 Mps or below that.  When I attempted to call tech support found my phone was still dead, no dial tone at all.  Contacted chat tech support who told me ticket was still open and would be fixed by Friday, or Monday.
    On Monday, phone still dead, DSL running at 1.7 Mps contacted chat support who had me take a phone to the junction box outside of building, plugged in two phones to this no dial tone at junction box (both phones work ok checked using a neighbors phone jack)  should note that on the outside of building there are two junction boxes, but one has lock on it so could not use that one.  Anyway told that DSL could not be fixed until phone is repaired.  Tried contacting phone repair and all I get is auto wait then line drops using a neighbors phone and pay phone my is dead.
    Tuesday again contacted chat support now told to bad, until phone is fixed cannot help me ( was'nt that suppose to be done in first repair, fix phone and DSL given both were reported dead).
    So why am I upset well look at history I now sit with No Phone service, DSL running way below what I pay for and a tech support who has said to bad not our problem.  I also do not want to hear that my line does not and cannot support the speed I pay for ( it has shown to support that speed at beginning of install up to October and again in December).
    Well anyway your letter did not say where to start new thread should I do that here, or in open forum?
    Oh, auto phone repair has given me a date for phone service as this Friday, I hope that at least gets done I cannot contact them any other way it seems.
    You may also ref: my thread on ping rates over 600 on long distants calls for any other history, but as per your request here is new thread.  Please note as of today I have No Phone so can only be contacted by email or here.  Untill phone is repaired that's all there is.

    Please go to your profile page for the forum by clicking on your name, and look in the middle towards the bottom where you will find an area titled "My Private Support Cases".
    There you will find a link to the private board where you and the agent may exchange information. This should be checked on a frequent basis as the agent may be waiting for information from you before they can proceed with any actions. Please keep all correspondence regarding your issue in the private support portal.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer that solved your issue as the accepted solution.

  • App crash when using JAVA callbacks from native threads in solaris

    Hi all,
    Sorry for putting the thread here. I did use the native methods forum, I wasnt lucky. I Hope more people would look into this forum, which brings me here.
    I have a solaris application which crashes when I try to callback the JAVA methods and variables from the native code. The description of the problem is below
    Written a native library, the library is multithreaded (i.e) I create a thread using pthread_create() in the native code which performs the operation of calling a JAVA method from the native code. The routine of calling the JAVA method works perfectly elsewhere outside the new thread.
    There are two scenarios I've tested it in
    1. I created a thread (say X) from the main thread (say Y) and made the y to wait until the X is complete using the pthread_join(). The JAVA callbacks works fine when called from Y but the app crashes if done from X.
    2. Did not make the Y to wait until the X is complete, hoping that both will run paralelly and even the the App crashes.
    And to be precise the Y is the thread where the native method is called from JAVA.
    I have tested for any memory leaks or stack corruption by removing the JAVA callbacks and bulding a executable and using purify, the report doesnot hint any such occurances.
    The linker options used for building the shared library is as follows
    ${GPP} ${INC} -G ${LIB} -mt -g -lCstd -lCrun -lpthread ${OBJS} -o <lib-name>
    I wonder if we can create threads in the native code when using JAVA callbacks and even if we can whether it would be appropiate to use the callbacks with in the threads
    Looking forward for any help.
    Regards,
    Vamsi

    Guys... can't any one help me with this problem :(

Maybe you are looking for