AMF channel return object format
Hey,
I am working with BlazeDS and JBoss 5.
In Jboss I have AuthentificationFilter before Remote Objects... So each request must pass throw this filter.
On server side:
In the filter I am checking login session data and if it is ok ,it passes to Remote Object.
If not I make following :
httpResponse.getWriter().write("Session Invalid");
On flex side :
I get fault result from server, and I don't see "Session invalid" string. I have the fault of Bad Version, because it is not AMF Channel , I quess.
The question is how can I get String from this filter ???
Thanks a lot!
Hello,
I wanted to start a new post but when reading this post, I think it is the same kind of issue I am facing for a few days now.
I am using WebSphere (v6.1) and Java (EJB 2...) with Flex 3.4 as the frontend talking to BlazeDS.
In some cases based on properties, my application (EJBs) should still be available but the UI (Flex) should be disabled.
Throwing java exception in the (java) services methods works just fine since you can get the exception in Flex through the fault rootCause but I need/want to block the Flex app/calls before that...
To do so, I thought that a (java) ServletFilter added in the web.xml would be the right place to process this check.
If the properties says that the UI should not be accessed before launching the application frontend it is working just great. Indeed I am calling a servlet that will display the flash <object ...> but the filter is able to return an HTML information page...
if the properties are set later on, when the flex app is already running, I am facing the issue!
I tried several things but I can't get a usable message on flex side...
In my "doFilter" method, I did try this:
public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain)
throws IOException, ServletException {
// Cast the request & response
HttpServletRequest request = (HttpServletRequest) req;
HttpServletResponse response = (HttpServletResponse) res;
// Try to send an exception that I could catch/match (at least the message) on the flex side...
response.resetBuffer();
response.setContentType("application/x-amf");
MessageException me = new MessageException("Application closed");
ErrorMessage em = me.getErrorMessage();
FlexClient flexClient = FlexContext.getFlexClient();
em.setClientId(flexClient.getId());
Amf3Output amfOutput = new Amf3Output(SerializationContext.getSerializationContext());
amfOutput.setOutputStream(response.getOutputStream());
amfOutput.writeObject(em);
amfOutput.flush();
amfOutput.close();
return;
When doing so, I get an "Unsupported AMF version 2689" in Flashbug/Firebug under Firefox.
And I first tried a much more simple thing (in the "doFilter" method) such as :
throw new UnavailableException("Application closed");
or
res.sendError(HttpServletResponse.SC_TEMPORARY_REDIRECT);
return;
and I get this error :
faultCode:Client.Error.DeliveryInDoubt faultString:'Channel disconnected'
faultDetail:'Channel Disconnected before an acknowledement was received'
I really hope someone will be able to help us since it does not look like a crazy use case.
I have also tried to override the MessageBrokerServlet but I am facing the same issues...
Thank you very much for your help and keep on doing great job on BlazeDS!!!
Similar Messages
-
AMF Channel - Project Relocation Issue
The problem I'm having came up when I tried moving a working BlazeDS/Flex/Java project on my local machine to a remote server. The way I've set up the server is with user directories (~username) style so I wanted to move my BlazeDS project under that directory (so the access url for the project would be something like: http://ip_address:8080/~username/blazeProject )
So I moved the project folder into the ~username subfolder of my web directory. When I moved the project there I started having problems with my AMF channel when I tried to use the RemoteObject communications that worked locally but now don't. This is the fault information I received:
>(mx.rpc::Fault)#0
errorID = 0
faultCode = "Client.Error.MessageSend"
faultDetail = "Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404: url: 'http://192.168.111.201:8080/blazeProject/messagebroker/amf'"
faultString = "Send failed"
message = "faultCode:Client.Error.MessageSend faultString:'Send failed' faultDetail:'Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404: url: 'http://192.168.111.201:8080/blazeProject/messagebroker/amf''"
name = "Error"
rootCause = (mx.messaging.events::ChannelFaultEvent)#1
bubbles = false
cancelable = false
channel = (mx.messaging.channels::AMFChannel)#2
authenticated = false
channelSets = (Array)#3
[0] (mx.messaging::ChannelSet)#4
authenticated = false
channelIds = (Array)#5
[0] "my-amf"
channels = (Array)#6
[0] (mx.messaging.channels::AMFChannel)#2
clustered = false
connected = false
currentChannel = (mx.messaging.channels::AMFChannel)#2
initialDestinationId = (null)
messageAgents = (Array)#7
[0] (mx.rpc::AsyncRequest)#8
authenticated = false
autoConnect = true
channelSet = (mx.messaging::ChannelSet)#4
clientId = (null)
connected = false
defaultHeaders = (null)
destination = "remoteReference"
id = "245BCB93-2D25-4C42-D6F7-92948FE615C8"
reconnectAttempts = 0
reconnectInterval = 0
requestTimeout = -1
subtopic = ""
connected = false
connectTimeout = -1
enableSmallMessages = true
endpoint = "http://192.168.111.201:8080/blazeProject/messagebroker/amf"
failoverURIs = (Array)#9
id = "my-amf"
mpiEnabled = false
netConnection = (flash.net::NetConnection)#10
client = (mx.messaging.channels::AMFChannel)#2
connected = false
objectEncoding = 3
proxyType = "none"
uri = "http://192.168.111.201:8080/blazeProject/messagebroker/amf"
piggybackingEnabled = false
polling = false
pollingEnabled = true
pollingInterval = 3000
protocol = "http"
reconnecting = false
recordMessageSizes = false
recordMessageTimes = false
requestTimeout = -1
uri = "http://{server.name}:{server.port}/blazeProject/messagebroker/amf"
url = "http://{server.name}:{server.port}/blazeProject/messagebroker/amf"
useSmallMessages = false
channelId = "my-amf"
connected = false
currentTarget = (mx.messaging.channels::AMFChannel)#2
eventPhase = 2
faultCode = "Channel.Connect.Failed"
faultDetail = "NetConnection.Call.Failed: HTTP: Status 404: url: 'http://192.168.111.201:8080/blazeProject/messagebroker/amf'"
faultString = "error"
reconnecting = false
rejected = false
rootCause = (Object)#11
code = "NetConnection.Call.Failed"
description = "HTTP: Status 404"> details = "http://192.168.111.201:8080/blazeProject/messagebroker/amf"
level = "error"
target = (mx.messaging.channels::AMFChannel)#2
type = "channelFault"
Whoops that's not the right endpoint for the channel! Instead of "http://192.168.111.201:8080/blazeProject/messagebroker/amf", I want http://192.168.111.201:8080/~username/blazeProject/messagebroker/amf" right? So I went into my services-config file and changed the my-amf endpoint url to "". Hmm, I'm still running into the same fault as above except that the endpoint url is now "http://192.168.111.201:8080/~username/blazeProject/messagebroker/amf".
Changed:
>
To:
>
I've also tried hard coding an absolute url in there to no avail:
>
I've tried setting up a similar username subfolder setup on my local machine and am getting the same error so it must be something in my configuration files that is amiss. It looks like my Flex code is looking for the AMF channel in the right place, but it the server side stuff isn't setting it up properly (when I navigate to "http://192.168.111.201:8080/~username/blazeProject/messagebroker/amf" in a browser it returns a 404 response when a 200 response is expected). Any idea where I'm missing that code? I've been looking at the web.xml file and am thinking that the solution may be in the servlet-mapping there, but I'm not sure how I would change that to do what I wish.
I've done a lot of tinkering and can't seem to find a solution myself, so I'm hoping someone on here can steer me in the right direction! Any suggestions would be greatly appreciated!
One other thing: I've read that sometimes this error is thrown when there are initialization errors when deploying the project, but I've checked the server logs and that's not the case here... -
Java Remoting over AMF channel slow from internet
Hi
We have a Flex app that uses an AMF channel to call a Java object on LCDS. The LCDS is a default 2.5.1 install on windows, running the built in JBOSS server.
When we run the flex client on the lan, response is excellent. When we call it from outside the firewall, we get a 5 to 7 second delay on the all Java calls. The app also uses SQL assember, but we dont see any perfomance issue with the data service calls.
The LCSD server is behind our firewall, and we are doing simple port forwarding of 8700 and 2038 to enable access from outside teh firewall.
To test, I set up a very simple java method, and if I call it from a pc on the lan I get an instant response. If I call it via the internet, I get a 5 second delay. This shows that bandwidth is not the issue.
My suspicion is that the problem is with polling on a simple amf channel. I tried to setup a streamingAMFchannel, but got a class not found error. I set up long polling, but got the same result.
Here is more background:
I created a simple java method:
public String ping() {
Calendar cal = Calendar.getInstance();
String time = cal.getTime().toString();
fLogger.info("Ping Received at "+time);
return time;
I call this from a form
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300">
<mx:RemoteObject
id="testBed"
destination="testBed">
<mx:method name="ping" result="pingHandler(event.result)"/>
</mx:RemoteObject>
<mx:Script><![CDATA[
private function ping():void {
var date:Date = new Date();
msgBox.text=msgBox.text+"Calling ping at "+date.toLocaleTimeString()+" "+date.getMilliseconds()+"\n"
testBed.ping()
date = new Date();
msgBox.text=msgBox.text+"Ping called at "+date.toLocaleTimeString()+" "+date.getMilliseconds()+"\n"
private function pingHandler(result):void {
var date:Date = new Date();
msgBox.text=msgBox.text+"Ping returned at "+date.toLocaleTimeString()+" "+date.getMilliseconds()+"\n"
msgBox.text=msgBox.text+"Ping returned :"+result+"\n"
} ]]> </mx:Script>
<mx:Button x="35" y="268" label="Ping" id="pingButton" click="ping()"/>
<mx:TextArea x="19" y="10" width="371" height="250" id="msgBox" text=""/>
</mx:Canvas>
When I run over the net I get
Calling ping at 04:19:11 PM 593
Ping called at 04:19:11 PM 593
Ping returned at 04:19:16 PM 562
Which is a 5 second delay
I have attached my config files.
Any suggestions would be appreciated.
Cheers
JamesCan you give a little more information on the architecture of your application layers and where do they run?
Do you use ADF BC? Are they running on the client machine or on a server through EJB?
Also does running a form that doesn't connect to the DB also slow on the remote clients?
You can try to use the profiler in JDeveloper to monitor your application and see which events takes place when. -
Hi All,
I want to convert the output of Applescript which is in object format to string or text format, am running Applescript with Java, I need to display the output of applescript in Eclipse Java Console, since its object format the output is not properly displayed..
Pls suggest.. I used the below code
repeat with i in allContents
if class of i is button then set the end of allStaticText to contents of i
end repeat
Applscript ouptput
{button 1 of window "Player Installer" of application process "Install Player" of application "System Events", button 2 of window "Player Installer" of application process "Install Player" of application "System Events", button 3 of window "Player Installer" of application process "Install Player" of application "System Events", button "Finish" of UI element 1 of scroll area 1 of window "Player Installer" of application process "Install Player" of application "System Events"}
Java output
<NSAppleEventDescriptor: 'obj '{ 'form':'indx', 'want':'butT', 'seld':1, 'from':'obj '{ 'form':'name', 'want':'cwin', 'seld':'utxt'(" Player Installer"), 'from':'obj '{ 'form':'name', 'want':'pcap', 'seld':'utxt'("Install Player"), 'from':'null'() } } }>Here's an improved version of the previous script, where the handler now returns "button 2 of window \"Untitled\" of application process \"TextEdit\" of application \"System Events\"" instead of "button \"2\" of window \"Untitled\" of application process \"TextEdit\" of application \"System Events\"":
tell application "System Events"
get button 2 of window 1 of process "TextEdit"
my objectToText(result) --> "button 2 of window \"Untitled\" of application process \"TextEdit\" of application \"System Events\""
end tell
on objectToText(UI_element)
set theText to ""
tell application "System Events"
repeat
if exists attribute "AXParent" of UI_element then
set theParent to value of attribute "AXParent" of UI_element
set theClass to class of UI_element
if name of UI_element exists then
set theName to name of UI_element
set theText to theText & (theClass as text) & " \"" & theName & "\" of "
else
set k to 0
get UI elements of theParent whose class is theClass
repeat with thisItem in result
set k to k + 1
if contents of thisItem is UI_element then exit repeat
end repeat
set theIndex to k
set theText to theText & (theClass as text) & " " & theIndex & " of "
end if
set UI_element to theParent
else
set theClass to class of UI_element
set theName to name of UI_element
set theText to theText & (theClass as text) & " \"" & theName & "\" of application \"System Events\""
exit repeat
end if
end repeat
end tell
return theText
end objectToText
Message was edited by: Pierre L. -
My AMF channel seem to be a polling one
Hello everyone.
When i'm trying to use a simple amf channel for my messaging service, it looks like that some king of polling is happening instead. I'm testing this on simple chat application, and when i'm sending, for example, 4 message in a row I have to wait few second to see them appear in the right place.
Beside that i'm not doing anything, once i have subscribed to the destination, i can see in the blazeds log that the same messaging action is going over and over. Here is a sample of the log
[BlazeDS] Channel endpoint my-lol received request.
[BlazeDS] Deserializing AMF/HTTP request
Version: 3
(Message #0 targetURI=null, responseURI=/99)
(Array #0)
[0] = (Externalizable Object #0 'flex.messaging.messages.CommandMessageExt')
(Object #1)
(Object #2)
DSId = "5669DA6B-360B-0DB5-61E4-2B7EF19B15B5"
(Byte Array #3, Length 16)
2
[BlazeDS] Before handling general client poll request.
incomingMessage: Flex Message (flex.messaging.messages.CommandMessageExt)
operation = poll
clientId = null
correlationId =
destination =
messageId = AFDBF526-C039-0761-A2CD-CF71C19A7061
timestamp = 1223251050921
timeToLive = 0
body = {}
hdr(DSEndpoint) = my-lol
hdr(DSId) = 5669DA6B-360B-0DB5-61E4-2B7EF19B15B5
[BlazeDS] After handling general client poll request.
reply: Flex Message (flex.messaging.messages.AcknowledgeMessage)
clientId = null
correlationId = null
destination = null
messageId = 5674B9CD-9919-6D3D-2E72-A81BC9E2866B
timestamp = 1223251050921
timeToLive = 0
body = null
[BlazeDS] Serializing AMF/HTTP response
Version: 3
(Message #0 targetURI=/99/onResult, responseURI=)
(Externalizable Object #0 'DSK')
1.223251050921E12
(Byte Array #1, Length 16)
And so on ! (only the Id are changing)
Again i'm doing simple things here, I have a producer and a consumer with the same destination "chat". This destination is using a channel named "my-lol" but it's a copy of the default "my-amf" one.
Can you explain to me what is happening ?
Thank youAs you know, to use a Consumer you'll need a channel capable of push (or at least one that can simulate it) in order to receive updates. The AMFChannel sends and receives AMF messages over HTTP, so if you want to received pushed messages you'll either need a long lived connection or some method of polling at a reasonable interval to simulate it.
While LCDS more channels than BlazeDS, I suggest reading Seth's documentation on the pros and cons of each kind of channel so that you can pick which approach you want based on your needs and application environment.
http://www.dcooper.org/Blog/client/index.cfm?mode=entry&entry=8E1439AD-4E22-1671-58710DD52 8E9C2E7
Pete
From: Jordan Amar [mailto:[email protected]]
Sent: Sunday, October 05, 2008 8:10 PM
To: [email protected]
Subject: my AMF channel seem to be a polling one
A new discussion was started by Jordan Amar in
Configuration and Getting Started Discussion --
my AMF channel seem to be a polling one
Hello everyone.
When i'm trying to use a simple amf channel for my messaging service, it looks like that some king of polling is happening instead. I'm testing this on simple chat application, and when i'm sending, for example, 4 message in a row I have to wait few second to see them appear in the right place.
Beside that i'm not doing anything, once i have subscribed to the destination, i can see in the blazeds log that the same messaging action is going over and over. Here is a sample of the log
[BlazeDS] Channel endpoint my-lol received request.
[BlazeDS] Deserializing AMF/HTTP request
Version: 3
(Message #0 targetURI=null, responseURI=/99)
(Array #0)
[0] = (Externalizable Object #0 'flex.messaging.messages.CommandMessageExt')
(Object #1)
(Object #2)
DSId = "5669DA6B-360B-0DB5-61E4-2B7EF19B15B5"
(Byte Array #3, Length 16)
2
[BlazeDS] Before handling general client poll request.
incomingMessage: Flex Message (flex.messaging.messages.CommandMessageExt)
operation = poll
clientId = null
correlationId =
destination =
messageId = AFDBF526-C039-0761-A2CD-CF71C19A7061
timestamp = 1223251050921
timeToLive = 0
body = {}
hdr(DSEndpoint) = my-lol
hdr(DSId) = 5669DA6B-360B-0DB5-61E4-2B7EF19B15B5
[BlazeDS] After handling general client poll request.
reply: Flex Message (flex.messaging.messages.AcknowledgeMessage)
clientId = null
correlationId = null
destination = null
messageId = 5674B9CD-9919-6D3D-2E72-A81BC9E2866B
timestamp = 1223251050921
timeToLive = 0
body = null
[BlazeDS] Serializing AMF/HTTP response
Version: 3
(Message #0 targetURI=/99/onResult, responseURI=)
(Externalizable Object #0 'DSK')
1.223251050921E12
(Byte Array #1, Length 16)
And so on ! (only the Id are changing)
Again i'm doing simple things here, I have a producer and a consumer with the same destination "chat". This destination is using a channel named "my-lol" but it's a copy of the default "my-amf" one.
Can you explain to me what is happening ?
Thank you
View/reply at my AMF channel seem to be a polling one
Replies by email are OK.
Use the unsubscribe form to cancel your email subscription. -
Hi All ,I am working on portable object format with coherence my requirement is to build portable object format using java so every platform call that object..
please tell me when ever i use to start the coherence with my cache name its showing like pof-config file unable to find how to resolve this error is there any wrong in my cohernce cache config if there pls tell me ...
is it correct way to built portable object .
*1.Created the java class ( Manager.java) --> portable object interface*
package com.Manager;
import java.io.IOException;
import com.tangosol.io.pof.PofReader;
import com.tangosol.io.pof.PofWriter;
import com.tangosol.io.pof.PortableObject;
public class Manager implements PortableObject
private String m_id ;
private String m_name ;
public Manager()
public Manager(String m_id,String m_name)
this.m_id=m_id;
this.m_name=m_name;
public String getId()
return m_id;
public void setId(String id)
m_id = id;
public String getName()
return m_name;
public void setName(String name)
m_name = name;
@Override
public void readExternal(PofReader arg0) throws IOException {
// TODO Auto-generated method stub
m_id = arg0.readString(0);
m_name = arg0.readString(1);
@Override
public void writeExternal(PofWriter arg0) throws IOException {
arg0.writeString(0, m_id);
arg0.writeString(1, m_name);
*2. created the (manager2.java)*
package com.Manager;
import java.io.IOException;
import com.tangosol.io.pof.PofReader;
import com.tangosol.io.pof.PofWriter;
public class Manager2 -->Pof Initilizer
public void serialize(PofWriter out, Object o)
throws IOException
Manager trade = (Manager) o;
out.writeObject(0, trade.getId());
out.writeString(1, trade.getName());
// mark that writing the object is done
out.writeRemainder(null);
public Object deserialize(PofReader in)
throws IOException
String ldtPlaced = in.readString(0);
String name = in.readString(1);
// mark that reading the object is done
in.readRemainder();
return new Manager(ldtPlaced,name);
*3.created another java class to cput the data into cache*
package com.Manager;
import com.Manager.Manager;
import com.tangosol.net.CacheFactory;
import com.tangosol.net.NamedCache;
public class Main {
* @param args
public static void main(String[] args) {
// TODO Auto-generated method stub
String m_id = "123";
String m_name ="laxman";
CacheFactory.ensureCluster();
NamedCache cache = CacheFactory.getCache("hello");
/*Manager m1 = new Manager();
m1.setId("1");
m1.setName("laxman");*/
cache.put(m_id,m_name);
**4.created coherence-cache-config.xml**
!DOCTYPE cache-config SYSTEM "cache-config.dtd">
<cache-config>
<caching-scheme-mapping>
<cache-mapping>
<cache-name>hello</cache-name>
<scheme-name>Distributed</scheme-name>
</cache-mapping>
</caching-scheme-mapping>
<caching-schemes>
<distributed-scheme>
<scheme-name>Distributed</scheme-name>
<service-name>DistributedCache</service-name>
<serializer>
<instance>
<class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
<init-params>
<init-param>
<param-type>String</param-type>
<param-value>pof-config.xml</param-value>
</init-param>
</init-params>
</instance>
</serializer>
<backing-map-scheme>
<local-scheme>
<!-- each node will be limited to 250MB -->
<high-units>250M</high-units>
<unit-calculator>binary</unit-calculator>
</local-scheme>
</backing-map-scheme>
<autostart>true</autostart>
</distributed-scheme>
</caching-schemes>
</cache-config>
****5.created coherence-pof-config.xml****
<?xml version="1.0"?>
<!DOCTYPE pof-config SYSTEM "pof-config.dtd">
<pof-config>
<user-type-list>
<include>Manager-pof-config.xml</include>
<user-type>
<type-id>1000</type-id>
<class-name>com.Manager.Manager</class-name>
<serializer>
<class-name>com.Manager.Manager2</class-name>
</serializer>
</user-type>
</user-type-list>
</pof-config>
****6.My Cache-server.cmd****
@echo off
@rem This will start a cache server
setlocal
:config
@rem specify the Coherence installation directory
set coherence_home=%~dp0\..
@rem specify the JVM heap size
set memory=512m
:start
if not exist "%coherence_home%\lib\coherence.jar" goto instructions
if "%java_home%"=="" (set java_exec=java) else (set java_exec=%java_home%\bin\java)
:launch
set java_opts="-Xms%memory% -Xmx%memory% -Dtangosol.pof.config=file:/C:/Users/lakshmana/JPACoherenceWorkspace/Application/appClientModule/Manager-pof-config.xml -Dtangosol.coherence.cacheconfig=file:/C:/Users/lakshmana/JPACoherenceWorkspace/Application/appClientModule/coherence-cache-config.xml"
"%java_exec%" -server -showversion "%java_opts%" -cp "%coherence_home%\lib\coherence.jar" com.tangosol.net.DefaultCacheServer %1
goto exit
:instructions
echo Usage:
echo ^<coherence_home^>\bin\cache-server.cmd
goto exit
:exit
endlocal
@echo on
***7.Coherence-cache-server.cmd***
@echo off
@rem This will start a console application
@rem demonstrating the functionality of the Coherence(tm) API
setlocal
:config
@rem specify the Coherence installation directory
set coherence_home=%~dp0\..
@rem specify if the console will also act as a server
set storage_enabled=false
@rem specify the JVM heap size
set memory=64m
:start
if not exist "%coherence_home%\lib\coherence.jar" goto instructions
if "%java_home%"=="" (set java_exec=java) else (set java_exec=%java_home%\bin\java)
:launch
if "%storage_enabled%"=="true" (echo ** Starting storage enabled console **) else (echo ** Starting storage disabled console **)
set java_opts="-Xms%memory% -Xmx%memory% -Dtangosol.coherence.distributed.localstorage=true -Dtangosol.coherence.cacheconfig=file:/C:/Users/Praveen/workspace/SimpleCacheApp/build/classes/coherence-cache-config.xml -Dtangosol.coherence.override=file:/C:/Users/Praveen/workspace/SimpleCacheApp/src/tangosol-coherence-override.xml"
"%java_exec%" -server -showversion "%java_opts%" -cp "%coherence_home%\lib\coherence.jar" com.tangosol.net.CacheFactory %1
goto exit
:instructions
echo Usage:
echo ^<coherence_home^>\bin\coherence.cmd
goto exit
:exit
endlocal
@echo on
**cache server working fine , When i am trying to start the coherence and entered cache and mycache name hello its showing following error**
Map (?): cache hello
2012-06-14 22:48:02.475/7.590 Oracle Coherence GE 3.6.0.4 <Info> (thread=main, member=11): Loaded cache configuration from "file:/C:/Users/lakshmana/JPACoherenceWorkspace/Application/appClientModule/c
oherence-cache-config.xml"
2012-06-14 22:48:02.609/7.724 Oracle Coherence GE 3.6.0.4 <D4> (thread=DistributedCache, member=11): PartitionedCache caught an unhandled exception (com.tangosol.util.WrapperException: (Wrapped: error
configuring class "com.tangosol.io.pof.ConfigurablePofContext") (Wrapped: Failed to load POF configuration: Manager-config.xml) The POF configuration is missing: "Manager-config.xml", loader=sun.misc
.Launcher$AppClassLoader@6d6f0472) while exiting.
2012-06-14 22:48:02.610/7.725 Oracle Coherence GE 3.6.0.4 <Error> (thread=DistributedCache, member=11): ClusterService.doServiceLeft: Unknown Service PartitionedCache{Name=DistributedCache, State=(SER
VICE_STOPPED), Not initialized}
2012-06-14 22:48:02.610/7.725 Oracle Coherence GE 3.6.0.4 <D5> (thread=DistributedCache, member=11): Service DistributedCache left the cluster
2012-06-14 22:48:02.625/7.740 Oracle Coherence GE 3.6.0.4 <Error> (thread=main, member=11): Error while starting service "DistributedCache": (Wrapped) (Wrapped: error configuring class "com.tangosol.i
o.pof.ConfigurablePofContext") (Wrapped: Failed to load POF configuration: Manager-config.xml) java.io.IOException: The POF configuration is missing: "Manager-config.xml", loader=sun.misc.Launcher$App
ClassLoader@6d6f0472
at com.tangosol.coherence.component.util.Daemon.start(Daemon.CDB:52)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.start(Service.CDB:7)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.start(Grid.CDB:6)
at com.tangosol.coherence.component.util.SafeService.startService(SafeService.CDB:28)
at com.tangosol.coherence.component.util.safeService.SafeCacheService.startService(SafeCacheService.CDB:5)
at com.tangosol.coherence.component.util.SafeService.ensureRunningService(SafeService.CDB:27)
at com.tangosol.coherence.component.util.SafeService.start(SafeService.CDB:14)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureServiceInternal(DefaultConfigurableCacheFactory.java:1057)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:892)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:874)
at com.tangosol.net.DefaultConfigurableCacheFactory.configureCache(DefaultConfigurableCacheFactory.java:1231)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:290)
at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:735)
at com.tangosol.coherence.component.application.console.Coherence.doCache(Coherence.CDB:18)
at com.tangosol.coherence.component.application.console.Coherence.processCommand(Coherence.CDB:209)
at com.tangosol.coherence.component.application.console.Coherence.run(Coherence.CDB:37)
at com.tangosol.coherence.component.application.console.Coherence.main(Coherence.CDB:3)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.tangosol.net.CacheFactory.main(CacheFactory.java:1400)
Caused by: (Wrapped: error configuring class "com.tangosol.io.pof.ConfigurablePofContext") (Wrapped: Failed to load POF configuration: Manager-config.xml) java.io.IOException: The POF configuration is
missing: "Manager-config.xml", loader=sun.misc.Launcher$AppClassLoader@6d6f0472
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.instantiateSerializer(Service.CDB:17)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:31)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:4)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onEnter(Grid.CDB:26)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onEnter(PartitionedService.CDB:19)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:14)
at java.lang.Thread.run(Thread.java:662)
Caused by: (Wrapped: Failed to load POF configuration: Manager-config.xml) java.io.IOException: The POF configuration is missing: "Manager-config.xml", loader=sun.misc.Launcher$AppClassLoader@6d6f0472
at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:330)
at com.tangosol.run.xml.XmlHelper.loadFileOrResource(XmlHelper.java:281)
at com.tangosol.io.pof.ConfigurablePofContext.createPofConfig(ConfigurablePofContext.java:813)
at com.tangosol.io.pof.ConfigurablePofContext.initialize(ConfigurablePofContext.java:775)
at com.tangosol.io.pof.ConfigurablePofContext.setContextClassLoader(ConfigurablePofContext.java:319)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.instantiateSerializer(Service.CDB:13)
... 6 more
Caused by: java.io.IOException: The POF configuration is missing: "Manager-config.xml", loader=sun.misc.Launcher$AppClassLoader@6d6f0472
at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:316)
... 11 more
2012-06-14 22:48:02.625/7.740 Oracle Coherence GE 3.6.0.4 <Error> (thread=main, member=11):
(Wrapped) (Wrapped: error configuring class "com.tangosol.io.pof.ConfigurablePofContext") (Wrapped: Failed to load POF configuration: Manager-config.xml) java.io.IOException: The POF configuration is
missing: "Manager-config.xml", loader=sun.misc.Launcher$AppClassLoader@6d6f0472
at com.tangosol.coherence.component.util.Daemon.start(Daemon.CDB:52)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.start(Service.CDB:7)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.start(Grid.CDB:6)
at com.tangosol.coherence.component.util.SafeService.startService(SafeService.CDB:28)
at com.tangosol.coherence.component.util.safeService.SafeCacheService.startService(SafeCacheService.CDB:5)
at com.tangosol.coherence.component.util.SafeService.ensureRunningService(SafeService.CDB:27)
at com.tangosol.coherence.component.util.SafeService.start(SafeService.CDB:14)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureServiceInternal(DefaultConfigurableCacheFactory.java:1057)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:892)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:874)
at com.tangosol.net.DefaultConfigurableCacheFactory.configureCache(DefaultConfigurableCacheFactory.java:1231)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:290)
at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:735)
at com.tangosol.coherence.component.application.console.Coherence.doCache(Coherence.CDB:18)
at com.tangosol.coherence.component.application.console.Coherence.processCommand(Coherence.CDB:209)
at com.tangosol.coherence.component.application.console.Coherence.run(Coherence.CDB:37)
at com.tangosol.coherence.component.application.console.Coherence.main(Coherence.CDB:3)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.tangosol.net.CacheFactory.main(CacheFactory.java:1400)
Caused by: (Wrapped: error configuring class "com.tangosol.io.pof.ConfigurablePofContext") (Wrapped: Failed to load POF configuration: Manager-config.xml) java.io.IOException: The POF configuration is
missing: "Manager-config.xml", loader=sun.misc.Launcher$AppClassLoader@6d6f0472
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.instantiateSerializer(Service.CDB:17)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:31)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:4)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onEnter(Grid.CDB:26)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onEnter(PartitionedService.CDB:19)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:14)
at java.lang.Thread.run(Thread.java:662)
Caused by: (Wrapped: Failed to load POF configuration: Manager-config.xml) java.io.IOException: The POF configuration is missing: "Manager-config.xml", loader=sun.misc.Launcher$AppClassLoader@6d6f0472
at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:330)
at com.tangosol.run.xml.XmlHelper.loadFileOrResource(XmlHelper.java:281)
at com.tangosol.io.pof.ConfigurablePofContext.createPofConfig(ConfigurablePofContext.java:813)
at com.tangosol.io.pof.ConfigurablePofContext.initialize(ConfigurablePofContext.java:775)
at com.tangosol.io.pof.ConfigurablePofContext.setContextClassLoader(ConfigurablePofContext.java:319)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.instantiateSerializer(Service.CDB:13)
... 6 more
Caused by: java.io.IOException: The POF configuration is missing: "Manager-config.xml", loader=sun.misc.Launcher$AppClassLoader@6d6f0472
at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:316)
... 11 more
Please tell me how to approach this task.......
Thanks
Edited by: 875910 on Jun 15, 2012 12:48 PM
Edited by: 875910 on Jun 15, 2012 1:14 PMhi Jon thanks for reply ...actually i have modified what u said in the post , but still i am getting the same error .............
is it correct way to build a portable object , its by using java .....
is it when i remove serializer in my coherence-ccache-config ..its working fine ,
Is there any mistake in this config ....if i used this serializer ,getting following error , this config is must to implement pof concept...
<serializer>
<instance>
<class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
<init-params>
<init-param>
<param-type>String</param-type>
<param-value>Manager-pof-config.xml</param-value>
</init-param>
</init-params>
</instance>
</serializer>
Map (?): cache hello
2012-06-15 16:09:27.651/5.755 Oracle Coherence GE 3.6.0.4 <Info> (thread=main, member=13): Loaded cache configuration from "file:/C:/Users/lakshmana/J
oherence-cache-config.xml"
2012-06-15 16:09:27.784/5.888 Oracle Coherence GE 3.6.0.4 <Info> (thread=DistributedCache:DistributedCacheService, member=13): Loaded POF configuratio
pace/Application/appClientModule/Manager-pof-config.xml"
2012-06-15 16:09:27.784/5.888 Oracle Coherence GE 3.6.0.4 <D4> (thread=DistributedCache:DistributedCacheService, member=13): PartitionedCache caught a
ception: (Wrapped: error configuring class "com.tangosol.io.pof.ConfigurablePofContext") (Wrapped: Failed to load included POF configuration: Manager-
missing: "Manager-pof-config.xml", loader=sun.misc.Launcher$AppClassLoader@6d6f0472) while exiting.
2012-06-15 16:09:27.785/5.889 Oracle Coherence GE 3.6.0.4 <Error> (thread=DistributedCache:DistributedCacheService, member=13): ClusterService.doServi
ributedCacheService, State=(SERVICE_STOPPED), Not initialized}
2012-06-15 16:09:27.786/5.890 Oracle Coherence GE 3.6.0.4 <D5> (thread=DistributedCache:DistributedCacheService, member=13): Service DistributedCacheS
2012-06-15 16:09:27.789/5.893 Oracle Coherence GE 3.6.0.4 <Error> (thread=main, member=13): Error while starting service "DistributedCacheService": (W
gosol.io.pof.ConfigurablePofContext") (Wrapped: Failed to load included POF configuration: Manager-pof-config.xml) java.io.IOException: The included P
ml", loader=sun.misc.Launcher$AppClassLoader@6d6f0472
at com.tangosol.coherence.component.util.Daemon.start(Daemon.CDB:52)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.start(Service.CDB:7)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.start(Grid.CDB:6)
at com.tangosol.coherence.component.util.SafeService.startService(SafeService.CDB:28)
at com.tangosol.coherence.component.util.safeService.SafeCacheService.startService(SafeCacheService.CDB:5)
at com.tangosol.coherence.component.util.SafeService.ensureRunningService(SafeService.CDB:27)
at com.tangosol.coherence.component.util.SafeService.start(SafeService.CDB:14)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureServiceInternal(DefaultConfigurableCacheFactory.java:1057)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:892)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:874)
at com.tangosol.net.DefaultConfigurableCacheFactory.configureCache(DefaultConfigurableCacheFactory.java:1231)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:290)
at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:735)
at com.tangosol.coherence.component.application.console.Coherence.doCache(Coherence.CDB:18)
at com.tangosol.coherence.component.application.console.Coherence.processCommand(Coherence.CDB:209)
at com.tangosol.coherence.component.application.console.Coherence.run(Coherence.CDB:37)
at com.tangosol.coherence.component.application.console.Coherence.main(Coherence.CDB:3)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.tangosol.net.CacheFactory.main(CacheFactory.java:1400)
Caused by: (Wrapped: error configuring class "com.tangosol.io.pof.ConfigurablePofContext") (Wrapped: Failed to load included POF configuration: Manage
d POF configuration is missing: "Manager-pof-config.xml", loader=sun.misc.Launcher$AppClassLoader@6d6f0472
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.instantiateSerializer(Service.CDB:17)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:31)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:4)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onEnter(Grid.CDB:26)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onEnter(PartitionedService.CDB:19)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:14)
at java.lang.Thread.run(Thread.java:662)
Caused by: (Wrapped: Failed to load included POF configuration: Manager-pof-config.xml) java.io.IOException: The included POF configuration is missing
er$AppClassLoader@6d6f0472
at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:330)
at com.tangosol.run.xml.XmlHelper.loadFileOrResource(XmlHelper.java:281)
at com.tangosol.io.pof.ConfigurablePofContext.createPofConfig(ConfigurablePofContext.java:856)
at com.tangosol.io.pof.ConfigurablePofContext.initialize(ConfigurablePofContext.java:775)
at com.tangosol.io.pof.ConfigurablePofContext.setContextClassLoader(ConfigurablePofContext.java:319)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.instantiateSerializer(Service.CDB:13)
... 6 more
Caused by: java.io.IOException: The included POF configuration is missing: "Manager-pof-config.xml", loader=sun.misc.Launcher$AppClassLoader@6d6f0472
at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:316)
... 11 more
2012-06-15 16:09:27.789/5.893 Oracle Coherence GE 3.6.0.4 <Error> (thread=main, member=13):
(Wrapped) (Wrapped: error configuring class "com.tangosol.io.pof.ConfigurablePofContext") (Wrapped: Failed to load included POF configuration: Manager
POF configuration is missing: "Manager-pof-config.xml", loader=sun.misc.Launcher$AppClassLoader@6d6f0472
at com.tangosol.coherence.component.util.Daemon.start(Daemon.CDB:52)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.start(Service.CDB:7)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.start(Grid.CDB:6)
at com.tangosol.coherence.component.util.SafeService.startService(SafeService.CDB:28)
at com.tangosol.coherence.component.util.safeService.SafeCacheService.startService(SafeCacheService.CDB:5)
at com.tangosol.coherence.component.util.SafeService.ensureRunningService(SafeService.CDB:27)
at com.tangosol.coherence.component.util.SafeService.start(SafeService.CDB:14)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureServiceInternal(DefaultConfigurableCacheFactory.java:1057)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:892)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:874)
at com.tangosol.net.DefaultConfigurableCacheFactory.configureCache(DefaultConfigurableCacheFactory.java:1231)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:290)
at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:735)
at com.tangosol.coherence.component.application.console.Coherence.doCache(Coherence.CDB:18)
at com.tangosol.coherence.component.application.console.Coherence.processCommand(Coherence.CDB:209)
at com.tangosol.coherence.component.application.console.Coherence.run(Coherence.CDB:37)
at com.tangosol.coherence.component.application.console.Coherence.main(Coherence.CDB:3)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.tangosol.net.CacheFactory.main(CacheFactory.java:1400)
Caused by: (Wrapped: error configuring class "com.tangosol.io.pof.ConfigurablePofContext") (Wrapped: Failed to load included POF configuration: Manage
d POF configuration is missing: "Manager-pof-config.xml", loader=sun.misc.Launcher$AppClassLoader@6d6f0472
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.instantiateSerializer(Service.CDB:17)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:31)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:4)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onEnter(Grid.CDB:26)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onEnter(PartitionedService.CDB:19)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:14)
at java.lang.Thread.run(Thread.java:662)
Caused by: (Wrapped: Failed to load included POF configuration: Manager-pof-config.xml) java.io.IOException: The included POF configuration is missing
er$AppClassLoader@6d6f0472
at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:330)
at com.tangosol.run.xml.XmlHelper.loadFileOrResource(XmlHelper.java:281)
at com.tangosol.io.pof.ConfigurablePofContext.createPofConfig(ConfigurablePofContext.java:856)
at com.tangosol.io.pof.ConfigurablePofContext.initialize(ConfigurablePofContext.java:775)
at com.tangosol.io.pof.ConfigurablePofContext.setContextClassLoader(ConfigurablePofContext.java:319)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.instantiateSerializer(Service.CDB:13)
... 6 more
Caused by: java.io.IOException: The included POF configuration is missing: "Manager-pof-config.xml", loader=sun.misc.Launcher$AppClassLoader@6d6f0472
at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:316)
... 11 more
Map (?):
Thanks.. -
Automatic management of Channel Strip Objects...
This is the function that automatically creates mixer objects (i.e. channels, auxes, etc) in Logic when you add tracks. Before I discovered it, Logic 8 drove me nuts trying to outthink me, because I have a very specific pre-configured mixer environment I use (I never use the track mixer view, only the environent view). This is because I have two Mackie controls, and I very much like my mixer set up in blocks of sixteen channels (otherwise the control surfaces become kind of arbitrary). I'm also not a big fan of the track mixer because having all the mixer channels oriented in a continuous horizontal fashion gets really silly when you're doing a 56-channel mix (with 20 or so auxes to the right of that!)
Oh yes, my issue...
Even with the "Automatic Management of Channel Strip Objects" checkbox unchecked, Logic still insists on creating new aux objects in the environment when I set up a send. This is annoying and confusing, because dry sound gets routed to the main 1-2 bus (and occasionally confusing, because my default mixer is very large, so the new aux gets put somewhere where you don't immeditely see it).
Hence Logic needs a new command:
"I really, really don't want you to automatically create audio objects for me, I was really serious about it when I unchecked the Automatic Management of Channel Strip Objects checkbox, I am smart enough to handle it on my own, if I wasn't I'd use Garageband, or some other app that doesn't have the word Pro in it"
Maybe something a little shorter would suffice... or just make the Automatic Management of Channel Strip Objects checkbox work properly :>)
Mitchellwell, i work with a static environment layer and the track mixer for years now. this gives me the flexibility i need.
i need the track mixer for the control surface and i like to only see the channels i have in the arrange here. anything else will just waste channels on the control surface.
in addition to this i use a static environment layer for effect returns and stuff like that.
i work with a lot of hardware and this setup of track mixer and environment has been very helpfull when working.
i programmed my control surface so that i can switch between these two with a push of a button.
this is really fast and easy to work with.
maybe this stupid auto toggle back on thing is a bug. i'll writa a bug report and hope they fix it soon.
thanks anyway -
JAVA Calling Oracle Function and Returning OBJECT
HI,
I am working as a developer in java/j2ee project.
I am facing one issue:
I need to call Oracle function from java code. Oracle User define function is residing in oracle package and returning Object which contains data.
Can you please help me
With Best Regardsgolduniya wrote:
I need to call Oracle function from java code. Oracle User define function is residing in oracle package and returning Object which contains data.
Can you please help meIt requires a great deal of Oracle jdbc driver specific code.
[http://download-west.oracle.com/docs/cd/B10501_01/java.920/a96654/oraint.htm#1012664] -
Problem in passing/returning objects over dynamic web service call
Hi Friends,
I am beginner in java web service.
Here is the problem I am facing when I pass/return user defined objects to remote web service method using dynamic we service call.
The client can call the remote web service method in 2 ways.
1. By generating client stubs using WSDL file
- In this case, I am able to pass/return the user defined objects to remote method without any issue only when the server side web services are deployed in any server(jboss)
- But in java 1.6 & above, the web services can be deployed without server using endpoint. In this case, I am not able to pass/return objects over web service calls.
2. Without generating client stubs (dynamic web service call)
- This will establish a connection at run time using the given WSDL file (I have attached the document). I have to form an XML(This will contain API name, arguments) string as input at run time
- In this case, it allows only string as argument while passing & returning.
Please let me know if you can help me on this.
Regards,
paniI'm not sure about your question, but this might help:
[http://forum.java.sun.com/thread.jspa?threadID=5251188|http://forum.java.sun.com/thread.jspa?threadID=5251188]
You might also want to read on JAXB. -
It is interesting why java.lang.reflect.Array.newInstance() returns
Object, but not more specific Object[]?Array.newInstance(int.class, length)
-
What is the advantage of using methods to return objects?
Hello there,
What is the advantage of using static methods to return
objects? Isnt this a Factory Pattern ?
What is the real advantage of using methods to return objects
rather than using public constructors to create objects ?
Can some one please explain
RegardsI think there were two questions. The first (why
static) is well answered but I hope somebody can
answer the general question - why whatever =
createSomething(); as opposed to whatever
= new Something(); - because inquiring minds
want to know.I thought I answered that question. Perhaps I need to be more specific.
For the Singleton pattern, you don't want a new instance (except possibly the first time, if you're using lazy instantiation).
For the Factory pattern, you might not always want an instance of the actual class containing the static methods, so new won't work.
If, on the other hand, neither of the above holds, there is no reason not to use new (unless, of course, anyone can come up with another use of static creators).
RObin -
Revision: 23961
Revision: 23961
Author: [email protected]
Date: 2012-06-15 04:42:44 -0700 (Fri, 15 Jun 2012)
Log Message:
Bug#3200562: New Flex Session Id generated while disconnect with streaming amf channel
While invalidating session, make sure a new one does not get created.
Modified Paths:
blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/endpoints/BaseStreamingHTTPE ndpoint.java
Property Changed:
blazeds/branches/4.0.0_fixes/modules/You're trying to do this directly in ActionScript without using Flex, correct?
The mxmlc compiler for Flex adds some registerClassAlias calls to map types between the client and the server. This will be missing if try to use the messaging code outside of a Flex app.
Take a look at the mx.utils.RpcClassAliasInitializer class in rpc.swc. This has a static registerClassAliases method that will do the class registration for you. You should just need to call this before running your messaging code.
-Alex -
Revision: 23962
Revision: 23962
Author: [email protected]
Date: 2012-06-15 04:57:45 -0700 (Fri, 15 Jun 2012)
Log Message:
Bug#3200562: New Flex Session Id generated while disconnect with streaming amf channel
While invalidating session, make sure a new one does not get created.
Modified Paths:
blazeds/branches/4.6.x/modules/core/src/flex/messaging/endpoints/BaseStreamingHTTPEndpoin t.javaI thought the same that those devices simply are too old. However I would like to know what causes this capabilities change. We want to get rid of the old H/W, but at the moment it looks as if we would need to revert back to the 4402 in order to get those things working again.
I have not enough information, but those devices are some kind of handhelds. Their MAC OUI belongs to Newport Electronics.
Regards,
Patrick -
Revision: 23960
Revision: 23960
Author: [email protected]
Date: 2012-06-15 04:15:18 -0700 (Fri, 15 Jun 2012)
Log Message:
Bug#3200562: New Flex Session Id generated while disconnect with streaming amf channel
While invalidating session, make sure a new one does not get created.
Modified Paths:
blazeds/trunk/modules/core/src/flex/messaging/endpoints/BaseStreamingHTTPEndpoint.java -
Revision: 23948
Revision: 23948
Author: [email protected]
Date: 2012-06-13 06:11:35 -0700 (Wed, 13 Jun 2012)
Log Message:
Bug##3200562: New Flex Session Id generated while disconnect with streaming amf channel
On session time out, Flex Client is invalidated on the server side. It also results in Flex Session getting invalidated. In order to complete the client-server streaming connection handshake, the client ends up sending a CLOSE command. On the server side, for any work to be done, the MB first needs to creates a Flex Session (if none exists). After doing the necessary cleanup, the newly created Flex Session will also be invalidated. No stray Flex Sessions will left dangling...
Modified Paths:
blazeds/trunk/modules/core/src/flex/messaging/endpoints/BaseStreamingHTTPEndpoint.java
Maybe you are looking for
-
Lightroom vs Photoshop Elements Organizer
I don't know Lightroom, but a friend suggested it as a solution to my problem, so here goes: I have a subscription to CC (and have used Creative Suite for years). I use CC at work, but for my personal, non-work photos, I have always used Photoshop El
-
ABAP style FORM..ENDFORM in BSP ...?
Hi, guys! I'm rather new to BSP world. Could someone help me with the following question: Is it possible to use ABAP style ===================== FORM abc USING abc1 CHANGING abc2. ENDFORM. ===================== in BSP and accordingly to cal
-
My Satellite C50D-A022 won't play DVDs
I just got my toshiba and i was watching a dvd on it, mid way through viewing the movie toshiba video player froze and then stopped playing. I now cannot even open the video player and am unable to play any dvd at all on the computer. PLEASE help!
-
Can I create a Bootcamp partition without installing Windows immediately?
I have a clone of my bootcamp that contains Windows 7, but can't restore to the Clone without a Bootcamp partition. I am running Lion. Is there anyway to create the bootcamp partition without the Windows Install Disk?...if so, I could just restore my
-
Oracle Database suddenly very slow!
Hello, After running our Oracle 10g instance on Red Hat Enterprise for more than two years without an itch it suddenly became extremely slow. A simple query that would take a few seconds now takes an hour to complete! It is not the network since the