When I run the openwire-cpp test application I get the following error when
it opens up a connection.
URI that I use is the following:
tcp://localhost:61616?trace=false&protocol=openwire&encoding=none
First-chance exception at 0x10227637 (msvcr71d.dll) in activemq-test.exe:
0xC0000005: Access violation reading location 0x00000004.
Last method:
p OpenWireProtocol::checkOutputStream(p ostream) throw (IOException)
{
// Assert that supplied output stream is a data output stream
--------> This cast causes Access violation. p dos =
p_dyncast<DataOutputStream> (ostream) ;
if( dos == NULL )
throw IOException("OpenWireProtocol requires a DataOutputStream") ;
return dos ;
}
inline p p_dyncast (const p& pb) throw (std::bad_cast)
{
// Check compile-time that T and Base are compatible
smartptr_assert_type_compatibility (
(Base*)NULL,
(Base*)NULL,
(T*)NULL); //static_cast<const T*> ((const Base*)(NULL)));
p<T> retval;
// Checks that the cast is valid as a dynamic_cast:
---------> (Error occurs here) p_help::set_obj (retval,
dynamic_cast<T*> (p_help::get_obj (pb)));
p_help::set_rc (retval, p_help::get_rc (pb));
if (retval != NULL) addref (retval);
return retval;
}
Call Stack:::
msvcr71d.dll!FindCompleteObject(void * * inptr=0x00aa7140) + 0x17
msvcr71d.dll!__RTDynamicCast(void * inptr=0x00aa7140, long VfDelta=0,
void
* SrcType=0x00540980, void * TargetType=0x005409b4, int isReference=0) +
0x43
> activemq-test.exe!ifr::v1::p_dyncast(const ifr::v1::p & pb={...}) Line
571 + 0x20
activemq-test.exe!apache::activemq::protocol::OpenWireProtocol::checkOutputStream(ifr::v1::p
ostream={...}) Line 157 + 0xd
activemq-test.exe!apache::activemq::protocol::OpenWireProtocol::marshal(ifr::v1::p
object={...}, ifr::v1::p ostream={...}) Line 84 + 0x26
activemq-test.exe!apache::activemq::transport::tcp::TcpTransport::oneway(ifr::v1::p
command={...}) Line 106
activemq-test.exe!apache::activemq::protocol::OpenWireProtocol::handshake(ifr::v1::p
transport={...}) Line 75 + 0x81
activemq-test.exe!apache::activemq::transport::tcp::TcpTransport::start()
Line 96 + 0x7e
activemq-test.exe!apache::activemq::transport::TransportFilter::start()
Line 67 + 0x23
activemq-test.exe!apache::activemq::transport::TransportFilter::start()
Line 67 + 0x23
activemq-test.exe!apache::activemq::Connection::Connection(ifr::v1::p
transport={...}, ifr::v1::p connectionInfo={...}) Line 43 + 0x20
activemq-test.exe!apache::activemq::ConnectionFactory::createConnection(const
char * username=0x00000000, const char * password=0x00000000) Line 142 +
0x75
activemq-test.exe!apache::activemq::ConnectionFactory::createConnection()
Line 126 + 0xa2
activemq-test.exe!TestSuite::setUp() Line 67 + 0x28
activemq-test.exe!TestSuite::execute() Line 84 + 0xc
activemq-test.exe!main(int argc=2, char * * argv=0x00aa67e8) Line 238
activemq-test.exe!mainCRTStartup() Line 398 + 0x11
--
View this message in context:
http://www.nabble.com/runtime-error-tf1944985.html#a5332864
Sent from the ActiveMQ - User forum at Nabble.com.