NPE when calling getConnection() with JBoss 3.0.0RC1
I'm getting the following exception only when I'm using JBoss 3.0.0RC1.
No problem with earlier version of JBoss 3.0, so this maybe a JBoss
issue.
However, I can't debug this without knowing what URL Kodo is trying
to look up. My guess is getTransaction() is trying to look up the
transaction
manager and is passing a null URL string.
20:19:54,715 ERROR [STDERR] java.lang.NullPointerException
20:19:54,725 ERROR [STDERR] at
javax.naming.InitialContext.getURLScheme(Init
ialContext.java:227)
20:19:54,725 ERROR [STDERR] at
javax.naming.InitialContext.getURLOrDefaultIn
itCtx(InitialContext.java:276)
20:19:54,735 ERROR [STDERR] at
javax.naming.InitialContext.lookup(InitialCon
text.java:350)
20:19:54,745 ERROR [STDERR] at
com.solarmetric.kodo.ee.JNDIManagedRuntime.ge
tTransaction(JNDIManagedRuntime.java:36)
20:19:54,755 ERROR [STDERR] at
com.solarmetric.kodo.ee.EEFactoryHelper.getPe
rsistenceManager(EEFactoryHelper.java:102)
20:19:54,755 ERROR [STDERR] at
com.solarmetric.kodo.impl.jdbc.ee.EEPersisten
ceManagerFactory.newPersistenceManager(EEPersistenceManagerFactory.java:148)
20:19:54,765 ERROR [STDERR] at
com.solarmetric.kodo.impl.jdbc.ee.JDOConnecti
onFactory.getConnection(JDOConnectionFactory.java:89)
20:19:54,775 ERROR [STDERR] at
com.solarmetric.kodo.impl.jdbc.ee.JDOConnecti
onFactory.getConnection(JDOConnectionFactory.java:70)
Yan-
The JBoss people have seen it fit to change the mechanism for
configuring Resource Managers between 3.0.0 beta and 3.0.0 RC1, as per
http://www.jboss.org/online-manual/HTML/ch03.html:
Access to Resource Managers
THIS CHAPTER IS PRIMARILY RELEVANT TO JBOSS 3 (RABBITHOLE) VERSIONS
BEFORE RC1
THE MBEANS FOR CONFIGURING DATASOURCES/ADAPTERS IN RC1 ARE COMPLETELY
DIFFERENT FROM THOSE DESCRIBED HERE. FOR DESCRIPTIONS OF EACH ATTRIBUTE,
CONSULT THE GENERATED JMX-API DOCUMENTATION.
I am going to work on putting together an example working configuration,
but it is difficult without any documentation or useful examples. In the
meantime, you may want to manually bind a PersistenceManagerFactory into
JNDI and just use that.
Yan Or <[email protected]> wrote:
JCA. See my other postings "kodo.jar and systems.pref".
Interestingly, with the earlier version of JBoss 3.0.0, it works
even though I didn't package system.prefs with the .rar file, so
I'm guessing it uses a default value?
I also tried looking up "java:/TransactionManager" in the same
method where getConnection() was called and I was able to
find the object.
Patrick Linskey wrote:
Yan,
It's looking up the pref called 'tm-location' (which we set to
'java:/TransactionManager' in our default system.prefs).
Are you deploying via JCA or JNDI?
-Patrick
Yan Or <[email protected]> writes:
I'm getting the following exception only when I'm using JBoss 3.0.0RC1.
No problem with earlier version of JBoss 3.0, so this maybe a JBoss
issue.
However, I can't debug this without knowing what URL Kodo is trying
to look up. My guess is getTransaction() is trying to look up the
transaction
manager and is passing a null URL string.
20:19:54,715 ERROR [STDERR] java.lang.NullPointerException
20:19:54,725 ERROR [STDERR] at
javax.naming.InitialContext.getURLScheme(Init
ialContext.java:227)
20:19:54,725 ERROR [STDERR] at
javax.naming.InitialContext.getURLOrDefaultIn
itCtx(InitialContext.java:276)
20:19:54,735 ERROR [STDERR] at
javax.naming.InitialContext.lookup(InitialCon
text.java:350)
20:19:54,745 ERROR [STDERR] at
com.solarmetric.kodo.ee.JNDIManagedRuntime.ge
tTransaction(JNDIManagedRuntime.java:36)
20:19:54,755 ERROR [STDERR] at
com.solarmetric.kodo.ee.EEFactoryHelper.getPe
rsistenceManager(EEFactoryHelper.java:102)
20:19:54,755 ERROR [STDERR] at
com.solarmetric.kodo.impl.jdbc.ee.EEPersisten
ceManagerFactory.newPersistenceManager(EEPersistenceManagerFactory.java:148)
20:19:54,765 ERROR [STDERR] at
com.solarmetric.kodo.impl.jdbc.ee.JDOConnecti
onFactory.getConnection(JDOConnectionFactory.java:89)
20:19:54,775 ERROR [STDERR] at
com.solarmetric.kodo.impl.jdbc.ee.JDOConnecti
onFactory.getConnection(JDOConnectionFactory.java:70)
Patrick Linskey [email protected]
SolarMetric Inc. http://www.solarmetric.com
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com
Kodo Java Data Objects Full featured JDO: eliminate the SQL from your code
Similar Messages
-
Getting a NPE when calling the getContent of a multipart message
Hi,
I get a NPE when I try to get the body of a multipart MIME message. The BODYSTRUCTURE returns the number of bytes of a bodypart before any decoding is done, the getContent then expects server to return that many bytes when it does something like "aa fetch 1 BODY[0]<0.16384>", when the server does not return anything a NPE is thrown. The exception is as follows
java.lang.NullPointerException
at com.sun.mail.iap.Response.parse(Response.java:64)
at com.sun.mail.iap.Response.<init>(Response.java:32)
at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:24)
at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:99)
at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:112)
at com.sun.mail.iap.Protocol.command(Protocol.java:167)
at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:646)
at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:637)
at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:474)
at com.sun.mail.imap.IMAPInputStream.fill(IMAPInputStream.java:52)
at com.sun.mail.imap.IMAPInputStream.read(IMAPInputStream.java:80)
at java.io.FilterInputStream.read(FilterInputStream.java:66)
at java.io.PushbackInputStream.read(PushbackInputStream.java:120)
at com.sun.mail.util.QPDecoderStream.read(QPDecoderStream.java:33)
at com.sun.mail.util.QPDecoderStream.read(QPDecoderStream.java:86)
at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:404)
at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:442)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:179)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at com.sun.mail.handlers.text_plain.getContent(text_plain.java:63)
at javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:755)
at javax.activation.DataHandler.getContent(DataHandler.java:511)
at javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:231)
Did anybody see this exception ?
Thanks
NinaI get this error too when:
Part part = message;
while(i < path.length && part != null) {
MimeMultipart multipart = getMultipart(part);
if (multipart == null)
throw new IOException("not multipart.");
part = findPart(multipart, path);
i++;
if (part == null)
throw new IOException("not a part of message.");
InputStream in = part.getInputStream();
int b = 0;
while((b = in.read()) != -1)
out.write(b);
at part.getInputStream() i get:
java.lang.NullPointerException
at com.sun.mail.iap.Response.parse(Response.java:99)
at com.sun.mail.iap.Response.<init>(Response.java:68)
at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:31)
at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:105)
at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:153)
at com.sun.mail.iap.Protocol.command(Protocol.java:215)
at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:882)
at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:874)
at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:677)
at com.sun.mail.imap.IMAPInputStream.fill(IMAPInputStream.java:74)
at com.sun.mail.imap.IMAPInputStream.read(IMAPInputStream.java:131)
at com.sun.mail.util.BASE64DecoderStream.decode(BASE64DecoderStream.java:156)
at com.sun.mail.util.BASE64DecoderStream.read(BASE64DecoderStream.java:54)
at se.illuminet.httpd.mail.MailXMLService.serviceXml(MailXMLService.java:354)
Any resolution to this yet?
It worked up until I changed to an SSL connection to IMAP.
Could this affect at this level?
Help appriciated.
best
Jonas -
500 InternalServerError when calling app with same url than oracle app
Hello
i wonder if some one could help us.
we are running an application on oas developed with forms 10g on a specific IP say
ip 10.10.10:9999 and this application is calling other application (a jsp) on another server
and to call it i use:
Web.show_document (http://10.10.10:9080 ,'_blank');
but that other application is on the same ip than the oracle application
when this hapens the listener try to connect itself 5 time then it just
give the 500 InternalServerError .
any idea why this is happening
i will realy apreciated your help
many thanks in advance
Ana
ps:
i forgot to say that when i use the following command :
webutil_Host.host('cmd /C START iexplore "'||v_url||'"');
it works
i think that is because is a new sesion???
Edited by: ana.gutierrez on 19-feb-2009 4:27Hola Roberto
many thank for your answer.
the oracle aplication is developed in Forms [32 bits] Versión 10.1.2.3.0 (Producción)
the server is
10g Release 2 (10.1.2) Patch Set 3 (10.1.2.3.0) for Solaris Operating System
the jsp is in a was server it is version 6 the java aplication is developes using jdk 1.4 but is running on a jre 1.6.0_11
bouth applications have the same ip differt ports
when oracle app calls the java app use the
http://999.999.999.9/dir/dir.do?parameters.....
the port is not especified but is different
when the java application calls the oracle aplication the url is something like
http://999.999.999.9:8888/forms/frmservlet?config=oracle_aplication&otherparams=
if the urls are call directily from a browser they work fine.
has it got something to do with the configuration of the single sing on ??
any help or idea will be very apreciated
many many thanks
ANa -
WebDynpro ABAP : Error when calling ME23N with URL
Hi all,
I have some problem with my WDA. I have an ALV in web dynpro and it displays Document number for Purchase Order.
When a user clicks on it, we call SAP WEBGUI using ITS and I create dynamically URL to display the document.
But I can't set the PO number when I call the ME23N while i passed the PO number in parameter of my URL.
My URL has this content : http://xxxxxxx/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction=ME23N&MEPO_TOPLINE-EBELN=xxxxx
But the Po display isn't the same. I don't found any solutions for this problem
Anybody has an idea ?
Thanks in advance for your feedback.
Regards
Ludovic BentoHello,
I found the correct way to open ME23N in WebDynpro:
*Create URL
CONCATENATE 'http://' host ':' port
'/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction='
'ME23N' '&~OKCODE=MECHOB&%20MEPO_SELECT-EBELN=' lv_ebeln
'&%20MEPO_SELECT-BSTYP_F=X&%20~OKCODE=MEOK'
INTO url. -
MEM_BAD_POINTER when calling VI with LVRT adapter
Hi,
I'm using TestStand 2010 and LabVIEW 2010.
One test (sequence) calls VIs that control Agilent 16900A logic analyzer: run and stop (Stop VI is attached for example).
These VIs use ActiveX - LA COM Automation client software.
Everything worked properly, until I switched the LabVIEW adapter from "Development System" to "LabVIEW Run-Time Engine" (in order to make deployment).
When a step that call the logic control VI is executed, I have got the error ”SmartHeap Library - MEM_BAD_POINTER", then "SmartHeap Library - SmartHeap error handler recursively re-entered"- and TestStand is crushed.
Never saw the such problem before.
Any help is appreciated!
Attachments:
Agilent16900A_LogicStop.vi 11 KBHi Courtney,
This VI works fine in LabVIEW, I even built EXE based on this VI - it works too.
In the meantime I tried to connect with the logic via Visual C++ using the same LA COM Automation client software.
Wrote DLL with functions Run and Stop, created 2 steps in the TS sequence - the both call the DLL Stop function, loaded dynamically and unloaded when step is finished.
The first call is performed, the second call causes the "MEM_BAD_POINTER" error etc.
If the sequence has only one call to the DLL function (e.g. Stop) - I may run it several times successfully. -
Hi all,
I would like to work with a LabVIEW program that I did not programm by myself.
In this programm an external DLL needs to be called. in the Momente this dll ist called with the "Call Library Dunction Node" LabVIEW crashes with this Error Message:
DAbort 0x37C03D in MemoryManager.cpp
Attached is the entire Log.
The programm runs on the computer of the original programer.
I have never handeled with DLLs or something like that before, so I have absolutely no idea how to rsolve this problem.
Thanks for your help!
Attachments:
lvlog.txt 2 KBA DLL can be compiled by different compilers. By "generic" C DLL, i refer to ANSI C (so no C++, no Borland C or something else).
My question is raised as parameters, esp. arrays and strings, can lead to this behavior when used in the wrong way (including "Calling Convention").
Also, interfacing with the LV memory manager can lead to crashes like this, but this wouldn't be a "generic" DLL as it binds to LV (due to LV API calls).
Without a better knowledge on the DLL and its functions, there is not much we can help you with.
Where does the DLL come from?
Norbert
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it. -
Error when calling method with a return of double in j2me
hello all,
i have following problem with a j2me program:
if i call a method with a return of double, then i get following error
message:
ERROR: floating-point constants should not appear
Error preverifying class test.hallo
what i'm doing wrong
thanks in regard
----------------example----------------------------
double yourValue(int y, int m, int d)
double v = 0.10;
v = 3.39 y m *d
return v;
public void startApp()
int td;
int y =2;
int m =2;
int d =2;
td = yourValue(y,m,d);
return(td);It's true for MIDP 1.0.
But you can always use implementation of the float
point arithmetic which was written by independent
developers. For example see J2ME section of my
homepage http://henson.newmail.ru
anyway, double is reserved word in java, the way you wrote the source code in your example neither the preverifier nor the compiler will recognize that you intend to use your own types for double and float. maybe with Double or Float it would be different ...
further question: you declare a void function, in the body, however, you try to return some value. something wrong with this function??
regards
bernard -
Kodo on jboss-3.0.0RC1
Has anyone gotten KodoJDO to successfully deploy on jboss-3.0.0RC1? It
seems that it deploys ok, but does not register any kodo object under the
name "java:/kodo" or whatever jndi name you have specified in the
kodo-services.xml file. Below is my kodo-services.xml file. Does anyone
see any problems?
Thanks,
-Chris
<?xml version="1.0" encoding="UTF-8"?>
<server>
<!-- you should put any JDBC drivers you will be using
in the lib directory so Kodo can find them -->
<classpath codebase="lib" archives="*"/>
<mbean code="org.jboss.resource.ConnectionFactoryLoader"
name="jboss.jca:service=ConnectionFactoryLoader,name=Kodo">
<attribute name="JndiName">kodo</attribute>
<depends optional-attribute-name="ResourceAdapterName">
jboss.jca:service=RARDeployment,name=KodoJDO
</depends>
<depends optional-attribute-name="ConnectionManagerFactoryLoaderName">
jboss.jca:service=ConnectionManagerFactoryLoader,name=MinervaNoTransCMFactory
</depends>
<!-- fill in your Kodo configuration properties here.
Don't forget your license key. -->
<attribute name="ManagedConnectionFactoryProperties">
LicenseKey=<insert your own>
MinPool=0
MaxPool=10
ConnectionDriverName=org.hsqldb.jdbcDriver
ConnectionURL=jdbc:hsqldb:hsql://localhost:1476
ConnectionUserName=sa
ConnectionPassword=
DictionaryName=com.solarmetric.kodo.impl.jdbc.schema.dict.HSQLDictionary
WarnOnPersistentTypeFailure=true
</attribute>
<attribute name="ConnectionManagerProperties">
MinSize=0
MaxSize=10
BlockingTimeoutMillis=5000
IdleTimeoutMinutes=30
CleanupIntervalMinutes=10
MaxIdleTimeoutPercent=1.0
</attribute>
<attribute name="PrincipalMappingClass">
org.jboss.resource.security.ManyToOnePrincipalMapping
</attribute>
<attribute name="PrincipalMappingProperties">
</attribute>
</mbean>
</server>Chris-
Sorry for the long delay in responding. The problem is that the JBoss
people have completely changed the configuration format for resource
adaptor -service.xml files between 3.0.0beta and 3.0.0RC1, and there is
no documentation on it as of yet (see my posting on the thread "NPE when
calling getConnection() with JBoss").
I'll work on making a working example for 3.0.0RC1.
Chris West <[email protected]> wrote:
Has anyone gotten KodoJDO to successfully deploy on jboss-3.0.0RC1? It
seems that it deploys ok, but does not register any kodo object under the
name "java:/kodo" or whatever jndi name you have specified in the
kodo-services.xml file. Below is my kodo-services.xml file. Does anyone
see any problems?
Thanks,
-Chris
<?xml version="1.0" encoding="UTF-8"?>
<server>
<!-- you should put any JDBC drivers you will be using
in the lib directory so Kodo can find them -->
<classpath codebase="lib" archives="*"/>
<mbean code="org.jboss.resource.ConnectionFactoryLoader"
name="jboss.jca:service=ConnectionFactoryLoader,name=Kodo">
<attribute name="JndiName">kodo</attribute>
<depends optional-attribute-name="ResourceAdapterName">
jboss.jca:service=RARDeployment,name=KodoJDO
</depends>
<depends optional-attribute-name="ConnectionManagerFactoryLoaderName">
jboss.jca:service=ConnectionManagerFactoryLoader,name=MinervaNoTransCMFactory
</depends>
<!-- fill in your Kodo configuration properties here.
Don't forget your license key. -->
<attribute name="ManagedConnectionFactoryProperties">
LicenseKey=<insert your own>
MinPool=0
MaxPool=10
ConnectionDriverName=org.hsqldb.jdbcDriver
ConnectionURL=jdbc:hsqldb:hsql://localhost:1476
ConnectionUserName=sa
ConnectionPassword=
DictionaryName=com.solarmetric.kodo.impl.jdbc.schema.dict.HSQLDictionary
WarnOnPersistentTypeFailure=true
</attribute>
<attribute name="ConnectionManagerProperties">
MinSize=0
MaxSize=10
BlockingTimeoutMillis=5000
IdleTimeoutMinutes=30
CleanupIntervalMinutes=10
MaxIdleTimeoutPercent=1.0
</attribute>
<attribute name="PrincipalMappingClass">
org.jboss.resource.security.ManyToOnePrincipalMapping
</attribute>
<attribute name="PrincipalMappingProperties">
</attribute>
</mbean>
</server>--
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com
Kodo Java Data Objects Full featured JDO: eliminate the SQL from your code -
Erratic AbstractMethodError when calling equals() on interfaces
I am getting java.lang.AbstractMethodError or NPEs when calling methods that were defined in java.lang.Object on objects declared as interfaces. The following code executes normally, but sometimes (erratically) I am getting these errors. The code is part of a complex application; I have not been able to reproduce the errors in a small example.
The following code snipped shows where the error occurrs. Important to know is that the variable 'settings' is declared as private final IInterfaceSettings;, where IInterfaceSettings is declared as Java interface.
public int hashCode(){
int result = 83;
result+=(this.settings==null)?0:this.settings.hashCode(); // error occurs here
return result;
}An explicit cast to Object seems to solve the problem; it never occurred again until now.
public int hashCode(){
int result = 83;
result+=(this.settings==null)?0:((Object)this.settings).hashCode();
return result;
}DanielDefine hashCode() in the interface itself. You will probably end up with something like the following:
interface IInterfaceSettings {
abstract public int hashCode();
// other methods follow
class InterfaceSettingsImpl implements IInterfaceSettings {
final public int hashCode() {
return super.hashCode(); // should resolve to Object
Also, if you are going to implement hashCode, you might as well implement equals() so collections behavior is as exepcted.
- Saish
"My karma ran over your dogma." - Anon -
Bug in Oracle JDBC Driver: NullPointerException when calling clearParameters
There is a bug in the latest version of the JDBC driver that throws a NPE when calling PreparedStatement.clearParameters(). I don't need a response to this, since I have a workaround (just catching and ignoring the exception), but it should probably be fixed. I speculate that the problem only occurs when you try to call clearParameters() more than once on the same PS, but I haven't confirmed it.
It is probably an easy fix. Following is the stack trace:
java.lang.NullPointerException
at oracle.jdbc.dbaccess.DBData.clearItem(DBData.java:431)
at oracle.jdbc.dbaccess.DBDataSetImpl.clearItem(DBDataSetImpl.java:3528)
at oracle.jdbc.driver.OraclePreparedStatement.clearParameters(OraclePreparedStatement.java:3401)
at com.solarmetric.datasource.PreparedStatementCache$CachePreparedStatement.close(PreparedStatementCache.java:293)
at com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executePreparedStatementBatch(SQLExecutionManagerImpl.java:666)
at com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executePreparedStatement(SQLExecutionManagerImpl.java:514)
at com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeInternal(SQLExecutionManagerImpl.java:406)
at com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.flush(SQLExecutionManagerImpl.java:273)
at com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:421)
at com.solarmetric.kodo.runtime.PersistenceManagerImpl.flush(PersistenceManagerImpl.java:549)
at com.solarmetric.kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.java:412)
at com.sun.jdotck.api.persistencemanager.MakePersistentAssignsObjectId.testMakePersistentAssignsObjectId2(Unknown Source)
at com.sun.jdotck.api.persistencemanager.MakePersistentAssignsObjectId.testMakePersistentAssignsObjectId(Unknown Source)
at com.sun.jdotck.api.persistencemanager.MakePersistentAssignsObjectId.runTest(Unknown Source)
at com.sun.jdotck.api.persistencemanager.PersistenceManagerTest.run(Unknown Source)
at com.solarmetric.kodo.compatibility.JDOCompatabilityTestSuite$1.runTest(JDOCompatabilityTestSuite.java:493)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:325)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:524)
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.comTake a look at the method that is causing the NullPointerException:
public void clearItem(int i)
if (!m_dynamic && m_vector == null && i < m_vector.size())
m_vector.removeElementAt(i);
if (m_items != null && i >= m_items.length)
return;
m_items[i] = null;
return;
A NullPointerException will be thrown whenever clearParameters() is called when no parameters have yet been bound.
The first IF statement should read:
if (!m_dynamic && m_vector != null && i < m_vector.size())
A simple workaround would be to make sure that your parameter list is never empty before calling clearParameters(). Is there a patch for this anywhere? -
Generate an additional iDoc message type when calling BD12
How can a specific iDoc message type be generated (in addition to the other iDocs) when calling BD12 with specific output type?
I would like that all iDocs belonging to one serialization group will be generated when calling BD12. is that possible?
Thank you in advance,
AsmaaHi,
Kinldy check the links which are useful to you.
http://www.beinsoft.com/articles/sap-tutorial-ale-distribution-model2.php
Thanks,
Ramesh -
Core Dump when calling DriverManager.getConnection
I'm very confused and hope someone can help me out with this.
I'm trying to make a connection to a MS SQL Server 7 and am getting a core dump when getConnection is called. No exception is thrown, just a core dump and locked session. If I run the class from it's main there is absolutly no problem, but when I do a new on the class and call it's member to establish the connection: core dump. The environment is the same in both cases. The calling class did does use a mySql connection, but I tried closing it and setting it to null with the same problem. I'm not sure if the getConnection is stepping on a socket or what it's trying to violate in memory causing the dump. This is running on a SCO Openserver 5.0.5 box (green threads). Why it runs stand-alone and not when called from another class has got me tangled... Thread problem? I've tried several SQL drivers, they all do the same thing.
Anyway, here's a snippet from the java class:
try
{Class.forName(myForName);
// core dump, next line
Connection myConn = DriverManager.getConnection(myUrl, myUser, myPass);
// never get's here
Statement myStmt = myConn.createStatement();
catch (Exception e) // modified for this post
{system.out.println(e.toString());
Here's the dump printed to the monitor (2>&1)
SIGSEGV 11* segmentation violation
si_signo [11]: SIGSEGV 11* segmentation violation
si_errno [0]: Error 0
si_code [1]: SEGV_MAPERR [addr: 0x8]
stackpointer=81adc820
Full thread dump Classic VM (SCO-JDK-1.2.2-001:2000-Feb-17-03:54, green threads):
"Thread-0" (TID:0x8074f3c8, sys_thread_t:0x83ae258, state:R) prio=5
at com.inet.tds.TdsDriver.run(Unknown Source)
at java.lang.Thread.run(Thread.java, Compiled Code)
"process reaper" (TID:0x807431d0, sys_thread_t:0x82cd980, state:CW) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.UNIXProcess.run(Native Method)
at java.lang.Thread.run(Thread.java, Compiled Code)
"Finalizer" (TID:0x8071f320, sys_thread_t:0x808e478, state:CW) prio=8
at java.lang.Object.wait(Native Method)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java, Compiled Code)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java, Compiled Code)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174)
"Reference Handler" (TID:0x8071f3b0, sys_thread_t:0x808a2d8, state:CW) prio=10
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java, Compiled Code)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114)
"Signal dispatcher" (TID:0x8071f3e0, sys_thread_t:0x80845a8, state:CW) prio=5
"main" (TID:0x8071f1e0, sys_thread_t:0x804c2d8, state:R) prio=5
at java.lang.Thread.sleep(Native Method)
at com.inet.tds.TdsDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Code)
at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Code)
at SLSCorpRpt.printSchedule(SLSCorpRpt.java, Compiled Code)
at SLSSchedule.runSchedule(SLSSchedule.java, Compiled Code)
at SLSTextMain.<init>(SLSTextMain.java, Compiled Code)
at SLSTextMain.main(SLSTextMain.java, Compiled Code)
Monitor Cache Dump:
java.lang.Object@807431A8/807C6140: <unowned>
Waiting to be notified:
"process reaper" (0x82cd980)
java.lang.Class@80736EF8/807970A8: owner "main" (0x804c2d8) 2 entries
<unknown key> (0x80737c21): owner "Thread-0" (0x83ae258) 1 entry
java.lang.ref.ReferenceQueue$Lock@8071F338/80754D60: <unowned>
Waiting to be notified:
"Finalizer" (0x808e478)
java.lang.ref.Reference$Lock@8071F3C0/80754890: <unowned>
Waiting to be notified:
"Reference Handler" (0x808a2d8)
Registered Monitor Dump:
PCMap lock: <unowned>
utf8 hash table: <unowned>
JNI pinning lock: <unowned>
JNI global reference lock: <unowned>
BinClass lock: owner "Thread-0" (0x83ae258) 1 entry
Class linking lock: <unowned>
System class loader lock: <unowned>
Code rewrite lock: <unowned>
Heap lock: <unowned>
Monitor cache lock: owner "Thread-0" (0x83ae258) 1 entry
Monitor IO lock: <unowned>
User signal monitor: <unowned>
Waiting to be notified:
"Signal dispatcher" (0x80845a8)
Child death monitor: <unowned>
I/O monitor: <unowned>
Alarm monitor: <unowned>
Waiting to be notified:
<unknown thread> (0x804be18)
Thread queue lock: owner "Thread-0" (0x83ae258) 1 entry
Monitor registry: owner "Thread-0" (0x83ae258) 1 entry
SIGABRT 6* abort (generated by abort(3) routine)
stackpointer=81adc820
Full thread dump Classic VM (SCO-JDK-1.2.2-001:2000-Feb-17-03:54, green threads):
"Thread-0" (TID:0x8074f3c8, sys_thread_t:0x83ae258, state:R) prio=5
at com.inet.tds.TdsDriver.run(Unknown Source)
at java.lang.Thread.run(Thread.java, Compiled Code)
"process reaper" (TID:0x807431d0, sys_thread_t:0x82cd980, state:CW) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.UNIXProcess.run(Native Method)
at java.lang.Thread.run(Thread.java, Compiled Code)
"Finalizer" (TID:0x8071f320, sys_thread_t:0x808e478, state:CW) prio=8
at java.lang.Object.wait(Native Method)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java, Compiled Code)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java, Compiled Code)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174)
"Reference Handler" (TID:0x8071f3b0, sys_thread_t:0x808a2d8, state:CW) prio=10
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java, Compiled Code)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114)
"Signal dispatcher" (TID:0x8071f3e0, sys_thread_t:0x80845a8, state:CW) prio=5
"main" (TID:0x8071f1e0, sys_thread_t:0x804c2d8, state:R) prio=5
at java.lang.Thread.sleep(Native Method)
at com.inet.tds.TdsDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Code)
at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Code)
at SLSCorpRpt.printSchedule(SLSCorpRpt.java, Compiled Code)
at SLSSchedule.runSchedule(SLSSchedule.java, Compiled Code)
at SLSTextMain.<init>(SLSTextMain.java, Compiled Code)
at SLSTextMain.main(SLSTextMain.java, Compiled Code)
Monitor Cache Dump:
java.lang.Object@807431A8/807C6140: <unowned>
Waiting to be notified:
"process reaper" (0x82cd980)
java.lang.Class@80736EF8/807970A8: owner "main" (0x804c2d8) 2 entries
<unknown key> (0x80737c21): owner "Thread-0" (0x83ae258) 1 entry
java.lang.ref.ReferenceQueue$Lock@8071F338/80754D60: <unowned>
Waiting to be notified:
"Finalizer" (0x808e478)
java.lang.ref.Reference$Lock@8071F3C0/80754890: <unowned>
Waiting to be notified:
"Reference Handler" (0x808a2d8)
Registered Monitor Dump:
PCMap lock: <unowned>
utf8 hash table: <unowned>
JNI pinning lock: <unowned>
JNI global reference lock: <unowned>
BinClass lock: owner "Thread-0" (0x83ae258) 1 entry
Class linking lock: <unowned>
System class loader lock: <unowned>
Code rewrite lock: <unowned>
Heap lock: <unowned>
Monitor cache lock: owner "Thread-0" (0x83ae258) 1 entry
Monitor IO lock: <unowned>
User signal monitor: <unowned>
Waiting to be notified:
"Signal dispatcher" (0x80845a8)
Child death monitor: <unowned>
I/O monitor: <unowned>
Alarm monitor: <unowned>
Waiting to be notified:
<unknown thread> (0x804be18)
Thread queue lock: owner "Thread-0" (0x83ae258) 1 entry
Monitor registry: owner "Thread-0" (0x83ae258) 1 entryI have a similar problem with establishing a connection through JNI. Have you resolved your problem?
Here's mine.
In java, I have a class that provides an interface to a mysql database. The java programs that call this interface work fine.
When I try to call the java interface from C++ through JNI, I get the following output -- some debug statements sprinkled through also. I am assuming that the JVM is missing something at runtime that is there in my JRE. The classpaths match , etc. Exception handling in java and in JNI code are not providing any more detail.. Thanks for comments!!
Created jvm
Got KBModel and String classes
KBModel.java:stest()
KBModel.java:init(String)
KBModel.java:init(String) - got Properties file
Got DBDRIVER class: org.gjt.mm.mysql.Driver
Object = class org.gjt.mm.mysql.Driver
init(): DBURLSTRING = jdbc:mysql://sturgeon.xxx.com:3306/<valid db name>
init(): DBUSER = <valid user>
init(): DBPASSWORD =<valid password>
KBModel.java:init(Properties) - Attempting connection
init(): Drivers available:
com.mysql.jdbc.Driver
Driver accepts this URL
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x4053ea09
Function name=(N/A)
Library=/lib/i686/libc.so.6
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Dynamic libraries:
08048000-0804a000 r-xp 00000000 03:02 279279 /home/kathy/cm/src/Onto/Tools/Annotator/src/test/invokeKB
0804a000-0804b000 rw-p 00001000 03:02 279279 /home/kathy/cm/src/Onto/Tools/Annotator/src/test/invokeKB
40000000-40016000 r-xp 00000000 03:02 2093075 /lib/ld-2.2.4.so
40016000-40017000 rw-p 00015000 03:02 2093075 /lib/ld-2.2.4.so
40017000-40020000 r-xp 00000000 03:02 1309343 /usr/java/jdk1.3.1_03/jre/lib/i386/native_threads/libhpi.so
40020000-40021000 rw-p 00008000 03:02 1309343 /usr/java/jdk1.3.1_03/jre/lib/i386/native_threads/libhpi.so
40031000-40032000 r--p 00000000 03:02 768548 /usr/lib/locale/en_US/LC_IDENTIFICATION
40033000-40085000 r-xp 00000000 03:02 328384 /usr/lib/libodbc.so.1.0.0
40085000-40088000 rw-p 00051000 03:02 328384 /usr/lib/libodbc.so.1.0.0
40088000-400c1000 r-xp 00000000 03:02 327275 /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so
400c1000-400c8000 rw-p 00038000 03:02 327275 /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so
400ca000-400eb000 r-xp 00000000 03:02 246620 /usr/java/jdk1.3.1_03/jre/lib/i386/libjava.so
400eb000-400ed000 rw-p 00020000 03:02 246620 /usr/java/jdk1.3.1_03/jre/lib/i386/libjava.so
400ee000-400ff000 r-xp 00000000 03:02 246629 /usr/java/jdk1.3.1_03/jre/lib/i386/libverify.so
400ff000-40101000 rw-p 00010000 03:02 246629 /usr/java/jdk1.3.1_03/jre/lib/i386/libverify.so
40101000-402f1000 r-xp 00000000 03:02 1701922 /usr/java/jdk1.3.1_03/jre/lib/i386/client/libjvm.so
402f1000-403f1000 rw-p 001ef000 03:02 1701922 /usr/java/jdk1.3.1_03/jre/lib/i386/client/libjvm.so
40408000-4053c000 r-xp 00000000 03:02 2093084 /lib/libc-2.2.4.so
4053c000-40542000 rw-p 00133000 03:02 2093084 /lib/libc-2.2.4.so
40547000-4054a000 r-xp 00000000 03:02 2093088 /lib/libdl-2.2.4.so
4054a000-4054b000 rw-p 00002000 03:02 2093088 /lib/libdl-2.2.4.so
4054b000-40558000 r-xp 00000000 03:02 343415 /lib/i686/libpthread-0.9.so
40558000-40560000 rw-p 0000c000 03:02 343415 /lib/i686/libpthread-0.9.so
40560000-40582000 r-xp 00000000 03:02 343413 /lib/i686/libm-2.2.4.so
40582000-40583000 rw-p 00021000 03:02 343413 /lib/i686/libm-2.2.4.so
40583000-40596000 r-xp 00000000 03:02 2093093 /lib/libnsl-2.2.4.so
40596000-40597000 rw-p 00012000 03:02 2093093 /lib/libnsl-2.2.4.so
40599000-405cd000 r-xp 00000000 03:02 328243 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
405cd000-405d9000 rw-p 00033000 03:02 328243 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
405dc000-405f0000 r-xp 00000000 03:02 246630 /usr/java/jdk1.3.1_03/jre/lib/i386/libzip.so
405f0000-405f3000 rw-p 00013000 03:02 246630 /usr/java/jdk1.3.1_03/jre/lib/i386/libzip.so
405f3000-41327000 r--s 00000000 03:02 1717328 /usr/java/jdk1.3.1_03/jre/lib/rt.jar
41354000-4164b000 r--s 00000000 03:02 1717321 /usr/java/jdk1.3.1_03/jre/lib/i18n.jar
4164b000-41661000 r--s 00000000 03:02 1717329 /usr/java/jdk1.3.1_03/jre/lib/sunrsasign.jar
43709000-4370a000 r--p 00000000 03:02 408823 /usr/lib/locale/en_US/LC_MEASUREMENT
4370a000-4370b000 r--p 00000000 03:02 2158478 /usr/lib/locale/en_US/LC_TELEPHONE
4370b000-4370c000 r--p 00000000 03:02 2158480 /usr/lib/locale/en_US/LC_ADDRESS
4370c000-4370d000 r--p 00000000 03:02 2158479 /usr/lib/locale/en_US/LC_NAME
4370d000-4370e000 r--p 00000000 03:02 1864168 /usr/lib/locale/en_US/LC_PAPER
4370e000-4370f000 r--p 00000000 03:02 2174846 /usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES
4370f000-43710000 r--p 00000000 03:02 408822 /usr/lib/locale/en_US/LC_MONETARY
49d5f000-49d8a000 r--p 00000000 03:02 572342 /usr/lib/locale/en_US/LC_CTYPE
49d8a000-49d90000 r--p 00000000 03:02 866674 /usr/lib/locale/en_US/LC_COLLATE
49d90000-49d91000 r--p 00000000 03:02 768549 /usr/lib/locale/en_US/LC_TIME
49d91000-49d92000 r--p 00000000 03:02 572338 /usr/lib/locale/en_US/LC_NUMERIC
49d93000-49d9c000 r-xp 00000000 03:02 246627 /usr/java/jdk1.3.1_03/jre/lib/i386/libnet.so
49d9c000-49d9d000 rw-p 00008000 03:02 246627 /usr/java/jdk1.3.1_03/jre/lib/i386/libnet.so
49d9d000-49da7000 r-xp 00000000 03:02 2093117 /lib/libnss_nisplus-2.2.4.so
49da7000-49da8000 rw-p 00009000 03:02 2093117 /lib/libnss_nisplus-2.2.4.so
49da8000-49dab000 r-xp 00000000 03:02 2093106 /lib/libnss_dns-2.2.4.so
49dab000-49dac000 rw-p 00002000 03:02 2093106 /lib/libnss_dns-2.2.4.so
49dad000-49db7000 r-xp 00000000 03:02 2093109 /lib/libnss_files-2.2.4.so
49db7000-49db8000 rw-p 00009000 03:02 2093109 /lib/libnss_files-2.2.4.so
4a624000-4a67a000 r--s 00000000 03:02 540401 /usr/java/jdk1.3.1_03/jre/lib/ext/log4j-1.2.6.jar
4a695000-4a6a3000 r-xp 00000000 03:02 2093122 /lib/libresolv-2.2.4.so
4a6a3000-4a6a5000 rw-p 0000d000 03:02 2093122 /lib/libresolv-2.2.4.so
Local Time = Thu Feb 13 13:35:05 2003
Elapsed Time = 1
# The exception above was detected in native code outside the VM
# Java VM: Java HotSpot(TM) Client VM (1.3.1_03-b03 mixed mode)
# An error report file has been saved as hs_err_pid9210.log.
# Please refer to the file for further information.
# -
I can record voice memos fine using the built-in iPhone 4 mic. And my Bluetooth headset (Jawbone Era) works fine when I leave messages on voice mail systems etc. when calling on the iPhone 4, so it appears my headset mic is fine. I can also use voice activated dialing, although it fails miserably interpreting numbers. However, I cannot record voice memos with my Bluetooth mic. I just get barely audible static. Any suggestions? Thanks.
Hello, did you ever get an answer to your question? I just picked up a Jawbone Era and using on an iPhone 4s running 5.0.1. Seems to work fine on regular calls, but not on the built in Voice memos application. It worked fine on my older Jawbone Icon, but haven't tested on the 4s or iOS 5.
Thanks! -
I have an ipad mini 1st gen 64 gb (wifi only) and i have problem with some of my apps. These apps have lags when you play with them for a few seconds the apps are having lags are call of duty strike team, gta San Andreas and nfs most wanted.pleas help me
I'm going to guess videos buffer for a while also...
Two possibilities, one is you should close apps on the iPad, the other is your internet speed is not able to handle the demands of a high speed device.
To close apps: Double click home button, swipe up to close the apps.
To solve internet problem, contact your provider. Basic internet is not enough for video games and movies. Your router may be old and slow. -
Problems with SKIP FIRST Screen when calling a transaction variant
Hi,
I have a transaction variant of VA02 that suppresses the display of the pricing button on the conditions screen. I have created a variant transaction for called ZA02 which calls this variant of VA02.
In my program I have coded the following :-
SET PARAMETER ID 'AUN' FIELD VBELN.
SET PARAMETER ID 'VPO' FIELD POSNR.
CALL TRANSACTION 'ZA02' AND SKIP FIRST SCREEN.
I would have expected the program to display the second screen of VA02 but it displays the first screen and when I hit return key the second screen is then displayed.
I don't think I need VPO setting but when I code
SET PARAMETER ID 'AUN' FIELD VBELN.
SET PARAMETER ID 'VPO' FIELD POSNR.
CALL TRANSACTION 'VA02' AND SKIP FIRST SCREEN.
VA02's second screen is displayed
Any help as to how to Skip this first screen with ZA02 would be greatly appreciated
Thanks
RousYes you are right Reg thanks for that.
But it appears that VA02 doesn't require it setting anyway. I changed the PID to APO and indeed I've even commented the line out, but my program goes to the second screen when calling VA02 but stays on the first screen when calling ZA02 .
Maybe you are looking for
-
Thickbox gallery not loading on my website
I have made a photo gallery for a website using thickbox, it is working fine in preview but when I put it to the site the photos are not loading/poping up. I have used thickbox and lightbox for photo galleries that worked fine but I do not understand
-
Missing UiPrefs datebook file a mystery
I am stumped with this one. My hard drive crashed and I recovered the data of my palm user folder and successfully replaced the datebook UiPrefs file in the new install of the Palm Desktop software with the last recorded UiPrefs entry that I had reco
-
Hi, One simple clarification with respect to NWDS. Can you please confirm I can use NWDS 7.0.15 for enhancing and bug fixing of WD and PAR component that are been developed on NWDS 2.0.19 version ?? Regards, Sushil Jain Edited by: SushilBlr on Dec 21
-
Error Building the Application
Hi Guys, Whenever I try to test my pages from struts-config.xml, I get the following errors. C:\Project\nepsys\gwrs\ViewController\public_html\test.jsp Error(1): java.lang.IllegalArgumentException Error(1): Unable to load taghandler class: http://xml
-
How to use tlfx in Flash builder 4.
Hi, How can i compile the tlfxproject and include it in flash builder 4? I need the table and bullet features, to create an advanced editor. I already have the source for tlfx, but don't know how to proceede. Thanks. Allan