java - Spring constructor-arg not correct type -


i have following in context.xml:

<bean id="mybean" class="org.stuff.morestuff.classclass"      destroy-method="quit">     <constructor-arg name="someaddr">         <bean class="java.net.url">             <constructor-arg type= "java.lang.string" value="http://something@ondemand.saucelabs.com:80" />         </bean>     </constructor-arg>     <constructor-arg name="argtwo" ref="stability"/> </bean> 

i failed load application context error due to:

constructor threw nested exception; java.lang.classcastexception: java.lang.string cannot cast java.util.map.  

i have looked , '@' not special character , should not need escaped (there no escape sequence regardless). url type string, still being parsed map spring.

does know way around this?

thanks.


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -