[JBoss JIRA] Created: (JBCACHE-1289) VersionAwareMarshalle.objectFromStream implemention uses unreliable InputStream.available
by Elias Ross (JIRA)
VersionAwareMarshalle.objectFromStream implemention uses unreliable InputStream.available
-----------------------------------------------------------------------------------------
Key: JBCACHE-1289
URL: http://jira.jboss.com/jira/browse/JBCACHE-1289
Project: JBoss Cache
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Elias Ross
Assigned To: Manik Surtani
InputStream.available() may return less than the complete number of bytes available on the stream. The following does not work:
@Override
public Object objectFromStream(InputStream is) throws Exception
{
int avbl = is.available(); // MAY RETURN 1 !
byte[] bytes = new byte[avbl];
is.read(bytes, 0, avbl);
return objectFromByteBuffer(bytes);
}
I want to be able to stream objects from the Amazon S3 service. The following does not work either:
ObjectInputStream ois = new MarshalledValueInputStream(is);
short versionId = ois.readShort();
Marshaller marshaller = getMarshaller(versionId);
return marshaller.objectFromObjectStream(ois);
I'm guessing ReusableObjectInputStream needs to be used and changed to actually support streams, not byte arrays! But I'm not too familiar with the mechanics.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 5 months
[JBoss JIRA] Commented: (EJBTHREE-572) PersistenceUnitInfo.getNewTempClassLoader()
by Alexander Tsirel (JIRA)
[ http://jira.jboss.com/jira/browse/EJBTHREE-572?page=comments#action_12398911 ]
Alexander Tsirel commented on EJBTHREE-572:
-------------------------------------------
Now PersistenceUnitInfo.getNewTempClassLoader(); returns not null ClassLoader,
but during start of jboss with toplink when there is a lookup
for oracle.toplink.essentials.platform.server.jboss.JBossPlatform class with this classloader
NPE is thrown.
I added some output to toplink - here is the output for this lookup.
17:05:01,446 INFO [STDOUT] Inside PrivilegedAccessHelper, looking for: oracle.toplink.essentials.platform.server.jboss.JBossPlatform with classLoader: org.jboss.mx.loading.UnifiedClassLoader3@ad962c{ url=file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp42933javaEEApplication.ear ,addedOrder=0}
After this lookup we have:
17:05:01,462 WARN [ServiceController] Problem starting service persistence.units:ear=javaEEApplication.ear,jar=EJB.jar,unitName=first
javax.persistence.PersistenceException: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.0.1 (Build SNAPSHOT (02/08/2008))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
Exception Description: predeploy for PersistenceUnit [first] failed.
Internal Exception: java.lang.NullPointerException
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:653)
at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createContainerEntityManagerFactory(EntityManagerFactoryProvider.java:178)
at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:247)
> PersistenceUnitInfo.getNewTempClassLoader()
> -------------------------------------------
>
> Key: EJBTHREE-572
> URL: http://jira.jboss.com/jira/browse/EJBTHREE-572
> Project: EJB 3.0
> Issue Type: Bug
> Reporter: Emmanuel Bernard
> Assigned To: Bill Burke
>
> The sooner the better.
> Hibernate can't enhance the classes to make property (not association) lazy loading.
> Toplink just can't start.
> http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3939615#3939615
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 5 months
[JBoss JIRA] Created: (JBPORTAL-1880) problem with JBP_REG_PROP_DESC_USAGES table
by Prabhat Jha (JIRA)
problem with JBP_REG_PROP_DESC_USAGES table
-------------------------------------------
Key: JBPORTAL-1880
URL: http://jira.jboss.com/jira/browse/JBPORTAL-1880
Project: JBoss Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Portal WSRP
Affects Versions: 2.6.4 Final
Reporter: Prabhat Jha
Assigned To: Chris Laprun
Fix For: 2.6.4 Final
Attachments: wsrp-table-error.log
Work Flow:
1. Wiped out portal database in mysql.
2. Started portal with jboss-portal-ha.sar
3. Went to WSRP admin UI.
4. Added bea and after entering consumer registration as "public" , save and refresh throws
java.sql.BatchUpdateException: Table 'portal.JBP_REG_PROP_DESC_USAGES' doesn't exist
com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:1257)
com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:943)
Attached is the output of "grep JBP_REG_PROP_DESC_USAGES" on server.log. I would like to see this fixed in 2.6.4 itself.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 5 months