cancel
Showing results for 
Search instead for 
Did you mean: 

Type Java:Byte Not Found Error

Former Member
0 Kudos

Hello,

I have a web service that uses a byte array as an argument. When I imported the web service into a model, one of the types it imported was a byte array with a type of byte.

This is what is causing the error. I wanted to try and change it to a type of binary, but it won't let me edit it.

Any suggestions would be appreciated.

(Would editing the WSDL file possibly work?)

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hello, I have exactly the same problem has anyone found a solution?

I saw that one solution is to change the byte[] to a String encodend with Base64, however I do not have the possibility to change the WebService interface, so I have to somehow work with it.

Thanks in advance.

Former Member
0 Kudos

Sirisha,

I did not edit the wsdl file. It imports perfectly. The problem is, that the proxy classes that are generated create byte type as an request argument. This byte type is not recognized for some reason by the Web Dynpro. I know there is a binary type, but it won't let me change that in the proxy class.

I checked the SDN forum and I did come up with one thread that had the exact same problem, but there was no resolution.

Regards,

Tom

Former Member
0 Kudos

Hi,

how have you finally solved your problem?

I am experiencing the same error...

Regards,

Tassilo

Former Member
0 Kudos

Hi,

Any Solution? I am facing the same problem

Thanks in advance

Former Member
0 Kudos

Hi,

After editing your wsdl file did you check if its perfect?? if it has any errors it wont work.

And its showing some connection problem.....

Try creating a wsdl file as below.. check if all the tags are correct or not and try it again..

all the best.

Regards,

Sirisha.R.S.

Former Member
0 Kudos

Here is the stack dump:

com.sap.tc.webdynpro.services.exceptions.WDTypeNotFoundException: type java:byte not found

at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getDataType(DataTypeBroker.java:216)

at com.sap.tc.webdynpro.progmodel.context.AttributeInfo.init(AttributeInfo.java:485)

at com.sap.tc.webdynpro.progmodel.context.NodeInfo.initAttributes(NodeInfo.java:771)

at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:756)

at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:761)

at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:761)

at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:761)

at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:761)

at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)

at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)

at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:346)

at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:349)

at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:599)

at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)

at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:251)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:391)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:265)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)

at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)